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
c951f341-2aba-4297-b682-74256b641cbf
vvvv/vvvv-sdk
vvvv45/addonpack/src/nodes/plugins/2d/CVStructuralAnalysis/Lib/BinSizeUtils.h
#pragma once using namespace VVVV::PluginInterfaces::V1; using namespace System::Collections::Generic; using namespace System; namespace VVVV { namespace Utils { ref class BinSizeUtils { public: BinSizeUtils(void); static List<int>^ BinSizeUtils::CalculateBins(IPluginHost^ Host, IValueIn^ BinInput...
TOOL
0.926047
6.185166
{ "github_metadata": { "branch": "develop", "commit_count": 9429, "repo_created_at": "2011-10-19T14:20:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 241, "forks": 190, "issues": 0, "pull_requests": 2 }, "file_meta": { "content_id": "e87...
5b0173a2-8c4b-44ac-8c34-e6693828ce50
mazedrupok/lightoj
1271.cpp
#include <bits/stdc++.h> #define ll long long #define sc(N) scanf (" %d", &N) #define scc(N) scanf (" %c", &N) #define scs(N) scanf (" %s", N) #define For(i,N) for (int i = 0; i < N; i++) #define pb push_back using namespace std; vector <int> g[50005]; bool seen[50005]; int ara[50005], par[50005], n; void bfs (int s...
ALGO
0.999971
4.397045
{ "github_metadata": { "branch": "master", "commit_count": 185, "repo_created_at": "2015-01-29T05:03:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b36b823c...
6531e76d-12e4-4fa4-b245-64d74814f174
Adward-R/CodeBox
LeetCode/search-for-a-range.cpp
// // main.cpp // search-for-a-range // // Created by Adward on 15/8/3. // Copyright (c) 2015年 Eddie. All rights reserved. // #include <iostream> #include <vector> #include <algorithm> using namespace std; class Solution { public: vector<int> searchRange(vector<int>& nums, int target) { vector<int> re...
ALGO
0.999916
5.701425
{ "github_metadata": { "branch": "master", "commit_count": 355, "repo_created_at": "2014-11-23T16:36:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6fc1cbb9...
d5da69bc-833a-4850-bff7-12fb2612cda3
maxenceleguery/jare
src/BVH.hpp
#pragma once #include <tuple> #include "Vector.hpp" #include "Triangle.hpp" #include "Mesh.hpp" #include "utils/cuda_ready.hpp" class BoundingBox { private: Vector<float> min = Vector<float>(1, 1, 1)*INFINITY; Vector<float> max = Vector<float>(1, 1, 1)*-INFINITY; public: __host__ __...
ALGO
0.993077
6.686716
{ "github_metadata": { "branch": "master", "commit_count": 37, "repo_created_at": "2023-03-29T08:31:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1850f02eb...
5ab7e392-c324-4d09-ac48-e20c6e30debb
showmic96/Online-Judge-Solution
UVA/10986/6819241_AC_210ms_0kB.cpp
#include<bits/stdc++.h> using namespace std; const int MAX = 100001 , INF = (int)1e9; int a , b; int in1 , in2 , c , n , m , s , t; int cost[MAX+5]; map<int,int>node_cost; vector<pair<int , int> >node[MAX+5]; pair<int,int>temp; long long total = 0 , total_cost; void setUp(int start) { for(int i=1;i<=MAX;i++)cos...
ALGO
0.999579
4.447823
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2019-12-26T03:05:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fa0d5c2e7...
ba475ad3-d523-4e6c-b984-3b73c7e24ebb
SkTsKtSkT1/shuabrushsomelc
simple/leetcode228.cpp
// // Created by skt on 2023/8/26. // #include "leetcode228.h" std::vector<std::string> leetcode228::summaryRanges(std::vector<int> &nums) { std::vector<std::string> res; if(nums.size() == 0){ return res; } if(nums.size() == 1){ res.push_back(std::to_string(nums[0])); return re...
ALGO
0.999685
6.16971
{ "github_metadata": { "branch": "master", "commit_count": 286, "repo_created_at": "2022-08-25T15:50:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "0a0f9365...
8473c41f-e2b8-4964-9a0b-ebf88e8e4108
nearrin/CompetitiveProgrammingSolutions
大视野在线测评/1002.cpp
#include<cstdio> #include<algorithm> #include<vector> #include<cstring> #include<iostream> #include<iomanip> #define sf scanf #define pf printf #define fr freopen #define ps for(;;) #define lp(i,a,b) for(int i=a;i<=b;++i) #define rp(i,a,b) for(int i=a;i>=b;--i) using namespace std; namespace gas{ long double fbs(do...
ALGO
0.999959
3.262446
{ "github_metadata": { "branch": "master", "commit_count": 61, "repo_created_at": "2021-05-15T23:05: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": "d18eb0803...
c480f9a3-86ce-464e-9f25-21c13e97b3d8
borrislevin/TIL
Cpp STL, Modern/DAY2/4_1_reverse_iterator.cpp
// 4_1_reverse_iterator.cpp #include <vector> #include <algorithm> #include "show.h" int main() { std::vector<int> v = { 1,2,3,4,5,6,7,8,9,10 }; auto p1 = v.begin(); // '1'을 가리킴 auto p2 = v.end(); // '10' 다음을 가리킴 // 핵심을 아래 2줄 auto p3 = v.rbegin(); // '10'을 가리킴 auto p4 = v.rend(); // '1' 의 하나 앞 std::cout ...
ALGO
0.987212
4.753377
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2020-10-01T14:09: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": "79b8b8d2e2...
c60541d1-5ae4-4e95-839b-73b2a84ada72
cdh981009/Algorithm
ucpc/2022/F.cpp
#include <bits/stdc++.h> using namespace std; #define INF (1e9 + 7) #define fi first #define se second #define rep(i, a, b) for (int i = (a); i < (b); ++i) #define rep_(i, a, b) for (int i = (a); i <= (b); ++i) #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define FOR_(i, a, b) for (int i = (a); i <= (b); ++i)...
ALGO
0.999984
4.376394
{ "github_metadata": { "branch": "master", "commit_count": 850, "repo_created_at": "2020-02-16T08:17: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": "0139501a...
511e642c-e8e1-4481-987d-a2b59a77914e
HariAakash646/CompetitiveProgramming
DynamicProgramming/constanze_machine_cf.cpp
#include <bits/stdc++.h> #include <iostream> using namespace std; #define scd(t) scanf("%d", &t) #define scld(t) scanf("%ld", &t) #define sclld(t) scanf("%lld", &t) #define scc(t) scanf("%c", &t) #define scs(t) scanf("%s", t) #define scf(t) scanf("%f", &t) #define sclf(t) scanf("%lf", &t) #define forr(i, j, k) for (i...
ALGO
0.99998
3.679688
{ "github_metadata": { "branch": "main", "commit_count": 123, "repo_created_at": "2022-09-08T07:58:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "04ebf0747e...
9ebb49f8-44b5-4c32-8cd3-416c122fc32c
PradeepSahhu/100-Day_DSA_Challenge
Array_medium/rearrage_negative_positive_elements.cpp
#include <iostream> #include <bits/stdc++.h> #include <chrono> using namespace std; auto start = chrono::steady_clock::now(); // void rearrage_elements(vector<int> &v) // { // vector<int> ne; // vector<int> po; // for (int i = 0; i < v.size(); i++) // { // if (v[i] < 0) // { // ...
ALGO
0.999986
4.974391
{ "github_metadata": { "branch": "main", "commit_count": 248, "repo_created_at": "2024-01-19T18:23:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "afc4d75032...
34922732-0dfa-4538-89aa-0b8494bb33f4
panzg123/acm
HDOJ_1026_main.cpp
#include<iostream> #include<queue> #include<stack> using namespace std; struct Node { int x,y,cost; int prex,prey; }; int N,M; char maze[105][105]; Node path[105][105]; int dir[4][2]= {{-1,0},{1,0},{0,-1},{0,1}}; int isOk(int x,int y) { if(x>=0&&x<N&&y>=0&&y<M&&maze[x][y]!='X') return 1; else...
ALGO
0.999837
3.227604
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2014-08-21T09:37:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "143a15a1d7...
08939ce9-5e57-48a5-83cb-22a19c12ff17
Guangwoen/MLPA
src/RobustRegression.cpp
// // Created by 崔光远 on 2024/9/25. // #include <ClpSimplex.hpp> #include <CoinModel.hpp> #include <CoinPackedMatrix.hpp> #include "RobustRegression.h" namespace mlpa::reg { RobustRegression::RobustRegression(Eigen::MatrixXd X, Eigen::VectorXd y, const unsigned k=1, const unsigned t_k=1) : RegressionBase(std:...
ALGO
0.978393
6.340988
{ "github_metadata": { "branch": "main", "commit_count": 20, "repo_created_at": "2024-10-05T09:20: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": "7f4eecec06f...
713f1d62-2074-473a-8ade-9b5863f7d447
zhu-he/ACM-Source
CDOJ/1181.cpp
#include <cstdio> #include <cstring> const int mod = 1000000007; long long catalan[501][501]; int p[500]; int l[500]; int r[500]; int t[500]; int color[500]; int colorcnt[500]; int colorreduce[500]; int sz; void calcCatalan() { for (int i = 0; i < 500; ++i) { catalan[0][i] = 1; } catalan[1][0] = catalan[1][1] =...
ALGO
0.999856
4.034153
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2015-04-06T06:52: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": "5dbef62ab...
ff415ed3-08d1-42fb-9eb3-a21db4ebb40f
TopModLab/Unfolding
src/Utils/utils.hpp
#ifndef UTILS_HPP #define UTILS_HPP #include "common.h" #include <QVector3D> #include <QtGui/QColor> namespace Utils { template <typename T> inline T Lerp(const T &v1, const T &v2, double t) { return v1 * (1 - t) + v2 * t; } template <typename Container> Container interpolate(Container c0, Container c1, double alph...
TOOL
0.949197
5.834367
{ "github_metadata": { "branch": "master", "commit_count": 586, "repo_created_at": "2015-03-06T17:46:37.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 12, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "61c8bcb1...
dd1f73b0-084a-4b0d-87c2-fb6f84e2d793
Sujan804/Competitive-Programing
Codeforces-Problem B/577B.cpp
/** PUSH YOURSELF TO THE LIMIT**/ /*** <NAME> ***/ /**** Updated: 12-04-21||11:25 **/ #include<bits/stdc++.h> #define IO std::ios_base::sync_with_stdio(false);std::cin.tie(nullptr);cout.tie(nullptr); #define endl "\n" #define l64 __int64 #define mod 1000000007 #define maxN 1000000 #define PB push_back #define rsort(vec...
ALGO
0.999988
3.537975
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2020-05-14T06:58: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": "c025e8faf...
6a4ce9be-0316-4ed9-a776-03ed053cb661
hsheric0210/Algorithm-Coding
cpp/AJIT-new/고급-2/나무 자르기 #80048/src.cpp
/* 문제명: 나무자르기 (Cutting Sticks) 교실: 고급-2 */ #include <iostream> #include <algorithm> using namespace std; int L, N, i, j, k, l, m, n, o, p, q, r, s, P[55], DP[55][55]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> L >> N; if (N < 2) { // no need to calculate cout << L; return 0; ...
ALGO
0.999956
3.645555
{ "github_metadata": { "branch": "main", "commit_count": 123, "repo_created_at": "2022-08-21T16:23: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": "54f73acce7...
5071f08b-f053-4874-9121-8eef85810e51
andy489/Data_Structures_and_Algorithms
2 – Data Structures/Stack/Valid Parentheses.cpp
// https://leetcode.com/problems/valid-parentheses/ class Solution { bool pair(char l, char r) { if (l == '(' && r == ')') { return true; } if (l == '[' && r == ']') { return true; } if (l == '{' && r == '}') { return true; } ...
ALGO
0.995204
6.813508
{ "github_metadata": { "branch": "master", "commit_count": 4429, "repo_created_at": "2019-07-24T12:33:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 30, "forks": 9, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "59c6d6...
d5778465-91b7-43ad-8a22-bfc2c779b95f
fador/mineserver
src/worldgen/mapgen.cpp
/* Copyright (c) 2011, The Mineserver Project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
TOOL
0.919067
4.952292
{ "github_metadata": { "branch": "master", "commit_count": 2593, "repo_created_at": "2010-10-12T14:34:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 319, "forks": 98, "issues": 10, "pull_requests": 1 }, "file_meta": { "content_id": "686...
e9e55b7a-cffb-40a0-b5cf-3b4999f0801d
wjwhhhhhh/ACM_
杂项/顶牛.cpp
#include <bits/stdc++.h> #define dug(x) cerr << "死了吧小丑" << x << endl using namespace std; using i64 = long long; template <class T> void chkmax(T &a, T b) { a > b ? (a = a) : (a = b); } template <class T> void chkmin(T &a, T b) { a > b ? (a = b) : (a = a); } signed main() { ios::sync_with_stdio(false); ...
ALGO
0.999615
3.769293
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-03-12T06:17:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ad1309335e2d...
8a30aaf5-2acd-40d7-94f2-a4e385fd2838
wandin/Cpp-Data-Sctructures-and-Algorithms
Array/ArrayADT.cpp
#include<iostream> using namespace std; class IllegalParamvalue { // CLASS FOR THROWING AN ERROR MESSAGE IF WE WILL private: string message; public: IllegalParamvalue(string msg) { message = msg; } void outputMessage() { cout<<message<<endl; } }; template<class T> class ArrayADT { ...
ALGO
0.997615
4.675699
{ "github_metadata": { "branch": "master", "commit_count": 60, "repo_created_at": "2024-03-13T15:08: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": "c093cf336...
f541740d-55f6-4d1f-94fb-76dbd1c72cf3
hmazhar/physbam_public
PhysBAM_Geometry/Grids_Dyadic_Advection_Collidable/ADVECTION_SEMI_LAGRANGIAN_COLLIDABLE_CELL_DYADIC.h
//##################################################################### // Copyright 2004-2006, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##############################################...
ALGO
0.999615
6.688726
{ "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": "ed3db8e...
645c16a8-b346-40e2-a6aa-6a136908b14d
pidddgy/competitive-programming
codeforces/142A.cpp
// https://codeforces.com/contest/142/problem/A #include <bits/stdc++.h> using namespace std; // #define cerr if(false) cerr #define watch(x) cerr << (#x) << " is " << (x) << endl; #define endl '\n' #define ld long double #define int long long #define pii pair<int, int> #define fi first #define se second #define sz(a)...
ALGO
0.99997
3.883466
{ "github_metadata": { "branch": "master", "commit_count": 87, "repo_created_at": "2018-07-01T19:03:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "09cb10329...
42b56dfa-6962-4f88-8d9c-3d10cfbdcb52
suraj021/Codeforces-Solutions
cf600C.cpp
#include <bits/stdc++.h> using namespace std; char ans[200005]; int freq[10000]; bool exist[27]; int main(){ memset( freq, 0, sizeof freq ); memset( exist, 0, sizeof exist ); string s; cin >> s; for( int i= 0; i< (int)s.length(); ++i ){ freq[ s[i] - 'a' ]++; exist[ s[i] - 'a' ]= true; } //for( int i=...
ALGO
0.99999
3.025918
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2015-06-21T05:33:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e70bd85fa...
076eff93-3a19-4c72-8d5b-28c338246455
artndx/game_server
src/collision_detector.h
#pragma once #include "geom.h" #include <algorithm> #include <vector> namespace collision_detector { using Point2D = model::PairDouble; struct CollectionResult { bool IsCollected(double collect_radius) const { return proj_ratio >= 0 && proj_ratio <= 1 && sq_distance <= collect_radius * collect_radius; ...
ALGO
0.991232
4.871
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-11-15T17:30: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": "c82e51b6898c...
c19375ff-0c03-4235-87d6-b0930557da17
Astrogeek77/Leetcode_GFG_solutions
0019-remove-nth-node-from-end-of-list/0019-remove-nth-node-from-end-of-list.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: // ListNode* rem...
ALGO
0.999981
5.699089
{ "github_metadata": { "branch": "main", "commit_count": 3076, "repo_created_at": "2022-04-06T17:37:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e4b1a4db3...
4843d32b-9a67-4592-84ee-f629a5feb1bc
fuz-woo/PALISADE
src/core/lib/math/transfrm.cpp
/* * @file transfrm.cpp This file contains the linear transform interface functionality. * @author TPOC: <EMAIL> * * @copyright Copyright (c) 2017, New Jersey Institute of Technology (NJIT) * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted ...
ALGO
0.967956
3.260698
{ "github_metadata": { "branch": "master", "commit_count": 31, "repo_created_at": "2019-02-26T03:24:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8351bf079...
a072a3d7-f88d-46c0-8e58-106dcc1dd64b
dhgus110/CodingTest
programmers/level1/카_키패드누르기.cpp
#include <string> #include <vector> #include <tuple> #include <iostream> using namespace std; /* string solution(vector<int> numbers, string hand) { string answer = ""; int rightH[2] = {3, 0}; int leftH[2] = {3, 2}; int key[4][3] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, ...
ALGO
0.999994
5.173321
{ "github_metadata": { "branch": "master", "commit_count": 307, "repo_created_at": "2021-06-04T08:53:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "39ba49b8...
7a6ecfc7-74a3-4b6f-b25a-459e7cebf1ba
J-e-e-t/CSES-solution
Range Query/13.Subarray_Sum_Queries.cpp
/* Subarray Sum Queries Task Submit Results Statistics Time limit: 1.00 s Memory limit: 512 MB There is an array consisting of n integers. Some values of the array will be updated, and after each update, your task is to report the maximum subarray sum in the array. Input The first input line contains int...
ALGO
0.999896
4.995656
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2022-12-15T11:26:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "78b7701dca7...
79a26a89-66a9-4d55-9924-d1e25a063de9
kmv1712/learn_cpp
douson_milkle/fifth_part/hangman.cpp
// Виселица // Классическая игра "Виселица" #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> #include <cctype> using namespace std; char getGuess(); int main() { // полгоовка const int MAX_WRONG = 8;// максимально допустимое количество ошибок vector<string> word...
TOOL
0.986137
3.318979
{ "github_metadata": { "branch": "master", "commit_count": 74, "repo_created_at": "2020-08-19T15:44: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": "620c3865e...
ca53343c-e34d-4920-bfd4-8e44ca7b17f1
amarmaduke/ua-contest
Fall-2018/mmorpg/solution.cpp
#include <iostream> #include <queue> #include <set> #include <vector> #include <cstdio> using namespace std; int nextPacket; vector<int> generatedSeqeunces; string randstr() { string s; int len = rand() % 20 + 1; for(int i = 0; i < len; ++i) { s += (char)((rand() % 26) + 'a'); } ret...
ALGO
0.913571
4.177657
{ "github_metadata": { "branch": "master", "commit_count": 188, "repo_created_at": "2015-04-06T18:28: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": "0158157d...
7bb370df-d788-4f55-b299-fbe2dc03bc69
bluebambu/Leetcode_cpp
695. Max Area of Island/695. Max Area of Island/_ConsoleApplication1.cpp
// _template4.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <stdlib.h> #include <math.h> #include <list> #include <vector> #include <algorithm> // std::for_each #include <unordered_map> #include <queue> #include <stack> #include <unordered_set> #incl...
ALGO
0.998702
5.158849
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2020-05-03T00:19: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": "b366484faa...
4c4b2c77-d1b6-41db-bcf3-13ed309f9d03
omkaranu04/CP_DSA
GOC CDC Series/C31_2024/perfect_jumps.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long int #define endl "\n" const int mod = 1e9 + 7; bool check(ll x, ll y, ll n, ll m) { return x >= 0 && x <= n && y >= 0 && y <= m; } void solve() { ll n, m, x, y, d; cin >> n >> m >> x >> y >> d; if (d == 0) { cout << ((x == 0 ...
ALGO
0.99996
4.57612
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2025-01-09T08:35: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": "e658e92f9...
9740eaeb-0644-4583-8b26-ba46c68498cf
barisCanCoskun/DSA_using_C_and_Cpp
05Section8-Strings/07Check2StringsAnagram/main.cpp
#include<iostream> #include<string.h> #define SMALL_LETTERS_NUMBERS 26 #define MIN_SMALL_LETTERS 97 bool CheckAnagram(const char str1[], const char str2[]); int main() { char string1[] = "decimal"; char string2[] = "medical"; if(CheckAnagram(string1, string2)) std::cout << "The strings are anagra...
ALGO
0.999708
4.439206
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-08-15T09:12: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": "44166b797bdb...
9a224e92-e728-43bd-9951-06aef0e06373
sdberardinelli/polyfft
PolyFFT.experiment/Poly.hpp
/******************************************************************************* * Filename : Poly.h * Source File(s): Poly.cpp * Description : * Authors(s) : * Date Created : * Date Modified : * Modifier(s) : *******************************************************************************/ #ifn...
TOOL
0.943375
5.339818
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2014-05-06T03:57: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": "ac8f8b3d64...
51d29517-c1c5-4c90-a05c-d7b22c704438
EmptyDust/Algorithm-Codes-and-writeups
codes/-0x30_competition/-0x33_codeforces/EPIC2024/F.cpp
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define allr(x) (x).rbegin(), (x).rend() const char nl = '\n'; typedef long long ll; typedef long double ld; using namespace std; const int inf = 1e9; void solve() { int n; cin >> n; vector<int> a(n); for (int i = 0; i < n; i++) cin >>...
ALGO
0.999531
4.225488
{ "github_metadata": { "branch": "main", "commit_count": 172, "repo_created_at": "2023-11-03T02:38:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "31643fb438...
e553a48f-9d0a-4c65-ab16-ef2615fde64c
Leet-Us-Code/DSA-A-Z-Practice
Sid's Levels/Level - 1/Backtracking/PrintAbbreviations.cpp
//<NAME> //<NAME> //<NAME> //<NAME>, <NAME>, <NAME>, <NAME> #include<bits/stdc++.h> using namespace std; void printAb(string s, string answerSoFar, int count, int i) { if(i == s.length()) { if(count == 0)//if the count is zero we need not include the count in the answer cout << answerSoFar <...
ALGO
0.999979
3.964531
{ "github_metadata": { "branch": "main", "commit_count": 837, "repo_created_at": "2020-11-09T10:25:34.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 23, "forks": 7, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0d6ddf5722...
d11f7457-1660-454f-a040-12f284f941ac
SIDLAD/CC
contests/Refact.ai Match 1 (Codeforces Round 985, Div. 1 + Div. 2)/E_Common_Generator.cpp
#include <bits/stdc++.h> const long double EPS = 1e-7; const long long int M = (long long int) 1e9 + 7;//998'244'353; using namespace std; //insert policy here //insert mintcode here #if defined (ONLINE_JUDGE) || !__has_include (</home/sidlad/Desktop/Coding Folder/c and cpp codes/Debug.h>) void _exe() {} temp...
ALGO
0.999822
4.098036
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2023-09-09T07:49:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "883e73635b2...
28e57c9a-1a8d-4b14-8b36-b020d8fffab9
fmidev/rack
src/product/EchoTopOp.h
/* MIT License Copyright (c) 2024 FMI Open Development / <NAME>, <EMAIL> 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...
ALGO
0.995239
7.029733
{ "github_metadata": { "branch": "main", "commit_count": 1284, "repo_created_at": "2016-10-03T07:26:29.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 38, "forks": 6, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "6dde1109b...
d80e2da2-24d5-496f-9bf4-0039a20173c9
lmmqxyx404/PAT_A_Level
1022-copy/main.cpp
#include "bits/stdc++.h" using namespace std; unordered_map<string, set<string>> authorToId, yearToId, titleToId, publisherToId; map<string, string> idToKeyword; int n, m, tmp; string id, title, author, year, keyword, publisher, query; set<string> ans; void Process(unordered_map<string, set<string>> &index, string &qu...
ALGO
0.997635
3.901264
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2022-08-30T13:14: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": "868bd4f85e...
c90ace5b-10fa-49ea-a18a-6586e024c474
drtran83/Cplusplus3
LinkedLists-Source.cpp
/* Week 4, Assignment 1: Linked List Part 1 Design your own linked list class that works as a template class. It should provide member functions for appending, inserting and deleting nodes. The destructor should destroy the list. The class should also provide a member function that will display the contents of the ...
ALGO
0.996403
5.612142
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2018-04-14T20:49: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": "84e40e530e...
b347b545-7e56-4449-8c91-e9bd6de12973
wuzoo/Solving_problem
백준/골드/1967. 트리의 지름/1967.cpp
#include <bits/stdc++.h> using namespace std; int n; vector<pair<int, int>> graph[10001]; int visited[10001]; int bfs(int v){ queue<pair<int, int>> q; q.push({v, 0}); visited[v] = 1; int len = 0; while(!q.empty()){ int cur = q.front().first; int dist = q.front().second; ...
ALGO
0.999556
3.940441
{ "github_metadata": { "branch": "main", "commit_count": 541, "repo_created_at": "2023-10-25T08:43:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ae1bc0c366...
5dac0583-482a-4ad3-b97f-5d36322bf036
wystephen/ComplexityPositioning
GraphOptimization/gtsam_src/PDR_UWB_Robust.cpp
// // Created by steve on 1/5/19. // #include <iostream> #include <fstream> #include <thread> #include <AWF.h> #include "AWF.h" #include "BSE.h" #include <Eigen/Eigen> #include <gtsam/slam/PriorFactor.h> #include <gtsam/slam/BetweenFactor.h> #include <gtsam/geometry/Pose2.h> #include <gtsam/nonlinear/ISAM2....
ALGO
0.965774
4.40119
{ "github_metadata": { "branch": "master", "commit_count": 932, "repo_created_at": "2018-01-18T06:06:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 2, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "d83e18cd...
07b0936b-98ec-42f0-8b79-8271dd245f7d
AndySomogyi/chombo
versions/3.0/lib/src/EBAMRTools/EBCoarseAverage.cpp
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif // dtgraves fri aug 17, 2001 #include "EBCoarseAverage.H" #include "EBAverageF_F.H...
ALGO
0.936094
5.213287
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2015-03-07T20:20:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9fbfb1c19a...
ee1653c3-5133-43e7-a8d7-1a8c9c214f9a
Kawser-nerd/CLCDSA
Source Codes/AtCoder/arc096/A/4351024.cpp
#include <iostream> #include <cstdlib> #include <algorithm> #include <array> #include <bitset> #include <list> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef long long lint; lint solve(lint a, lint b, lint c, lint x, lint y){ lint price = 1LL<<32; ...
ALGO
0.999727
3.593015
{ "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": "6a9e0ef1...
e76981c1-3145-4ed9-a766-160f13c1c62f
GraphProcessor/LocalityBasedGraphAlgo
src/deprecated/evaluation_metrics/modularity.h
// // Created by cheyulin on 5/16/16. // #ifndef OCD_EVALUATION_YCHE_MODULARITY_H #define OCD_EVALUATION_YCHE_MODULARITY_H #include "input_output_handler.h" namespace yche { using namespace boost; using namespace std; constexpr double PRECISION = 0.0001; template<typename CoefficientFunc> class ...
ALGO
0.98493
5.797608
{ "github_metadata": { "branch": "master", "commit_count": 105, "repo_created_at": "2016-12-20T02:45:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 2, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "32d98a44f...
3a91df3d-7b1e-43a7-9506-b8207f3e0e89
nihuiping08/ACM
字符串/AC自动机/动态/hdu 2896 病毒侵袭.cpp
/* 题目: 给出n个病毒的特征,再给出m个网页的信息,输出这m个网页中分别有哪些病毒特征, 并输出有多少个网页中毒 */ #include <cstdio> #include <iostream> #include <cstring> using namespace std; char vir[202],str[10005]; bool use[505]; int n,m; int head,tail; struct trie { int id; trie *fail,*next[128]; trie() { memset(next,NULL,sizeof(...
ALGO
0.999925
3.342495
{ "github_metadata": { "branch": "master", "commit_count": 109, "repo_created_at": "2013-11-30T15:45:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d8e7775b...
f7763f22-0282-4d0d-b9d4-1b6e020bac05
Divyam-11/Leetcode
2665-minimum-time-to-repair-cars/minimum-time-to-repair-cars.cpp
class Solution { bool isValid(vector<int> &ranks, long long k, int cars) { long long total_cars = 0; for (int i = 0; i < ranks.size(); i++) { long long temp = (long long)sqrt((k / ranks[i])); total_cars += temp; } return total_cars >= (long long)ca...
ALGO
0.999966
5.322928
{ "github_metadata": { "branch": "main", "commit_count": 896, "repo_created_at": "2024-02-04T08:25: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": "5a4178fe3b...
f1a379ad-d583-4e0e-be7f-a684418e901b
AsterNighT/OI-Package
DS&Algorithm-Models/字符串处理/后缀自动机/3998 弦论 SAM好题.cpp
#include <iostream> #include <cstdlib> #include <cstdio> #include <algorithm> #include <string> #include <cstring> #include <cmath> #include <map> #include <stack> #include <set> #include <vector> #include <queue> #include <time.h> #define eps 10e-7 #define INF 0x3f3f3f3f #define MOD 1000000007 #define rep0(j,n) for(in...
ALGO
0.999956
3.263694
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2017-03-05T06:38:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2a8fe287c...
58e2c0e8-2573-4c19-b744-6d5768d996a8
rainbow-auto/rainbow-codes
Luogu/AT_arc105_c.cpp
#include <bits/stdc++.h> // #pragma GCC optimize(2) using i64 = long long; using f64 = long double; #define fastread std::ios::sync_with_stdio (false); std::cin.tie(nullptr); #define rep(QWQ, qwq, qaq) for (i64 QWQ = (qwq); (QWQ) <= (qaq); QWQ++) #define per(QWQ, qwq, qaq) for (i64 QWQ = (qwq); (QWQ) >= (qaq); QWQ--...
ALGO
0.999987
3.419541
{ "github_metadata": { "branch": "master", "commit_count": 749, "repo_created_at": "2024-09-07T02:10:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "20e2c8a3...
e3ad7fe6-efdc-4b13-a2df-9d17da061fcd
shaikhikram04/DSA-with-Cpp
Binary Tree/top_view.cpp
// https://practice.geeksforgeeks.org/problems/top-view-of-binary-tree/1 #include <bits/stdc++.h> using namespace std; struct Node { int data; Node* left; Node* right; }; class Solution { public: //Function to return a list of nodes visible from the top view //from left to right in Binary Tr...
ALGO
0.999995
4.747643
{ "github_metadata": { "branch": "main", "commit_count": 103, "repo_created_at": "2023-07-31T16:18:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d41a301158...
3a4b92e8-85be-45b3-81ad-114d9c4cdf5f
shivakantkurmi/Dr-G-Viswanathan-Coding-Challenge
Extended Day 5 Fundamental.cpp
/* 367. Valid Perfect Square Solved Easy Given a positive integer num, return true if num is a perfect square or false otherwise. A perfect square is an integer that is the square of an integer. In other words, it is the product of some integer with itself. You must not use any built-in library function, such as sqrt....
ALGO
0.99925
5.870807
{ "github_metadata": { "branch": "main", "commit_count": 239, "repo_created_at": "2025-03-16T16:03:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b26113d415...
13541cfc-ddb8-44cc-b7bc-702c6d41524c
kit-algo/InertialFlowCutter
src/list_graph.cpp
#include "list_graph.h" #include "io_helper.h" #include "multi_arc.h" #include "id_multi_func.h" #include <stdexcept> #include <fstream> #include <iostream> #include <sstream> struct BinaryHeader{ int node_count, arc_count; }; static void save_binary_graph_impl( std::ostream&out, const ArrayIDIDFunc&tail, const ...
DATA
0.949188
5.416118
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2019-06-27T11:45:26.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 13, "forks": 15, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "2cdf2a8a...
1210d9c6-94d1-401f-adf9-032192ad8b4a
nathanmarianovsky/Project-Euler-Problems
problem_012/C++ Implementation/problem_012.cpp
#include <iostream> #include <string> using namespace std; //Checks whether or not a given string is an integer or not bool is_number(const string &s) { string::const_iterator it = s.begin(); while(it != s.end() && isdigit(*it)) { ++it; } return (!s.empty()) && (it == s.end()); } //Asks the user for the input...
ALGO
0.999381
5.207676
{ "github_metadata": { "branch": "master", "commit_count": 51, "repo_created_at": "2014-12-24T20:33: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": "c15287038...
1eb404bd-f64b-41f9-8890-877c909f36b1
joemersonsouza/examples_cplusplus
dfs.cpp
#include <iostream> #include <cstdlib> #include <cstring> #include <queue> #include <stack> using namespace std; struct map{ char value; map* left; map* right; map* parent; }; stack<map*> adjacent; stack<map*> edge; stack<char> path; char getRandomValue() { return char(rand()% 24+65); } void se...
ALGO
0.999927
3.223512
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-07-04T12:44:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "423fa05b09...
cb5e9017-7aef-402b-aa4d-593770bae726
oustani-anas/cp_bootcamp
day01/Parentheses_Balance.cpp
#include <iostream> #include <string> #include <algorithm> #include <stack> bool is_correct(std::string str) { std::stack<char> parthes; for (size_t i = 0; i < str.size(); i++) { if(str[i] == '(' || str[i] == '[') parthes.push(str[i]); else if((!parthes.empty()) && ((str[i] == ...
ALGO
0.999837
5.268013
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2023-08-20T00:41: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": "43f550c7eaee...
3d3394a4-5cd0-458e-bf6a-372b67c4667f
JuliiPa/Estructuras-de-Datos
GRAFOS/TallerGrafos1/Grafo.h
/************************************ Fecha: 16/10/2024 Nombre:<NAME> Tema: Implementacion Basica de Grafos ************************************/ #ifndef GRAFO_H #define GRAFO_H #include <iostream> #include <vector> #include "Vertice.h" #include "Arista.h" using namespace std; template <typename T, typename W> ...
TOOL
0.971136
5.959407
{ "github_metadata": { "branch": "main", "commit_count": 52, "repo_created_at": "2024-07-24T02:30: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": "4ad09ab2d15...
aafc2c93-b1e6-4c78-92a7-0098e36ad9d9
cubercsl/The-road-to-ACMer
HihoCoder/1709.cpp
#include <bits/stdc++.h> using namespace std; #define clr(a, x) memset(a, x, sizeof(a)) #define mp(x, y) make_pair(x, y) #define pb(x) push_back(x) #define X first #define Y second #define fastin \ ios_base::sync_with_stdio(0); \ cin.tie(0); typedef long long ll; typedef long double ld; typed...
ALGO
0.999842
3.770266
{ "github_metadata": { "branch": "master", "commit_count": 611, "repo_created_at": "2017-04-28T00:42:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 54, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5363282...
7cf54c65-0d9b-413c-b14f-7e44c0d143b0
astronaut0131/PAT
PAT_Advanced_Level/1131. Subway Map.cpp
#include <stdio.h> #include <map> #include <vector> using namespace std; map <int,vector <int> > edge; const int MAXN = 10000; const int INF = 9999999; int line[MAXN][MAXN]; int v1,v2; bool visit[MAXN]; vector <int> temp; vector <int> path; int get_trans(vector <int> x){ int last = -1; int cnt = 0; for(int i=1;i<x.s...
ALGO
0.999849
3.725516
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2017-12-29T15:04:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6eea8968d3...
200e99e6-160a-4e42-ba57-0e26596ea204
7oSkaaa/LeetCode_DailyChallenge_2023
01- January/09- Binary Tree Preorder Traversal/09- Binary Tree Preorder Traversal (Mohamed Khedr).cpp
// Author: <NAME> /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode ...
ALGO
0.999965
6.599115
{ "github_metadata": { "branch": "main", "commit_count": 6874, "repo_created_at": "2023-01-02T11:28:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 104, "forks": 86, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "af5abf...
1fba3533-9cbd-4279-9c37-f84026d393f3
dl8sd11/online-judge
0contest/YTP-2020-final/pO.cpp
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("O3","unroll-loops") typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<int, ll> pil; typedef pair<ll, int> pli; typedef pair<double,double> pdd; #define SQ(i) ((i)*(i)) #define MEM(a, b) memset(a, (b), sizeof(a)) #...
ALGO
0.99999
3.918089
{ "github_metadata": { "branch": "master", "commit_count": 332, "repo_created_at": "2017-11-19T05:47:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1371b790...
2c8dc56e-6a89-4bfa-818b-1eff09b3e00b
lacie-life/visual-slam
Basic/SLAM-Theory/10-dense-reconstruction/dense_mono/dense_mapping.cpp
#include <iostream> #include <vector> #include <fstream> #include <boost/timer.hpp> // for sophus #include <sophus/se3.hpp> // for eigen #include <Eigen/Core> #include <Eigen/Geometry> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace cv;...
ALGO
0.998424
5.453574
{ "github_metadata": { "branch": "main", "commit_count": 117, "repo_created_at": "2021-05-12T15:52:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 28, "forks": 6, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c4eaf300b...
5811139a-a7f5-4e8c-9593-5505a5ca3e69
zhming0/Mingorithm
ACM/POJ1011_NEW.cpp
#include<cstring> #include<iostream> #include<cstdio> #include<algorithm> using namespace std; int len[65], n, sum, length, cnt; bool vst[65]; bool cmp(const int& a, const int& b) { return b < a; } bool dfs(int leftlen, int now, int complete) { if (leftlen==0) { //Important optimization (+2) if ...
ALGO
0.999985
3.192849
{ "github_metadata": { "branch": "master", "commit_count": 22, "repo_created_at": "2012-01-26T08:27:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c4818c483...
a533e7d9-2f08-4872-84e4-54c98608c9c7
OatmealDome/dolphin-ios
Source/Core/Common/CompatPatches.cpp
// Copyright 2008 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #include <Windows.h> #include <functional> #include <optional> #include <string> #include <vector> #include <winternl.h> #include <fmt/format.h> #include <fmt/xchar.h> #include "Common/CommonFuncs.h" #include "Common/CommonTypes....
TOOL
0.945378
6.950605
{ "github_metadata": { "branch": "master", "commit_count": 44038, "repo_created_at": "2022-03-22T20:42:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 372, "forks": 46, "issues": 128, "pull_requests": 4 }, "file_meta": { "content_id": "7...
fb98baf0-5cd6-4582-88e7-0a46d81c0ddf
tntxtnt/aoc-2024
day08/main/src/day08_main.cpp
#include <day08_solution.h> #define DOCTEST_CONFIG_IMPLEMENT #include <doctest/doctest.h> #include <sstream> #include <fstream> #include <chrono> #include <aoc/session.h> #include <aoc/utils.h> #ifdef _WIN32 #include <windows.h> #endif void setVirtualTerminal() { #ifdef _WIN32 HANDLE hOut = GetStdHandle(STD_OUTPU...
ALGO
0.953036
6.080705
{ "github_metadata": { "branch": "master", "commit_count": 59, "repo_created_at": "2024-12-02T14:00: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": "66073ccb3...
288cbd54-de55-4004-96d9-d65aab769bef
akash4-sys/DSA
Codeforces/1600/1775C.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long ll solve() { ll n, x, i = 63; cin >> n >> x; ll m = n; if (n == x) return n; for (; i >= 0; i--) if ((n & (1LL << i)) != (x & (1LL << i))) break; for (int j = i; j >= 0; j--) if (m & (1...
ALGO
0.999882
4.640508
{ "github_metadata": { "branch": "main", "commit_count": 272, "repo_created_at": "2022-07-17T09:39:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d0487308f5...
ee681b66-78be-4de4-9fed-23a3e7a36d04
jingkongmtsu/xTron.mKP16
src/gints_engine/hgp_os/energy/eri/hgp_os_eri_g_f_p_p.cpp
// // // This code is generated from CPPINTS, a C++ program to generate the // analytical integrals based on Gaussian form primitive functions. // Copyright (C) 2015 The State University of New York at Buffalo // This software uses the MIT license as below: // // Permission is hereby granted, free of charge, to a...
ALGO
0.99692
3.462883
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2022-09-21T14:39:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 2, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "5ed2a41ac7...
2578e20a-aeaa-4c73-ba76-a74e52354ed5
PragmaticNick/numerical-methods
Inverse Problem/InverseProblem/src/Problem.h
#pragma once #include "Constants.h" #include "Gauss.h" #include "Classes.h" #include "Matrix.h" #include "Solvers.h" #include <set> #include <map> void DirectProblem(std::vector<Element>& elements, std::vector<Receiver>& receivers) { size_t size = receivers.size(); for (Receiver& receiver : receivers) { recei...
ALGO
0.999654
4.442784
{ "github_metadata": { "branch": "master", "commit_count": 154, "repo_created_at": "2019-09-08T07:29:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 2 }, "file_meta": { "content_id": "f051e63a...
b7137b5a-a366-4387-9425-aacd7e0a7f03
jwseph/competitive-programming
alphastar/silver/basic_b/track_and_field.cpp
#include <bits/stdc++.h> using namespace std; #define N_MAX 1000 int N; bool V[N_MAX]{}; int A[N_MAX]; queue<int> T[N_MAX]; bool cmp(int a, int b) { return A[a] > A[b]; } int main() { cin >> N; for (int i = 0; i < N; ++i) { cin >> A[i]; int M; cin >> M; while (M--) { ...
ALGO
0.999983
3.651879
{ "github_metadata": { "branch": "main", "commit_count": 121, "repo_created_at": "2023-02-23T23:41:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "300aa21475...
cbb3dfb3-cc8f-46f4-b4c9-b49466af7b8e
qlb7707/webrtc_src
src/chromium/src/third_party/stp/src/lib/Sat/cryptominisat2/MatrixFinder.h
/**************************************************************************************** MiniSat -- Copyright (c) 2003-2006, <NAME>, <NAME> CryptoMiniSat -- Copyright (c) 2009 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
ALGO
0.999572
5.753971
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2015-12-05T01:31:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "f0db995e07...
2763ce2b-6a9d-4372-a7ed-b36ceb47f97b
Sahil070402/dp
minpathsum.cpp
#include <bits/stdc++.h> using namespace std; int minSumPath(vector<vector<int>> &grid) { int n = grid.size(); int m = grid[0].size(); vector<vector<int>> dp(n, vector<int>(m, 0)); for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { if (i == 0 && j == 0) { dp[i][j] = grid[i...
ALGO
0.99994
5.258886
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2023-11-13T21:05: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": "06db069b8a1...
f4ce9244-e701-4ec9-9968-9ba0517ea678
asad-shuvo/ACM
Online Judge/UVA/12019 - Doom’s Day Algorithm.cpp
#include<bits/stdc++.h> using namespace std; int main() { int M,D; int mod,test; cin>>test; while(test--){ cin>>M>>D; mod=D%7; ///Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. if(M==1 || M==10){ if(mod==0) cout<<"Friday"<<endl; else if(m...
ALGO
0.999961
3.331218
{ "github_metadata": { "branch": "master", "commit_count": 23, "repo_created_at": "2019-10-23T13:59: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": "65785fb9b...
07e8234c-f1ca-4372-8942-e8ac7cf20cae
DerekZi/cs259_project
kernel/trmm-krnl.cpp
#include "trmm-krnl.h" #pragma ACCEL kernel void trmm(const float alpha, const float A[60*60], float B[60*80]) { // #pragma ACCEL PIPELINE auto{__PIPE__L0} // #pragma ACCEL TILE FACTOR=auto{__TILE__L0} // #pragma ACCEL PARALLEL FACTOR=auto{__PARA__L0} // for (int i = 0; i < 60; i++) { // #pragma ACCEL P...
ALGO
0.995283
3.453484
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2024-03-05T19:38: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": "f44ace46e516...
d9fad9e8-f0c7-4ec6-863d-1ad4e0f30107
limzk126/Algorithmic-problem-solutions
leetcode/Matrix Spiral/solution_1.cpp
cLass Solution { public: bool traverse(char dir, vector<vector<int>>& matrix, int r, int c, vector<int>& res) { if (r < 0 || c < 0 || r >= matrix.size() || c >= matrix[0].size()) return false; if (matrix[r][c] == 101) return false; res.push_back(matrix[r][c]); ...
ALGO
0.999998
6.112495
{ "github_metadata": { "branch": "main", "commit_count": 165, "repo_created_at": "2022-06-05T11:22: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": "4d0d28d252...
8abe4830-4c9c-4d07-859d-f43a46b4edca
ishandutta2007/codeforces-k
khadaev/normal/689/D.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; #define forn(i, a, n) for (int i = a; i < n; ++i) #define ford(i, a, n) for (int i = n - 1; i >= a; --i) #define fore(i, a, n) for (int i = a; i <= n; ++i) #define all(a) (a).begin(), (a).end() ...
ALGO
0.999961
3.53963
{ "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": "25422c871479...
d94809e7-9217-4544-a618-1ac4288f431b
google-research/google-research
scann/scann/utils/fast_top_neighbors.h
// Copyright 2025 The Google Research Authors. // // 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://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
ALGO
0.998406
7.519118
{ "github_metadata": { "branch": "master", "commit_count": 4832, "repo_created_at": "2018-10-04T18:42:48.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 36026, "forks": 8143, "issues": 1061, "pull_requests": 576 }, "file_meta": { "content_id...
07d2155c-9f3c-4eae-827e-46b6c664e4bf
atulr/Assignment4
bvh.cc
/* * bvh.cc * * Created on: Oct 7, 2011 * Author: atulrungta */ #include "trax.hpp" #include "bvh.h" // Only include stdio for printf on the non-trax version #if TRAX==0 #include <stdio.h> #endif inline Box loadBoxFromMemory(const int &addr) { Vector p1( loadf( addr, 0 ), loadf( addr, 1 ), loadf(addr, 2 ...
ALGO
0.998944
4.304209
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2011-10-07T04:54:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2886a38820...
b6587e5b-c93d-48d6-84df-724b09d97a38
perchuts/CompetitiveProgramming
summer25/day5/g.cpp
#include <bits/stdc++.h> using namespace std; #define int ll #define fast_io cin.tie(0)->sync_with_stdio(0); #define endl '\n' typedef long long ll; struct bit { int n; vector<int> tree; bit(int _n) : n(_n), tree(n + 1, 0) {} void update(int i, int x) { for (++i; i <= n; i += i&(-i)) tree[i] += x; } int pr...
ALGO
0.999938
3.673606
{ "github_metadata": { "branch": "master", "commit_count": 93, "repo_created_at": "2021-12-19T23:57: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": "0e2bf0abb...
10561115-9467-4686-a66b-8156d95ce681
mallenjordan/CPP-Examples
Permutations.cpp
#include <iostream> #include <algorithm> #include <vector> #include <string> using namespace std; // Lets make some permutate fun. // Warning: Recursion ahead. void permutate (vector<string> &strArray, string strBuffer, int intStart, int intEnd) { int intIndex = 0; if (intStart == intEnd) { strArray.push_back(st...
ALGO
0.998742
5.010252
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2019-08-09T17:25: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": "4048fd049d...
f901dff1-1e75-422c-b02d-53b126e0d4d7
n3wzd/BOJ
sliver/1260 - DFS와 BFS.cpp
#include <iostream> #include <vector> #include <queue> #include <algorithm> using namespace std; int N, M, V; bool visited1[2000] = { 0, }; bool visited2[2000] = { 0, }; vector<int> graph[2000]; void DFS(int v) { visited1[v] = true; printf("%d ", v); int len = graph[v].size(); for (int i = 0; i < len; i++) { ...
ALGO
0.999996
4.162248
{ "github_metadata": { "branch": "main", "commit_count": 422, "repo_created_at": "2022-03-10T06:07: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": "66ac10deec...
0ae02cdf-13a1-42ed-991b-c7efb99a2749
Mu-L/TracerInteractiveUE4Plugins
Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Private/BaseGizmos/GizmoMath.cpp
// Copyright Epic Games, Inc. All Rights Reserved. #include "BaseGizmos/GizmoMath.h" FVector GizmoMath::ProjectPointOntoLine( const FVector& Point, const FVector& LineOrigin, const FVector& LineDirection) { float ProjectionParam = FVector::DotProduct((Point - LineOrigin), LineDirection); return LineOrigin + Pr...
ALGO
0.987573
6.629015
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2020-03-24T02:30:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 16, "forks": 11, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "ee61dbf...
7ab136e1-fe8e-4b51-9e97-8847916ae842
opencv/opencv
modules/photo/src/denoising.cuda.cpp
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
ALGO
0.981107
5.046515
{ "github_metadata": { "branch": "4.x", "commit_count": 35401, "repo_created_at": "2012-07-19T09:40:17.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 83079, "forks": 56217, "issues": 2595, "pull_requests": 138 }, "file_meta": { "content_id"...
338592b7-8e1f-44a4-9d0a-f997976e4c83
NNemec/etLAP
exp.cpp
/* * This file is part of etLAP - the Expression Templated Linear Algebra Package * Copyright (C) 2002 by <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either ver...
ALGO
0.983176
4.774286
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2018-01-13T05:39: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": "13263fcd6...
8960378b-afea-489c-ac27-3f8486ea57d9
HEltim7/cpcode
Luogu/P6139.cpp
#include <string> #include <vector> #include <iostream> #include <algorithm> #include <array> using namespace std; #define endl '\n' using LL=long long; constexpr int N=2e6+10; struct GeneralSuffixAutomaton { constexpr static int A=26; constexpr static char B='a'; using Arr=array<int, A>; struct Endpo...
ALGO
0.999828
3.824551
{ "github_metadata": { "branch": "master", "commit_count": 249, "repo_created_at": "2022-06-06T13:55: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": "eece877b...
aa603873-84af-4abe-abf3-18bbe2cc14d6
axaish/Cryptography
10. Playfair matrix encryption.cpp
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #define MATRIX_SIZE 5 char* createPlayfairMatrix(const char* key) { char* matrix = (char*)malloc(MATRIX_SIZE * MATRIX_SIZE * sizeof(char)); int index = 0; bool usedChars[26] = { false }; for (int i = 0; i < strlen(key); ...
ALGO
0.99996
5.512731
{ "github_metadata": { "branch": "main", "commit_count": 40, "repo_created_at": "2023-11-27T03:13: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": "a39a4ed764c...
0ce60b05-c528-472d-be13-525f9bd5407e
superj6/CPcode
c++ sol/Infoarena/infoarena shgraf.cpp
/* This problem is mostly about knowing Cayley's generalized formula for number of forrests with k components. The formula is T(n, k) = k * n^(n - k - 1), where n is the number of labeled nodes, k is the number of forrests, and the nodes 1, 2, ..., k are each in different components. You can find this on wikipedia. Af...
ALGO
0.999981
4.112504
{ "github_metadata": { "branch": "master", "commit_count": 441, "repo_created_at": "2019-09-09T05:55:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 129, "forks": 37, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "13291...
6ff6a1f2-c690-425d-a8e9-2b9b1ec4e5d9
Sreekar33/MVTO-for-Isolation
series.h
#include <climits> #include <vector> #include <mutex> using namespace std; struct sample { int t; int v; }; class Chunk { public: Chunk(int mint) { this->start = mint; this->end = INT_MIN; } int start; int end; vector<sample> samples; int numSamples() { return sa...
ALGO
0.940992
4.866567
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-11-25T15:02: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": "9bccbeca53...
9c7fd185-f02c-45ab-9244-741e9f26f29a
kwr760/interview-cpp
Trees And Graphs/4.7.cpp
#include "BinaryNode.h" #include "4.7.h" BinaryNode *commonAncesterBad(BinaryNode *root, BinaryNode *p, BinaryNode *q) { if (NULL == root) return NULL; if (root == p && root == q) return root; BinaryNode *x = commonAncesterBad(root->Left(), p, q); if (x != NULL && x != p && x != q) return x; BinaryNode *y...
ALGO
0.999148
3.109959
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2018-06-14T04:48: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": "de741b8a20...
2d08aad1-1a99-495e-8ab2-e1a7fd0348ab
Kushalatreon/Projet-Graphe-Algo
Headers/grapheoriente.h
#ifndef GRAPHEORIENTE_H #define GRAPHEORIENTE_H #include "Graphe.h" class GrapheOriente : public Graphe { private: /** * Numerote les sommets selon l'algorithme de Tarjan * @param [in, out] num - nouvelle numerotation * @param [in, out] cfc - composantes fortement connexes * @param [in, out] p...
ALGO
0.990927
4.5756
{ "github_metadata": { "branch": "master", "commit_count": 74, "repo_created_at": "2019-03-01T10:06: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": "7b306eb0f...
9a468fa7-ac4d-4670-8f51-e4c8ff5b9719
mlund/neofaunus
src/scatter.h
#pragma once namespace Faunus { /** @brief Routines related to scattering */ namespace Scatter { /** @brief Form factor, `F(q)`, for a hard sphere of radius `R`. */ template<class T=float> class FormFactorSphere { private: T j1( T x ) co...
ALGO
0.964154
6.209649
{ "github_metadata": { "branch": "master", "commit_count": 498, "repo_created_at": "2017-07-13T06:27:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 4, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "86eb7851...
424b2912-e455-423a-b257-674687a66885
burakbayramli/books
Introduction_to_numerical_programming_using_Python_and_CPP_Beu/Ch10/C/P10-qTrapSimpConv1.cpp
// Convergence of trapezoidal and Simpson quadratures #include <stdio.h> #include <math.h> #include "integral.h" #include "specfunc.h" int nord; // order of Legendre polynomial double Func(double x) // integrand: norm of Legendre polynomial { double d, f; f = ...
ALGO
0.999632
5.477879
{ "github_metadata": { "branch": "master", "commit_count": 652, "repo_created_at": "2016-10-31T17:24:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 325, "forks": 201, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3c7e...
a4822fd0-00f4-4396-9e00-2996e643c52c
moresascha/Chimera
Include/physx/Source/GeomUtils/src/GuGJKSimplex.h
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentatio...
ALGO
0.999301
3.347342
{ "github_metadata": { "branch": "master", "commit_count": 31, "repo_created_at": "2013-07-29T19:24:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f5bfddd3b...
fda84e5c-9a34-44e6-b4be-ab82f101e1f4
Azhar20afif/Wordle
copy.cpp
#include <iostream> #include <string> #include<cstring> // NOT COMPLETE using namespace std; int lives = 5; int score = 0; class LV1 { private: /* int number; string words[number]; int score; int lives; public: game(int x, string * arr, int y, int z) { ...
TOOL
0.945558
3.26916
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2023-05-15T19:48: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": "765390b371...
6f21e097-2ef8-400f-9dfe-207f06a499bb
JaejunHan/Algorithm
c++/April/10/5972.cpp
#include <vector> #include <queue> #include <iostream> using namespace std; #define MAX 50001 #define INF 987654321 vector<pair<int, int>> vec[MAX]; vector<int> dist(MAX, INF); void dijkstra(int s){ priority_queue<pair<int, int>> pq; pq.push({0, s}); dist[s]=0; while(!pq.empty()){ pair<int,...
ALGO
0.999976
3.966096
{ "github_metadata": { "branch": "main", "commit_count": 136, "repo_created_at": "2023-03-19T07:40: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": "330a6a741e...
a55d06ea-af82-40c8-ae44-3c06a6928584
didw/coding
algospot/algosrc/src/kmp/kmp.cpp
#include<cassert> #include<cstdio> #include<iostream> #include<string> #include<vector> using namespace std; // N 에서 자기 자신을 찾으면서 나타나는 부분 일치를 이용해 // pi[] 를 계산한다. // pi[i] = N[..i] 의 접미사도 되고 접두사도 되는 문자열의 최대 길이 vector<int> getPartialMatchNaive(const string& N) { int m = N.size(); vector<int> pi(m, 0); // 단순한 문자열 탐색 알고...
ALGO
0.999303
4.111163
{ "github_metadata": { "branch": "master", "commit_count": 96, "repo_created_at": "2015-12-01T04:53:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "88302a65a...
9fd72d37-1490-44c6-b0d4-40d67c0c1876
zhenghuadai/uefi-programming
book/GcppPkg/Include/parallel/for_each.h
// -*- C++ -*- // Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either ve...
ALGO
0.997266
7.301978
{ "github_metadata": { "branch": "master", "commit_count": 44, "repo_created_at": "2015-01-17T22:17:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 157, "forks": 66, "issues": 8, "pull_requests": 0 }, "file_meta": { "content_id": "edd8e5...
ad1182d9-387e-485c-a659-7a6b13ca38cc
ishandutta2007/codeforces-a
andreysergunin/normal/1007/A.cpp
#include <iostream> #include <stdio.h> #include <cstring> #include <vector> #include <algorithm> #include <cstdlib> #include <cmath> #include <queue> #include <stack> #include <map> #include <set> #include <ctime> #include <cassert> #include <unordered_map> #include <fstream> #include <random> #include <cstring> #inclu...
ALGO
0.999121
4.026832
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-04-11T00:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cbc7289bc6fb...
702595c1-a869-4b01-bc8f-35243e5a598f
Syndamia/oop-2023-solutions
week02/Exercise4.cpp
struct Material { int id; int startingType; int endingType; }; struct MaterialArray { private: Material* elems; int size; int last; public: MaterialArray(int size) { this->size = size; elems = new Material[size]; last = 0; } void Append(const Material& m) { if (size == last) return; elems[last++] ...
ALGO
0.930241
4.867307
{ "github_metadata": { "branch": "main", "commit_count": 46, "repo_created_at": "2024-02-27T15:11: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": "ed2e3e60091...
76e40486-97c1-45bf-a92c-39529c291752
Ravi61/Code-together
Linked List 3/reverseDoubly.cpp
#include<iostream> using namespace std; struct node{ int data; struct node* next; struct node* prev; }; typedef struct node* Node; Node newNode(int data) { Node temp = new(struct node); temp->data = data; temp->next = NULL; temp->prev = NULL; } void print(Node head) { Node temp = he...
ALGO
0.999835
4.740376
{ "github_metadata": { "branch": "Linked-List", "commit_count": 2, "repo_created_at": "2014-10-04T10:57: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": "d13d9...
d3aa5ae0-23b6-45c8-a4f3-d65f284adcde
huangbin5/PAT_Advanced
108-10/1083.cpp
#include <algorithm> #include <cstring> #include <iostream> using namespace std; // #define DEBUG struct student { char name[15]; char id[15]; int score; } s[10005]; bool cmp(student a, student b) { return a.score > b.score; } int main() { #ifdef DEBUG freopen("d:\\input.txt", "r", stdin); freope...
ALGO
0.999726
4.269064
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2021-03-26T14:20: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": "7a6d22ea49...