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
19512f5b-75ed-4e4f-b8d2-d3099de70a82
Kawser-nerd/CLCDSA
Source Codes/AtCoder/abc038/D/2241936.cpp
#include <iostream> #include <fstream> #include <string> #include <cmath> #include <cstdlib> #include <ctime> #include <vector> #include <algorithm> #include <numeric> #include <map> #include <set> #include <stack> #include <queue> #include <deque> #include <functional> #include <cctype> #define BIT(a) (1 << (a)) ...
ALGO
0.999973
3.885731
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2019-09-30T05:38:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 22, "forks": 8, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "32d7a12e...
ccb034bf-5a2a-44dc-9727-c4536a3a98c2
shanesyw/SFND_Lidar_Obstacle_Detection
src/CustomEucCluster.cpp
#include "CustomEucCluster.h" void Proximity(std::vector<bool>& alreadyProcessed, typename pcl::PointCloud<pcl::PointXYZI>::Ptr cloud,int index, std::vector<int>* cluster,KdTree3D* tree, float distanceTol) { alreadyProcessed[index] = true; cluster->push_back(index); //std::cout << "index saved: " << index << endl;...
ALGO
0.99752
4.473233
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2020-08-10T16:24: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": "f970df4f02...
1ad1427b-e3f5-4f42-bfed-9e799476c582
ishandutta2007/codeforces-n
natsugiri/normal/670/F.cpp
#include<cstdio> #include<iostream> #include<vector> #include<algorithm> #include<string> #include<cstring> using namespace std; typedef long long LL; typedef vector<int> VI; #define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i) #define EACH(i,c) for(__typeof((c).begin()) i=(c).begin(),i##_end=(c).end();i!=i##_e...
ALGO
0.999815
3.640313
{ "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": "9889790822f9...
ed24394b-011b-4a8a-974c-509d19de1f8f
Qzhenlong/LeetCode
CountCompleteTreeNodes.cpp
#include<iostream> #include<vector> using namespace std; /* 题目: Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia: In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possib...
ALGO
0.999844
4.923211
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2015-06-02T14:52:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f1029a1b4...
f268e855-10a0-4188-a795-c98415d8d912
angithub1/codingas
c++prog/practice.cpp
#include<cstdio> class Employee { private : int id; int hrs; float rate; public : Employee () { id = 100; hrs = 100; rate = 200; } Employee (int id, int hrs, int rate) { this-> id = id; this->hrs = hrs; this-> rate = rate; } int Getid() { ...
ALGO
0.959996
3.319011
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2022-10-21T08:27: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": "b078bd964e0...
ef3ca3cd-2e9e-478f-8925-ac2518797d4b
detectivemark7/aprg
AprgMath/AprgMath/tst/Math/GameTheory/SpecificGames/MisereGame_unit.cpp
#include <Math/GameTheory/SpecificGames/MisereGame.hpp> #include <gtest/gtest.h> using namespace std; namespace alba { namespace math { TEST(MisereGameTest, GetGameStateWorks) { EXPECT_EQ(GameState::Winning, MisereGame::getGameState({10U, 12U, 5U})); EXPECT_EQ(GameState::Losing, MisereGame::getGameState({9...
TEST
0.955563
5.138656
{ "github_metadata": { "branch": "main", "commit_count": 687, "repo_created_at": "2021-08-07T08: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": "49fb3a7afe...
2ab28879-122b-4889-b8f2-a3b31d0ebc1f
vvvvvvvector/tasks-cpp
K1_2011_Z5_cyfraJednosci3/main.cpp
#include <iostream> #include <ctime> #include <algorithm> void print(int); int func(int *, int); int main() { srand(time(NULL)); const int size = 9; // int arr[size] = {2, 14, 3, 26, 5, 34, 33, 13, 65}; int arr[size]; for (int i = 0; i < size; i++) { arr[i] = rand() % 41; } ...
ALGO
0.997685
4.641568
{ "github_metadata": { "branch": "master", "commit_count": 56, "repo_created_at": "2020-11-23T18:32:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0f5e1b4e3...
f6b1464f-2d08-4bfb-bf3a-4c3121e5c064
bashirmurtaza93/guessArrayNumbers
guess.cpp
#include<iostream> #include<vector> #include<stdlib.h> #include<time.h> #include<stdio.h> using std::cout; using std::cin; using std::vector; using std::endl; /* New Possible change, instead of vectoring being cleared, it would stay full. The player would have to memorize the entire sequence as it continues. Add...
ALGO
0.983953
3.002836
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2016-01-13T03:34: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": "bee8acdbe2...
d2a04b92-ed34-4497-a3c0-5560ec5a1083
akhikolla/InformationHouse
imager/src/filtering.cpp
#include <imager.h> #include "wrappers_cimglist.h" using namespace Rcpp; using namespace cimg_library; //' Apply recursive Deriche filter. //' //' The Deriche filter is a fast approximation to a Gaussian filter (order = 0), or Gaussian derivatives (order = 1 or 2). //' //' @param im an image //' @param sigma Stand...
ALGO
0.996738
5.923218
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-12-30T15:51:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 10, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "42917c2a0...
8f733496-617e-457a-a6b9-60c4f19e0350
vinadoti/Exercicios-Algoritmo-I
VetorMaiorPosicaoMediaVariavelGlobal.cpp
// Solução 2: Passagem de parâmetro por referência (Vetor); variável global // inclusão das bibliotecas #include <stdio.h> #include <stdlib.h> // #define serve para definir uma referência no código //#define n 10 // declaração das variáveis globais int a[150], b[150], media, posMaior; // função para ler vetor de qua...
ALGO
0.999654
3.996678
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2021-08-06T02:49: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": "5c5d7fe67f0d...
1040d626-8150-47fb-9670-64a0198ce4ad
lsj0822/Problem_Solving
C++/연습문제/24_그래프/0x18_[S1]11403.cpp
#include <bits/stdc++.h> using namespace std; int n, arr[105][105], vst[105]; vector<int> graph[105]; queue<int> Q; int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> n; for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { int k; cin >> k; if (k) graph[i].push_back(j); } } for (int i =...
ALGO
0.999927
4.19251
{ "github_metadata": { "branch": "main", "commit_count": 76, "repo_created_at": "2024-01-16T08:37: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": "4d218c3c821...
59393192-9667-412a-887e-123fac0b2206
duxins/leetcode
357-count-numbers-with-unique-digits.cpp
// 357. Count Numbers with Unique Digits // // Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. // // Example: // Given n = 2, return 91. (The answer should be the total numbers in the range of 0 ≤ x < 100, excluding [11,22,33,44,55,66,77,88,99]) // // Hint: // // 1. A...
ALGO
0.997439
7.606581
{ "github_metadata": { "branch": "master", "commit_count": 198, "repo_created_at": "2016-03-06T06:11:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "baab0fe2...
386fb9fe-ff2d-4c7d-ada7-5d674b32b629
1802802/CppPrimer5th_BookPractice
C++ Primer Test/10.3.4_Test.cpp
/*#include <iostream> #include <numeric> #include <vector> #include <fstream> #include <string> #include <iterator> #include <list> #include <algorithm> #include<functional> using namespace std::placeholders; using namespace std; /*bool doit(const string &words) { return words.size() <= 6; } int main() //练习10.22 {...
ALGO
0.945469
3.071297
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2018-09-08T08:13:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eacf4c73a...
89314937-dfff-431a-b79f-bf613fcbe7e2
anurag-algo/TLE_900_rating
A_Forked.cpp
#include <bits/stdc++.h> using namespace std; // function implementation void solve() { // write your code here long long king[2]; long long queen[2]; long long a, b; cin >> a >> b; cin >> king[0] >> king[1]; cin >> queen[0] >> queen[1]; set<pair<long long, long long>> k; set<pair<l...
ALGO
0.999927
4.604549
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2025-05-09T16:18: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": "f25213e16613...
5c155bdf-044b-4b53-b087-8c648e8b5b4b
igorbraun/motis
modules/railviz/src/train_retriever.cc
#include "motis/railviz/train_retriever.h" #include <algorithm> #include <set> #include <vector> #include "boost/geometry/index/rtree.hpp" #include "geo/detail/register_box.h" #include "utl/concat.h" #include "utl/get_or_create.h" #include "utl/raii.h" #include "motis/core/common/logging.h" #include "motis/core/sc...
DATA
0.98632
7.527936
{ "github_metadata": { "branch": "master", "commit_count": 102, "repo_created_at": "2020-06-25T08:25:03.000Z", "is_fork": true, "is_org_owned": false, "forked_from": "motis-project/motis", "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "conten...
26f0ad1b-ac7d-4514-a273-8ef1d3bc0bfc
YN0220SV/AtCoderProblemsMyAns
Easy/Easy3.cpp
// https: // atcoder.jp/contests/code-festival-2016-qualb/tasks/codefestival_2016_qualB_b #include <bits/stdc++.h> using namespace std; int main() { int n; int a; int b; string S; cin >> n >> a >> b; cin >> S; int allcounter = 0; int kaigaikcounter = 0; char nows; for (int i = 0...
ALGO
0.999879
3.592679
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2022-03-19T01:06: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": "39dd1a8791...
7502798a-ed77-4b6b-90b4-4b71a5c20d0e
Zunairviqar/Data-Structures--Binary-Trees
LinkedBinaryTree.hpp
// // LinkedBinaryTree.h // homeWk3 // // Created by <NAME> on 12/04/2020. // Copyright © 2020 <NAME>. All rights reserved. // #ifndef LinkedBinaryTree_h #define LinkedBinaryTree_h #include <stdio.h> #include <cstdlib> #include <iostream> #include <list> #include "GeneralTree.hpp" using namespace std; typedef ...
ALGO
0.989419
4.012605
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2021-03-08T19:30: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": "f5e24ba5b0...
b1147657-0f31-444f-93e8-39fac5cf3f0a
mindeulle7/Baekjoon
백준/Silver/15651. N과 M (3)/N과 M (3).cc
#include <iostream> #include <vector> #include <algorithm> using namespace std; vector<vector<int>> res; void dfs(int n, vector<int> v, vector<int> &temp); int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, m; cin >> n >> m; vector<int> v; vector<int> temp...
ALGO
0.999989
3.761254
{ "github_metadata": { "branch": "main", "commit_count": 138, "repo_created_at": "2022-07-04T11:23: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": "d019619804...
08414684-94cd-496a-87ec-d988a22a863a
MeleeCampz/IMU-Based-Motion-Capturing
Wlan_IMU/WLAN_IMU/Wlan_IMU/QuaternionFilters.cpp
// Implementation of <NAME>'s "...efficient orientation filter // for... inertial/magnetic sensor arrays" // (see http://www.x-io.co.uk/category/open-source/ for examples & more details) // which fuses acceleration, rotation rate, and magnetic moments to produce a // quaternion-based estimate of absolute device orient...
ALGO
0.999045
5.247581
{ "github_metadata": { "branch": "master", "commit_count": 102, "repo_created_at": "2021-05-03T15:05:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bda50b77...
d3074ba9-c75f-483f-89a3-fc4d942d993a
sangdo913/Algorithms
StudyAlone/StudyAlone/PutIntegers.h
#include<cstdio> #include<cstring> using namespace std; int PutInteger() { int t; scanf("%d\n", &t); for(int tc = 1; tc <= t; tc++) { int n; bool check[100000] = {false}; int nums[1000]; scanf("%d\n", &n); for(int i = 0; i < n; i++) { sc...
ALGO
0.995363
3.137712
{ "github_metadata": { "branch": "master", "commit_count": 850, "repo_created_at": "2018-01-06T13:25: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": "209df457...
fb922d5d-313c-40b4-96a9-aa31da781bbf
EliasFarhan/NekoEngine
core/src/mathematics/transform.cpp
/* MIT License Copyright (c) 2020 SAE Institute Switzerland AG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
ALGO
0.926795
7.580376
{ "github_metadata": { "branch": "develop", "commit_count": 807, "repo_created_at": "2019-05-17T19:20:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 13, "forks": 6, "issues": 1, "pull_requests": 5 }, "file_meta": { "content_id": "a79929...
fc18082c-0bf6-4426-bee7-6294b6321716
KailinLi/Online-Judge
UVa/1001. Say Cheese.cc
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <queue> #include <map> #define REP(i, n) for (int (i) = 0; (i) < (n); ++(i)) using namespace std; const int INF = 0x3f3f3f3f; const int MAXN = 100 + 10; struct Edge { int to; double w; int next; }; Edge ...
ALGO
0.999374
3.201687
{ "github_metadata": { "branch": "master", "commit_count": 181, "repo_created_at": "2017-12-07T00:22:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dc1a6cac...
e638e3c3-d187-405a-9c5d-91686d09d233
darioPM2002/trabajosProg
cpp/3semestre/clase_algoritmos/repositorio/tc1031-master/tc1031-master/Tema_5_Ordenamiento/ordenamiento_basico/ordenamiento_basico/main.cpp
// // main.cpp // ordenamiento_basico // // Created by <NAME> on 28/08/23. // #include <iostream> #include <time.h> #include "Libro.hpp" #include <iterator> template < class T> bool asc(T a, T b) { return a < b; } template < class T> bool desc(T a, T b) { return a > b; } /* O(n^2) M(n^2) */ template <...
ALGO
0.999887
5.000125
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2023-09-13T21:42: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": "d692b4c3015...
74d1b7ea-1a73-426e-9896-850aae5b00f3
raunakb03/CP-Solutions
CodeForces/GNU C++17/1829A  Love Story/204755339.cpp
#include <bits/stdc++.h> using namespace std; /////////////////////////////////////////DEFINE////////////////////////////////////////// #define si size() #define fi first #define se second #define pb push_back #define endl '\n' #define all(x) (x).begin(), (x).end() #define foi(i, a, b) for (ll i = a; i < b; i++) #def...
ALGO
0.999788
3.985451
{ "github_metadata": { "branch": "main", "commit_count": 120, "repo_created_at": "2023-05-08T04:57: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": "bfcb9ca8e9...
0c6aa72f-d11b-4cda-a9ea-3c48d2bd632f
yakataN/Atcoder_practices
UnionFind.cpp
#include <iostream> #include <vector> #include <set> using namespace std; struct UnionFind { // 各点は親を保存する vector<int> par; // parをn個の-1で初期化 // これはその島が持っている頂点数を表す UnionFind(int n): par(n, -1) { } void init(int n) { par.assign(n, -1); } int root(int x) { if (par[x] < 0) { ...
ALGO
0.99997
4.301216
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-07-11T21:10: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": "9dd94fe4f9...
2fcd9af0-a060-41bc-afa7-9afe04e843aa
purdue-arc/mantis
include/mantis3/Markov.h
/* * Author: <NAME> */ #include <math.h> #include <array> #include<float.h> #include <opencv2/plot.hpp> #include <opencv2/highgui.hpp> #include "Mantis3Types.h" using namespace cv; #define DEGREES 360 typedef std::array<double, 360> markovPlane; /* * TODO: Make sure yaw coming from hypothesis is correct */ clas...
ALGO
0.998946
4.846005
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2016-10-22T00:08:38.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cd812b185b...
b5ea6348-c1c9-411c-a5eb-a645fac6cdf6
ishandutta2007/codeforces-c
crackersamdjam/normal/1329/A.cpp
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define gc getchar() #define pc(x) putchar(x) template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;} template<typename T> void printn(T n...
ALGO
0.999969
3.320123
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:17: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": "5317df6794f8...
107079ca-a27c-4bd9-890b-4d5558c040cb
epfl-lasa/robot-kinematics
src/iktestiCub.cpp
/* * iktestiCub.cpp * * Created on: Dec 20, 2012 * Author: seungsu */ #include "MathLib.h" #include "IKGroupSolver.h" #include "sKinematics.h" #define ROBOT_DOF 7 #define IK_CONSTRAINTS 9 #define D2R (M_PI/180.) #define R2D (180./M_PI) double myjob[] = {0.0, 0.0, 0.0, 0.0, 50.0, -00.0, 50, 0.0, 0.0,...
ALGO
0.990244
3.833729
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2015-10-20T13:19:22.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 6, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9d2c75de20...
07aa23e6-e607-43f6-8a76-b35773585ca5
Zeldacrafter/CompProg-Solutions
codeforces/1301: #619 (Div. 2)/E.cc
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define FOR(a, b, c) for (auto(a) = (b); (a) < (c); ++(a)) #define F0R(a, b) FOR (a, 0, b) #define pb push_back #define endl '\n' vector<string> s; int sz[500][500] = {}; int n, m; bool valid(int y, int x, int size) { if (x - size < 0 || x + siz...
ALGO
0.998993
4.791601
{ "github_metadata": { "branch": "master", "commit_count": 581, "repo_created_at": "2019-11-08T15:14:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "72341c4c...
5a0084b1-cd6a-4dca-98cc-69537a3f9931
Bardo91/motion_planning
src/planners/rrtstar.cpp
//--------------------------------------------------------------------------------------------------------------------- // MOTION_PLANNING //--------------------------------------------------------------------------------------------------------------------- // Copyright 2018 <NAME> (a.k.a. Bardo91) <EMAIL> //-------...
ALGO
0.998976
4.37077
{ "github_metadata": { "branch": "master", "commit_count": 28, "repo_created_at": "2019-02-06T14:48:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "86b0a8fc3...
eb0c7c73-d4d5-4289-af06-79222e2482d9
Vitruves/ChemTrain
src/descriptors/brotomoreau.cpp
#include "../common.hpp" #include <GraphMol/ROMol.h> #include <GraphMol/Atom.h> #include <GraphMol/MolOps.h> // For distance matrix #include <GraphMol/AtomIterators.h> #include <vector> #include <cmath> namespace desfact { // --- Broto-Moreau Autocorrelation Calculation --- // Structure to cache precomputed data str...
ALGO
0.959909
6.869375
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2025-05-05T21:29:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4ed1699e3af...
3b3f2f5d-a627-4e04-ab29-e58762f7c95c
chengyiwei/algorithm
CDJCC_ACM/Sakura Tears training #5/G/G.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { freopen ("G.in", "r", stdin); ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; vector<ll> a(2 * n + 1, 0), sum(2 * n + 1, 0); for (int i = 1; i <= n; i++) cin >> a[i]; for (int i = 1; i <= ...
ALGO
0.999689
3.730725
{ "github_metadata": { "branch": "main", "commit_count": 68, "repo_created_at": "2024-08-13T07:27: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": "c39c19e701e...
188b4eff-e6c4-431f-96fe-beff4c41a282
BenLPope/Pointer_List_Example
src/pgm4.cpp
//-------------------------------------------------------------- // // <NAME> // CS3350 1pm Tue-Thurs // Due date: Thursday, November 1st 2012 // // Compile command: g++ pgm4.cpp // Input: // None // Output: outputs the combination found // Process - creates 4 lists of different types, populates it with various // ...
ALGO
0.996093
3.387578
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2015-01-27T15:10: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": "67ad461a4b...
1a3f5e07-d84a-4017-958e-6741b544b7f8
AndanteKim/LeetCode_Practice
0552-student-attendance-record-ii/0552-student-attendance-record-ii.cpp
class Solution { private: int mod = 1'000'000'007, n; int dp(vector<vector<vector<int>>>& memo, int day, int absent, int late){ // base case if (day == n){ return (absent < 2 && late < 3)? 1:0; } // If a student violates one of the criteria if (absent...
ALGO
0.999959
5.06148
{ "github_metadata": { "branch": "main", "commit_count": 13165, "repo_created_at": "2022-12-31T06:32:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "24f53bfe...
123a712b-f506-4820-8287-bfba647ab117
berkeley-abc/abc
src/sat/cadical/radix.hpp
#ifndef _radix_hpp_INCLUDED #define _radix_hpp_INCLUDED #include "global.h" #include <cassert> #include <cstring> #include <iterator> #include <vector> ABC_NAMESPACE_CXX_HEADER_START namespace CaDiCaL { using namespace std; // This provides an implementation of a generic radix sort algorithm. The // reason for ha...
ALGO
0.999514
6.938842
{ "github_metadata": { "branch": "master", "commit_count": 5857, "repo_created_at": "2018-03-11T11:33:37.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1016, "forks": 642, "issues": 162, "pull_requests": 31 }, "file_meta": { "content_id": "...
de695abd-bf89-401f-baf1-e20fa6f5d6ba
chaeeun0409/Cpp_study
예제/complex.cpp
#include <iostream> using namespace std; class complex { public: int imaginmary; int real; complex() { imaginmary = 0; real = 0; } complex(int real, int imaginmary) { this->imaginmary = imaginmary; this->real = real; } complex& operator+(complex&n) { complex ctmp; ctmp.real = this->real + n.real; ...
ALGO
0.996882
4.641858
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2022-04-13T02:02: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": "3873f66b4e...
5e37b0c4-fe52-4c26-b241-0632aa1be94c
akazad7567/Algorithms-Data-Structures
dp/AtCoder/L - Deque.cpp
#include<bits/stdc++.h> using namespace std; #define XOX (-D XOX typedef long long ll; //debug for single line start from here template<typename T> void out(T x) { cout << x << endl; exit(0); } #define watch(x) cout << (#x) << " is " << (x) << endl //debug for single line ending here //debug for multiple line start fr...
ALGO
0.999967
3.772727
{ "github_metadata": { "branch": "master", "commit_count": 27, "repo_created_at": "2020-02-22T13:41: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": "ed61434aa...
1f2b33a9-a4ac-4841-a9b1-483e93a891df
TimurKrueger/3DS-MC
src/Arap.cpp
/* * Project: Interactive ARAP * File: Mesh.cpp * Authors: <NAME>, <NAME>, <NAME>, <NAME> */ #include "../include/Arap.h" Arap::Arap(Mesh& mesh) : m_mesh(mesh) { m_constructNeighborhood(); m_updateSparseWeightMatrix(); m_setSystemMatrix(); } Arap& Arap::operator=(const Arap& other) { m...
ALGO
0.998872
5.681758
{ "github_metadata": { "branch": "main", "commit_count": 55, "repo_created_at": "2023-12-11T13:20:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "05e0ad1a61f...
4e3e7962-9c6b-447a-b1cf-188eec9e2417
CASL/Trilinos
packages/amesos2/src/Amesos2_ShyLUBasker_def.hpp
// @HEADER // // *********************************************************************** // // Amesos2: Templated Direct Sparse Solver Package // Copyright 2011 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retains certa...
TOOL
0.973682
6.286851
{ "github_metadata": { "branch": "master", "commit_count": 83772, "repo_created_at": "2021-03-31T20:10:11.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5e175ae...
c3adca08-6dde-407f-a2fd-2bf3700a76e0
ishandutta2007/codeforces-i
-is-this-fft-/normal/351/E.cpp
#include <iostream> #include <algorithm> #include <queue> typedef long long llong; const int MAX_LENGTH = 2005; using namespace std; struct elem { int val, pos; elem () { } elem (int _val, int _pos) { val = abs(_val); pos = _pos; } }; bool operator< (elem p, elem q) { if (p.val == q.val) { ...
ALGO
0.99985
4.094363
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T05:39: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": "9a7a01fad354...
c5683abe-9ef9-4923-a1b2-4edad93e4934
coder0718/leetcode
linklist/328/solution_test.cpp
#include <vector> #include "leetcode/linklist/328/solution.h" #include "thirdparty/gtest/gtest.h" namespace leetcode { void buildList(ListNode* dummy, const std::vector<int>& input) { ListNode* p = dummy; for (size_t i = 0; i < input.size(); ++i) { p->next = new ListNode(input[i]); p = p->next...
ALGO
0.998402
5.804221
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2017-10-02T09:34: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": "7602138a61...
422d38e2-fbe9-46fd-9e37-3944ae502cdf
gnosis23/algorithm-problems
AtCoder/185/F.cc
/** * author: BohaoWang (<EMAIL>) * id: * tag: **/ #include <iostream> #include <iomanip> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <string> #include <vector> #include <map> #include <unordered_map> #include <set> #include <unordered_set> #include <queue> #include <list> #inc...
ALGO
0.999683
4.613116
{ "github_metadata": { "branch": "master", "commit_count": 31, "repo_created_at": "2020-11-28T08:16: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": "45cf508cc...
ce1bdbc9-87a4-4918-8963-e9a49f91fc7e
BreakAlgorithm/algorithm-study
source/yeon/4주차/code/알파벳.c++
// 백준 1978 알파벳 // cpp solved by dfs #include <iostream> #include <string> #include <queue> using namespace std; char map[21][21]; int R, C, answer; int dx[] = {1,-1,0,0}; int dy[] = {0,0,-1,1}; // arr that checks visited or not and // 26 means 'A' to 'Z' bool visited[26]; void dfs(int x, int y, int cnt){ an...
ALGO
0.999867
4.13603
{ "github_metadata": { "branch": "master", "commit_count": 553, "repo_created_at": "2020-08-02T01:44:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0d3256ea7...
0ea2a7e9-c668-405b-b58c-35e157cb88be
Yawn-Sean/Daily_CF_Problems
daily_problems/2024/06/0606/personal_submission/cf1561d1_dinghc.cpp
#include <bits/stdc++.h> using namespace std; using li = long long; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int n, m; cin >> n >> m; vector<li> dp(n + 1, 0LL); vector<li> dp_pre(n + 1); dp[1] = dp_pre[1] = 1LL; li diff = 0LL; for (int i = 2; i <= n; i++) { ...
ALGO
0.999987
5.04671
{ "github_metadata": { "branch": "main", "commit_count": 20410, "repo_created_at": "2024-02-26T01:04:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 478, "forks": 302, "issues": 0, "pull_requests": 7 }, "file_meta": { "content_id": "455a...
0c061c5e-efa9-4b4d-8e33-537a757ee053
itohdak/AtCoder
ARC/050/B.cpp
#include <bits/stdc++.h> #include "/home/itohdak/AtCoder/000/print.hpp" using namespace std; #define ll long long #define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--) #define rrep(i,n) RREP(i,n-1,0) #define all(v) v.begin(), v.end(...
ALGO
0.999645
3.449614
{ "github_metadata": { "branch": "master", "commit_count": 172, "repo_created_at": "2018-05-20T09:26:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "f7f16807...
7a3b5424-62e6-4969-b7d2-947a89968336
pc-cp/CS106B-Textbook-exercises
chapter-8/src/E-8-7.cpp
#include <iostream> #include "card.h" #include "vector.h" using namespace std; // int countFifteens(Vector<Card> & cards); int countFifteensRec(Vector<Card> & cards, int target); int main() { // for (Suit suit = CLUBS; suit <= SPADES; suit++) { // for (int rank = ACE; rank <= KING; rank++) { // ...
TOOL
0.974051
4.00827
{ "github_metadata": { "branch": "master", "commit_count": 24, "repo_created_at": "2024-01-14T13:45:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2f1cb388f...
000e8954-70c5-41be-b6b3-427340023d1d
ishandutta2007/codeforces-k
keshi/normal/150/D.cpp
//In the name of God #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; const ll maxn = 200; const ll mod = 1e9 + 7; const ll inf = 1e12; #define fast_io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define file_io freopen("input.txt", "r+", stdin);freopen("output.tx...
ALGO
0.999945
3.68059
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T06:06: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": "884a567032f6...
bc1a1adb-1543-4876-ae65-54adb7b1b2c3
Meh494/Coding-solutions
CCC '16 J3 - Hidden Palindrome.cpp
//Thoughts: Implementation, iterate through the string from the first and last element, and just check if they're the same //Meh494 #include <bits/stdc++.h> using namespace std; char alpha[26] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y'...
ALGO
0.999964
3.57269
{ "github_metadata": { "branch": "main", "commit_count": 126, "repo_created_at": "2022-08-06T16:05:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2f3679ff2b...
f7d8a3f0-4ffd-495a-a5e0-420bf710217f
imranraad07/Hackerrank
Algorithm/Dynamic Programming/Dorsey Thief.cpp
#include <bits/stdc++.h> using namespace std ; #define ll long long ll n , x ; vector <ll> w[5005] ; ll dp[5005][5005] ; int flag ; ll f(ll pos , ll g){ if(g == 0){ flag = 1 ; return 0 ; } if(pos > x || g < 0) return -1e9 ; if(dp[pos][g] != -1 )return dp[pos][g] ; ll ret = f(pos + 1...
ALGO
0.999979
4.17615
{ "github_metadata": { "branch": "master", "commit_count": 38, "repo_created_at": "2016-07-03T08:06: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": "33fdc31c4...
4bef5d4e-2427-4c76-b363-aa529cc50e3f
aws/lumberyard
dev/Code/Tools/CrySCompileServer/CrySCompileServer/Core/MD5.hpp
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
TOOL
0.952905
6.246
{ "github_metadata": { "branch": "master", "commit_count": 62, "repo_created_at": "2017-06-30T05:18:43.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2079, "forks": 544, "issues": 49, "pull_requests": 196 }, "file_meta": { "content_id": "b9...
62fd9365-ec21-4fbe-9c9c-82083fcfefa4
VinayR-GitHub/competitive-programming
src/ORAC/AIO Problems/chimera_ii.cpp
#include <fstream> int main() { int n; std::ifstream ReadFile("chimin.txt"); std::ofstream WriteFile("chimout.txt"); ReadFile >> n; std::string arr1; std::string arr2; std::string arr3; ReadFile >> arr1 >> arr2 >> arr3; bool can_do = true; int swaps = 0; std::string* cur_a...
ALGO
0.999856
4.370249
{ "github_metadata": { "branch": "main", "commit_count": 366, "repo_created_at": "2024-03-25T02:32:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "815b274ab7...
a51fa703-dd10-46ae-89ec-9c53339e0d67
EliseyDev/CPP-Primer-Plus-Exercises
stephen_prata/chapter_08/sample_programs/8.11_funtemp.cpp
// funtemp.cpp -- using a function template #include <iostream> template<typename T> void swap(T &a, T &b); int main() { int i = 10; int j = 20; std::cout << "i, j = " << i << ", " << j << std::endl; std::cout << "Using compiler-generated int swapper:\n"; swap(i, j); std::cout << "Now i, j = ...
ALGO
0.979478
5.846957
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2020-01-04T05:46:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "628de049f...
ffa193cf-c0b0-4988-a18c-46f027411687
Ayushman4002/Flask
programing/gehulab/week5/1.cpp
#include <iostream> #include <vector> using namespace std; int main() { int arr[] = {1, 2, 5, 6, 4, 3, 3, 4, 5, 6, 3, 7, 6, 7, 4, 2, 1, 4, 5, 6, 7, 7, 8, 6, 5, 4, 3, 2, 2}; int n = sizeof(arr) / sizeof(arr[0]); // Find maximum value in arr int max = arr[0]; for (int i = 1; i < n; i++) { if...
ALGO
0.999973
5.334166
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2025-04-16T10:02:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "43e2382cb24a...
b895e3b4-e31f-467b-b77c-a2406be7b82e
raincross7/code-similarity
codes/train_code/problem188/problem188_56.cpp
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair #define F first #define S second #define pii pair<int,int> #define pll pair<ll,ll> #define pcc pair<char,char> #define vi vector <int> #define vl vector <ll> #define sd(x) scanf("%d",&x) #define slld(x) scanf("%lld",&x) #define pd(x...
ALGO
0.999978
3.25598
{ "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": "97e5cca725f0...
27e3a597-a1ed-4ccd-a022-b8cb2a860c82
artemsokol98/CodeWars
You'reasquare!.cpp
// You're a square!.cpp: определяет точку входа для консольного приложения. //https://www.codewars.com/kata/54c27a33fb7da0db0100040e //You like building blocks.You especially like building blocks that are squares.And what you even like more, is to arrange them into a square of square building blocks! // //However, some...
ALGO
0.91295
3.170193
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2018-11-19T20:25: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": "27e77e3436...
c962fc6b-5a96-4309-9184-aa13c1da09a1
nwWag/NePHIM
src/rbf/rbf.h
#pragma once #include <pmp/mat_vec.h> #include <pmp/surface_mesh.h> #include <vector> #include <climits> #include <omp.h> #include <cfloat> using namespace pmp; class RBF { public: RBF(const std::vector<dvec3>& _constraint_positions, const std::vector<dvec3>& _constraint_values); RBF(){}; // ...
ALGO
0.999213
5.06932
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2025-07-11T05:44:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6d782c5356e...
0e3966ca-e104-42a1-9020-b009469f9265
shihyu/learn_c
ASLTegra/main.cpp
// g++ -ggdb `pkg-config --cflags opencv` main.cpp -o main `pkg-config --libs opencv` // OpenCV #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/video/background_segm.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/imgproc/types_c.h> #include <opencv2/highgui/highg...
ALGO
0.928677
5.829659
{ "github_metadata": { "branch": "master", "commit_count": 181, "repo_created_at": "2013-10-24T16:56:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 37, "forks": 23, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0f0a23...
abb5302e-cef5-41fc-a2a7-caab96d0782f
harshr3107/Coding-problems
0863-all-nodes-distance-k-in-binary-tree/0863-all-nodes-distance-k-in-binary-tree.cpp
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: void getparentmapping(TreeNode* root,map<int,TreeNode*>& mp) { q...
ALGO
0.999993
5.614098
{ "github_metadata": { "branch": "main", "commit_count": 1831, "repo_created_at": "2024-06-17T15:07: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": "45ecc0850...
2865f989-0d24-4473-be83-37ef43371e40
ViennaTools/ViennaLS-Example
Frosty.cpp
/* Example melting a snowman at different speeds for each of its spheres. Each sphere is treated as a different material by the advection kernel. */ #include <array> #include <iostream> #include <lsAdvect.hpp> #include <lsBooleanOperation.hpp> #include <lsDomain.hpp> #include <lsExpand.hpp> #include <lsGeometries...
ALGO
0.997125
5.903381
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2019-10-23T09:59:11.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9194b2c1f2...
13c8bd6c-20e0-45a6-bef4-0ee2c26aed4a
Liuqianqian007/learncs
data_structure/201121_hash_table.cpp
/************************************************************************* > File Name: 201121_hash_table.cpp > Author: liuqian > Mail: > Created Time: Sat 21 Nov 2020 08:15:28 PM CST ************************************************************************/ #include<stdio.h> #include<stdlib.h> #include<string.h> ...
ALGO
0.999106
3.86224
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2020-12-10T10:45: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": "0ef47da90c18...
810089db-6518-484f-bffb-16fd80907996
vibraphone/cgma
geom/virtual/ImprintBoundaryTool.hpp
//--------------------------------------------------------------------------- //- Class: ImprintBoundaryTool //- Description: Given two surfaces, imprints the boundary loops on each //- other. Returns the intersection graph. //- //- Owner: <NAME> //- Created: 4/15/2002 //---...
ALGO
0.999452
3.755574
{ "github_metadata": { "branch": "master", "commit_count": 1073, "repo_created_at": "2014-01-20T14:55:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "085d5be...
d683464e-b74a-4db9-8480-b917f58f1e38
shbang91/rpc
planner/locomotion/convex_mpc/src/state_equation.cpp
#include "convex_mpc/state_equation.hpp" #include <cassert> #include <cmath> #include <iostream> #include <stdexcept> #include <pinocchio/algorithm/frames.hpp> #include "util/util.hpp" StateEquation::StateEquation(const double dt, const double m, const Matrix3d &I_body, const Vector3d &...
ALGO
0.998972
5.9179
{ "github_metadata": { "branch": "develop", "commit_count": 925, "repo_created_at": "2022-01-31T06:30:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 48, "forks": 11, "issues": 1, "pull_requests": 2 }, "file_meta": { "content_id": "2ac6f...
1f1cc5d1-ba76-48ae-9e7b-6e64eef4e024
SamratEmily/Codeforces
1418A.cpp
#include<bits/stdc++.h> #define lll long long int #define ll unsigned long long int #define vl vector<ll> #define all(v) v.begin(),v.end() #define pb push_back #define pf printf #define sc scanf #define pll pair < ll, ll>...
ALGO
0.999785
3.537488
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2023-03-27T20:30: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": "e32c00b6d6e...
e896f1da-c651-476e-8a3a-e9245ecd602c
aeshghi0/developer-Portfolio-1
CPP programs/CS1B assignments/Binary search/ArraySequentialSearch.cpp
/***************************************************************************** * PROGRAMMER : <NAME> & <NAME> * STUDENT ID : 1112261 / 1103126 * CLASS : CS1B * SECTION : MW 7:30pm * Lab #5 : Binary Search * DUE DATE : 24 September 2019 ***************************************************************...
ALGO
0.999898
4.777604
{ "github_metadata": { "branch": "main", "commit_count": 31, "repo_created_at": "2022-03-25T15:18:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "158a3c0c52e...
fdeacb4f-bfa1-4a05-979f-400bc9e5ece5
ishandutta2007/codeforces-x
xellos/normal/627/A.cpp
#include <bits/stdc++.h> // iostream is too mainstream #include <cstdio> // bitch please #include <iostream> #include <algorithm> #include <cstdlib> #include <vector> #include <set> #include <map> #include <queue> #include <stack> #include <list> #include <cmath> #include <iomanip> #include <time.h> #define dibs reserv...
ALGO
0.999067
3.549229
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16: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": "3be9dcdddf20...
87996e8b-8bc7-40cb-8d78-3c20fc30e7b3
scale-snu/IDT
experiments/workloads/SPEC/app/631.deepsjeng_s/build/build_base_gcc-baseline-o2-m64.0000/make.cpp
/* Sjeng - a chess playing program Copyright (C) 2000-2005 <NAME> File: make.c Purpose: making and unmaking moves */ #include <assert.h> #include "sjeng.h" #include "bitboard.h" #include "extvars.h" #include "squares.h" #include "preproc.h" #include "state.h...
ALGO
0.936544
5.015595
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2024-04-08T06:31:53.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b324d417218...
6a61ada5-12bc-4438-9d75-88cd175a4f0a
Jcabza008/pathfinder
src/map.cpp
#include <list> #include <unordered_map> #include <utility> #include <iostream> #include <vector> #include <limits.h> #include "graph.h" #include "map.h" namespace pathfinder { Map::Map(Dimensions dim) : dimensions(dim) { this->data = std::vector<int>(this->size(), 0); }; Map::Map(std::vect...
ALGO
0.995548
3.907206
{ "github_metadata": { "branch": "master", "commit_count": 51, "repo_created_at": "2021-04-08T17:44:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5415c366c...
756d0f62-ab73-473b-bd3d-83c145c1a6e6
ishandutta2007/codeforces-s
shzhang/normal/1654/D.cpp
#include <cstdio> #include <algorithm> #include <vector> #include <set> #include <cstdlib> #include <utility> #include <cmath> #include <queue> #include <stack> #include <cstring> using namespace std; #define ll long long #ifndef ONLINE_JUDGE #define debug(format, ...) fprintf(stderr, \ "%s:%d: " format "\n", __...
ALGO
0.998959
5.102075
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:07: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": "0ec5934e1048...
dcb03715-88fe-4d0f-abbc-e82deb2b10dc
mamun-akand/Problem-Solving-List-TOPIC-WISE
STL/Map/Find() Function Map and Set with Time Complexity.cpp
#include<bits/stdc++.h> using namespace std; //================================================================= //TYPES #define ll long long int #define ld long double #define vll vector <ll> #define vld vector <ld> #define mp map <ll,ll> #define st set <ll> //FUNCTIONS #define FAST ios_base::s...
ALGO
0.99965
4.283853
{ "github_metadata": { "branch": "main", "commit_count": 58, "repo_created_at": "2022-03-26T19:55: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": "58bdd79a7b7...
b071a1e2-da0c-4bb2-a1ba-6b7e5544d846
liardanc3/algorithm
cpp/1062.cpp
#include <bits/stdc++.h> using namespace std; int N, K, visited[123]{ 0, }, mx = 0; vector<string> vect; void bt(int start, int now) { if (now == K) { int cnt = 0; for (int i = 0; i < vect.size(); i++) { string str = vect[i]; for (int j = 0; j < str.size(); j++) { char chr = str[j]; if (!visited[chr]...
ALGO
0.999888
4.105629
{ "github_metadata": { "branch": "master", "commit_count": 673, "repo_created_at": "2021-06-30T06:52:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c253c52a...
345e0ddb-bbfb-4c17-a366-7188e221cb1e
BangKartavya/LeetCode
Apply Operations to Maximize Score/main.cpp
const int N=sqrt(100000); vector<bool> isPrime(N+1, 1); vector<int> prime; long long num_idx[100000]; class Solution { public: const static int mod = 1e9 + 7; // Eratosthenes' Sieve constexpr static void Sieve() { if (!prime.empty()) return; isPrime[0] = isPrime[1] = 0; for (int i = ...
ALGO
0.999983
5.482618
{ "github_metadata": { "branch": "main", "commit_count": 552, "repo_created_at": "2023-12-13T03:55:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bac5e3011d...
702a7f3c-da52-4b53-90bd-4f35974622ea
cs2100-utec-aed-2019ii/cs-2100-pointers-BenjaminDiazGarcia
main.cpp
#include <iostream> using namespace std; void swap (int *x, int *y){ int temp = *x; *x = *y; *y = temp; } int suma (int *x, int *y){ return *x + *y; } int main(){ //1: 1 2 3 4 5 6 7 8 9 10 //2: 7 5 10 //3: T L T //4: opcion 4 *p = 45 //5: Da error, no puedes asignar un double* a char //6: int a = 20, b...
ALGO
0.997292
3.256563
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-08-22T21:38:26.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "36b88458020...
4a7626c9-aba5-4787-a0e7-f9bb274376f1
sunyujie0327/sizeyunsuan
1.cpp
#include <stdio.h> #include <stdlib.h> #include <time.h> #include<string.h> //存放运算式的结构体 struct node { char shu[13];//运算数 char op[3]; //运算符 }; //种子变换函数 int ran(int &x) { x++; return x; } //1.产生运算数 char *shu(int max, int sign5,int &x) { char str[100]; int a, i; //整数 srand(ran(x)); for (i = 0; i < max; i++) {...
ALGO
0.988288
3.360184
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-11-11T07:27:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "35536cfe5ef3...
6cba3482-4e14-4121-92ad-8df47b621686
Ronnoc/Training
_Template/Number Theory/BSGS.cpp
//BSGS离散对数 //>验题:poj3243,hdu2815,hdu5022 LL extGcd (LL a, LL b, LL &x, LL &y) { LL ret = a; if (b) { ret = extGcd (b, a % b, y, x); y -= (a / b) * x; } else x = 1, y = 0; return ret; } LL modInv (LL a, LL m) { LL x, y; extGcd(a, m, x, y); return (m + x % m) % m; } int extBSGS( int A, int B, int C ) { //A^x==...
ALGO
0.999929
3.570759
{ "github_metadata": { "branch": "master", "commit_count": 445, "repo_created_at": "2013-10-11T04:01:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c31c19a...
4b33d305-8369-4b22-a1b1-5dca6a745d3c
e-mubaraq/DSA
lectures/src/queue/queueImplementation.cpp
/************************************************************************/ /* */ /* Implementation file for queue implementation of a queue ADT */ /* */ /* The queue element type...
ALGO
0.956018
5.397964
{ "github_metadata": { "branch": "master", "commit_count": 51, "repo_created_at": "2020-01-07T12:36:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f3818679c...
2b88ad63-9c69-4aa2-a2ea-ba37c16595cd
jiyoulee/problem-solving-v1
graph/dfs/24484.cpp
/* * Title: 알고리즘 수업 - 깊이 우선 탐색 6 * Link: https://www.acmicpc.net/problem/24484 */ #include <cstdio> #include <vector> #include <algorithm> #include <functional> using namespace std; constexpr int MAX_N = 100000; long long answer; int N, M, R; long long t = 1; vector<int> G[1 + MAX_N]; bool visited[1 + MAX_N]; v...
ALGO
0.99994
4.545474
{ "github_metadata": { "branch": "main", "commit_count": 350, "repo_created_at": "2021-01-04T13:10:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "945e0edbc2...
8bfed547-f3bd-4346-b837-c9f97eb0df00
xforcevesa/pytorch-riscv64-oe24
third_party/ideep/mkl-dnn/tests/gtests/graph/unit/backend/graph_compiler/core/reference/bertBMM_ref.hpp
/******************************************************************************* * Copyright 2020-2023 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 copy of the License at * * http://...
ALGO
0.954858
6.088648
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2024-06-26T06:06:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 12, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fef8cd191df...
50c14a34-2599-4de9-8865-8a30c7869979
EdsonSillva/quadro-carrinho
Codigo.Arduino/Quadro.Carrinho/Box.Car.V2/02BoxCar/xMascaras.ino
/* *********************************************************************** * Rotinas para tratamento e geração de array com a mascara de uma letra * * Desenvolvido por <NAME> * Date: 21/07/19 *************************************************************************/ void MascararLetra(char Letra, char LetraMasc...
ALGO
0.958887
3.02809
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2022-04-20T23:28:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d1f4fd5942...
46dffb96-27b9-47f0-8b0f-218f7b3153e8
ishandutta2007/codeforces-s
solarpea/normal/346/D.cpp
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/hash_policy.hpp> using namespace std; //using namespace __gnu_pbds; #define fi first #define se second #define fill0(a) memset(a, 0, sizeof(a)) #define fill1(a) memset(a, -1, sizeof(a)) #define fillbig(a) memset(a, 63, sizeof(a)) ...
ALGO
0.999766
3.662796
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:07: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": "8150cc940551...
7e427bc0-6e90-4366-90c8-616a75f6cc37
brukernavnD/Matte3_Oblig2
main.cpp
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <iostream> #include <cmath> #include <math.h> #include "Camera.h" #include "Shaders.h" #include "VertexLoader.h" #include "VertexWriter.h" #include "glm/ext/matrix_clip_space.hpp" // Function prototypes void framebuffer_size_callback(GLFW...
TOOL
0.96294
5.401895
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-02-19T09:38: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": "b818a318e4b4...
4f7b3805-69fd-46a6-bb5e-e9419c215fd0
Sujal3013/DSA-C-
assignment2.cpp
#include <iostream> using namespace std; int min2(int x,int y){ int mini; if(x==y){ cout<<"Both integers are equal to: "; return x; }else{ if(x<y){ mini=x; }else{ mini=y; } return mini; } } int min3(int u,int v,int w){ int mini; ...
ALGO
0.999404
3.831256
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-06-04T12:52: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": "ba3601f08ba1...
7a07dc11-753b-4bed-858f-24ba38a71b69
don-garu/Algorithm
BAEKJOON/14499.cpp
// 14499 주사위 굴리기 #include <iostream> using namespace std; int dice[7]; int N, M, x, y, K; int map[21][21]; int dy[5] = { 0, 0, 0, -1, 1 }, dx[5] = { 0, 1, -1, 0, 0 }; void roll(int cmd) { switch (cmd) { case 1: dice[0] = dice[1]; dice[1] = dice[4]; dice[4] = dice[6]; dice[6] = dice[3]; dice[3] = dice[0]; ...
ALGO
0.999966
4.644521
{ "github_metadata": { "branch": "master", "commit_count": 49, "repo_created_at": "2019-07-15T23:28:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "74278d97a...
0fc5bb5a-d35a-4008-8bf8-902310e1cb61
MuhammadMagdy98/Codeforces-problems-solutions
Numbers.cpp
#include <iostream> #include <cmath> using namespace std; using ll = long long; int get(int x, int base) { int ret = 0; while (x > 0) { ret += x % base; x /= base; } return ret; } int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } int main() { int n; cin >> n; int sum = 0...
ALGO
0.99983
4.329993
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2019-08-31T01:05:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "761385f78...
84d1b3f3-8b43-442e-b3ee-5d42ecc78905
MayaMaya123/sem2lab3
BinaryHeap.h
// // Created by <NAME> on 09.06.2021. // #include "DynamicArray.h" #ifndef SEM2LAB3_BINARYHEAP_H #define SEM2LAB3_BINARYHEAP_H template<class T> class BinaryHeap { private: DynamicArray<T> dynamicArray{}; int heap_size{}; public: //упорядочивание двоичной кучи void heapify(int i) { int left_c...
ALGO
0.999081
3.749459
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2021-06-11T11:57: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": "7a0ae6ebd3...
d439cc3b-f518-4ace-85c2-a9986f9c3728
prathamp315/cse205-ds
assignments/09.10.2023/148.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 merge(vector<int> &a...
ALGO
0.999976
5.763255
{ "github_metadata": { "branch": "main", "commit_count": 22, "repo_created_at": "2023-08-07T06:11: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": "9299e28f42a...
b54bbdfe-4827-40cd-85e6-58042b4dc2d8
andrew-chen/csis352
examples/prog4main.cpp
#include <iostream> using namespace std; #include "sortedList.h" using namespace sortedListSpace; sortedList<int> func(sortedList<int> anotherlist) { return anotherlist; } void output(const sortedList<int>& list) { for (int i=0; i<list.length(); i++) cout << list[i] << ' '; // operator[] can throw out_of_...
TOOL
0.975951
5.30653
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-01-27T21:54:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fb9bb9f80c...
cad9dc16-a72b-47b8-8daa-24d6ef60d631
devFancy/KNU
algorithm/week6/6-3.cpp
#include<iostream> #include<string> #include<vector> using namespace std; // String string s1; string s2; string LCS[1001][1001]; // Main int main() { cin >> s1; cin >> s2; for (int i = 1; i <= s1.length(); i++) { for (int j = 1; j <= s2.length(); j++) { if (s1[i-1] == s2[j-1]) { LCS[i][j] = LCS[...
ALGO
0.999978
4.610887
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-01-24T01:35: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": "88c60a753a42...
2d851f3e-ce82-43a4-aca5-d85d048e23c2
ghareg/VortexFSTRotation
diag.cpp
#include "diag.h" extern "C" { void znaupd_(int* ido, char* bmat, int* n, char* which, int* nev, double* tol, void* resid, int* ncv, void* v, int* ldv, int* iparam, int* ipntr, void* workd, void* workl, int* lworkl, double* rwork, int* info); void zneupd_(int* rvec, char* A, int* select, void* d, void* z, int...
ALGO
0.998835
5.560255
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2018-03-01T20: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": "f3fa1f2e03...
ab992647-024e-4d3b-a811-010b0a37071d
touhidul2100/codeforces
B_Three_Threadlets.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define vl vector<ll> #define ff first #define ss second #define pb push_back #define pl pair<ll, ll> #define vpl vector<pl> #define fileread(x) freopen(x, "r", stdin) #define filewrite(x) freopen(x, "w", stdout) #define read(_a, _n) \ ...
ALGO
0.999962
3.746636
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2024-02-04T11:51: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": "62ff41b217ef...
f1adfc36-1d9c-4406-9519-7b1d2c12da6e
hmazhar/physbam_public
PhysBAM_Tools/Matrices/MATRIX.h
//##################################################################### // Copyright 2007, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### // Cl...
ALGO
0.988966
5.018661
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2014-04-02T21:48:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 30, "forks": 13, "issues": 2, "pull_requests": 1 }, "file_meta": { "content_id": "e8214d8...
4b84509d-892f-4fe9-8a51-43e49c20b6b7
Superbestron/CP-Journey
CP4/Introduction/Intermediate/Chess/chess.cpp
#include <bits/stdc++.h> using namespace std; class pos { public: int x; int y; pos(int x, int y) : x(x), y(y) {} }; bool is_valid(int x, int y) { return !(x > 8 || x < 1 || y > 8 || y < 1); } char c(int num) { return (char) num + 'A' - 1; } int main() { int n; cin >> n; for(int i...
ALGO
0.9995
4.176173
{ "github_metadata": { "branch": "main", "commit_count": 42, "repo_created_at": "2022-10-28T13:51:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "afd3a2fdd7d...
2a9639fb-5d46-41c8-bc6a-119799fe0503
Pulakesh5/CP
Practice Problems/C_Alternating_Subsequence.cpp
#include <bits/stdc++.h> using namespace std; int main() { int TC; cin >> TC; while (TC--) { int n; cin >> n; long long arr[n]; for (int i = 0; i < n; i++) cin >> arr[i]; bool pos = (arr[0] > 0); long long maxSum = 0, maxElement; fo...
ALGO
0.999938
4.628571
{ "github_metadata": { "branch": "main", "commit_count": 51, "repo_created_at": "2023-08-16T14:53:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "995955a1150...
7fc29011-1dd0-4735-a00a-768d55799b6f
Satvikdeep/DSA_cpp
Striver's A2Z/3. Arrays/Easy/remove_duplicates.cpp
#include <iostream> using namespace std; #include <set> // brute force - O(NlogN) int removeDuplicates(vector<int>& nums) { set<int> st; for (int i:nums){ st.insert(i); } int index =0; for (auto j:st){ nums[index] = j; index++; } cout << st.size() << ", nums = "; ...
ALGO
0.999751
5.285616
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-07-08T18:24: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": "beaeb503d66e...
c0b0ba45-62a3-444f-a4b7-385f74555b75
chan9934/Algorithm
Project1/NBA 농구 - 복사본.cpp
//#include<bits/stdc++.h> //#pragma warning (disable:4996) //using namespace std; // //int Goal, Team, Hour, Seconds, win; //int Team1Hour, Team1Seconds, Team2Hour, Team2Seconds; // //string Time; // //vector<pair<int, string>>V; //map<int, pair<int, int>>mp; // //int Score[2]; // //int main() //{ // cin >> Goal; // fo...
ALGO
0.999385
3.822048
{ "github_metadata": { "branch": "main", "commit_count": 50, "repo_created_at": "2022-08-29T19:56: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": "803fa11ca14...
a0828240-333f-4c92-a2dc-8aeee149cba7
dominic-myb/learning-cpp
string-functions/palindrome.cpp
/* * Author: <NAME> * Last update: May. 12, 2025 * Description: Palindrome Checker * * add a input validation like nasa bayabasan -> nasabayabasan * a function that removes spaces before comparing */ #include <cctype> #include <iostream> #include <string> std::string convertToLower(const std::string &s) { st...
ALGO
0.990986
5.726466
{ "github_metadata": { "branch": "main", "commit_count": 57, "repo_created_at": "2024-06-27T18:23: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": "bf629be1a34...
88231d4f-8212-471a-87d9-04b4cee5a8e2
Pecneb/CodingStudies
12_het/BinaryTree/elsofeladat.cpp
#include <climits> #include "bintree.h" inline void tab(int db) { for(int i=0; i<db; i++) { cout << '\t'; } } csucs* ujCsucs(int ertek) { csucs* uj = new csucs; uj->egesz = ertek; uj->bal = uj->jobb = NULL; return uj; } void kiir(csucs* cs, int szint) { if(cs == NULL) return; cout << cs->egesz << endl; if...
ALGO
0.998199
3.438603
{ "github_metadata": { "branch": "main", "commit_count": 47, "repo_created_at": "2021-02-01T14:20:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cd9e9bda662...
30c48aba-908f-4e00-b964-84d12ac6c14c
Raph2ll/Intelitrader2
criptografia_do_navio.cpp
#include <iostream> #include <string> #include <bitset> #include <stdexcept> using namespace std; char swapHalfBytes(char byte) { return ((byte & 0xF0) >> 4) | ((byte & 0x0F) << 4); } char swapLastTwoBits(char byte) { return byte ^ 0b11; } string binaryToAscii(const string &binaryStr) { string asciiStr;...
ALGO
0.998724
5.556991
{ "github_metadata": { "branch": "origin", "commit_count": 11, "repo_created_at": "2024-06-06T17:00: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": "1989cf5d6...
72904084-2ce6-4143-9a91-90c3ce756c17
Pang-GJ/optim-gemm
aarch64/compare_matrices.cpp
#define abs(x) ((x) < 0.0 ? -(x) : (x)) #include <stdio.h> float compare_matrices(int m, int n, float *a, float *b) { #define A(i, j) a[(i) * n + (j)] #define B(i, j) b[(i) * n + (j)] // printf("\n---result----\n"); // print_matrix(m, n, a, lda); // printf("\n-------\n"); // print_matrix(m, n, b, ...
ALGO
0.999356
3.791321
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2024-02-18T12:43:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f9ad22c908b...
8b304092-633e-4162-b954-e4c2887eba45
nayoungk1m/CSE2010
week12/binary_searcch/binary_search.cpp
// Practice 12. Search #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <sstream> #include <tuple> #include <vector> #include <utility> using namespace std; const char BINARY_SEARCH = 'B'; const char PERFECT_SQUARE = 'P'; int binarySearch(vector<int> arr, int x) { int start = 0; ...
ALGO
0.98889
4.115275
{ "github_metadata": { "branch": "main", "commit_count": 32, "repo_created_at": "2025-03-11T16:56: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": "511bcc665fd...
27cf057b-7ac7-4d75-9c68-69efb91cc17f
Spir1t/MatrixCalculator
src/Matrix.h
/*! * @file Matrix.h * @brief Описание функций для работы с матрицами */ #ifndef MATRIXES_MATRIX_H #define MATRIXES_MATRIX_H #include <vector> #include <stdexcept> /*! * @class Matrix * @brief Класс для работы с матрицами */ class Matrix { private: std::vector<std::vector<double>> matrix; //!< Двумерный ве...
TOOL
0.926232
6.010841
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2025-06-15T18:02:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "70f49bf7784...