uuid
stringlengths
36
36
repo_name
stringlengths
5
133
relative_path
stringlengths
3
3.76k
content
stringlengths
282
4.03M
category
stringclasses
6 values
algo_rel_score
float32
0.9
1
quality_score
float32
3
8.13
source_meta
dict
18e2593c-7d32-44b9-829c-df1c1434aec3
GinkgoX/dataBase_Algorithm
homework/chapter4/binarySearchTree/main.cpp
#include<iostream> #include"tree.h" using namespace std; int main() { int arr[8] = {5, 3, 2, 7, 4, 8, 1, 6}; Tree<int> *tree = new Tree<int>(); cout << "******* insert *******" << endl; for(int i = 0; i < 8; i++) { tree -> insert(arr[i]); } cout << "******* print *******" << endl; tree -> print(); cout <...
ALGO
0.999444
4.003051
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2019-05-22T12:45:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "259914c28f...
58e70914-b4db-4381-a527-e910fdfe38ab
TIL-Study-jj/TIL-Study
wltjd0620/1주차/2309.cpp
// https://www.acmicpc.net/problem/2309 #include <bits/stdc++.h> using namespace std; int a[9]; int main(){ //입력받기 for(int i = 0; i< 9; i++){ cin >> a[i]; } sort(a,a+9); do{ // for(int i:a)cout << i << " "; // cout << "\n"; int sum = 0; for(int i = 0; i< 7; i...
ALGO
0.999817
4.67746
{ "github_metadata": { "branch": "main", "commit_count": 119, "repo_created_at": "2024-12-19T11:59:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9e8fa44260f...
ea90c930-7e6c-46a6-8fc3-42fd736c6ef5
PacktPublishing/Hands-On-Functional-Programming-with-Cpp
Chapter15/include/range/v3/view/delimit.hpp
/// \file // Range v3 library // // Copyright <NAME> 2013-present // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/ericniebler/range...
TOOL
0.936236
7.062076
{ "github_metadata": { "branch": "master", "commit_count": 126, "repo_created_at": "2018-11-06T04:21:01.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 51, "forks": 27, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4534b35...
7f83f35a-365e-4287-ae17-f15ceed9e3d7
iambharatks/LeetCodeProblems
Arrays/longestConsctiveSequence.cpp
#include <bits/stdc++.h> using namespace std; class Solution1 { public: int longestConsecutive(vector<int> &nums) { sort(nums.begin(), nums.end()); int curCnt = 0; int res = 0; for (int i = 0; i < nums.size(); i++) { if (i == 0) curCnt = 1; ...
ALGO
0.999964
5.283182
{ "github_metadata": { "branch": "main", "commit_count": 282, "repo_created_at": "2020-10-15T12:57:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b529dcd8e6...
7d778792-517a-414e-8229-f582017753a2
turakz/calculator
calculator/calc-1.0/calc1.0.cpp
#include <iostream> #include <vector> #include <string> #include <stdlib.h> using namespace std; //Token Class class Token { public: char kind; double value; Token(char ch) :kind(ch), value(0) { } Token(char ch, double val) :kind(ch), value(val) { } }; //Stream c...
ALGO
0.926934
4.366347
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2017-10-09T23:59:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0a643d149a...
dd19d3b6-bd2f-4a34-8e48-4bea48233993
rscalt/SUSU_CPP_LAB
labs_C1_S1/Практические_задания/Array.h
#include <iostream> #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <time.h> // Для srand() using namespace std; void Rand_Arr(int a[], int len_a) { // Заполнение массива. // Функция rand() возвращает псевдослучайное целое в диапазоне от // 0 to RAND_MAX (32767). for (int i = 0; i < len_a; i++) ...
TOOL
0.987302
3.086059
{ "github_metadata": { "branch": "main", "commit_count": 64, "repo_created_at": "2020-10-31T07:16:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "09698026c51...
810ea0b0-66ba-4de8-9377-e18bdccc416c
jordandong/mylintcodes
LINT_00128_HashFunction.cpp
/* In data structure Hash, hash function is used to convert a string(or any other type) into an integer smaller than hash size and bigger or equal to zero.The objective of designing a hash function is to "hash" the key as unreasonable as possible. A good hash function can avoid collision as less as possible. A widely u...
ALGO
0.999736
5.9333
{ "github_metadata": { "branch": "master", "commit_count": 818, "repo_created_at": "2014-12-07T08:10:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8fb4ef7c...
dc5e9178-3ba6-41de-ad10-bdc9db92103d
ParisIsCool/ozark-escape
missing/particletron/particletron.ino
// INCLUDES // Library for addressable LED strips. Download from https://github.com/FastLED/FastLED/releases #include <FastLED.h> // DEFINES // The total number of LEDs across all track segments #define NUM_LEDS 129 // The greatest number of LEDs on any given track down which a particle can travel #define MAX_NUM_LEDS...
TOOL
0.971467
4.733209
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-01-05T16:33:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8b7513ab0d0a...
9a68f6f7-56e3-4bc4-9c02-54fe96f1955c
Gowtham-369/InterviewBitMasterSolutions
LinkedLists/PalindromeList.cpp
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ ListNode* reverse(ListNode *head){ ListNode *prev=NULL,*cur=head; while(cur != NULL){ ListNode *temp = cur->next; cur->next = prev; ...
ALGO
0.999972
5.151485
{ "github_metadata": { "branch": "main", "commit_count": 27, "repo_created_at": "2021-07-18T03:46:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0b44377c63a...
01ffbe29-fe26-48a5-a5e7-9721f360023c
MertDuman/MontyHallProblem
MontyHall.cpp
#include <iostream> #include <stdlib.h> #include <time.h> #include <ctime> using namespace std; class Doors { public: Doors() { doorCount = 3; prizeSelection = rand() % doorCount; } Doors(int doorCount) { this->doorCount = doorCount; prizeSelection = rand() % doorCount; } void select() { curSelection...
ALGO
0.999342
4.64979
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2018-04-02T18:46:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "db9cc73dcd...
fe5d3791-c246-42a7-b249-647841288678
HKUST-Aerial-Robotics/EPSILON
core/common/inc/common/spline/bezier.h
#ifndef _CORE_COMMON_INC_COMMON_SPLINE_BEZIER_H__ #define _CORE_COMMON_INC_COMMON_SPLINE_BEZIER_H__ #include <assert.h> #include <vector> namespace common { // forward declaration template <int N_DEG> class BezierUtils; /** * @brief Bezier spline class * The the j-th segment evaluation is given by * B_j(t) = s_j...
ALGO
0.995018
6.821939
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2020-09-20T08:27:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 718, "forks": 252, "issues": 13, "pull_requests": 0 }, "file_meta": { "content_id": "647f0...
985a5dfe-a5b7-4737-86f9-054475b15693
erickschulz/NPDECODES
developers/NonLinSchroedingerEquation/mastersolution/propagator.cc
/** * @file propagator.h * @brief NPDE homework NonLinSchroedingerEquation code * @author <NAME> * @date 04.05.2020 * @copyright Developed at ETH Zurich */ #include "propagator.h" #include <Eigen/Core> #include <Eigen/SparseCore> #include <Eigen/SparseLU> #include <cmath> #include <complex> namespace NonLinSch...
ALGO
0.998656
6.528401
{ "github_metadata": { "branch": "master", "commit_count": 1411, "repo_created_at": "2019-04-29T11:28:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 39, "forks": 55, "issues": 3, "pull_requests": 1 }, "file_meta": { "content_id": "a4a05...
1b553e9c-c8b3-41af-a8b0-d908e6b029c5
Prabal-verma/DSA-Lectures
Lecture-022/Palindrome-not-case-sensitive.cpp
#include<iostream> #include<bits/stdc++.h> using namespace std ; int getlength(char name[]){ int count = 0; for(int i = 0 ; name[i] != '\0' ; i++){ count++ ; } return count ; } char tolowercase(char ch){ if(ch>='a' & ch <= 'z'){ return ch ; } else{ char temp = ch ...
ALGO
0.989485
3.768097
{ "github_metadata": { "branch": "main", "commit_count": 28, "repo_created_at": "2023-08-07T12:12:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c3382a501e4...
be181e58-ac9c-45a0-9eef-7ee458a2cf28
prakharm614/DSA
DSA/priority_Q/NodeDeln.cpp
#include<iostream> #include<vector> #include<limits.h> using namespace std; class Maxheap{ vector<int>hp; public: void push(int ele){ //O(logn) hp.push_back(ele); upheapify(hp.size()-1); } int peek(){ //O(1) if(empty()) return INT_MIN; return hp[0]; ...
ALGO
0.99938
4.120229
{ "github_metadata": { "branch": "main", "commit_count": 22, "repo_created_at": "2024-11-21T19:12:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4a64a59e6dc...
c6d895c5-ed74-41fa-a385-ee8572a2fc8b
LEEHYUNDONG/codingTest
C++_preparation/Programmers/Programmers_bracExchange_2.cpp
#include <string> #include <vector> #include <iostream> using namespace std; bool check(string p) { int cnt = 0; for (int i = 0; i < p.length(); i++) { if (p[i] == '(') cnt++; else cnt--; if (cnt < 0) return false; } return (cnt == 0); }...
ALGO
0.999914
5.035213
{ "github_metadata": { "branch": "master", "commit_count": 752, "repo_created_at": "2021-10-07T07:08:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0b1c75de...
b7166875-073f-4299-a530-faeeca21d8de
Lalit-N97/learning-from-lc
lc-3264.cpp
/** Easy - Final Array State After K Multiplication Operations I https://leetcode.com/problems/final-array-state-after-k-multiplication-operations-i/ Written By : LalitN97 **/ class Solution { public: /** Idea : solution can be achievable using minHeap of pair of (element, its index). Apply the o...
ALGO
0.999981
5.530762
{ "github_metadata": { "branch": "master", "commit_count": 197, "repo_created_at": "2024-06-24T17:41:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "15c27e27...
fcce7af6-2c02-458b-8d3f-1f88e94bafab
zju3dv/PVIO
pvio/src/pvio/map/track.h
/************************************************************************** * This file is part of PVIO * * Copyright (c) ZJU-SenseTime Joint Lab of 3D Vision. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
TOOL
0.91866
6.964869
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-08-13T14:20:23.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 316, "forks": 72, "issues": 5, "pull_requests": 0 }, "file_meta": { "content_id": "2686ed8b...
fc8debe4-d30c-4e2d-9aa4-26d855af64cb
mmxsrup/procon
gcj/2017/qual/C/c_2.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vint; typedef pair<int,int> pint; typedef vector<pint> vpinAt; #define rep(i,n) for(int i=0;i<(n);i++) #define REP(i,n) for(int i=n-1;i>=(0);i--) #define reps(i,f,n) for(int i=(f);i<(n);i++) #define each(it,v) for(__typeof((v).begin...
ALGO
0.999857
4.362001
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2017-03-06T17:47:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3cf83385f...
444e28a5-f3ec-460f-b907-c65cbfe8b377
Vincenzo88/Planner_RRT-_Robotica2
rrts/src/local_map_route.h
#ifndef __local_map_h__ #define __local_map_h__ #include <tf/tf.h> #include <tf/transform_listener.h> #include <geometry_msgs/Point.h> #include <nav_msgs/OccupancyGrid.h> #include <pnc_msgs/local_map.h> #include <map.h> template<size_t N> class local_map_route_t : public map_t<N> { public: typedef state_t<N> ...
ALGO
0.986875
5.135002
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2014-02-27T14:52:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "54c6e9f4dc...
6c823f24-affd-4255-8919-ae286969f974
Gagneja1512/Cpp-problems
Codeforces/1300/coinRows.cpp
#include "bits/stdc++.h" using namespace std; #define max(a, b) (a < b ? b : a) #define min(a, b) ((a > b) ? b : a) #define mod 1e9 + 7 #define FOR(a, c) for (int(a) = 0; (a) < (c); (a)++) #define FORL(a, b, c) for (int(a) = (b); (a) <= (c); (a)++) #define FORR(a, b, c) for (int(a) = (b); (a) >= (c); (a)--) typedef lon...
ALGO
0.999941
3.424771
{ "github_metadata": { "branch": "master", "commit_count": 137, "repo_created_at": "2022-06-25T17:53:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4f4f9f85...
7ab3c824-216d-446e-9a0b-33e81ba3d2d3
kasataku777/AOJ_ALS1
3A/3A.cpp
//#include<stdio.h> //#include<iostream> //using namespace std; // //#define BUF_SIZE 1024 // // //class Stack { // //private: // int* m_array; // int m_index; // //public: // Stack(int stack_size){ // m_index = 0; // m_array = new int[stack_size]; // // }; // ~Stack() { // delete[] m_array; // // }; // // void pus...
ALGO
0.999923
4.216224
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2020-02-01T04:48:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2a7bc34d96...
3488aabe-7f5d-484c-838a-5af9153d9037
tangjz/acm-icpc
hdu/5239.cpp
#include <cstdio> #include <cstring> typedef long long LL; const int maxn = 100001; const LL mod = 9223372034707292160; int t, n, m, cnt[maxn], fa[maxn]; LL a[maxn], bit[maxn], ans; LL inc(LL x, LL y) { LL ret = x + (y - mod); if(ret < 0) ret += mod; return ret; } LL dec(LL x, LL y) { LL ret = x - y; if(ret < 0)...
ALGO
0.999952
3.706633
{ "github_metadata": { "branch": "master", "commit_count": 293, "repo_created_at": "2013-10-06T18:57:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 45, "forks": 13, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "848729...
ed9f0788-f6cc-47e8-b800-208f51f10ec0
technik/gideon
pathtracer/collision/AABBTree.h
//------------------------------------------------------------------------------------------------- // Toy path tracer //-------------------------------------------------------------------------------------------------- // Copyright 2018 <NAME> // // Permission is hereby granted, free of charge, to any person obtainin...
ALGO
0.998937
7.719375
{ "github_metadata": { "branch": "master", "commit_count": 217, "repo_created_at": "2018-04-26T17:23:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 11, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dfc8984...
300e1848-b7ab-4916-bff0-a0d2df30f0c0
Wanghcc/AlphaNogo
source.cpp
// Nogo // GameInfo:http://www.botzone.org/games#NoGo // json #include <iostream> #include <cstdio> #include <string> #include <cstring> #include <math.h> #include <time.h> #include <algorithm> #include "jsoncpp/json.h" #define Time_Set 1.98 #define MAXI 1000000 using namespace std; int board[9][9] = { {0} }; bool df...
ALGO
0.999771
4.671363
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-10-16T09:11:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "afd8a616e779...
6e5dccd8-755e-4cc7-b20e-fa117cf032bf
fucfan/code
sub01.cpp
#include<bits/stdc++.h> #define fi first #define se second #define ull unsigned long long #define ll long long #define BIT(a , b) (((a) >> (b)) & 1) #define flip(a , b) ((a) ^ (1ll << (b))) #define pii pair<int, int> #define pb push_back #define nl cout << "\n"; #define __ <<" "<< #define mem(a, b) memset((a), (b), siz...
ALGO
0.999981
3.765038
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2024-10-14T14:26:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "93d61fbdd30f...
4629c985-e57c-49aa-99ca-97bcb202db25
ksaveljev/UVa-online-judge
10010.cpp
#include <iostream> #include <string> #include <map> using namespace std; typedef pair<int,int> ipair; int cases, m, n, k; char buf[50][50]; map<string,ipair> words; void add_word(string &str, int row, int col) { if (words.find(str) == words.end()) { words[str] = pair<int,int>(row, col); } } void add_words(int ...
ALGO
0.999871
3.636699
{ "github_metadata": { "branch": "master", "commit_count": 788, "repo_created_at": "2011-04-04T11:43:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 106, "forks": 69, "issues": 0, "pull_requests": 4 }, "file_meta": { "content_id": "6d663...
6851ae2d-b823-4e9e-bed4-eddcab4a3932
Tanbir-Hasan-247/competitive-programming
Showering.cpp
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define sortAsc(a) sort(a.begin(), a.end()) #define sortDis(a) sort(a.begin(), a.end(), greater<int>()) #define ll long long #define YES "YES\n" #define NO "NO\n" #defi...
ALGO
0.999908
4.847974
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2025-07-02T19:18:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "50bb16fc9cdc...
75f3843f-ca99-47fb-a014-1ab7d6da4ea3
Bon-Developer/Indy7-rnb_control-bulletSim
control_hub/control_algorithm_default.cpp
/** * control_algorithm.cpp * * Created on: 2021. 1. 29. * Author: RNB_CAD */ #include "control_algorithm_default.h" #include <string.h> #include <iostream> using namespace RNB; void ControlAlgorithmDefault::reset_control(Eigen::VectorXd &q0){ } int ControlAlgorithmDefault::calculate_joint_control_torque...
CONFIG
0.980497
4.382795
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-06-11T01:28:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "99e757569361...
99edaf12-eaa5-4dc0-b994-037fb87bdf2a
sharkipelago/mips-sim-optimizations
memory.cpp
#include <vector> #include <cstdint> #include <iostream> #include <cmath> #include "memory.h" #ifdef ENABLE_DEBUG #define DEBUG(x) x #else #define DEBUG(x) #endif using namespace std; // Check if hit in the cache bool Cache::isHit(uint32_t address, uint32_t &loc) { int idx = getIndex(address); int tag = get...
TOOL
0.965322
5.458883
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2025-02-01T19:54:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "073a492cdf0b...
e3d38ccb-4de7-4d6b-97af-02e7ca70c75a
Oein/PS
jungol/1___/11__/110_/1109/1109.cpp
#include <vector> #include <algorithm> #include <queue> #include <iostream> #include <map> #include <set> #include <math.h> #include <numeric> #include <cassert> #include <stack> #include <cstring> using namespace std; typedef long long ll; typedef unsigned long ull; typedef pair<int, int> pii; #define interface str...
ALGO
0.99998
3.828825
{ "github_metadata": { "branch": "main", "commit_count": 998, "repo_created_at": "2023-09-22T23:36:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6d6a376048...
5229eba3-0cee-4173-b8aa-1f5220df6413
moinak878/Practice2021
Daily Practice/2nd - 4th Nov, 2021/tourists.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define int long long #define mod 1000000007 vector<vector<int>> adj , up; int ti = 0; int lg=32; vector<int> tin, tout, d; void dfs(int u, int p, int depth) { tin[u] = ti++; d[u] = depth; up[u][0] = p; for (int i = 1; i <= lg;i++) ...
ALGO
0.999908
3.709312
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2021-12-23T08:33:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "137c4fef07...
82fd2f32-6093-4ccd-b95e-1f67d383bc03
gvin27/Problem_Solving
BOJ/P11200s/P11266/P11266.cpp
#define onlycc ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0) #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef pair<int, long double> pid; int V, E, a, b, clk[10000], clkcnt, root; vector<int> edge[10000]; stac...
ALGO
0.999912
4.645784
{ "github_metadata": { "branch": "master", "commit_count": 603, "repo_created_at": "2020-06-06T10:01:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1ca19567...
e81495d4-27de-40e7-9ffd-71200e2f2eb1
Sushil1512/SDE-sheet
Basics/STL/list.cpp
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { //in list you can add or delete element from front as well as back // DEfine list list<int> li; li.push_back(1); li.push_front(4); li.push_back(3); li.push_front(6); li.push_back(5); li.push_front(9...
TOOL
0.954543
4.406197
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-01-08T11:08:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "21a616cdc0b6...
89454410-90cb-403f-9c4a-d555ebc60ce3
CrkJohn/CompetitiveProgramming
UVa/C++/11770.cpp
#include<bits/stdc++.h> #define se second #define fi first #define len(str) (int)(str.length()) #define pb push_back #define FOR(i,b) for(int i = 0 ; i<b;i++) #define loop(i,a,b) for(int i = a ; i<b;i++) #define SZ 1010 #define fi first #define se second #define LIM 10010 using namespace std; typedef vector<string> vs...
ALGO
0.99989
4.025339
{ "github_metadata": { "branch": "master", "commit_count": 136, "repo_created_at": "2018-04-01T17:17:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "30c3c7fd...
a9ab3b4b-ddfc-4428-8b32-20a371b9bb97
jkrlr/DSA-daily-1year-challenge
LEETCODE PATTERNS/Dynamic Programming/5. Longest Palindromic Substring.cpp
// https://leetcode.com/problems/longest-palindromic-substring/ // Medium // Tags - Dynamic Programming, String // What this problem wants to teach me? #include <bits/stdc++.h> using namespace std; // Dynamic Programming - OverLapping Subporblem(Expan Around Center) | Time = O(N^2) , Space = O(1) class Solution { ...
ALGO
0.999976
6.362594
{ "github_metadata": { "branch": "master", "commit_count": 455, "repo_created_at": "2021-04-10T09:05:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ea9e2c55...
51216c86-b420-4a90-a6b8-a3506eefcbe2
KendallBritton/Robotics
ECGR_5196_Lab7/ECGR_5196_Lab7.ino
//******************************************************************* // This program will allow the robot to find the closest object to * // the robot. The robot will then drive towards the object once * // detected. It will then stop as close as possible to the object * // without coming in contact with the ob...
ALGO
0.999478
4.530387
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-01-20T04:54:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "19f75955dcc8...
0ca26aba-61ca-4569-931d-640a3b487763
Budddy/exst
libclasp/clasp/solver.h
// // Copyright (c) 2006-2012, <NAME> // // This file is part of Clasp. See http://www.cs.uni-potsdam.de/clasp/ // // Clasp is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License...
ALGO
0.999751
3.629961
{ "github_metadata": { "branch": "master", "commit_count": 169, "repo_created_at": "2016-01-24T09:33:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "73067938...
183c495f-4edb-40b1-84f1-fcb68b73070a
sandra-chavdarova/Structural-Programming
Exercises/Second Partial Exam/32.cpp
/* 1. Од тастатура се внесуваат знаци, за крај се внесува EOF. Да се напише програма која ќе ги трансформира внесените знаци и ќе ги испечатина екран. Трансформацијата се изведува не следниот начин: секоја внесена буква од која е од последниот ред букви на тастатурата “zxcvbnm” се заменува со соодветната буква од р...
ALGO
0.998914
3.841466
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2024-10-27T21:46:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "93009b012...
d06a3980-1910-49d9-b8b2-e017eb811715
unillusha/Kaprekar-s-constant
main.cpp
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <cstdlib> // For rand() and srand() #include <ctime> // For time() using namespace std; int sortDescending(int num) { vector<int> digits; // Extract digits while (num > 0) { digits.push_back(num % 10); // Extr...
ALGO
0.999772
5.824851
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2024-11-22T16:12:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "278f6a3a4ed...
70e6fc48-ea2d-484f-bcee-3080447ae06d
harshit938/Library-management-system
library.cpp
#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; // Book structure to represent a book's details struct Book { string bookID; string title; string author; string publisher; int copies; }; // Function to add a new book to the library void addBook() {...
TOOL
0.965185
6.426053
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-15T17:57:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "42b6d12d4ade...
ef0ab9ba-adcc-4203-9185-5b326a93dbcc
run-towards-the-future/LAMMPS-LMFF
SWLMFF-5GCC/MANYBODY/pair_airebo.cpp
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
ALGO
0.949559
5.859083
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2021-07-17T09:35:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5b28c91da...
e4bc817f-2d07-44ba-b66b-5a73a1cca311
devosoft/avida
avida-core/source/analyze/cAnalyzeTreeStats_Gamma.cc
/* * cAnalyzeTreeStats_Orig_Gamma.cc * <EMAIL> * * Created by <NAME> on 2007.12.03. * Copyright 1999-2011 Michigan State University. All rights reserved. * * This file is part of Avida. * * Avida is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public L...
ALGO
0.998445
4.893444
{ "github_metadata": { "branch": "master", "commit_count": 4555, "repo_created_at": "2010-11-05T14:27:00.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 625, "forks": 116, "issues": 26, "pull_requests": 3 }, "file_meta": { "content_id": "32e...
7e952589-ca67-4fcf-b91b-2ff132f458d0
Edu175/Competitive_Programming
icpc/campinas/2025/4/e.cpp
#include <bits/stdc++.h> #define fst first #define snd second #define fore(i,a,b) for(int i=a,jet=b;i<jet;i++) #define pb push_back #define ALL(x) x.begin(),x.end() #define SZ(x) ((ll)x.size()) #define mset(a,v) memset((a),(v),sizeof(a)) #define JET ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); using namespace std; t...
ALGO
0.999997
3.942326
{ "github_metadata": { "branch": "master", "commit_count": 66, "repo_created_at": "2022-09-14T03:09:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2dbb5f517...
69387ffb-047f-452d-bd83-cc5e8b8f1317
zeng1093/hhh
cppstl/vectorlearn.cpp
/************************************************************************* > File Name: vectorlearn.cpp > Author: zengyi > Mail: <EMAIL> > Created Time: Fri Jul 7 15:33:16 2017 ************************************************************************/ #include<iostream> #include<vector> using namespa...
ALGO
0.980364
3.310831
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2017-07-11T03:33:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a20531b39d...
f3f43cae-1f7f-4470-8106-528ceb75b789
crrrush/make-progress-every-day
day 143/test.cc
// 日期差值 // 链接:https://www.nowcoder.com/questionTerminal/ccb7383c76fc48d2bbc27a2a6319631c // 来源:牛客网 // 有两个日期,求两个日期之间的天数,如果两个日期是连续的我们规定他们之间的天数为两天 // 输入描述: // 有多组数据,每组数据有两行,分别表示两个日期,形式为YYYYMMDD // 输出描述: // 每组数据输出一行,即日期差值 // 示例1 // 输入 // 20110412 // 20110422 // 输出 // 11 #include <iostream> using namespace st...
ALGO
0.999575
4.507767
{ "github_metadata": { "branch": "main", "commit_count": 677, "repo_created_at": "2022-09-02T16:01:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4320fa1493...
cbd72fd1-5078-49d2-9efa-2631c3caf8f1
uunws/my-algorithm-design-course
ex02e3_bs.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n, m; cin >> n >> m; vector<int> v(n); for (int i = 0; i < n; i++) { cin >> v[i]; } for (int i = 0; i < m; i++) { int x; cin >> x; int min = 0; int max = v.si...
ALGO
0.999993
4.191665
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2025-05-07T09:51:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "27a0d40393ad...
8ab96035-5a2a-4fe6-a2c1-2e91b749b8f8
raincross7/code-similarity
codes/train_code/problem148/problem148_61.cpp
/* * Author : <NAME> */ #include <bits/stdc++.h> using namespace std; #define rall(x) x.rbegin() , x.rend() #define all(x) x.begin() , x.end() #define fi first #define se second #define pb push_back using ll = long long; using ii = pair <ll , ll>; void in(ll &x); const ll N = 1e5 + 10; #define singleCase // #define mu...
ALGO
0.999805
3.944748
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-06T05:07:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "482d9310e757...
32f29d94-9cb7-46a8-9953-0f1b18fc441f
toberge/IINI4003
exam/2019H/stl.cpp
#include <algorithm> #include <vector> #include <iostream> using namespace std; void a() { vector<int> v1 = {1, 2}; vector<int> v2 = {3, 4}; copy(v2.begin(), v2.end(), v1.begin() + 2); for (auto e : v1) cout << e << endl; } void b() { vector<int> v1 = {1, 2}; vector<int> v2 = {3, 4}; ...
ALGO
0.965165
4.586857
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2020-08-16T10:30:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "837c70bad...
6bc53437-3c81-44e6-b8ee-15714b66d773
yayalam/cpp
cpp-09/ex01/main.cpp
#include "RPN.hpp" int main(int c, char **v) { try { std::stack<int> myStack; if (c != 2) { std::cout << "Usage: ./RPN [expression]" << std::endl; return 0; } std::string data = v[1]; for (size_t i=0;i<data.length();i++) { ...
ALGO
0.933974
4.83458
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2023-05-13T19:53:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "da497fc1f6f0...
02fb9216-0eaf-418a-98ca-cdc96e9d4af7
arpanmangal/COP-CAD
src/2D/twoDProjection.cpp
#include <vector> #include <iostream> #include <fstream> #include "include/2D/twoDPoint.h" #include "include/2D/Edge.h" #include "include/2D/twoDProjection.h" using namespace std; void twoDProjection::add_pointSet(PointVector2D const &a) { PointSet = a; } void twoDProjection::add_edgeSet(EdgeVector2D const &a) { Ed...
ALGO
0.932215
4.195288
{ "github_metadata": { "branch": "master", "commit_count": 156, "repo_created_at": "2018-02-13T07:04:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "55607544...
05715947-5318-44fb-a623-12c887ac8c44
checkoutb/LeetCodeCCpp
daily_challenge/2021/LT_2021-07-08_Kth_Smallest_Element_in_a_Sorted_Matrix.cpp
#include "../../header/myheader.h" class LT { public: // D D // ... 直接转成一维数组,sort, 36ms。 // 全部放到priq<int>, 然后pop,40ms // binary search, // [0][0] - [sz1-1][sz1-1] // AC 68ms int ltb(vector<vector<int>>& matrix, int k) { int sz1 = matrix.size(); map<int, int> map2; for (int i =...
ALGO
0.999986
4.894439
{ "github_metadata": { "branch": "master", "commit_count": 285, "repo_created_at": "2019-04-22T09:20:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5a8a5586...
94580846-ced2-43af-8ebf-67251896b932
anderoonies/IR
L2/src/interference.cpp
// generates the interference graph for a function #include "interference.h" #include <iostream> #include <algorithm> using namespace std; std::vector<std::string> x86_registers = { "rdx", "rcx", "r8", "r9", "rax", "r10", "r11", "r12", "r13", "r14", "r15", "rbp", "rbx", "rdi", "rsi" }; std::vector<std::string> no...
ALGO
0.998637
4.749539
{ "github_metadata": { "branch": "master", "commit_count": 56, "repo_created_at": "2017-05-14T21:35:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d2cea4e1c...
b8ab06f2-78bc-472c-9202-8990a1886933
jdykstra/ucsd-psystem-xc
ucsdpsys_compile/expression/logical_or/compile.cc
// // UCSD p-System cross compiler // Copyright (C) 2006, 2007, 2010, 2012 <NAME> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or (at // you option) any...
TOOL
0.997477
6.788819
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2019-11-22T21:07:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 7, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "26dea62e...
002eebd3-b2ed-464f-90a7-f37755a2f459
m-schuetz/CudaLOD
modules/simlod/sampling_cuda_nonprogressive/sampling_cuda_nonprogressive.h
#pragma once #include <string> #include <queue> #include <vector> #include <mutex> #include <thread> #include <format> #include "glm/common.hpp" #include "glm/matrix.hpp" #include <glm/gtx/transform.hpp> #include "unsuck.hpp" #include "Box.h" #include "Debug.h" #include "Camera.h" // #include "LasLoader.h" #includ...
TOOL
0.96009
4.625065
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2023-02-28T14:25:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 148, "forks": 14, "issues": 5, "pull_requests": 0 }, "file_meta": { "content_id": "9420dee3...
f1325c3b-037a-4e2c-aeea-2953ebc9a66d
4tyTwo/SpaceInvaders
SpaceInvaders/main.cpp
#include<iostream> #include "Spaceship.h" #include "Projectile.h" #include <Windows.h> #include <time.h> #include "MyVectror.h" #include "Controller.h" #include <Windows.h> void collisionCheck(MyVector<Spaceship>* spaceship_vector,MyVector<Projectile>* laser_vector) { for (auto i = 0; i < laser_vector->size() && sp...
TOOL
0.949054
3.462648
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2017-11-21T21:41:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4232421295...
04efaa8a-79af-4199-90ba-645b3d2771de
AIS-Bonn/humanoid_op_ros
src/nimbro/behaviour/walk_and_kick/src/wak_beh_shared.cpp
// Walk and kick: Class for shared walk and kick behaviour state variables // Author: <NAME> <<EMAIL>> // Includes #include <walk_and_kick/wak_beh_shared.h> #include <walk_and_kick/wak_beh_state.h> #include <walk_and_kick/wak_beh_manager.h> #include <rc_utils/math_vec_mat.h> #include <rc_utils/math_funcs.h> // Namesp...
TOOL
0.963106
5.661309
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2015-09-24T09:41:43.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 60, "forks": 19, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "26f3525a...
57869a8e-20e3-4bf9-8c6e-03c7761f2847
soIu/tpython
tinypy/miniode/ode/fastlsolve_impl.h
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. * * All rights reserved. Email: <EMAIL> Web: www.q12.org * * ...
ALGO
0.99996
5.626942
{ "github_metadata": { "branch": "main", "commit_count": 353, "repo_created_at": "2022-07-25T05:24:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1ce8b093b3a...
82be6c05-c877-43a5-bdfe-ca6dab502217
AdnanTorofdar/week_3
D_Double_Strings.cpp
//-----------_The_eRRoR_---------- //---------Adnan_Torofdar---------- #include <bits/stdc++.h> using namespace std; #define ll long long int #define nl '\n' #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define yes cout << "YES\n" #define no cout <...
ALGO
0.999957
4.309198
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-03-29T14:38:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e76c54bb7228...
0cad4852-fa04-456b-8585-2bca268a811d
proctorsdp/mechanicalEngineering
Numerical/Exam4_3/finiteElement.h
// // Created by <NAME> on 5/4/17. // #ifndef EXAM4_3_FINITEELEMENT_H #define EXAM4_3_FINITEELEMENT_H #include <iostream> #include <cmath> #include <vector> #include <fstream> #include <string> using namespace std; class finiteElement { public: void solve(); private: double P = 2000; ...
ALGO
0.974409
4.303236
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2017-10-29T19:21:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "483ba86514...
971dacd9-1217-4f40-be45-8eb323f91800
Xiawenlong-bug/HW_motion_planning_shenlan
optim_hw1/main.cpp
/* * @Author: Xiawenlong-bug <EMAIL> * @Date: 2024-09-13 13:32:53 * @LastEditors: Xiawenlong-bug <EMAIL> * @LastEditTime: 2024-09-13 14:42:42 * @FilePath: /optim_hw1/main.cpp * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ #...
ALGO
0.999988
4.224072
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2024-09-29T07:49:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "420aa0d073...
b0a2d618-22f9-47c2-a4a9-fee7d5ebf09c
usename6/Machine-Learning-Pratices
PGM/HMM.cpp
#include <cstdio> #include <cstring> #include <cmath> #include <iostream> #define MAXN 100 class HMM { public: int N, M, T; //N表示可能的状态数,M表示可能的观测数,T表示时间 int O[MAXN]; //输入观测序列 double forward[MAXN][MAXN], backward[MAXN][MAXN], pi[MAXN]; //forward表示前向概率,backward表示后向概率 double A[MAXN][MAXN], B[MAXN][MAXN]; //A状态转移矩...
ALGO
0.999995
4.165542
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2021-01-11T12:34:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f245dcb5da17...
4d0114a2-0796-4b49-9191-2439bf59de7c
LaizFarias/Projeto-de-Bioinformatica
Exercicio1/count_bases.cpp
#include <iostream> #include <fstream> #include <vector> #include <string> #include <omp.h> #include <unordered_map> void base_paralela(const std::string &filename, std::unordered_map<char, size_t> &base_conta) { std::ifstream file(filename); if (!file.is_open()) { std::cerr << "Erro ao abrir o arquivo...
DATA
0.943775
4.949553
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-11-22T23:04:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8db57b4540ef...
8702a79f-d4e2-4ac0-bf97-95a5e53612a2
micmacIGN/micmac
applis/OLD-MICMAC-OLD/cSimulation.cpp
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
ALGO
0.979887
3.924958
{ "github_metadata": { "branch": "master", "commit_count": 10879, "repo_created_at": "2016-11-24T22:09:54.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 785, "forks": 163, "issues": 83, "pull_requests": 30 }, "file_meta": { "content_id": "4...
1c2826fc-f7e2-4e3a-b4c4-370fc5893dd4
quan3a1dvt/ACM-ICPC-OLP
2021 ICPC Vietnam National Contest/M.cpp
#include <bits/stdc++.h> typedef long long ll; using namespace std; #define FOR(i,a,b) for(int i=a;i<=b;i++) #define FORD(i,a,b) for(int i=a;i>=b;i--) #define fi first #define se second #define pb push_back #define mp make_pair #define endl "\n" #define eps 1e-9 #define infi 1e9 #define PI 2*acos(0.0) typedef vector<in...
ALGO
0.999966
3.143569
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2022-02-28T12:46:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1b2b4e12280...
52567f62-0672-4d48-8521-8ba65e7b1263
raincross7/code-similarity
codes/train_code/problem245/problem245_155.cpp
#include <iostream> #include <string> #include <vector> #include <queue> #include <map> #include <cmath> #include <set> #include <algorithm> #include <iomanip> typedef long long ll; const ll MOD = 1e9 + 7; const long long INF = 1LL<<60; const double PI=3.14159265358979323846; const int NMAX=100005; using namespace std...
ALGO
0.999974
3.551314
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-06T05:07:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9a9ba417244f...
e195ac4b-7a1a-4674-ad1c-777aa3b0362d
Scre4mzy/Ageenko_LR5_part2
Ageenko_MathTask.h
#ifndef AGEENKO_MATHTASK_H #define AGEENKO_MATHTASK_H #include <iostream> #include <limits> // Добавляем для numeric_limits #include <stdexcept> using namespace std; // Функция ввода и валидации трехзначного числа void inputNumber(int &X) { do { cout << "Введите трехзначное число X: "; cin >> X; ...
TOOL
0.959308
5.41161
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2025-05-25T00:29:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5aaaf2488d32...
1dc3465e-1d04-43df-826d-560edcc40f87
NCTU-PCCA/NCTU_Fox
contest/ITSA2018/p1.cpp
#include<bits/stdc++.h> using namespace std; set< pair<int,pair<int,int>> > S; int mabs(int x){ if (x<0)return -x; return x; } void build(){ for (int x=-100; x<=100; x++){ for (int y=x; y<=100; y++){ int a = x+y; int b = mabs(x-y); int p = x*y; int ...
ALGO
0.999863
4.952969
{ "github_metadata": { "branch": "master", "commit_count": 96, "repo_created_at": "2018-02-08T13:06:36.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 33, "forks": 9, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2b17a818c...
09c49746-919c-4eac-b2c9-81bfe299caf3
osak/Contest
Codeforces/146/E.cc
#include <iostream> #include <string> #include <vector> #include <cassert> #include <set> using namespace std; // Suffix Array {{{ struct SAComp { const vector<int> *grp; int h; SAComp(const vector<int> *grp, int h) : grp(grp), h(h) {} bool operator ()(int a, int b) const { int va = grp->at(a...
ALGO
0.999924
5.048518
{ "github_metadata": { "branch": "master", "commit_count": 362, "repo_created_at": "2012-07-29T01:16:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 10, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "50cc4ec...
b52a3035-7ad2-45cb-b5b4-8a95836bc9dd
matoous/CTU-codes
PDV/hw03/_executor/Executor.h
#ifndef HW_EXECUTOR_H #define HW_EXECUTOR_H #include <vector> #include <chrono> #include "../SumsOfVectors.h" using namespace std; /** * Datova struktura, ktera obsahuje vysledky behu ruznych implementaci */ typedef struct results { long referenceTime; // rychlost sekvencni implementace long ...
ALGO
0.998551
5.334838
{ "github_metadata": { "branch": "master", "commit_count": 328, "repo_created_at": "2017-02-25T12:49:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 12, "forks": 5, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "9d8c0f5...
5cfcb5b7-5699-446d-9aee-f9f4873f9aad
raincross7/code-similarity
codes/train_code/problem263/problem263_52.cpp
#include <algorithm> #include <cmath> #include <cstdint> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for(int(i) = 0; (i) < (n); (i)++) #define FOR(i, m, n) for(int(i) =...
ALGO
0.99986
3.965278
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-06T05:07:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f72e40c2bc49...
687dfab5-bf91-44aa-be8c-31f43bda8463
0yeap95d/Algorithm
Baekjoon/01697_숨바꼭질/BOJ_1697_숨바꼭질.cpp
#include <iostream> #include <queue> using namespace std; bool visit[200001]; int main() { int n, k, Answer; cin >> n >> k; Answer = k - n; queue<pair<int, int>> bfs; bfs.push(make_pair(n, 0)); visit[n] = true; int key, value; while (!bfs.empty()) { key = bfs.front().first; value = bfs.front().second; ...
ALGO
0.999914
3.44843
{ "github_metadata": { "branch": "master", "commit_count": 302, "repo_created_at": "2020-12-16T16:07:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "db325de9...
e8faa95d-bf61-4f48-bd35-5d2d6b98259d
hktwarzone/Noodle
runlengthcommon.cpp
#include <iostream> #include <vector> #include <utility> using namespace std; class Solution { public: int sameDigit(vector<pair<int, int>>& A, vector<pair<int, int>>& B) { if (A.empty()) return 0; int a_ptr = 0; int b_ptr = 0; int a_start = 0; int b_start = 0; int ...
ALGO
0.999903
5.095537
{ "github_metadata": { "branch": "master", "commit_count": 67, "repo_created_at": "2015-10-16T17:32:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "53869a67c...
2f0290b0-e7cb-4a4b-af42-403cda649059
ishandutta2007/codeforces-n
nikgaevoy/normal/1266/E.cpp
#include <bits/stdc++.h> using namespace std; using ll = long long; mt19937 mt(736); void solve(istream &cin = std::cin, ostream &cout = std::cout) { int n; cin >> n; vector<int> arr(n), trig(n); for (auto &it : arr) cin >> it; ll ans = accumulate(arr.begin(), arr.end(), 0ll); int q; cin >> q; ...
ALGO
0.999755
5.201816
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:35:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9c2b22f94656...
ff30cf2e-c343-4258-8f0f-dab68cd76939
Arbel-arad/dual-RS232-logger
test/reference.cpp
#include<iostream> #include<math.h> #include <vector> double table[3][10]{ { 0.0000000E+00, 2.5173462E+01, -1.1662878E+00, -1.0833638E+00, -8.9773540E-01, -3.7342377E-01, -8.6632643E-02, -1.0450598E-02, -5.1920577E-04, 0.0000000E+00}, { 0.000000E+00, 2.508355E+01, 7.860106E-02,...
ALGO
0.996889
3.96375
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2022-05-24T18:07:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f83879e6de...
0080ddd4-2bec-4822-a9ed-1d058a346998
Ayu-hack/GeeksforGeeks-POTD-Solution
December 2024/Search Pattern (KMP-Algorithm)(2 Dec).cpp
class Solution { public: vector<int> lpsArray( string &pattern ){ int i = 0, n = pattern.size(); vector<int> lps(n+1, 0); for ( int i = 1; i<n; i++ ){ int j = lps[i-1]; while ( j > 0 && pattern[i] != pattern[j] ) j = lps[j-1]; if ( pattern[i] == pattern[j] ) j++...
ALGO
0.999912
5.897681
{ "github_metadata": { "branch": "main", "commit_count": 866, "repo_created_at": "2024-09-11T13:15:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 31, "forks": 97, "issues": 15, "pull_requests": 0 }, "file_meta": { "content_id": "8637080...
8718cca4-1971-4683-a2b9-a66c6d53a4a7
benjeffery/lcfivertex
vertex_lcfi/nnet/inc/GeneticAlgorithm.h
#ifndef GENETICALGORITHM_H #define GENETICALGORITHM_H #include "NeuralNetConfig.h" #include "NeuralNet.h" #include "NeuralNetDataSet.h" #ifdef __CINT__ #include "Genome.h" #include "InputNormaliser.h" #else //namespace nnet added 15/08/06 by <NAME> (<EMAIL>) for the LCFI vertex package namespace nnet { class Genome;...
ALGO
0.993754
6.431015
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2008-04-29T23:21:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b857c5738d...
d5e71bd2-a334-48ce-b0df-8aa719e738cd
RainbowRobotics/rby1-sdk
examples/cpp/optimal_control.cpp
#include <chrono> #include <iostream> #include "rby1-sdk/dynamics/robot.h" #include "rby1-sdk/math/optimal_control.h" using namespace rb; using namespace rb::dyn; using namespace rb::math; // 0 1 2 3 4 5 -> body // 6 7 8 9 10 11 12 -> right arm // 13 14 15 16 17 18 19 -> left arm enum LinkName { BASE = 0, AR, ...
ALGO
0.994054
4.642606
{ "github_metadata": { "branch": "main", "commit_count": 397, "repo_created_at": "2024-06-12T02:23:56.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 37, "forks": 6, "issues": 18, "pull_requests": 0 }, "file_meta": { "content_id": "2fd6b6bb0...
69a9614a-8946-4037-86ac-05e388c9e528
tuanluongwork/ChessMoveAnalyzer
src/explanation/move_explainer.cpp
#include "chess_analyzer/explanation/move_explainer.h" #include "chess_analyzer/core/move_generator.h" #include <sstream> #include <memory> #include <algorithm> namespace chess { class MoveExplainer::Impl { public: int detailLevel = 1; int targetRating = 1500; std::string generateExplanation(const Po...
ALGO
0.997124
6.887187
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-07-08T10:45:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6f2d1a5c3c1d...
7e8859ee-02b4-4cf2-a3a7-c47da0e3a389
Ruchanov/Algorithms-and-Data-Structures
lab9/D.cpp
#include <iostream> #include <vector> using namespace std; vector<int> prefixFunction(string s) { vector<int> pi(s.length()); for (int i = 1; i < s.length(); i++) { int j = pi[i - 1]; while (j > 0 && s[i] != s[j]) j = pi[j - 1]; if (s[i] == s[j]) j++; pi[i] = j; } return pi; } int KMP(string txt, string p...
ALGO
0.999961
3.514542
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-01-09T15:34:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "158f86c01bcb...
de42331b-d2ff-419f-b7f8-248cca1302e6
artoolkit/ARToolKit5
lib/SRC/KPM/FreakMatcher/Eigen/src/Geometry/EulerAngles.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 <NAME> <<EMAIL>> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either //...
ALGO
0.988468
6.771366
{ "github_metadata": { "branch": "master", "commit_count": 466, "repo_created_at": "2020-01-15T02:41:01.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 298, "forks": 122, "issues": 6, "pull_requests": 0 }, "file_meta": { "content_id": "2a6c2...
200b8482-29d4-4ec7-b020-af3c1992ea88
FOXCSP/Code-of-competitive_programming
training/codeforces/problem/AtCoder_-_AtCoder_Beginner_Contest_098/B_-_Cut_and_Count.cpp
#include <bits/stdc++.h> // #define int long long #define lp (p<<1) #define rp (p<<1|1) #define fi first #define se second #define pb push_back #define PII pair<int,int> #define PLL pair<ll, ll> #define VI vector<int> #define SZ(x) ((int)x.size()) #define VL vector<ll>; #define VPP vector<PII> using namespace std; usin...
ALGO
0.999792
3.643156
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-01-24T06:38:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a86471deaa...
228c7810-f999-47b4-961a-c41c2a4b002a
lucanunz/Visual-odometry
include/utils.h
#pragma once #include <iostream> #include <Eigen/Eigenvalues> #include <random> #include "defs.h" #include <sys/time.h> #include <unordered_set> #include "PointCloud.h" //! returns the current time in milliseconds double getTime(); //! computes the rotation matrix around the x axis //! @param angle: angle of rotation...
ALGO
0.976568
4.899579
{ "github_metadata": { "branch": "main", "commit_count": 46, "repo_created_at": "2023-01-10T08:36:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "999f0f3b97d...
e66f3d80-e1ec-41c5-b8bd-33c9b98e69db
Shintaro0105/Competitive-programming
atcoder/abc/266/d.cpp
#include <iostream> #include <vector> #include <set> #include <array> #include <cmath> #include <string> #include <algorithm> #include <functional> #include <map> #include <tuple> #include <queue> #include <stack> #include <bitset> #include <deque> #include <iomanip> #define rep(i,n) for(int i = 0;i < (n);i++) using na...
ALGO
0.999673
4.345883
{ "github_metadata": { "branch": "main", "commit_count": 123, "repo_created_at": "2024-01-17T08:06:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "88475f07fd...
2d78b470-963f-474b-97fa-e2c590b10cda
krishna0303/Competetive-Programming-Codes
lbcs/str60.cpp
#include<bits/stdc++.h> #include <string.h> using namespace std; void isRotation(string s1, string s2){ string temp=""; int index=0; char first=s1[0]; for(int i=0;i<s2.length();i++){ if(s2[i]==first){ index=i; } } int i=index; while(i<s2.length()){ temp...
ALGO
0.99997
4.216923
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2020-03-22T20:08:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1261f4031...
d478309d-99b2-42bf-abf3-c9e300b0272c
junlingm/ABM
inst/include/Network.h
#pragma once #include "Contact.h" #include "RNG.h" class Network : public Contact { public: /** * Constructor with the associated population * * @param population the associated population */ Network(); /** * Return the contacts of an agent at a given time * * @details A random agent in ...
ALGO
0.945314
5.786512
{ "github_metadata": { "branch": "main", "commit_count": 132, "repo_created_at": "2023-03-03T00:59:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 27, "forks": 10, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3ed03496...
5aa1ac38-e06f-451f-a17a-57dfd73cbe44
SuhailRafi/NASA-Astrobee-Robot-Simulator-JAXA-KRPC-2023
astrobee/src/astrobee/gnc/matlab/code_generation/sharedutils/ngdbhdbaknglaaai_do_vectors.cpp
// // File: ngdbhdbaknglaaai_do_vectors.cpp // // Code generated for Simulink model 'sim_model_lib0'. // // Model version : 1.1137 // Simulink Coder version : 8.9 (R2015b) 13-Aug-2015 // C/C++ source code generated on : Wed May 3 15:14:10 2017 // #include "rtwtypes.h" #include "rtGetNaN.h" #in...
ALGO
0.998392
4.477399
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-06-26T23:47:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d3ff83329f1e...
3daf4650-ab22-4d42-8e36-8fd3b34dee90
j316chuck/Competitive-Programming
C++_Solutions/Problems/Codeforces/429D.cpp
/* ID: j316chuck PROG: LANG: C++ */ #include <bits/stdc++.h> #define Rd(r) freopen(r, "r", stdin) #define Wt(w) freopen(w, "w", stdout) #define deb(x) cerr << "DEBUG: "<< #x << " = " << x << endl; #define endl '\n' const int INF = 1e9+1; const double PI = acos(-1.0); const double EPS = 1e-9; typedef long long LL; usi...
ALGO
0.999817
3.4244
{ "github_metadata": { "branch": "master", "commit_count": 76, "repo_created_at": "2017-01-30T20:34:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "264b47d67...
6776f15e-f160-476c-9764-67b8d56b0071
NandPatel1292/Leetcode
0208-implement-trie-prefix-tree/0208-implement-trie-prefix-tree.cpp
struct node{ node* link[26]; bool flag = false; bool containKey(char ch){ return (link[ch - 'a'] != NULL); } void put(char ch,node* Node){ link[ch - 'a'] = Node; } node* get(char ch){ return link[ch - 'a']; } void end(){ flag = true; ...
ALGO
0.999927
4.632163
{ "github_metadata": { "branch": "main", "commit_count": 1026, "repo_created_at": "2023-03-01T11:04:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5b6ab3b0e...
5622967b-40e7-4e04-a30c-eb47ece4e0f2
Modding-Zaibatsu/ue4-tekkengame
Engine/Source/Runtime/Core/Public/Containers/Algo/Transform.h
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once namespace Algo { /** * Conditionally applies a transform to a range and stores the results into a container * * @param Input Any iterable type * @param Output Container to hold the output * @param Predicate Condition which retu...
TOOL
0.997505
7.382649
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2023-04-11T10:02:09.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3, "forks": 6, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f2579565e13c...
f8fcb3ee-3b11-4078-995d-72eafe02cdae
ArnavSaxena515/Data-Structures-and-Algorithms
Backtracking/Rat in a maze.cpp
#include<bits/stdc++.h> using namespace std; int maze[20][20]; int path[400]; int pathsize = 1; void printpath(int n) { for(int i = 0; i < n*n; i++) { cout<<path[i]<<" "; } cout<<endl; } bool checkValid(int row,int column,int n) { if(maze[row][column] == 0) { return false; } ...
ALGO
0.999822
3.774395
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-07-12T13:13:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "92466454ebcd...
2a49f63c-b258-4df5-91e0-7420349cb946
lclpsoz/competitive-programming
CF/1036/D.cpp
#include "bits/stdc++.h" using namespace std; ////////////// Prewritten code follows. Look down for solution. //////////////// #define x first #define y second #define len(x) ((int)(x).size()) using pii = pair<int, int>; using ll = long long; using llu = long long unsigned; using ld = long double; const ld EPS = 1e-9...
ALGO
0.999984
3.577879
{ "github_metadata": { "branch": "master", "commit_count": 274, "repo_created_at": "2020-07-09T09:09:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "15a4ce33...
27061b8b-04d3-407f-922b-f1adb2b3b937
Pedrolly/c
triangulo.cpp
#include <iostream> using namespace std; bool isTrianguloValido(double lado1, double lado2, double lado3) { if ((lado1+lado2 > lado3) && (lado2+lado3 > lado1) && (lado1+lado3 > lado2)) return true; else return false; } void isRetangulo(double lado1, double lado2, double lado3) { doubl...
ALGO
0.995848
4.235399
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2022-04-21T02:07:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9361d9a686...
2d65433b-cbd4-421b-8b86-92831c5c2091
programelot/Supernodal-Floyd-Warshall
src/Graph/SortCSRRow.cpp
#include "Graph/SortCSRRow.hpp" #include "Common/Type.hpp" namespace{ template<typename T> void swap(T& a, T&b){ T temp = a; a = b; b = temp; } } //Quick sort + insert sort(In small cases) void SortCSRRow(dataSize_t* key, weight_t* data, dataSize_t length){ constexpr dataSize_t...
ALGO
0.999911
4.674224
{ "github_metadata": { "branch": "main", "commit_count": 69, "repo_created_at": "2023-11-20T14:41:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0574c9cb957...
b93d3f32-758f-4dca-bb86-fc26231a4932
josepharneil/computerGraphics
raytracer/Source/skeleton.cpp
//DOF : focal sphere rad 1.7, aperture 0.2 //FOG : strength 0.03 #include <iostream> #include <glm/glm.hpp> #include <SDL.h> #include "SDLauxiliary.h" #include "TestModelH.h" #include <stdint.h> #include <limits> #include <math.h> #include <random> #include <time.h> using namespace std; using glm::vec2; using glm::ve...
TOOL
0.938077
5.000982
{ "github_metadata": { "branch": "master", "commit_count": 136, "repo_created_at": "2019-02-05T16:03:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "555e3f77...
0877814d-97ea-4b90-b737-2c42d7446501
unmeshvrije/leetcode
leetcode/4Sum.cpp
class Solution { private: void insertion_sort(vector<int>&nums) { for (int j = 1; j < nums.size(); ++j) { int key = nums[j]; int i = j-1; while (i >= 0 && nums[i] > key) { nums[i+1] = nums[i]; i--; } num...
ALGO
0.999977
5.99796
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2016-05-21T00:15:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "683dfc9a45...
c0b53b1b-2540-4ccc-9ec3-45c939e41e93
phrock/acm
spoj/LASTDIG/1.cpp
#include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <bitset> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstr...
ALGO
0.999948
4.925179
{ "github_metadata": { "branch": "master", "commit_count": 36, "repo_created_at": "2011-05-15T15:22:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3dc46527a...
2475a883-aa79-440e-acc9-05ad558ffd2f
TheStranger512/Competitive-Programming-Stuff
SPOJ/LOVINGPW.cpp
/* Solved * 13789. Loving Power * File: LOVINGPW.cpp * Author: <NAME> * Created on February 18, 2013, 2:43 PM */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #include <ct...
ALGO
0.999992
4.704453
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2015-02-07T17:30:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "443a883c10...
355b286c-53fe-4eb9-9681-516a210ce531
Uitsin/USER-HF
seedcrack1.cpp
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
TOOL
0.985192
3.858451
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2016-03-05T20:57:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e445d952e7...
9698c351-95ff-4b07-956e-b917f5df8f50
atenpas/gpd
include/gpd/candidate/frame_estimator.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the...
ALGO
0.99934
7.163894
{ "github_metadata": { "branch": "master", "commit_count": 73, "repo_created_at": "2017-05-23T01:06:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 695, "forks": 244, "issues": 57, "pull_requests": 5 }, "file_meta": { "content_id": "fa3b...
fccbb886-02f7-4d00-9b10-08a63c867d37
natallem-ITMO/computer-graphics-course
labs/lab5/lab5.cpp
#include <iostream> #include <fstream> #include <vector> #include <cmath> #include <tuple> #include <cassert> #include <functional> #include <complex> #include <map> #include <string> static const double MY_PI = atan(1) * 4; using uchar = unsigned char; std::string input_file_name; std::string output_file_name; int ...
TOOL
0.931523
4.887704
{ "github_metadata": { "branch": "main", "commit_count": 26, "repo_created_at": "2021-02-17T16:27:23.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "090e85934b0c...