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
11d38422-40aa-4d41-aa91-6fb9fecb31df
azaky/cp
other/inc/2016/I.cpp
#include <vector> #include <map> #include <set> #include <queue> #include <deque> #include <stack> #include <algorithm> #include <utility> #include <numeric> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <ctime> #include <cass...
ALGO
0.998402
3.378586
{ "github_metadata": { "branch": "main", "commit_count": 41, "repo_created_at": "2020-05-23T01:00:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "51df9cbcabc...
c95f2747-ca30-41f2-ab3d-eaba84b7d7fb
rbenic-fer/progauthfp
examples/google-code-jam/anton.dimitrov/r2_2010_task2.cpp
#include <cstdio> #include <algorithm> #include <vector> using namespace std; int t; int n; int misses[1030]; int tree[2060]; int price[2060]; int dp[2060][16]; int GetPrice(int node, int taken) { if (node >= (1 << n)) { if (n - taken > misses[node]) { return -1; } else { return 0; } } int pr11 = G...
ALGO
0.997538
3.743845
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2020-05-28T20:29:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4b7ccd999...
5c068284-979d-4dfa-b1f9-9e1d867d151d
graeme-hill/snakebot
napi/simulator.hpp
#pragma once #include "snakelib.hpp" #include "timing.hpp" #include <thread> #include <chrono> #include <memory> // Sleep this amount of time each iteration of worker thread when in sleep mode. #define SLEEP_MODE_DELAY_MILLIS 10 // Amount of time with no work before worker thread enters sleep mode. #define SECONDS_O...
ALGO
0.998865
4.449781
{ "github_metadata": { "branch": "master", "commit_count": 172, "repo_created_at": "2018-03-06T00:33:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 11, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bc703b0...
1aae7e0e-0d6c-45c5-ad7f-df8bc0d17acc
Vilas51/Competetive-Programming
D_Skyline.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define upd upper_bound #define lpd lower_bound #define pb push_back #define endl "\n" #define f(i, a, b) for (ll i = a; i <= b; i++) #define ff(i, a, b) for (ll i = a; i >= b; i--) #define mod 1000000007 void solve() { } int main...
ALGO
0.999992
5.121835
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-12-25T12:52:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fb2fcb98d8dd...
32a26080-cea1-486c-8e5b-549b16dd525a
jaimemin/programmers
미로 탈출.cpp
#include <string> #include <vector> #include <queue> #include <cstring> using namespace std; const int MAX = 100; typedef struct { int y, x; int time; bool lever; } State; bool operator<(State a, State b) { return a.time > b.time; } typedef struct { int y, x; } Dir; Dir moveDir[4] = { {1, 0}, {...
ALGO
0.999926
4.544242
{ "github_metadata": { "branch": "main", "commit_count": 506, "repo_created_at": "2021-09-03T13:45:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9341a56363...
a44e28b6-1be5-4468-b8de-2ba2da6a89ed
xscdvf21/2021_11_04
ItTakesTwo(DirectX3D_Team)/ItTakesTwo/Engine/Utility/Code/Shader_StaticObject.hpp
matrix g_matWorld; // 상수 테이블 matrix g_matView; matrix g_matProj; texture g_BaseTexture; float g_Fog; float g_fRimDist; int g_iRimPower; vector g_vRimColor; sampler BaseSampler = sampler_state { texture = g_BaseTexture; minfilter = linear; magfilter = linear; }; texture g_DepthTexture; samp...
TOOL
0.930331
4.222157
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2021-11-04T06:12:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "844d6944675...
90a2f9ae-b7d3-4d8a-84a7-bb298797fea2
dotSlash-Adwitiya/Problem-of-the-day
prefixSuffixString.cpp
#include<bits/stdc++.h> using namespace std; // Find Prefix bool isPrefix(string element, string prefix) { if(prefix.length() > element.length()) return false; for(int i = 0; i < prefix.length(); i++) { if(element[i] != prefix[i]) return false; } return true; } // Find Suffix bool i...
ALGO
0.999488
4.66143
{ "github_metadata": { "branch": "main", "commit_count": 219, "repo_created_at": "2023-04-04T16:00: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": "584d178399...
7fe8bdb5-e27c-4c5d-8411-928ab8d225e7
raptor-mvk/ACM
v.2015/Tools/Calculator.h
#include <vector> #include <cmath> #ifndef CALCULATOR_H_INCLUDED #define CALCULATOR_H_INCLUDED using namespace std; class Calculator { private: // array of pre-calculated prime numbers vector<int> primes; // last calculated prime number int lastPrime; // adds next prime number to primes in...
ALGO
0.996938
6.119324
{ "github_metadata": { "branch": "master", "commit_count": 158, "repo_created_at": "2015-09-22T17:57: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": "becd262c...
75cb5521-ff5c-49b1-b93e-d358e00cea0e
noy72/atcoder
indeednow-finalb-open/b.cpp
#include<bits/stdc++.h> #define range(i,a,b) for(int i = (a); i < (b); i++) #define rep(i,b) for(int i = 0; i < (b); i++) #define all(a) (a).begin(), (a).end() #define show(x) cerr << #x << " = " << (x) << endl; //const int INF = 1e8; using namespace std; const int MAX_N = 200005; //[1, n] int bit[MAX_N + 1] = {0}; ...
ALGO
0.999946
3.622235
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2017-12-23T14:44: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": "3137d85607...
8f01f906-a895-4e67-9845-cb723fdb9480
dotdai/pattest
1009.Polynomials.cpp
#include <iostream> #include <vector> #include <cmath> #define exp 0.00001 using namespace std; typedef struct { int expon; double coef; }PolyNode; vector<PolyNode> add(vector<PolyNode> poly1, vector<PolyNode> poly2) { int i = 0, j = 0; vector<PolyNode> poly3; while (i < poly1.size() && j < poly2.size()) { if...
ALGO
0.999335
3.663699
{ "github_metadata": { "branch": "master", "commit_count": 23, "repo_created_at": "2017-08-07T04:35: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": "ef8114042...
f0de6907-ff35-418d-a288-a175dad8062f
AbdullahRFA/Number-theory
Euler totient Function.cpp
#include<bits/stdc++.h> using namespace std; void phi(int n) { int ans=n; for(int i=2;i*i<=n;i++) { if(n%i==0) ///use to find co-prime from 1 to n { /// co-prime between two number is 1. while(n%i==0) { ...
ALGO
0.999913
4.4285
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-09-15T19:50: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": "0ea0ec950dd0...
50d61944-bcb5-4b92-a1b9-d4ce57536306
seynoke/programcg
animation.cpp
#include <GL/glut.h> #include <math.h> struct Point { int x; int y; }; void draw_dda(Point p1, Point p2) { float dx = p2.x - p1.x; float dy = p2.y - p1.y; float x1 = p1.x; float y1 = p1.y; float step = (abs(dx) > abs(dy)) ? abs(dx) : abs(dy); float xInc = dx / step; float yInc = dy...
ALGO
0.986426
6.21947
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-05-06T03:02: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": "33b2076708bd...
08d944e2-f05a-4601-ac76-87e6be0312ae
WebKit/WebKit-http
Source/ThirdParty/libwebrtc/Source/webrtc/modules/audio_coding/audio_network_adaptor/frame_length_controller.cc
/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
TOOL
0.940465
7.71588
{ "github_metadata": { "branch": "master", "commit_count": 231005, "repo_created_at": "2011-01-11T13:50:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4992, "forks": 1983, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "...
82c701fc-eef8-4fa5-a03a-97a3de70a7a1
anishsingh42/DSA_EveryDay
practice/checkMate.cpp
//Date: 12th Dec 2021 #include <iostream> #include <string> #include<cmath> using namespace std; //In C++, either use printf and scanf, or //add the line ios::sync_with_stdio(0); cin.tie(0); //to the beginning of main to speed up cin and cout. Also, do not use endl, only use '\n'. int main() { // your code goes her...
ALGO
0.999837
4.751024
{ "github_metadata": { "branch": "main", "commit_count": 123, "repo_created_at": "2021-09-20T06:12:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "c91520ec25...
1fbd7747-57d2-4d90-ab65-de01f984696e
Saksham-Bhardwaj/InterviewBitSolved
Trees/BT_Boundary_Traversal.cpp
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ void leftBound(TreeNode* root, vector<int> &res){ if(root==NULL){ return; } if(root->left){ res.push_ba...
ALGO
0.999995
5.339129
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2020-02-09T08:05:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "25c2f3695...
593babe2-154a-4eaf-801d-a54f26752c69
mberenyi/algorithms
Sorting Algorithms/Merge Sort/C++/main.cpp
#include <iostream> #include <vector> void merge(std::vector<int>& arr, int left, int mid, int right){ int n1 = mid - left + 1; int n2 = right - mid; std::vector<int> L(n1), R(n2); for(int i=0; i<n1; i++){ L[i] = arr[left+i]; } for(int j=0; j<n2; j++){ R[j] = arr[mid+1+j]; } int i = 0, j = 0,...
ALGO
0.999989
5.967389
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2024-10-20T15:30: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": "d4587316e2cc...
27477b49-bbb6-4dd4-ae4c-93c7c610f6ab
kimyujeong/Algorithm
프로그래머스/고득점 Kit/힙_이중우선순위큐.cpp
#include <string> #include <vector> #include <queue> using namespace std; vector<int> solution(vector<string> operations) { vector<int> answer; priority_queue<pair<int,int>,vector<pair<int,int>>,greater<pair<int,int>>> pq1; // 오름차순 priority_queue<pair<int,int>> pq2; // 내림차순 bool visited[1000...
ALGO
0.999922
4.796739
{ "github_metadata": { "branch": "master", "commit_count": 223, "repo_created_at": "2020-09-03T12:42: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": "fb917617...
7a97dbbe-f46a-414b-8d68-6431ea3d4b90
skc-98/BOJ
백준/Silver/17478. 재귀함수가 뭔가요?/재귀함수가 뭔가요?.cc
#include<iostream> using namespace std; void f(int n, int count) { if (n == 0) { for (int i = 0; i < count * 4; i++) cout << '_'; cout << "\"재귀함수가 뭔가요?\"" << '\n'; for (int i = 0; i < count * 4; i++) cout << '_'; cout << "\"재귀함수는 자기 자신을 호출하는 함수라네\"" << '\n'; } else if (n != 0) { for (int i = 0; i < count ...
ALGO
0.999919
3.71571
{ "github_metadata": { "branch": "main", "commit_count": 773, "repo_created_at": "2023-08-31T11:32: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": "8219f8b7b6...
ab033e18-5d0d-4c19-afff-dd3abf4183cf
sea5kg/BinaryNeuralAcid
tests/test_md5.cpp
#include "binary_neural_acid.h" #include <vector> int test_calculate_quallity( BinaryNeuralAcid<BinaryNeuralAcidBit> &bna, std::vector<BinaryNeuralAcidBit> &vInputs, std::vector<BinaryNeuralAcidBit> vOutputsExpected ) { std::vector<BinaryNeuralAcidBit> vOutputs; int nResult = 0; for (int i = ...
TEST
0.941771
5.006613
{ "github_metadata": { "branch": "master", "commit_count": 194, "repo_created_at": "2016-05-30T17:56:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "826744f1...
0c1916cf-fd09-4726-a227-f5bbb96d6ab7
oogab/programmers
colrow.cpp
#include <string> #include <vector> using namespace std; bool check_col(vector<vector<bool>> &col, vector<vector<bool>> &row, int x, int y) { if(y==1) // 바닥에 기둥을 설치할 경우 return true; else if(col[x][y-1]) // 아래에 기둥이 설치되어 있을 경우 return true; else if(row[x-1][y]) // 왼쪽 아래에 ...
ALGO
0.99967
4.963777
{ "github_metadata": { "branch": "master", "commit_count": 56, "repo_created_at": "2020-01-24T08:15: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": "db3c9cb90...
bce7a107-9779-41fe-8df2-417cf20ad70f
raghu-yemmanuru/code4fun
questions/careercup/roman_letters.cpp
#include <iostream> #include <map> #include <string> using namespace std; typedef map<int,string> Map; void buildMap(Map &m) { m[1] = "I"; m[2] = "II"; m[3] = "III"; m[4] = "IV"; m[5] = "V"; m[6] = "VI"; m[7] = "VII"; m[8] = "VIII"; m[9] = "IX"; m[10] = "X"; m[50] = "L"; ...
ALGO
0.999735
4.561619
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2015-01-12T03:48: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": "5cfa0f6613...
974a22c3-1787-4395-a3e0-75b2049c04f8
jpbsampaio/CPP
ME_1.cpp
#include <random> #include <iostream> #include <vector> #include <map> using namespace std; int aleatorio(int min, int max) { // Criar um gerador de números aleatórios random_device rd; mt19937 gen(rd()); // Utiliza distribuição uniforme para obter o número uniform_int_distribution<> dis(min, max)...
ALGO
0.998123
4.524333
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-09-17T02:39: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": "ef4bfdf7e728...
e032f220-df89-4480-b29b-71f1c0791261
Allex-Lin/Data-Structures-Based-on-C-
数据结构/MyStudyAboutC/MyStudyAboutC/二叉排序树查找.cpp
//#include<iostream> //using namespace std; /* 二叉排序树(二叉搜索树、二叉查找树) 二叉排序树或是空树或是满足如下性质的二叉树: (1)若其左子树非空,则其左子树上所有节点的值均小于根节点的值 (2)若其右子树非空,则其右子树上所有节点的值均大于等于根节点的值 (3)其左右子树本身又各是一棵二叉排序树 性质:中序遍历二叉排序树是一个递增序列 */ //定义二叉树结构 //typedef struct { // int k;//关键字项 //}ElemType; // //typedef struct BSTNode { // ElemType data;//数据域 // BSTNode...
ALGO
0.999977
4.745531
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-04-22T11:47:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "01c80f45ead7...
06427ce5-1ccb-428a-b348-496ef3c57da4
BeSlower/Self-Driving-Car
Project_10_model_predictive_control/src/MPC.cpp
#include "MPC.h" #include <cppad/cppad.hpp> #include <cppad/ipopt/solve.hpp> #include "Eigen-3.3/Eigen/Core" using CppAD::AD; // TODO: Set the timestep length and duration size_t N = 25; double dt = 0.04; // This value assumes the model presented in the classroom is used. // // It was obtained by measuring the radiu...
ALGO
0.999803
5.949293
{ "github_metadata": { "branch": "master", "commit_count": 55, "repo_created_at": "2017-07-20T21:02: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": "6138bbd0b...
97e37641-5057-44f6-90bf-8d1f03e0d637
encrypted-def/BOJ
5866.cpp
# pragma GCC optimize ("O3") # pragma GCC optimize ("Ofast") # pragma GCC optimize ("unroll-loops") #include <bits/stdc++.h> #pragma warning(disable:4996) #pragma comment(linker, "/STACK:336777216") using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef tuple<int, int, ...
ALGO
0.999971
4.01493
{ "github_metadata": { "branch": "master", "commit_count": 624, "repo_created_at": "2017-12-21T06:12:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 28, "forks": 13, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6ad262...
4cadc43e-1ae8-4183-bc4a-82651ce1ff91
Tora416/MultiCodeEmbed
dataset/dataset_raw/gcj_cpp/vladislavbelov/8294486_5654117850546176_vladislavbelov.cpp
/* * Author: <NAME> */ #include <algorithm> #include <cassert> #include <cmath> #include <cstdlib> #include <ctime> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; void solution(); int main() { ios::sync_with_stdio(fal...
ALGO
0.999847
3.573545
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2025-07-10T08:38:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e540630d4...
97702642-7321-492a-918f-e1fb7b78201b
humbertoamdc/competitive-programming
CF-B/bear-and-friendship-condition.cpp
/******** All Required Header Files ********/ #include <iostream> #include <string> #include <vector> #include <algorithm> #include <sstream> #include <regex> #include <queue> #include <deque> #include <bitset> #include <iterator> #include <list> #include <stack> #include <map> #include <unordered_map> #include <se...
ALGO
0.999943
3.891685
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2020-03-08T18:50:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "67cfd839d6...
622cb4f4-f317-47d3-bb93-2fc9ad35d1b3
breannansmith/scisim
ball2d/Constraints/KinematicKickBallBallConstraint.cpp
// KinematicKickBallBallConstraint.cpp // // <NAME> // Last updated: 09/04/2015 #include "KinematicKickBallBallConstraint.h" KinematicKickBallBallConstraint::KinematicKickBallBallConstraint( const unsigned idx0, const unsigned idx1, const Vector2s& x0, const Vector2s& x1, const scalar& r0, const scalar& r1, const Vec...
ALGO
0.99831
6.37545
{ "github_metadata": { "branch": "master", "commit_count": 358, "repo_created_at": "2015-09-03T04:52:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 88, "forks": 16, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "e64e0c...
06eb75b7-2839-4ead-b5f6-c43896a76af8
clee01/Algorithm
divide_and_conquer/median_of_two_sorted_arrays.cpp
/** * 题目来源:https://leetcode.com/problems/median-of-two-sorted-arrays/ */ class Solution { public: double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) { return doFind(nums1, nums2, 0, nums1.size() - 1, 0, nums2.size() - 1); } double doFind(const vector<int>& nums1, const vector<...
ALGO
0.999998
6.443654
{ "github_metadata": { "branch": "master", "commit_count": 48, "repo_created_at": "2023-07-23T15:07:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a5538f022...
fb16a200-3040-459e-80e4-166c16fa8512
AngelRodriguezFaya/alg_algoritmica
Prácticas/Practica-4-Bactracking/Material entregado/Fichero fuente/ej4_1.cpp
#include <stack> #include <iostream> #include <vector> #include <list> #include <stdlib.h> using namespace std; pair<bool,list<pair<int,int> > > buscarSalida(vector<vector<bool> > &mapa, int objetivo,int fil,int col){ mapa[fil][col]=false; pair<bool,list<pair<int,int> > >cas; cas.first=false; ...
ALGO
0.99816
3.135551
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2024-09-19T15:03:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5e6b85b468e...
b95a5f88-b3c3-4822-9af0-759633d4d4a3
fuliucansheng/hihocoder
solutions/1069.cpp
#include <bits/stdc++.h> using namespace std; const int maxn = 100010; unordered_map<string,int> dict; string arr[maxn]; vector<int> graph[maxn]; struct SparseTableRMQ{ int arr[maxn<<1][20], n; void build(){ int l = int(log2(n)); for(int j=1;j<=l;j++) for(int i=1;(i+(1<<(j-1))-1)<=n;...
ALGO
0.999997
4.422316
{ "github_metadata": { "branch": "master", "commit_count": 49, "repo_created_at": "2018-01-23T12:10:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c6d949e3b...
4f7bc0fa-28b4-4993-b0b1-e9cee0ac9608
HETONGAPP/West5-main
UC-main/UnitCtrl/submodule/UC-core/src/Controller/RampRateControl.cpp
#include "RampRateControl.hpp" #include <algorithm> #include <cmath> #include "UnitCtrl.h" #include <memory> using namespace std; namespace UnitCtrl { float RRCManager::f32PrevSetpointP_ = 0.0f; float RRCManager::f32PrevSetpointQ_ = 0.0f; RRCManager::RRCManager() { Init(); } void RRCManager::Init() { // ...
TOOL
0.941446
6.091706
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2025-04-21T03:12:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dfe256db12...
675d0326-b4c0-4cc5-8f50-88f827f33e70
lawsonfulton/AutoDef
src/AutoDefRuntime/src/ReducedSpace.h
#ifndef ReducedSpace_H #define ReducedSpace_H #include "TypeDefs.h" #include "AutoEncoderSpace.h" #include "LinearSpace.h" template <typename ReducedSpaceImpl, typename MatrixType> class ReducedSpace { public: template<typename ...Params> // TODO necessary? ReducedSpace(Params ...params) : m_impl(params...) {...
ALGO
0.993597
6.621511
{ "github_metadata": { "branch": "master", "commit_count": 148, "repo_created_at": "2018-05-25T16:21:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 37, "forks": 8, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "ad48629...
589824b4-0b75-4a87-b754-1f441b4a82fe
moinshaikh123/Image-Processing
Image Processing Workshop/edgedetection.cpp
#include "stdafx.h" #include <stdio.h> #include <iostream> #include <opencv2\highgui\highgui.hpp> #include <opencv2\imgproc\imgproc.hpp> #include <opencv2\core\core.hpp> using namespace cv; using namespace std; int isvalid(Mat x, int i, int j) { if (i < 0 || i >= x.rows || j < 0 || j >= x.cols) return 0; else ...
ALGO
0.997219
3.934059
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2019-04-23T12:40: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": "87b3dd0ed2...
3e59f55a-dee1-4f3a-b074-43a9e0d1e09e
Smiteshbhore21/-CrackYourPlacement
Day 44/add-two-numbers-ii.cpp
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: void listToStack(List...
ALGO
0.999977
6.074252
{ "github_metadata": { "branch": "main", "commit_count": 77, "repo_created_at": "2024-07-16T12:56:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b1a4e74f555...
d03be1ec-4a87-44be-96f4-954d82e054fb
rkcraushan333/leetcode
Smallest Positive missing number - GFG/smallest-positive-missing-number.cpp
//{ Driver Code Starts #include<bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: //Function to find the smallest positive number missing from the array. int missingNumber(int arr[], int n) { // Method 3 Try to modify in the same array for(int i=0;i<n...
ALGO
0.999942
5.672497
{ "github_metadata": { "branch": "main", "commit_count": 989, "repo_created_at": "2023-01-07T18:16:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0a71ad4915...
5b963282-3d01-461d-9345-2306e1077348
LukasZierahn/Conways-Game-of-Life
Conway/Conway/CheckBot.cpp
#include "CheckBot.h" #include "StartStateRow.h" CheckBot::CheckBot() { nd = new NodeMaster(); } void CheckBot::IncreaseCurrentTxt() { for (int i = currentTxt.size() - 1; i >= -1; i--) { if (i == -1) { for (int j = 0; j < currentTxt.size(); j++) { currentTxt.at(j) = 'a'; } currentTxt.append("a...
ALGO
0.991697
3.718323
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-07-11T18:13: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": "6645ad3d69...
8769efc6-8cd6-49da-bdd5-33020e2bbe00
mlpack/ensmallen
include/ensmallen_bits/moead/decomposition_policies/weighted_decomposition.hpp
/** * @file weighted_decomposition.hpp * @author <NAME> * * The Weighted Average decomposition policy. * * ensmallen is free software; you may redistribute it and/or modify it under * the terms of the 3-clause BSD license. You should have received a copy of * the 3-clause BSD license along with ensmallen. If ...
ALGO
0.999579
6.794923
{ "github_metadata": { "branch": "master", "commit_count": 3534, "repo_created_at": "2018-10-03T01:53:06.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 790, "forks": 128, "issues": 7, "pull_requests": 5 }, "file_meta": { "content_id": "4ee2...
8bca9343-125d-4b59-84ea-0e9904f8ade1
ananyapromi3/CSE-204-Data-Structures-and-Algorithms-I-Sessional
StackQueue/Main.cpp
#include <iostream> // #include "StackArr.cpp" // #include "QueueArr.cpp" // #include "StackLL.cpp" // #include "QueueLL.cpp" #include "Arr.cpp" // #include "LL.cpp" using namespace std; int main() { freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); int length_s, capacity_s, arr_s[100];...
ALGO
0.987717
3.951239
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2023-01-27T19:58: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": "915361418...
a75d8974-fbb3-45c2-9125-685fe591ab01
sonic-pi-net/sonic-pi
app/api/vendor/kissfft-131.1.0/kissfft.hh
/* * Copyright (c) 2003-2010, <NAME>. All rights reserved. * This file is part of KISS FFT - https://github.com/mborgerding/kissfft * * SPDX-License-Identifier: BSD-3-Clause * See COPYING file for more information. */ #ifndef KISSFFT_CLASS_HH #define KISSFFT_CLASS_HH #include <complex> #include <utility> #in...
ALGO
0.995281
6.017237
{ "github_metadata": { "branch": "dev", "commit_count": 11705, "repo_created_at": "2013-04-29T11:17:54.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 11232, "forks": 947, "issues": 252, "pull_requests": 33 }, "file_meta": { "content_id": "b...
5dbada0b-f2ec-4e07-b60f-347ef7323faa
NedicNemanja/TweetOpinionMining
source/LSH.cpp
#include <algorithm> #include <float.h> //DBL_MAX #include "LSH.hpp" #include "utility.hpp" #include "Metric.hpp" #include "myvector.hpp" using namespace std; vector<myvector*> NearestNeighbors(vector<HashTable*> &Hashtables, myvector &q, int num_of_nn){ vector<pair<myvector*,double>> nns; double furthest_nn_dis...
ALGO
0.999939
4.944179
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2019-01-11T19:10:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "210facc59...
90116aff-1dd6-48ed-ac84-03978d6adfdf
codemonkeyricky/lc
1804.cpp
#include <iostream> #include <vector> #include <cassert> #include <stack> #include <queue> #include <algorithm> #include <unordered_map> #include <unordered_set> #include <map> #include <set> #include <bitset> #include <numeric> #include <cmath> using namespace std; struct TreeNode { int val; TreeNode *left; ...
ALGO
0.999727
4.866428
{ "github_metadata": { "branch": "main", "commit_count": 126, "repo_created_at": "2024-11-11T05:29:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9499e559a3...
75db6e01-0a66-4923-ab8b-d093d7fbfe7d
Taejin1221/Problem-Solving
LeetCode/LeetCode1704.cpp
// LeetCode01704_DetermineIfStringHavlesAreAlike.cpp // https://leetcode.com/problems/determine-if-string-halves-are-alike/ // LeetCode Weekly Contest 221 class Solution { public: bool halvesAreAlike( string s ) { int aVowel = 0, bVowel = 0; for ( int i = 0; i < s.size() / 2; i++ ) if ( s[i] == 'a' || s[i] == '...
ALGO
0.999115
6.035762
{ "github_metadata": { "branch": "master", "commit_count": 1156, "repo_created_at": "2019-10-06T05:54:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8cb16db...
395570f7-e5a4-4747-b5c1-066983e56931
calgagi/competitive_programming
usaco/training/1/04/milk.cpp
/* ID: calgagi1 LANG: C++ TASK: milk */ // <NAME> // @calgagi // Oregon State University // Competitive Programming Template #include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using ii = pair<int,int>; int main() { ios_base::sync_with_stdio(false); cin.tie...
ALGO
0.999987
3.905141
{ "github_metadata": { "branch": "master", "commit_count": 1043, "repo_created_at": "2018-09-19T21:33:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "f3f5d06...
69fae002-c174-4e64-9507-73034ab1f7fb
kkunalprajapati/cpp-programs
chapter 7 - Operator overloading and Type Conversion/2.cpp
#include<iostream> #include<cmath> using namespace std; class Polar { private: double r,a; public: Polar(); Polar(double, double); Polar operator+(Polar); void display(); }; Polar::Polar() { r = a = 0; } Polar::Polar(double radius,double angle) { r = radius; a = angle; } Polar Polar::op...
TOOL
0.997351
4.58532
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-06-26T16:09:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e380eb099487...
476347c4-08ba-42c7-b5ab-bda9f57604a6
inahuel98/tp3g
include/ABBv2.hpp
#ifndef ABB_H #define ABB_H #include <exception> #include "NodoABBv2.hpp" class ABB_exception : public std::exception { }; template<typename T, bool menor(T, T), bool igual(T, T)> class ABB { private: NodoABB<T, menor, igual>* raiz; std::size_t cantidad_datos; // Pre: - // Post: Agrega el dato al ár...
ALGO
0.999254
5.835592
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-10-26T18:59: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": "38439b275b22...
6584d8c9-509a-46a2-8624-b008d56c9bce
gtcasl/gpuocelot
tests/cuda3.2/tests/bicubicTexture/bicubicTexture-host.cpp
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
ALGO
0.966382
4.934194
{ "github_metadata": { "branch": "master", "commit_count": 1716, "repo_created_at": "2015-03-18T21:40:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 288, "forks": 69, "issues": 49, "pull_requests": 2 }, "file_meta": { "content_id": "1676...
1b364630-1adf-4e5c-8299-f3ef637ca105
jyt0532/Recognition_task
text/text_classification.cpp
/////////////////////////////////////////////////////////////////////////////// //////// // //////// Program Name : text_classification.cpp // //////// Course CRN : CS440 - Artificial Intelligence ...
DATA
0.957538
3.317519
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2014-03-23T04:53:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ffd98dbe58...
7c103bf5-cd44-41ca-8368-efa937f98848
CesarHera/cpp-lessons
romans.cpp
#include <iostream> using namespace std; int main() { // int number, units, tens, hundreds, thousands; // cout<<"Type a number: "; cin>>number; // //number = 2152 -> 2000+100+50+2 // units = number % 10; number /= 10; //units = 2 | number = 215 // tens = number % 10; number /= 10; //tens = 5 | n...
TOOL
0.976516
3.139793
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2022-04-12T01:38:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f99a982efc...
56e4a403-4853-4404-bb78-b85151e454e8
Eslam-Murad1/My-Codes-in-Programming-Advices
07 - Algorithms & Problem-Solving Level 3/P29_CountSmallCapitalLetters.cpp
// P29_CountSmallCapitalLetters #include <iostream> #include <string> using namespace std; enum enWhatToCount { SmallLetter = 0, CapitalLetter= 1, All=2}; short CountLetter(string S1, enWhatToCount WhatToCount=enWhatToCount::All) { if (WhatToCount == enWhatToCount::All) return S1.length(); short Counter = 0; for...
ALGO
0.998718
4.197277
{ "github_metadata": { "branch": "main", "commit_count": 27, "repo_created_at": "2025-03-01T11:52:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "77055b2dd17...
5cb264b3-130e-42b3-8b9f-c3ca9874f26a
itsoulos/IntervalGenetic
PROBLEMS/Feature/rbf_model.cc
# include <rbf_model.h> //# define CLASSMODEL Rbf::Rbf(Mapper *m) :Model(m) { centers = NULL; variances = NULL; weights = NULL; input = NULL; weight.resize(0); for(int i=0;i<10000;i++) randNumber.push_back(drand48()); } int isTrain2=0; double Rbf::neuronOutput( vector<double> &x, vector<double> &patt, unsign...
ALGO
0.988005
3.013612
{ "github_metadata": { "branch": "master", "commit_count": 235, "repo_created_at": "2021-01-14T12:17: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": "053f8690...
8419bef6-37a7-4bb5-9cc2-8fc1ffec1618
pelinakan/Bam_Stats
optimization.cpp
/************************************************************************* Copyright (c) <NAME> (ALGLIB project). >>> SOURCE LICENSE >>> 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 (www.fsf.org); ...
ALGO
0.999694
6.142699
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2015-08-28T07:10:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5bc9c6e4bb...
f2c429e0-e5df-416d-8980-87956311fb42
KalshuCodes/Contests
Extras/1167C.cpp
#include <bits/stdc++.h> #include <cstdio> #include <cstring> #include <cmath> #include <cstring> #include <chrono> #include <complex> #define REP(i,a,b) for (auto i = a; i != b; i++) #define ll long long int #define ld long double #define vi vector<int> #define vll vector<ll> #define vvi vector < vi > #define pii pair...
ALGO
0.999939
3.192821
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2020-08-01T22:39:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b65b09e0cd...
5b85c659-b90e-43a6-ae65-8021dad104a6
ashmew2/dttp
tracker.cc
#include <string> #include <iostream> #include <vector> #include <cstdio> #include <cstring> #include <cstdlib> #include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> using namespace std; class HostSeedMap { vector<string> seed_list; string host_name; string seed_secret; string host_secret; ...
WEB
0.921972
4.055447
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2016-05-11T12:34: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": "fce35958f3...
312cf4ed-0016-4e12-bac7-0aee7c0bdd76
bmstu-ics7/computer-graphics
lab_09/figure.cpp
#include "figure.h" void Figure::draw(QPainter &painter) { QPoint prev = points[0]; for (QPoint point : points) { if (prev != point) drawLine(painter, point, prev); prev = point; } } void Figure::drawLine(QPainter &painter, QPoint a, QPoint b) { painter.drawLine(a, b); } b...
ALGO
0.997699
4.874623
{ "github_metadata": { "branch": "master", "commit_count": 59, "repo_created_at": "2020-05-03T08:48:04.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c39dccc4a9...
930220a1-f245-4e68-8b17-0042b9a092f2
abdelaleem024/competitive-programming
Solutions/Codeforces Gym Solutions/2016-2017 ACM-ICPC, Egyptian Collegiate Programming Contest (ECPC 16)/J. Whistle's New Car [Merge Sort Tree].cpp
/* Author : <NAME> Codeforces Handle : [Abdelaleem](https://codeforces.com/profile/Abdelaleem) Link To problem : https://codeforces.com/gym/101147/problem/J */ #include <bits/stdc++.h> using namespace std; const int N = 500000 + 7; #define int long long int in[N], out[N], tree[N], dist[N], arr[N]; int timer;...
ALGO
0.999962
5.148211
{ "github_metadata": { "branch": "main", "commit_count": 531, "repo_created_at": "2021-11-17T18:36:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 53, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f1f42d80a...
783385d0-bded-403a-9b60-a9a3f39ab5cd
JonahBrooks/homework
cs450/p01/winversion.cpp
// CS450 Project 1 // <NAME> // 10/07/2015 #include "glut.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <algorithm> # define M_PI 3.14159265358979323846 /* pi */ GLuint ConeList; GLuint TreeList; GLuint GrassList; GLuint FieldList; const GLfloat fieldRadius = 10.0...
TOOL
0.934167
4.389907
{ "github_metadata": { "branch": "master", "commit_count": 34, "repo_created_at": "2015-10-13T22:51:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6e9f655aa...
7f49d7fd-a485-49af-8604-abf460d08144
gbraz/MNum
src/tabela.cpp
#include "../header/tabela.h" Tabela::Tabela(){ } void Tabela::receberAb(){ int n, aux; bool flag = false; char car; std::vector< std::vector<double> > A, LU, dl; std::vector<double> d, resultado1, resultado2; while(flag == false){ system("clear"); std::cout << "+----------------LU/Doolittle--------------...
ALGO
0.973111
3.558303
{ "github_metadata": { "branch": "master", "commit_count": 45, "repo_created_at": "2016-09-13T02:41:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "37538c232...
530fbd13-842d-49f2-b6e1-291aa7b8406c
ck89119/Algorithm
Bop/2013/相似字符串.cpp
/* ID: ck891191 PROG: LANG: C++ */ #include <iostream> #include <cstdio> #include <vector> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <string> #include <cstring> #include <cmath> #include <algorithm> #include <bitset> #include <functional> #include <numeric> #include <util...
ALGO
0.999763
3.49022
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2015-01-30T05:58:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "986292199...
eb2f1875-ae41-4cf2-9425-9f6be510684a
mysql/mysql-server
extra/boost/boost_1_85_0/boost/geometry/algorithms/detail/envelope/areal.hpp
// Boost.Geometry // Copyright (c) 2018-2021 Oracle and/or its affiliates. // Contributed and/or modified by <NAME>, on behalf of Oracle // Contributed and/or modified by <NAME>, on behalf of Oracle // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file...
ALGO
0.996818
7.406175
{ "github_metadata": { "branch": "trunk", "commit_count": 186679, "repo_created_at": "2014-09-26T09:31:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 11540, "forks": 4072, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "...
8f4b407c-d542-4451-b34d-f13ee91ca263
RobertT170/CSC134
M4/M4HW1_Q3_Tunoa.cpp
// Csc 134 // M4_HW1_Q3 // <NAME> // 3/16/24 #include <iostream> using namespace std; int main() { int number; // Input validation loop do { cout << "Enter a number from 1 to 12? "; cin >> number; // Check if input is valid if (number < 1 || number > 12) { cou...
ALGO
0.991417
4.317259
{ "github_metadata": { "branch": "main", "commit_count": 43, "repo_created_at": "2024-01-22T15:29: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": "5159cb6ee59...
c770db41-5fde-4e84-83ce-f6c88898f8c0
aCordion/CK_assignments
assignment_03/assignment_03/SpeedGuguGame.cpp
#include "Games.h" void Gugu() { srand((unsigned)time(NULL)); //난수 시작지점을 시간을 이용한 시드로 정함 extern int cChoice; //cChoice를 불러와서 사용 int choice = 0; while (true) { int nPlay = 10; //최대 게임 횟수 switch (cChoice) { case 1: printf("[스피드 구구단]\n"); break; case 2: printf("[두 자리 수 곱셈]\n"); break; case 3: printf("[%d 자...
ALGO
0.963454
3.249274
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2018-05-12T12:11:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eb5e82d5f...
7b87c206-5c80-4205-ad07-f00df1552359
ConstArch/EllipticSystems2DInTriangles
solution.hpp
#pragma once #include <complex> #include <list> #include <vector> #include <cmath> #include <thread> #include "linear_fractional_transformation.hpp" #include "theta_series.hpp" #include "numeric_tools.hpp" #include "io_tools.hpp" using namespace std::complex_literals; template<class T> const auto I = std::complex<T>...
ALGO
0.999623
4.922834
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2025-02-03T23:02: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": "1d7d032fad78...
e8dd914d-6b44-4468-9b3a-29ac76be9749
SAlgorithmStudy6/AlgorithmStudy
2022/11.10/이아름/17140_이차원_배열과_연산.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int r, c, k; cin >> r >> c >> k; r -= 1; c -= 1; vector<vector<int>> board(100,vector<int>(100)); for (int i = 0; i < 3; i++) { for (int k = 0; k < 3; k++) { cin >> board[i][k]; } } int answer = 0; int h=3, w=3; ...
ALGO
0.999959
3.688186
{ "github_metadata": { "branch": "main", "commit_count": 881, "repo_created_at": "2022-07-20T06:51:53.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e91e9b2bd8f...
24c83d22-53f8-4976-8165-b0bb1304d778
RyanPioneer/Leetcode
0001~0500/0064. Minimum Path Sum/main.cpp
/** * Source: https://leetcode.com/problems/minimum-path-sum/ * Date: 2021/7/16 * Skill: DP * Runtime: 8 ms, faster than 85.26% of C++ online submissions * Memory Usage: 10.1 MB, less than 37.28% of C++ online submissions * Space complexity: O(m*n) * Constraints: * m == grid.length * n == grid[i].l...
ALGO
0.999993
6.252659
{ "github_metadata": { "branch": "main", "commit_count": 504, "repo_created_at": "2021-05-09T23:57: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": "64bd07e1d8...
09d025e3-d4dc-4dd5-91a0-5173d68744a3
uxlfoundation/oneDAL
samples/daal/cpp/mpi/sources/implicit_als_csr_distributed_mpi.cpp
/* file: implicit_als_csr_distributed_mpi.cpp */ /******************************************************************************* * Copyright 2017 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a c...
ALGO
0.999044
7.250374
{ "github_metadata": { "branch": "main", "commit_count": 2361, "repo_created_at": "2016-03-28T22:39:32.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 636, "forks": 224, "issues": 23, "pull_requests": 37 }, "file_meta": { "content_id": "c803...
4823599b-d306-4c30-8ebd-a5aed12fa1a9
pacman-project/LHOP
lhop2/src/utils/graphs/graph_utils.cpp
#include "graph_utils.h" #include "utils/utils.h" #include <algorithm> // Returns a minimum spanning tree graph based on Euclidean distances between points // in 'pts' vector. // Note: // - node data of node 'n' is of type 'node_data_t<int>' and contains index of a point // corresponding to 'n' graph* point_grap...
ALGO
0.999368
4.319201
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2013-07-02T10:36:13.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "86264d81118...
adc5e4c9-6b71-492d-b436-6ceb7d336dde
tridibsamanta/Codeforces_Solutions
1512F.cpp
/* ~ Author : @tridib_2003 */ #include<bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define PI 3.1415926535897932384626 #define MOD 1000000007 #define vi vector<int> #define vvi ...
ALGO
0.999836
3.299761
{ "github_metadata": { "branch": "master", "commit_count": 842, "repo_created_at": "2020-04-04T21:30:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 19, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9601745...
884b9a16-197e-4a07-8ba4-9e40c1a2c4bb
ponsheng/GPGPU-test
OpenCL/histogram.cpp
#include "stdio.h" #include "stdlib.h" #include "string.h" #include <fstream> #include <iostream> #include <vector> #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #include <CL/cl.h> #include <cassert> int main(int argc, char const *argv[]) { // OpenCL related declarations cl_int err; cl_platform_id platform; ...
ALGO
0.91643
3.024071
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2018-01-02T11:29:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b754e1f3fa...
8b41e25a-9d37-44b7-be2c-10a962fc7aaa
macshun/algorithm_2
A1033.cpp
/* Name: 贪心 -- A1033 To Fill or not to fill Copyright: 算法笔记 Author: macs Date: 12/10/18 18:53 Description: 给定油箱容量,所到城市距离,汽车每单位油量行驶距离,和中途的油站数量, 然后分别给出油站油价和距离当前城市距离,求出途中最少油钱?到达不了就给出最大行驶距离。 */ #include <iostream> #include <cstdio> #include <algorithm> using namespace std; const int maxn = 510; const int max_price...
ALGO
0.999893
3.553008
{ "github_metadata": { "branch": "master", "commit_count": 30, "repo_created_at": "2018-09-09T13:49: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": "ec192f3f1...
658c2809-c14d-4b61-9dd3-12b240f465fa
MajdSoubh/Snake_Game
snake.cpp
#include<iostream> #include<stdlib.h> #include<stdio.h> #include<windows.h> #include<conio.h> #include<ctime> using namespace std; static int y=0; class snake { private: struct tail { char *point; tail *next; }; char board[30][40]; char key='w'; char prevkey='w'; tail *first...
ALGO
0.980552
3.364858
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2020-10-12T17:27:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a3938d1603ce...
77f77e2f-385a-472c-9bcd-6ef9c6dff4a2
houndf212/card_game
common/card/hinter_helper.cpp
#include "hinter_helper.h" #include <algorithm> #include <functional> #include "hand_helper.h" // lst {333444} prime_size = 3 type_size = 2 void Hinter_Helper::remove_map_same_value(ValueMap &cmap, const CardList &lst, size_t prime_size, size_t type_size) { Q_ASSERT(prime_size>0); Q_ASSERT(prime_size*type_size...
ALGO
0.997446
4.278783
{ "github_metadata": { "branch": "master", "commit_count": 34, "repo_created_at": "2017-04-01T09:07:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "938b3967b...
1eed8e2c-f31d-4a8f-b8d9-5df852989f11
Rishav-Singha-Deo/CPP-Codes
multiply.cpp
#include <stdio.h> int main() { int r,c,r1,c1,i,j,k,sum=0; int f[10][10], s[10][10], ml[10][10]; printf("Enter number of rows of first matrix : "); scanf("%d",&r); printf("Enter number of columns of first matrix : "); scanf("%d",&c); printf("Enter elements of first matrix :\n"); for (i = 0; i < r; i++) for (j = 0; j <...
ALGO
0.99958
3.212417
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2021-12-18T17:05:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e22494e51fe5...
5f228944-e290-46cf-8e13-0911a841126a
pemaga12/FAL-2021
Recursion/Examen 2017/Examen 2017/Source.cpp
/* Dado un vector todos los numeros que son iguales están juntos. El orden de los vectores es creciente. ¿Cuántos números distintos hay? */ #include <iostream> #include <vector> using namespace std; /* La complejidad depende de la salida, ya que el tiempo que tardamos depende de la cantidad de escalones que hay...
ALGO
0.999912
4.408019
{ "github_metadata": { "branch": "main", "commit_count": 18, "repo_created_at": "2021-06-29T21:48: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": "695a9db5a9f...
1d12d265-f0dc-4e5b-a12c-a27dd9f16dfc
unamfi/sistop-2020-1
tareas/3/SanabriaErik/source.cpp
#include <iostream> //Funcion que imprime los contenido de la memoria //char *data: arreglo de la memoria //size_t n: tamanio de la memoria void printMem(char *data, size_t n = 30) { std::cout << "\n\n\tContenidos de la memoria:\n\t" << std::flush; for(size_t i{ 0 }; i < n; ++i) { std::cout << data[i]; } std:...
ALGO
0.959858
3.404899
{ "github_metadata": { "branch": "master", "commit_count": 1273, "repo_created_at": "2019-08-06T15:51:39.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 10, "forks": 36, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4575c6...
ccc981b0-bc1a-4d6d-ab3f-d78d89108cd9
Faisal-hn/dataStructures
BinaryTree_2/MinMaxINBT.cpp
#include <iostream> #include<algorithm> #include<queue> using namespace std; template <class T> class BinaryTreeNode { public: T data; BinaryTreeNode<T> *left; BinaryTreeNode<T> *right; BinaryTreeNode(T data) { this->data = data; this->left = NULL; this->right = NULL; }...
ALGO
0.999955
4.3304
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-03-25T17:38: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": "6029a2831246...
ead31a87-b164-4989-bc22-cc17f700adeb
frelwx/homework
luogu/popularization/recursion_and_binary/1135.cpp
#include<bits/stdc++.h> using namespace std; const int maxn = 1e3, inf = 1e9; int n, k[maxn], a, b, ans = 1e9, maps[maxn][maxn], dp[maxn], vis[maxn], head[maxn], cnt; void dfs(int num, int end, int step){ if(step > ans || num < 0 || num > n) return; //cout << num << ' ' << step << endl; if(num == en...
ALGO
0.999951
3.48557
{ "github_metadata": { "branch": "master", "commit_count": 72, "repo_created_at": "2019-12-26T14: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": "bddba9e61...
9fc029ec-1109-4786-913a-f4131ef7b39f
isl-org/Open3D
cpp/open3d/core/nns/FixedRadiusSearchOps.cpp
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // Copyright (c) 2018-2024 www.open3d.org // SPDX-License-Identifier: MIT // ---...
ALGO
0.970919
7.11454
{ "github_metadata": { "branch": "main", "commit_count": 4194, "repo_created_at": "2016-12-02T16:40:38.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 12555, "forks": 2448, "issues": 1245, "pull_requests": 37 }, "file_meta": { "content_id": ...
521fecc7-0b1d-4831-8e53-6083cfed1268
MedicineStick/en_list_coco
code/dp/numRollsToTarget.cpp
#include <stdio.h> #include<vector> #include<cmath> #include<string> #include<map> #include<queue> #include<iostream> #include<cstring> using namespace std; const int MOD = 1e9 + 7; int waysToTarget(vector<vector<int>>& memo, int diceIndex, int n, int currSum, int target, int k) { // All the n d...
ALGO
0.999915
4.84321
{ "github_metadata": { "branch": "main", "commit_count": 48, "repo_created_at": "2022-08-07T10:47:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9d3705c2331...
6cbb412d-805f-4610-92ab-8e019f106b54
gom74/procon
atcoder/arc/arc037/c/main.cpp
#include <bits/stdc++.h> using namespace std; using ll = long long; bool check(ll N, ll K, vector<ll> &a, vector<ll> &b, ll X) { ll sum = 0; for (int i = 0; i < N; ++i) { sum += distance(b.begin(), upper_bound(b.begin(), b.end(), X / a.at(i))); } return sum >= K; } int main() { cin.tie(0);...
ALGO
0.999978
4.534946
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2020-05-06T13:54: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": "9e95735dc...
6930871e-639c-4af7-a6e5-e5452a41951f
GarageGames/3SS
engine/lib/Qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/gpu/LoopBlinnMathUtils.h
/* * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
ALGO
0.982977
4.637595
{ "github_metadata": { "branch": "master", "commit_count": 312, "repo_created_at": "2012-12-07T18:12:31.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4, "forks": 11, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c5fdc412...
65c65046-0a4d-4585-aa6b-b542970fec71
luqmanarifin/cp
0-unclassified/fractionstellar.cpp
#include <bits/stdc++.h> using namespace std; long long gcd(long long a, long long b) { return b? gcd(b, a % b): a; } pair<long long, long long> reduce(long long a, long long b) { long long g = gcd(a, b); return {a / g, b / g}; } int main() { int t; cin >> t; while(t--) { long long a, b, c, d; c...
ALGO
0.999145
5.267789
{ "github_metadata": { "branch": "master", "commit_count": 772, "repo_created_at": "2016-02-09T04:26:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "44566fed...
d32506f6-d8f7-48b5-838e-930112b13b3c
otre99/FractalsGen
qtapp/family01.cpp
#include <QDebug> #include <functional> #include <limits> #include "fractals.h" void Family01::Init(const FractalParameters &p) { Fractal::Init(p); c_.real(p.c.real()); c_.imag(p.c.imag()); } double Family01::CalcFinalNormMandelbrot(const cmplx &c) const { // qDebug() << " Family01::CalcFinalNormMandelbrot()...
ALGO
0.999115
5.096023
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2020-08-12T16:22:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8593b3837...
9b2c92e7-4492-4dda-909e-bd675052baa8
tushar-kamra/Data-Structures-and-Algorithms
cpp/queue/linkedListImplementation.cpp
#include<iostream> using namespace std ; class Node { public : int data ; Node* next ; Node(int x){ data = x ; next = NULL ; } }; class Queue { Node* front, *rear ; public : Queue(){ front = NULL ; rear = NULL ; ...
ALGO
0.998583
3.690782
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2020-06-08T08:37:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "120ac5a005...
c6e5db8d-1d14-4441-b45f-5e0c2ff5fcaf
RIYANSHGARG/DSA
DSA1/6. DP/LCS.cpp
#include <bits/stdc++.h> using namespace std; int Recursive(int index1, int index2, string &s1, string &s2) { if (index1 == s1.length() || index2 == s2.length()) return 0; if (s1[index1] == s2[index2]) { return 1 + Recursive(index1 + 1, index2 + 1, s1, s2); } return max(Recursive(i...
ALGO
0.999987
5.331322
{ "github_metadata": { "branch": "main", "commit_count": 28, "repo_created_at": "2022-04-18T20:07: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": "29cdecab0cb...
61417a40-d22c-4568-90b4-eed79945b2c3
Plypy/Lifestyle
BoP14/Qual3-small.cpp
/** * Description: * ProblemName: * Source: * Author: Ply_py */ #include <iostream> #include <fstream> #include <string> #include <cmath> #include <climits> #include <cstdio> #include <cstdlib> #include <cstring> #include <vector> #include <queue> #include <ctime> #include <map> #include <set> #include <iomanip> #...
ALGO
0.999926
4.250579
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2015-03-19T14:24:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2162d68517...
feb9b4f1-c5f7-43f7-9b00-a958d6851182
JerryZJJJ/Financial-engineering-project
hw1/src/main.cpp
#include <iostream> #include <fstream> #include <string> #include <cstring> #include <vector> using namespace std; double average(vector<double> v) { int i; double sum=0; for(i=0;i<v.size();i++){ sum += v[i]; } return sum/v.size(); } double find_rate(vector<double> rate_vec, vector<string...
TOOL
0.904728
4.026964
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-02-03T20:19:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "050b8f2eab...
94f31596-3e44-4d03-9127-f91a0fe6e822
FoggyAndromeda/competitive_programming
codeforces/C/1372c.cpp
#include <bits/stdc++.h> using namespace std; void solve() { int n; cin >> n; vector<int> a(n + 1, 0), pref(n + 1, 0); for (int i = 1; i <= n; ++i) { cin >> a[i]; a[i] = (a[i] == i); pref[i] = a[i]; } for (int i = 2; i <= n; ++i) pref[i] += pref[i - 1]; ...
ALGO
0.999964
3.752967
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2022-12-23T18:57:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "21c91d70a...
dd306001-42d9-4f6b-bda1-04bf367e7d58
dreyus95/AVSP_SourceQualityPrediction
CodeJamCrawler/dataset/11_3227_28.cpp
// 1A.cpp : Defines the entry point for the console application. #include "stdafx.h" #include <map> #include <vector> #include <string> #include <atlstr.h> #include <tchar.h> #include <fstream> #include <float.h> #include <math.h> //------------------------------------------------------------------- // helper functio...
ALGO
0.966054
3.715296
{ "github_metadata": { "branch": "master", "commit_count": 70, "repo_created_at": "2017-06-08T21:00: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": "43be5eaa5...
a12470fd-6c5c-441f-b74e-646a79cb8068
wdomitrz/hpc
mpi-lab-02-e/graph-utils-par.cpp
/* * A template for the 2019 MPI lab at the University of Warsaw. * Copyright (C) 2016, <NAME>. * Refactoring 2019, <NAME> */ #include <mpi.h> #include <cassert> #include <cstring> #include "graph-base.h" #include "graph-utils.h" void catch_error(int res) { if (res != 0) { printf("Error: %d\n", res)...
ALGO
0.96586
4.900753
{ "github_metadata": { "branch": "main", "commit_count": 44, "repo_created_at": "2022-03-04T15:52:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1a6a72db3bb...
164e60d9-6405-48e6-ae3e-c777352e54a7
kalashnikov/leetcode
searchRotatedArray.cpp
#include <iostream> #include <vector> #include <unordered_map> #include <list> using namespace std; // https://leetcode.com/discuss/22678/revised-binary-search int search_unique(vector<int>& A, int target) { int lo = 0; int hi = A.size() - 1; while (lo < hi) { int mid = (lo + hi) / 2; if (A[mid] == targ...
ALGO
0.999583
5.252812
{ "github_metadata": { "branch": "master", "commit_count": 32, "repo_created_at": "2015-11-13T02:32: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": "4d163893f...
4c3e85ae-8973-4c7a-b1ea-9534252e1b2e
DARoSLab/DynaCoRE
DynaController/Mercury_Walking/StateEstimator/EKF_RotellaEstimator.hpp
#ifndef EKF_ROTELLA_ESTIMATOR #define EKF_ROTELLA_ESTIMATOR #include "EKF_PoseEstimator.hpp" #include <rbdl/rbdl.h> #include <Filter/filters.hpp> /* This estimator is based on: Rotella, Nicholas, et al. "State estimation for a humanoid robot." Intelligent Robots and Systems (IROS 2014), 2014 IEEE/RSJ Internation...
ALGO
0.990339
6.638064
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-08-03T19:08:55.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 25, "forks": 14, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6ebd0b5d2...
4bd62001-bc87-4597-a59c-ecc120e428a0
vcvrao/cdac-hypack2013
tbb-hypack-2013/tbb-codes/ParrelReduceMinMax.cpp
/********************************************************************** C-DAC Tech Workshop : hyPACK-2013 October 15-18, 2013 Example : ParellelReduceaMinMax.cpp Objective : Advance example program, to do parallel multiple reducti...
ALGO
0.99826
5.077708
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-06-13T06:02: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": "6c6d30070624...
0242beaf-236f-4cc9-8b57-ce0c86a3e574
heyiampc/leetcode
Maximum path sum in matrix - GFG/maximum-path-sum-in-matrix.cpp
//{ Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function Template for C++ class Solution{ public: using ll=long long; int n; ll fun(int i,int j,vector<vector<int>> &nums,vector<vector<ll>> &dp) { if(i==n-1 && j<=n-1) { ret...
ALGO
0.999775
5.946074
{ "github_metadata": { "branch": "main", "commit_count": 2143, "repo_created_at": "2022-09-12T17:22:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cc8651b08...
56fc7742-5878-4d10-974a-ae2b314c0c59
cbpark/YAM2-analysis
src/m2xx_auglag_nmsimplex.cc
#include "blsystem.h" #include "yam2.h" #include <lhef/lhef.h> #include <fstream> #include <iomanip> #include <iostream> #ifdef DEBUG #include <chrono> using namespace std::chrono; #endif using std::cout; const double MNU = 0.0; const double TOL = 1.0e-6; void writeNullOutput(std::ofstream &outfile) { outfil...
DATA
0.96262
4.986321
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2020-07-07T10:49:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0c8989e52...
f1786e20-1ac6-4bfa-b8f9-c4e898adf1a8
dmn-05/Nam1
NMLT/BTLT Tuần 13/Buổi 2/BT2/bt2.cpp
#include<iostream> #define max_dong 50 #define max_cot 100 using namespace std; void nhapmang2chieu(int a[][max_cot], int& dong, int& cot) { do { cout << "Hay nhap so dong:\n"; cin >> dong; } while (dong <= 0); do { cout << "Nhap vao so cot:\n"; cin >> cot; } while (cot <= 0); for (int i = 0; i < dong; ...
ALGO
0.999651
3.798578
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2025-02-13T04:19: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": "c8d6f34870...
19374589-3a9e-4165-ba57-519373458e93
HuyWibu/C_plus_plus
Timngayketiep/main.cpp
#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { // ngay 1--->31 ngay // thang 1--->12 thang // bn cx dc int ngay,thang,nam; cout<<"Moi bo nhap ngay:"; cin>>ngay; cout<<"Moi bo nhap th...
ALGO
0.995003
3.296176
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2021-09-07T09:43: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": "c61da5fea3...
36eac448-4d4f-4acb-a41d-461d0aad293f
Vizroi/Engine56
Engine/Plugins/MetaHuman/MetaHumanCoreTechLib/Source/MetaHumanCoreTechLib/Private/nrr/src/LipClosureConstraints.cpp
// Copyright Epic Games, Inc. All Rights Reserved. #include <nrr/LipClosureConstraints.h> #include <carbon/geometry/AABBTree.h> #include <nls/functions/BarycentricCoordinatesFunction.h> #include <nls/functions/GatherFunction.h> #include <nls/functions/SubtractFunction.h> #include <nls/utils/ConfigurationParameter.h> ...
ALGO
0.99927
4.11106
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-05-23T09:47: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": "cd3ebbba11fd...
04ff41cc-fdca-43fe-93ab-fdab7f25e142
csillagbarnabas/Computer-Simulations-BSc-
task2/code/Inga/cpl/matrix.hpp
#ifndef CPL_MATRIX_HPP #define CPL_MATRIX_HPP namespace cpl { class Vector; class Matrix { public: Matrix(int rows=1, int cols=1, double d=0); Matrix(const Matrix& m); ~Matrix(); int numRows() const { return rows; } int numCols() const { return cols; } const double* operator[](const i...
ALGO
0.963148
6.005279
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2020-12-06T06:00:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "51d93f0255bc...
23260e14-39ee-4fee-8f8d-330c1b82f6c4
da1suk8/Leetcode
IntroductionToArray/findPivotIndex.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; class Solution { public: int pivotIndex(vector<int> &nums) { int n = nums.size(); vector<int> cumsum(n + 1, 0); for (int i = 0; i < n; i++) { cumsum[i + 1] = cumsum[i] + nums[i]; } i...
ALGO
0.999953
5.769258
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2020-06-29T06:29:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "99b9675c4e...