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
76158069-1b13-44b9-8533-0b5fc3304d82
savish/ga-solver
ga/main.cpp
#include <iostream> #include <fstream> #include <string> #include <sstream> #include <ctype.h> #include "Population.h" #include "GAUtility.h" #include "Equation.h" using namespace std; #define POP_SIZE 50 #define CHROM_SIZE 4 #define MUT_PROB 0.15 #define CROSS_POINTS 2 #define RESOLUTION 10 #define MAX_GEN 200 voi...
ALGO
0.953495
4.259752
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2013-04-04T14:05:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6fbf3602f8...
c584f920-5b6e-4bc5-a821-ca751d750242
justin-schwinn-0/P1-CL
MAP_Alg.cpp
#include "MAP_Alg.h" #include <random> #include <thread> MAP_Alg::MAP_Alg(Node& n,int minActive, int maxActive,int maxNum,int delay): rNode(n), mMinPerActive(minActive), mMaxPerActive(maxActive), mMaxNum(maxNum), mDelay(delay), mMsgsSent(0), mVc({0,1,2,3,4},rNode.getUid()) { } MAP_Alg::~M...
ALGO
0.983735
4.934586
{ "github_metadata": { "branch": "main", "commit_count": 358, "repo_created_at": "2024-10-01T01:52: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": "655155eed3...
bf93ac77-a45a-4243-914a-d602b111d99e
elmehdibelfkih/cpp_v2
cpp09/ex02/main.cpp
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: ...
ALGO
0.961027
5.63361
{ "github_metadata": { "branch": "main", "commit_count": 44, "repo_created_at": "2024-02-15T16:44: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": "0bd4e5e5141...
72a5817e-6906-4a17-809d-e1837d53fa5c
chiyar/ded
task1/solver.hpp
#pragma once #include <stdio.h> #include <math.h> enum AnswerCode { ONE_ROOT, TWO_ROOTS, INF_ROOTS, NO_ROOTS }; struct Answer { double x1, x2; AnswerCode code; bool operator==(const Answer& other) const; }; //! Provides an interface to work with square trinomial class SquareTrinomi...
ALGO
0.993045
5.102623
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2018-09-12T16:06: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": "5b462daa1...
3b6e5f5b-ce53-4ef0-bdcc-c65bc9c9dd28
imscow11253/PS
백준/Gold/17841. UNIST는 무엇의 약자일까?/UNIST는 무엇의 약자일까?.cc
#include <iostream> #include <vector> #include <string> using namespace std; const int MOD = 1000000007; int main() { ios::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; vector<string> words(n); for (int i = 0; i < n; i++) { cin >> words[i]; } string target = "UNIS...
ALGO
0.999911
5.35273
{ "github_metadata": { "branch": "main", "commit_count": 542, "repo_created_at": "2024-06-24T06: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": "1acfce9d98...
71a7e236-1076-4f36-81d8-d2e071f16025
jdowner/moonhopper
src/TetheredMoons.cpp
#include "TetheredMoons.h" #include <cassert> #include <cmath> #include "Moon.h" namespace { Vector2d momentum(const Moon* moon) { assert(moon); Vector2d p; p.x = moon->m * moon->u; p.y = moon->m * moon->v; return p; } double distanceSqr(double xa, double ya, double xb, double yb) { ...
ALGO
0.955029
6.078941
{ "github_metadata": { "branch": "master", "commit_count": 116, "repo_created_at": "2011-05-29T01:34:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 23, "pull_requests": 0 }, "file_meta": { "content_id": "510c1bf...
8fbe2272-36b1-41de-881c-9f54ad6ecc65
shivam682/Dsa_practise
Graphs/DFS_BFS_problems/BipartititeGraph.cpp
/* Problem Statement: Given an adjacency list of a graph adj of V no. of vertices having 0 based index. Check whether the graph is bipartite or not. If we are able to colour a graph with two colours such that no adjacent nodes have the same colour, it is called a bipartite graph. */ /* Approach: The algorithm steps a...
ALGO
0.999902
6.033737
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-07-23T11:18: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": "45ff2635794a...
24dd4985-806c-4a50-8d08-05b3a31d3e2b
btdat2506/IT.CLA.K18---CP---btdat2506
[02-06-2019] CENTRE28.cpp
#include <bits/stdc++.h> using namespace std; #define x first #define y second #define ll int64_t #define For(i, a, b) for(ll i = a; i <= b; i++) typedef pair<ll, ll> ii; clock_t start = clock(); bool visited[40000]; ll n, m, cnt = 0, d[40000], trace[40000]; vector <ll> edge[100010], cost[100010]; struct cmp { ...
ALGO
0.999981
3.705921
{ "github_metadata": { "branch": "master", "commit_count": 44, "repo_created_at": "2019-09-02T04:01:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "24cde5f7f...
00ce8b15-adee-4b83-be78-c024d8e48b5b
codemonkeyliuwei/trains
inout.cpp
/* * File Name : inout.cpp * File Description : 1) Parse command from input * 2) Write command result into output * Author : liuxiaowei * Version : */ #include <ctype.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <iostream> #include <sstream>...
TOOL
0.95235
4.44967
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2016-02-15T12:44: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": "2a625eaa98...
26b1be0f-2e82-4762-953d-30f813a8d475
CodeChef-USICT-Chapter/DSA-SPRINT-1.0
#Week 1/Class 5/Programs/subArray.cpp
#include <iostream> using namespace std; //Problem : Print All Subarrays of a given Array //function to print a sub array given its starting and ending point void printSubArray(int arr[], int n, int l, int r) { for (int i = l; i <= r; i++) { cout << arr[i] << " "; } cout << endl; } int main() { int ...
ALGO
0.998452
4.748176
{ "github_metadata": { "branch": "main", "commit_count": 20, "repo_created_at": "2021-09-27T14:20:37.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2b66944fdb9a...
e6e0d2ab-4157-47f7-992f-b53cd5dc73da
boatinw99/CompetitiveProgramming
Codeforces/342E.cpp
#include<bits/stdc++.h> using namespace std ; const int N = 1e5+9 ,MAX = 1e9 ; struct Tree { int pre,suf ; }; vector<int> G[N],chain[N]; int pos[N],ind[N],depth[N],par[N],sub[N],dist[N],hy[N]; int mpre[N],msuf[N]; int n,no=1,p=1,x,y ; Tree st[N*4]; Tree operate(Tree t1,Tree t2) { return {min(t1.pre,t2.pre),min...
ALGO
0.999765
4.789863
{ "github_metadata": { "branch": "master", "commit_count": 82, "repo_created_at": "2020-01-19T08:11: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": "dbeb13ae3...
16657ca1-49bf-4d53-962f-499a97db6b30
aleh4man/SHA-256
SHA-256.cpp
#include "SHA-256.h" void SHA_256::make_block(std::string msg) { int i = 0; while (i < msg.size()) { block[i] = (char)msg[i]; i++; } if (i < 55) { unsigned char a = 1; a = a << 7; block[i++] = a; while (i < 56) { block[i] = 0; i++; } unsigned long long b = msg.size()*8; unsigned long lon...
ALGO
0.963267
4.372989
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-02-11T23:22: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": "5824f326c792...
a1c95498-e526-4333-915b-fa147dd480d7
rafaelfranca1/Competitive-Programming
2582 - System of a Download.cpp
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { int a, b; // cin >> a >> b; switch (a + b) { case 0: cout << "PROXYCITY\n"; break; case 1: co...
ALGO
0.998684
3.13006
{ "github_metadata": { "branch": "main", "commit_count": 22, "repo_created_at": "2024-04-01T00:24: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": "4f9204340c0...
f282bd8a-fbd5-4757-9c5a-f831636f2a7c
Ernest-Yoyowah/software-engineering-journey
collge_major/1st-year/C++/Study/week_4/convert_binary_to_decimal/binary_covertor.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; // Function to convert a decimal digit to binary. vector<int> decimalToBinary(int decimal) { vector<int> binary; if (decimal == 0) { binary.push_back(0); } else { while (decimal > 0) { ...
ALGO
0.999502
5.976076
{ "github_metadata": { "branch": "main", "commit_count": 383, "repo_created_at": "2023-11-03T21:30:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "199cc3ecf0...
f5369996-0f2c-4e25-8c7c-5f41c7c40c89
andrewpaterson/Codaphela.Library
SupportLib/Box.cpp
/** ---------------- COPYRIGHT NOTICE, DISCLAIMER, and LICENSE ------------- ** Copyright (c) 2025 <NAME> This file is part of The Codaphela Project: Codaphela ShapeLib Codaphela ShapeLib is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published ...
ALGO
0.988307
4.334857
{ "github_metadata": { "branch": "master", "commit_count": 2158, "repo_created_at": "2012-01-23T17:53:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8c553f7...
b3f39aa0-3675-478b-82cd-83dd5d671798
anasmoni/competitive-programming
Dp/SOS_dp.cpp
#include<bits/stdc++.h> using namespace std; typedef long long int lli; typedef unsigned long long int ulli; typedef pair<int,int> pii; #define ones(x) __builtin_popcount(x) #define onesl(x) __builtin_popcountl(x) #define onesll(x) __builtin_popcountll(x) #define pb push_back #define eb emplace_back #define mp make_...
ALGO
0.999627
4.23312
{ "github_metadata": { "branch": "master", "commit_count": 121, "repo_created_at": "2019-11-23T18:14: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": "a0f9be2d...
adfa3961-5d65-43b8-bd85-64e1d3e47027
kscheufe/PracticeProblems
TopInterview150/BinarySearch/FindPeakElement/solution.cpp
class Solution { public: int findPeakElement(vector<int>& nums) { int left = 0; int right = nums.size() - 1; while (left <= right) { int index = left + (right - left) / 2; bool isPeak = true; if (index > 0 && ...
ALGO
0.999991
5.679405
{ "github_metadata": { "branch": "main", "commit_count": 372, "repo_created_at": "2024-05-20T20:13: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": "ede7734b7e...
74417368-4d0e-44bf-b6f2-d691aab56c1c
CViniciusSDias/2002-c-plus-plus
Forca/Forca/forca.cpp
#include <iostream> #include <string> #include <map> #include <vector> #include "imprime_cabecalho.hpp" #include "le_arquivo.hpp" #include "sorteia_palavra.hpp" #include "chuta.hpp" #include "imprime_erros.hpp" #include "imprime_palavra.hpp" #include "chuta.hpp" #include "adiciona_palavra.hpp" #include "nao_acertou.hpp...
TOOL
0.975897
4.008841
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2020-11-14T18:19:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "abacafe022e...
ade3f51f-36e7-40ff-a511-f0062bf0af2c
positivepeng/CCF
201709/201709-2公共钥匙盒.cpp
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <queue> #include <cstring> #include <set> #include <map> #define GET 0 #define RETURN 1 using namespace std; struct action { int type; int num; int time; action(int t,int n,int e) { type = t; num = n; time = e; } action(...
ALGO
0.999973
3.49849
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2019-01-09T01:55: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": "9b59b2b88b...
bf99e331-fa51-4acc-91b7-2fd470318ee3
vbonnici/grafe-sim
analysis/data/p02237/s638430069.cpp
#include<bits/stdc++.h> using namespace std; //隣接リスト int main(){ int V; cin >> V; vector<vector<int> > adjlist(V); //入力 for(int i = 0; i < V; i++){ int gomi; cin >> gomi; int k; cin >> k; for(int j = 0; j < k; j++){ int a; cin >> a; adjlist[i].pu...
ALGO
0.999741
3.83342
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2023-07-10T13:21: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": "b72768ce2ec...
e9b2fc9a-8c81-4abd-919b-775a9977aaf2
lhtin/algorithms
leetcode/42-trapping-rain-water.cpp
#include "./leetcode.hpp" class Solution { public: int trap(vector<int>& height) { if (height.size() == 0) { return 0; } int max = 0; for (int i = 0; i < height.size(); i += 1) { if (height[i] > height[max]) { max = i; } } int area = 0; ...
ALGO
0.999986
6.798144
{ "github_metadata": { "branch": "master", "commit_count": 25, "repo_created_at": "2020-01-12T16:03:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9974f4d93...
b53dc785-d5a5-4ddd-99ce-216aedfba85c
yushicheng7788/Problems-Set
ACWing-785/main.cpp
#include <iostream> #include <ctime> #include <algorithm> using namespace std; const int MAX_N = 100010; int n, q[MAX_N]; template<typename T> void __quickSort3Ways(T arr[], int left, int right) { if (left >= right) return; srand(time(NULL)); swap(arr[left], arr[rand() % (right - left + 1) + left]...
ALGO
0.999968
4.91481
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2021-11-28T13:40: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": "73926f9eaa...
954ef040-7c0b-4f56-8711-d287c370a312
mysticalhider/chapter3ex6
chapter3ex6/chapter3ex6.cpp
/* File Name: chapter3ex6.cpp Programmer: <NAME> Date: 2025-19-2 requirements - get number of cookies desired - calculate the ammount of each ingredient needed - display the amount of each ingredient needed */ #include <iostream> using namespace std; int main() { double sugar, butter, flower, cookieswanted; sugar...
TOOL
0.912235
5.037858
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2025-02-19T22:37: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": "d9feb685aa...
7d68efa7-ea65-402c-8ee2-6a2bdef9f075
UNC-Robotics/mpt
src/mpt/impl/prrt_star/node.hpp
// Software License Agreement (BSD-3-Clause) // // Copyright 2018 The University of North Carolina at Chapel Hill // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain...
ALGO
0.96284
6.995121
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2018-09-26T17:10:15.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 81, "forks": 32, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "a96bee1c...
cc20a3f3-7543-4659-9e69-47046a08156e
ustcyyw/algorithm
luogu/graph/shortest_path/P5201.cpp
/** * @Time : 2023/5/11-10:26 PM * @Author : <EMAIL> * @E-mail : <EMAIL> * @Github : https://github.com/ustcyyw * @desc : */ #include<bits/stdc++.h> using namespace std; const int N = 1e4 + 5; int n, m, t, marked[N], dist[N], path[N], cnt[N], max_val = 1e9; vector<vector<vector<int>>> graph; struct cmp { bo...
ALGO
0.999974
4.636537
{ "github_metadata": { "branch": "main", "commit_count": 162, "repo_created_at": "2024-11-11T07:09:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "73c08c7d43...
ee9e9042-75c1-49e3-a569-16b527964710
langningchen/XMOJ
5419.cpp
#include <bits/stdc++.h> using namespace std; int f[1010][1010][2], a[1010][1010], maxans; int n; int main() { scanf("%d", &n); for (int i = 0; i < n; i++) { for (int j = 0; j < i + 1; j++) { scanf("%d", &a[i][j]); f[i][j][0] = a[i][j], f[i][j][1] = 2 * a[i][j]; } } // for(int i=0;i<n;i++){ // int j=...
ALGO
0.999921
3.047942
{ "github_metadata": { "branch": "master", "commit_count": 20, "repo_created_at": "2023-06-17T12:02:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "389e68364...
db7778a4-29e5-4100-ae1e-aafd55e7d405
Zouxin-wsnb/RM25_Infantry
Gimbal/Src/GimbalController/Gimbal/GimbalStateFPS.cpp
#include "GimbalStateFPS.hpp" #include "GimbalController.hpp" #include "Chassis/ChassisController.hpp" void GimbalStateFPS::Init() { PitchLowerLimit = -25 * Math::DegreeToRad; // Pitch轴电机最小角度 //-35 PitchUpperLimit = 32 * Math::DegreeToRad; // Pitch轴电机最大角度 //22 PitchSetFilter.SetTau(0.05f); // 设置滤波时...
TOOL
0.917654
5.216089
{ "github_metadata": { "branch": "new", "commit_count": 4, "repo_created_at": "2024-12-24T12:50: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": "7aa3e2361d79b...
4dd6fc89-55d4-44ba-bbb9-38a1ae37299b
BPsaren/GFG_Problem-Of-The-Day
Day-15/day_15.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; struct Node { int data; struct Node* next; Node(int x) { data = x; next = NULL; } }; void append(struct Node** headRef, struct Node** tailRef, int newData) { struct Node* new_node = new Node(newData); if (*h...
ALGO
0.999905
6.141138
{ "github_metadata": { "branch": "main", "commit_count": 56, "repo_created_at": "2024-03-02T17:38: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": "dd225077dc8...
312ef85f-7048-4647-afcf-ecf51e1cfa9a
Satya-100/GFG-problems
Difficulty: Medium/Job Sequencing Problem/job-sequencing-problem.cpp
//{ Driver Code Starts // Program to find the maximum profit job sequence from a given array // of jobs with deadlines and profits #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: vector<int> JobSequencing(vector<int> &id, vector<int> &deadline, ...
ALGO
0.999848
5.602753
{ "github_metadata": { "branch": "main", "commit_count": 87, "repo_created_at": "2025-01-26T12:52: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": "ff139484c2e...
9fbeb1e2-02b3-4a7f-bf9a-b6331b253c8d
naringcode/algorithm-training
BaekjoonOnlineJudge/math/combination/1059.cpp
#include <bits/stdc++.h> #include <print> using namespace std; using ll = long long; vector<int> vec; int l; int n; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); cin >> l; vec.resize(l); ranges::for_each(vec, [](int& elem){ cin >> elem; }); vec.pu...
ALGO
0.999992
4.499695
{ "github_metadata": { "branch": "main", "commit_count": 1082, "repo_created_at": "2023-03-08T11:46:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ff18d318e...
2104dba2-e98e-456a-99ce-a823607a6500
google-deepmind/open_spiel
open_spiel/bots/pimc_bot.cc
// Copyright 2021 DeepMind Technologies Limited // // 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 l...
ALGO
0.999843
6.537332
{ "github_metadata": { "branch": "master", "commit_count": 4660, "repo_created_at": "2019-07-22T13:50:21.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4631, "forks": 1006, "issues": 17, "pull_requests": 6 }, "file_meta": { "content_id": "c...
ddd9230c-7b53-4ce2-8165-cf37a0ca14e2
deepam20050/competitive-programming
solutions/1490B.cpp
#include "bits/stdc++.h" using namespace std; #ifdef DEBUG #include "../algo/debug.hpp" #else #define debug(...) #endif #define rep(i, a, b) for(int i = a; i < (b); ++i) #define sz(x) int((x).size()) #define all(x) begin(x), end(x) #define eb emplace_back using lli = long long; using pii = pair < int, int >; voi...
ALGO
0.999764
4.39162
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2022-01-05T12:59: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": "081626d84f1...
5ef78802-0a10-4007-8939-6ec218345c19
kerozou/kyopuro
Atcoder解答/ABC-C解答/C077 - Snuke Festival.cpp
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() // 昇順ソート #define rall(v) (v).rbegin(), (v).rend() // 降順ソート #define INF 1LL << 60 typedef long long int LL; const int MOD = 1000000007; template<class T> bool chmax(T &a, const T &b) {...
ALGO
0.999935
4.448379
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2021-02-01T11:50:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "00083e6c8f...
7fc84a58-8652-4c40-9ade-f37bf00fabf5
RandomDeveloperM/UE4_Hairworks
Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.35.0/third_party/lzma.js/lzip/decoder.h
/* Lzip - Data compressor based on the LZMA algorithm Copyright (C) 2008, 2009, 2010, 2011 <NAME>. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or...
ALGO
0.994542
6.478395
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2016-08-10T03:41:37.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "97b3c115151...
7a954e84-fcd6-4d95-a86a-39496acf88f8
garrappachc/skylium
include/Matrices.h
/* __ __ _ _ _ | \/ |__ _| |_ _ _(_)__ ___ ___ | |_ | |\/| / _` | _| '_| / _/ -_|_-<_| ' \ |_| |_\__,_|\__|_| |_\__\___/__(_)_||_| Copyright (C) 2011 <NAME> <EMAIL> This program is free software: you can redistribute it a...
TOOL
0.993321
4.011114
{ "github_metadata": { "branch": "master", "commit_count": 87, "repo_created_at": "2015-06-10T09:32: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": "b1797a542...
9e6e09ce-8ff9-46f0-be5b-bd676edc8f76
bgabrovsek/lpq-classification
reidemeister_moves.h
// reidemeister_moves.h // Created by Boštjan on 4/22/13. // // Performing and searching for Reidemeister moves and flypes #ifndef Lpq_reidemeister_moves_h #define Lpq_reidemeister_moves_h #include <list> #include "knot.h" #include "link.h" #include "common.h" // data structure of a Reidemeister move class CRSi...
ALGO
0.999802
4.369926
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2013-03-19T11:41:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "35e6c57a0...
cfe45336-8ea3-43ba-9496-80fe896ca3c4
catch4/Song
2020/week11/1509_Palindrome_Split.cpp
/* Catch study 11주차 백준_팰린드롬 분할 https://www.acmicpc.net/problem/1509 */ /*----------------- 풀이 dfs + dp 현재 시작지점을 기준으로 만들수 있는 팰린드롬 다 만들면서 총 합이 작은거 선택 -----------------*/ #include <iostream> #include <string> #include <algorithm> #include <vector> std::string str; std::vector<int> vec; int palin(const int& cur, int n_cur)...
ALGO
0.999997
5.002762
{ "github_metadata": { "branch": "master", "commit_count": 183, "repo_created_at": "2020-06-01T10:04:10.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d841e2ee1...
6786a70a-6901-4ffd-80a6-3341e796c503
Stiffstream/restinio
dev/test/to_lower_bench/main.cpp
/* restinio */ /*! Benchmark for to_lower approaches. */ #include <iostream> #include <string> #include <vector> #include <chrono> #include <ctime> #include <cstdlib> #include <stdexcept> #include <cctype> inline bool std_caseless_cmp( const char * a, const char * b, std::size_t size ) { for( std::size_t i = 0...
TEST
0.903772
5.467606
{ "github_metadata": { "branch": "master", "commit_count": 1986, "repo_created_at": "2017-12-25T20:34:27.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1238, "forks": 100, "issues": 38, "pull_requests": 1 }, "file_meta": { "content_id": "62...
4abfd1c8-0c83-4a94-8815-e9dd12e6b76d
Mohammad-Yasser/harwest
codeforces/995/B.cpp
#pragma GCC optimize ("O3") #pragma GCC optimize ("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma comment(linker, "/STACK:1024000000,1024000000") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #def...
ALGO
0.999638
3.790224
{ "github_metadata": { "branch": "master", "commit_count": 1412, "repo_created_at": "2020-12-21T04:47:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6b0da5d...
e5827c36-23c0-4f4e-8c78-8c666788af48
Luuhiz/CIENCO-3SEM-ED
Aula 26 05/Exercicio 1 sistema de atendimento/main.cpp
#include <iostream> #include <queue> #include <string> using namespace std; int main() { int opcao = 0; string cliente; queue <string> aux; queue <string> fila; do { cout << "Escolha uma opcao: " << endl; cout << "1. Inserir cliente na fila" << endl; cout << "2. Atender o...
TOOL
0.904527
3.863919
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2023-03-03T22:40: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": "929a80bb01b...
180f33ff-28bd-4569-8cb4-0620a5a907ff
qurbanolum/taskFolder
UkazRaznie.cpp
//Написать функцию, которая получает указатель //на статический массив и его размер.Функция распределяет положительные, //отрицательные и нулевые элементы //в отдельные динамические массивы. //#include<stdlib.h> #include "pch.h" //#include<iostream> //#include<windows.h> //#include<time.h> //#include<random> //using n...
ALGO
0.991588
3.269499
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2023-02-12T15:34: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": "8ce36be46...
8030b0de-dca9-4514-afcb-700f1be368d6
tuyentran0500/DSA
Flows/NKFLOW.cpp
#include <bits/stdc++.h> #define up(i,a,b) for(int (i) = (a);(i)<=(b);++(i)) #define down(i,b,a) for(int (i) = (b);i>=(a);--i) #define debug(x) cerr << (x) << '\n'; #define bits(x,i) ((x >> i) & 1) using namespace std; const int N = 1005; const int INF = 1e9; int s,t,c[N][N], f[N][N]; int ptr[N]; int d[N]; int n,m; boo...
ALGO
0.999765
4.131112
{ "github_metadata": { "branch": "master", "commit_count": 142, "repo_created_at": "2019-09-25T14:44:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5d16dfea...
f9564dca-437f-4e4d-98ed-1ee06f238136
Teppyy/HEXL_timer
hexl/eltwise/eltwise-reduce-mod-avx512.cpp
// Copyright (C) 2020-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "eltwise/eltwise-reduce-mod-avx512.hpp" #include <functional> #include <vector> #include "eltwise/eltwise-reduce-mod-internal.hpp" #include "hexl/eltwise/eltwise-reduce-mod.hpp" #include "hexl/logging/logging.hpp" #include "...
ALGO
0.998543
7.494335
{ "github_metadata": { "branch": "main", "commit_count": 78, "repo_created_at": "2021-07-19T03:39: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": "eceec794ab2...
3b4dc4f8-0bc4-49a3-8d25-0f85f458c46e
Camithilwen/Code-Cloning-Analysis
src/llm-scripts/testing/Project_CodeNet_experimentation_dataset/data/p02244/s848196652.cpp
#include<stdio.h> #define N 8 #define FREE -1 #define NOT_FREE 1 int row[N],col[N],dpos[2*N-1],dneg[2*N-1]; int x[N][N]; void initialize(void); void printBoard(void); void recursive(int); int main(){ int i,j; initialize(); for( i = 0 ; i < N ; i++ ){ for(j = 0 ; j < N ; j++ ){ x[i][j] = 0; ...
ALGO
0.999546
3.187989
{ "github_metadata": { "branch": "main", "commit_count": 243, "repo_created_at": "2025-06-06T16:57:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "752191292d...
7674c059-f609-4393-abeb-d3b8cdbb6eb1
kacpersyn7/C-Primer-Plus.-Stephen-Prata
11.1/main.cpp
// randwalk.cpp -- test klasy Vector // kompilować z plikiem vect.cpp #include <iostream> #include <fstream> #include <cstdlib> // prototypy funkcji rand() i srand() #include <ctime> // prototyp funkcji time() #include "vect.h" int main() { using namespace std; using VECTOR::Vector; srand(time(0));...
ALGO
0.968671
4.115975
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2017-02-06T15:43:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "34aff1a02e...
d330b972-49c5-46f8-8d29-3c8b6b8c3ac5
AshenOne17/CodeWars
Kata 7/Complementary DNA/Complementary_DNA.cpp
// Deoxyribonucleic acid(DNA) is a chemical found in the nucleus of cellsand carries the "instructions" // for the developmentand functioning of living organisms. // // In DNA strings, symbols "A" and "T" are complements of each other, as "C" and "G". // Your function receives one side of the DNA(string, except for Ha...
ALGO
0.990757
6.362353
{ "github_metadata": { "branch": "main", "commit_count": 75, "repo_created_at": "2022-12-13T00:18:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b68fe6c91c3...
5ad8cdb1-1e6f-4884-a88a-392f4e715d93
archerdante/leetcode
49_Group_Anagrams.cpp
#include <vector> #include <string> #include <unordered_map> using namespace std; //Given an array of strings, group anagrams together. // //For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], //Return: // //[ // ["ate", "eat","tea"], // ["nat","tan"], // ["bat"] //] //Note: //For the return value, each...
ALGO
0.999964
5.876793
{ "github_metadata": { "branch": "master", "commit_count": 165, "repo_created_at": "2016-02-25T14:41: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": "ea43562d...
01fb5323-0761-4990-bb10-5641958ec32e
tomoakiii/atcoder2
typical90/ay.cpp
#include <atcoder/all> #include <bits/stdc++.h> using namespace std; using namespace atcoder; #define rep(i,n) for (ll i = 0; i < (n); ++i) template<typename T> inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); } template<typename T> inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true...
ALGO
0.999927
3.976672
{ "github_metadata": { "branch": "main", "commit_count": 252, "repo_created_at": "2024-02-05T06:43:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c11f4bfb7a...
22302010-d8c3-49ca-a67b-0bf046fabb22
fkjkkll/PG-Task
Robot navigation/Global planning with BFS/client01/client.cpp
#include <iostream> #include <stdlib.h> #include <stdio.h> #include <atlstr.h> #include "list" #include "vector" #include "winsock2.h" #include "StructData.h" #include "Header.h" #include"opencv2/opencv.hpp" #pragma comment(lib,"ws2_32.lib")//引用库文件 using namespace std; using namespace cv; SOCKET sockClient; S2CINFO S2...
ALGO
0.996989
3.253909
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2020-11-28T12:50: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": "fa6c6ddc7...
29683c7d-751d-4240-91d0-9ff6d16e98a9
LLNL/RAJAPerf
src/algorithm/SORTPAIRS-OMP.cpp
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) 2017-25, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/LICENSE file for details. // // SPDX-License-Identifier: (BSD-3-Clause) //~~~~~~~~~~~~~~~~~~~~~~~~~~...
TOOL
0.945686
6.402556
{ "github_metadata": { "branch": "develop", "commit_count": 3087, "repo_created_at": "2017-09-25T20:18:46.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 118, "forks": 42, "issues": 45, "pull_requests": 15 }, "file_meta": { "content_id": "75...
801b02c6-2db6-4f66-b6df-1201fd335bb2
MayankGupta-dev08/myCppWork
108_SumTillN_recurrsion.cpp
/* Recursion is amazing and mind blowing topic itself. But , Cons of recursion: 1. Memory consumption is too much. 2. Overlapping of same problems 3. Some languages limit recursion by some count 4. Faulty recursion results in infinite loop 5. Most of all recursive way of problem solving has a good iterative way, also...
ALGO
0.999739
5.695783
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2021-06-07T21:23: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": "30eb34c25...
0f8ecde7-876c-4261-a67e-9f2729ff992c
rlenain/PeersCode
hw0/Graph_f1d18ae6b711.hpp
#ifndef CME212_GRAPH_HPP #define CME212_GRAPH_HPP /** @file Graph.hpp * @brief An undirected graph type */ #include <algorithm> #include <vector> #include <cassert> #include "CME212/Util.hpp" #include "CME212/Point.hpp" /** @class Graph * @brief A template for 3D undirected graphs. * * Users can add and retri...
ALGO
0.956382
6.901115
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-01-30T22:01: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": "abac564b90...
7a51d645-e73f-4305-9b47-e1494b13c8f0
LineageOS/android_frameworks_native
include/ftl/algorithm.h
/* * Copyright 2022 The Android Open Source Project * * 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 applica...
TOOL
0.910509
7.508924
{ "github_metadata": { "branch": "lineage-22.2", "commit_count": 126191, "repo_created_at": "2016-12-05T15:41:33.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 25, "forks": 361, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id"...
38daf527-1125-45f8-9435-a918344809ee
JackLee404/CompetitivePrograming
CodeForces/#855/c.cpp
#include <bits/stdc++.h> const int mod = 1e9 + 7, N = 1e5 + 10; using i64 = long long; int primes[N], st[N], ct[N], cnt; void get_primes(int n) { for (int i = 2; i <= n; i ++ ) { if (!st[i]) primes[cnt ++ ] = i; for (int j = 0; primes[j] <= n / i; j ++ ) { st[primes[j] * i] = true; ...
ALGO
0.999944
3.947688
{ "github_metadata": { "branch": "main", "commit_count": 67, "repo_created_at": "2022-07-10T08:35:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9795bf58f3a...
db5363ca-d6c2-4d99-a975-ce41c9595477
DailyPS/Baekjoon
Silver/Silver I/20529.cpp
#include <bits/stdc++.h> using namespace std; int t; int main(void) { cin.tie(NULL); ios::sync_with_stdio(false); cin >> t; while(t--) { int n; int ans = INT_MAX; string mbti[100005]; cin >> n; for (int i = 0; i < n; i++) cin >> mbti[i]; if (n >= 33) cout << 0 <...
ALGO
0.999972
4.249893
{ "github_metadata": { "branch": "main", "commit_count": 172, "repo_created_at": "2021-02-16T13:46:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "93f9902c7a...
1ad026b7-46d5-488a-b8f4-02ed46a4f585
ZHDXZZQ/Interview-Study
leetcode/接雨水.cpp
// 思路:单调栈, 时间On,空间On。 // 另有简化DP的空间O1解法,具体见官方讲解,思路大概为双指针向中间遍历利用两边最大值累计应该被接水的部分的面积 // 1. 对于高度来说,构造一个递减的单调栈 // 2. 如果碰到更高的柱子,则说明该位置可被接水,于是和上一个高一些的柱子比较,计算这里能接多少水 // 3. 一直向前比较直到栈空或该柱子低于之前的柱子,然后该柱子入栈开启下一个柱子的判断 // 4. 每次循环开启时保证栈中柱子的高度递减,且栈顶及之前的柱子之间保证无法再接水 class Solution { public: int trap(vector<int>& height) { int...
ALGO
0.999997
6.649439
{ "github_metadata": { "branch": "master", "commit_count": 448, "repo_created_at": "2023-12-26T13:51:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 11, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "19ef7f7...
f893340b-8d64-42c8-b0ca-547f79b1aea1
tensorflow/tensorflow
third_party/xla/xla/hlo/transforms/simplifiers/instruction_hoister.cc
/* Copyright 2022 The OpenXLA 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 or agreed to in writing, sof...
ALGO
0.978531
7.318159
{ "github_metadata": { "branch": "master", "commit_count": 182413, "repo_created_at": "2015-11-07T01:19:20.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 190773, "forks": 74758, "issues": 873, "pull_requests": 553 }, "file_meta": { "content...
a2790f6f-069c-4b2b-8a1c-5a8816794f48
SyedKashanAli/Student-Record-Management-System-Using-Linked-List-Data-Structures-
Project 210660.cpp
#include <iostream> #include <fstream> #include <string> #include <cstring> using namespace std; class Node { public: int roll, Marks; string Name, Dept, Subject; Node* next; }; Node* head = new Node(); bool check(int x) { if (head == NULL) return false; Node* t = new ...
TOOL
0.94702
3.52493
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-09-10T05:21: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": "ef6148efd050...
690bb2c3-7ca4-4af8-971c-c29faa4ce932
Sergey-Pravdyukov/Homeworks
term1/exam/3/3/main.cpp
#include <iostream> #include <string> #include <cstring> using namespace std; enum {firstBrackets, transitionFromFirstBrackets, secondBracketsWithoutDot, dotInSecondBrackets, lastLetter }; bool isLetter(char currentChar) { return ('A' <= currentChar && currentChar <= 'Z'); } bool isDigit(char currentChar) { retur...
ALGO
0.993082
3.375451
{ "github_metadata": { "branch": "master", "commit_count": 167, "repo_created_at": "2015-12-26T18:53:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 4 }, "file_meta": { "content_id": "f0c63d07...
01f76341-bab7-479f-ad6d-2a9dc7323091
dfunke/ParDeTria
include/LoadBalancedDCTriangulator.h
#pragma once // stl #include <functional> #include <vector> #include <memory> // own #include "Geometry.h" #include "Partitioner.h" #include "load_balancing/Partitioner.h" #include "Triangulator.h" #include "CGALTriangulator.h" #include "utils/TBB_Containers.h" #include "load_balancing/monitors/UnpluggedMonitor.h" ...
ALGO
0.953964
7.000638
{ "github_metadata": { "branch": "master", "commit_count": 938, "repo_created_at": "2023-08-07T16:05:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "68574a77...
56d20b98-a869-463e-a25d-e4a538f3daa3
HK9750/DSA-Problems
Arrays/Three-Consecutive-Odds.cpp
// Leetcode 1550. Three Consecutive Odds class Solution { public: bool threeConsecutiveOdds(vector<int> &arr) { int count = 0; for (int n : arr) { if (n % 2 == 1) count++; if (n % 2 == 0) count = 0; if (count == 3) ...
ALGO
0.999977
6.647394
{ "github_metadata": { "branch": "main", "commit_count": 246, "repo_created_at": "2024-09-08T16:23: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": "bcf181f356...
e3d77f44-dcac-4d92-ae53-90fe906e3316
LILIStrade/Radio-OneFM
gr-digital/lib/correlate_access_code_ff_ts_impl.h
/* -*- c++ -*- */ /* * Copyright 2014 Free Software Foundation, Inc. * * This file is part of GNU Radio * * SPDX-License-Identifier: GPL-3.0-or-later * */ #ifndef INCLUDED_DIGITAL_CORRELATE_ACCESS_CODE_FF_TS_IMPL_H #define INCLUDED_DIGITAL_CORRELATE_ACCESS_CODE_FF_TS_IMPL_H #include <gnuradio/digital/correlate...
ALGO
0.951885
6.739377
{ "github_metadata": { "branch": "main", "commit_count": 226, "repo_created_at": "2024-02-19T19:24:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 13, "pull_requests": 0 }, "file_meta": { "content_id": "8d6098665...
a22bb927-c9c6-48e3-8238-ee982b583e31
aniketpathak028/Data-Stuctures-and-Algorithms
Binary Search/find_element_rotated_sorted_array.cpp
#include<bits/stdc++.h> using namespace std; int findMin(vector<int> &arr){ int n = arr.size(), start = 0, end = arr.size() - 1, mid, prev, next; // incase the entire array is sorted if(arr[start]<arr[end]) return 0; while(start<=end){ mid = start + (end - start) / 2; prev = (...
ALGO
0.999992
5.284886
{ "github_metadata": { "branch": "master", "commit_count": 27, "repo_created_at": "2021-08-14T06:31: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": "461a01c2c...
502bc8d3-6c2f-48eb-b2c2-1cd605042c9c
primihub/primihub
src/primihub/algorithm/aby3ML.h
// "Copyright [2021] <PrimiHub>" #ifndef SRC_PRIMIHUB_ALGORITHM_ABY3ML_H_ #define SRC_PRIMIHUB_ALGORITHM_ABY3ML_H_ #include <algorithm> #include <random> #include <vector> #include <memory> #include "cryptoTools/Common/Defines.h" #include "aby3/sh3/Sh3Types.h" #include "aby3/sh3/Sh3Encryptor.h" #include "aby3/sh3/Sh3...
ALGO
0.992288
4.377894
{ "github_metadata": { "branch": "develop", "commit_count": 1657, "repo_created_at": "2022-03-14T03:25:26.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1340, "forks": 177, "issues": 5, "pull_requests": 0 }, "file_meta": { "content_id": "6e...
e3f6343c-5f78-4f2c-8622-a437017f18e8
nfpranta/Competitive-Programming-Munmud
geeksforgeeks/egg drop.cpp
/* <NAME> Information And Communication Engineering University Of Rajshahi https://github.com/Munmud <EMAIL> */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_d...
ALGO
0.999871
4.102055
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2021-03-23T06:34: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": "f8a5b8da0103...
a3335aa4-6240-49fa-b782-a3c15ff33554
ishandutta2007/codeforces-a
abc864197532/normal/1027/C.cpp
#include <bits/stdc++.h> #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_ds/assoc_container.hpp> using namespace std; #define lli long long int #define ld long double #define fop(i,m,n) for (int i=(m);i<(n);i++) #define FOP(i,m,n) for (int i=(m)-1;i>=(n);--i) #define test(x) cout << #x << ' ' << x << endl; #defin...
ALGO
0.999713
3.56297
{ "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": "336a9faa2ce2...
44bfac44-b5c3-4825-9ad7-45bd7121e29b
arangodb/arangodb
3rdParty/boost/1.78.0/boost/hana/fwd/monadic_fold_right.hpp
/*! @file Forward declares `boost::hana::monadic_fold_right`. @copyright <NAME> 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_FWD_MONADIC_FOLD_RIGHT_HPP #define BOOST_HANA_FWD_MONADIC_FOLD_RIGH...
ALGO
0.976891
7.13348
{ "github_metadata": { "branch": "devel", "commit_count": 51986, "repo_created_at": "2011-10-26T06:42:00.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 13878, "forks": 857, "issues": 743, "pull_requests": 38 }, "file_meta": { "content_id": ...
0815c0b5-00f1-4303-bca4-dbeb636b021e
komoseid/compphys
project4/main_no_mpi.cpp
/* argv[1] : number of spins L argv[2] : number of Monte Carlo cycles argv[3] : initial temperature */ #include <iostream> #include <cmath> #include <armadillo> #include <stdlib.h> /* srand, rand */ #include <time.h> #include <fstream> #include "functions.h" #include "mpi.h" using namespace std; using namespac...
ALGO
0.999736
5.260956
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2016-09-23T12:00: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": "fd02360417...
81e165ec-4624-4756-ad79-e18f1ef037f8
rongals/MuDiSP4
mudisp-4-examples/gmc-cdma/src/mblockrec.h
// // MuDiSP2 // Multirate Digital Signal Processor 2 // By <NAME> (C) Apr 1999 // // #ifndef __MUDISP2_MBLOCKREC_H #define __MUDISP2_MBLOCKREC_H #include "mudisp.h" #include "gsl/gsl_vector.h" #include "gsl/gsl_matrix.h" #include "gsl/gsl_complex_math.h" #include "gsl/gsl_blas.h" //////// Carrier Allocation Matr...
ALGO
0.94846
5.1035
{ "github_metadata": { "branch": "master", "commit_count": 104, "repo_created_at": "2012-03-28T15:07:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6dd8086b...
b5a2a606-9a08-4181-97d2-ef3699aeea7a
luispedro/hearts
hearts/common/general/random_shuffle.h
#include <cstdlib> // std::rand #include <algorithm> // std::iter_swap // Below, it's copied from GNU C++ LIB (and therefore under the GPL 2 + instation exception), // except that I use std::rand() unconditionally // // The reason for the copy is: // http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-active.html...
ALGO
0.999137
6.014635
{ "github_metadata": { "branch": "master", "commit_count": 468, "repo_created_at": "2013-02-14T17:16:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7ccdba2d...
6e56274d-fbb0-4fc1-82eb-67f9a00b3181
Deepak440/Algorithm
Recurrsion/middleElement_linkedlist.cpp
// C++ Program to find the middle node in the linked list #include <iostream> using namespace std; class Node{ public: int data ; Node* next; }; // Inserting at the beigning void push( Node **head , int New_data) { Node *temp = new Node(); temp -> data = New_data; temp -> next = *head; *head = temp; } /...
ALGO
0.999924
5.751489
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2021-05-22T02:06:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "30674e2e5877...
bab93593-6f75-4a5c-ace5-67f4f23dca9a
variablemayank/competetive-programming-codes
B. Okabe and Banana Trees.cpp
#include<bits/stdc++.h> using namespace std; #define jadu ios_base::sync_with_stdio(false); #define rep(i,a,b) for (int i = a; i <= b; i++) #define f first #define s second #define lelo(x) scanf("%d",&x); #define dedo(x) printf("%d",x); #define PB push_back #define MP make_pair #define sz(c) (int)c.size() typed...
ALGO
0.999921
3.268939
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2018-02-02T08:36:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c7805819bc...
a365431e-10f5-4acf-a58e-05d98d3958aa
SeaRise/cpp-learning
cpp_primer_5/ch03/ex3_23.cpp
#include "iostream" #include "string" #include "vector" #include "cctype" using std::string; using std::vector; using std::cout; using std::cin; using std::endl; // 3.23 void multiplyTwo() { vector<int> vec; vec.reserve(10); for (int i = 0; i < 10; ++i) { vec.push_back(i); } for (auto iter...
ALGO
0.99479
3.725462
{ "github_metadata": { "branch": "master", "commit_count": 34, "repo_created_at": "2021-07-23T02:59:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c800c42a1...
b130c403-e761-4c06-97b2-6f334ebd050f
AungWinnHtut/CS2024
c/cipher/cipher/cipher.cpp
#include <iostream> #include <string> #include <vector> //#include "C:\\Users\\bluephoenix\\Downloads\\Compressed\\boost_1_82_0\\boost\\filesystem.hpp" //#include "C:\\Program Files\\OpenSSL-Win64\\include\\openssl\\aes.h" //#include "C:\\Program Files\\OpenSSL-Win64\\include\\openssl\\rand.h" #include<fstream> #defi...
TOOL
0.97634
3.300959
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2023-07-05T08:27:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7471bff37f3...
cd423c4b-3f0f-4a3d-a666-19b1cb5aadff
juliet2421/bsc-inf-24-21
Lab task 7/Number3/Shapes_Area.cpp
class Shape { public: virtual double calculateArea() const = 0; }; class Shape { public: virtual double calculateArea() const = 0; }; class Square : public Shape { private: double sideLength; public: Square(double sideLength) : sideLength(sideLength) {} double calculateArea() const override { ...
TOOL
0.960803
6.467516
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2024-04-18T07:49:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ef88cfef1dc2...
9ab7e93d-e69c-44c3-96c0-e03ded2745d6
raincross7/code-similarity
codes/train_code/problem370/problem370_338.cpp
#include <cstdio> #include <memory.h> #include <cstring> #include <vector> #include <deque> #include <cstdlib> #include <queue> #include <algorithm> #include <cmath> #include <cassert> #include <functional> #include <iostream> #include <set> #include <list> #include <map> #include <time.h> #include <unordered_map> #inc...
ALGO
0.999968
3.720231
{ "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": "0c8314f791be...
e67b37fe-690f-4494-b822-3bde8809aa04
UET-2425HK2-INT2210-01/22029095-CTDLGT
lect7.0assignments/cau5.cpp
#include <iostream> using namespace std; int demChuSo(int so) { // Hàm đếm số chữ số của một số nguyên dương int dem = 0; // Khởi tạo biến đếm ban đầu là 0 while (so > 0) { // Lặp cho đến khi số không còn chữ số dem++; // Tăng biến đếm lên 1 so /= 10; // Loại bỏ chữ số cuố...
ALGO
0.999634
4.832197
{ "github_metadata": { "branch": "main", "commit_count": 70, "repo_created_at": "2025-02-28T13:27:02.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cc16cf240912...
5666abde-1f35-49a8-abe0-a7ae24958691
1344283952/sdwurg190507280131
线段树练习5.cpp
#include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namespace std; typedef long long ll; const int MAXN = 4e5; struct zt { ll l,r,sum,sz,jia,cnt,MAX,MIN; zt *lift,*right; }; zt tree[MAXN]; ll m,n,a,b,c,cnt = 0,ji; string s; void build(zt *root,ll l,ll r) { root->sum = 0;root->l = l;root->...
ALGO
0.999944
4.459944
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-11-09T03:16:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eb5dced20a...
02935ec9-f903-4293-a029-c9883c8a0251
ryokango/Image_Processing_Assigment
ImageProcessings/Part C/Decoder/decoder.cpp
#include <iostream> #include <opencv.hpp> #include <iostream> // standard C++ I/O #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace cv; using namespace std; RNG rng; char *source=0,*message=0,*original=0; char *pass=...
TOOL
0.90096
4.126054
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2014-02-02T20:00: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": "0a6fd6fbf6...
e9b4eb2a-c1cf-494a-bc4a-de67139f4be5
miaortizma/competitive-programming
online_judges/cf/contest/1333/c/c.cpp
#include<bits/stdc++.h> using namespace std; // By <NAME> https://github.com/miaortizma const int MAXN = 2 * 1e5 + 100; typedef long long ll; ll pre[MAXN]; map<ll, int> counts; int N, tmp; ll solve(vector<int> arr) { int n = arr.size(); for (int i = 1; i <= n; ++i) { //cerr << arr[i - 1] << " "; pre[i] =...
ALGO
0.999852
3.903571
{ "github_metadata": { "branch": "master", "commit_count": 56, "repo_created_at": "2018-02-19T03:21:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "326e48595...
87ac71fe-00c6-47df-995e-78e4b095e61b
djeada/Algorithms-And-Data-Structures
src/graphs/cpp/prim/src/graph.h
#include <string> #include <unordered_map> #include <vector> template <class T> struct Vertex { Vertex(T value); Vertex(const Vertex<T> &vertex); T value; bool operator==(const Vertex<T> &other) const; bool operator!=(const Vertex<T> &other) const; bool operator<(const Vertex<T> &other) const; }; templ...
ALGO
0.991043
5.7156
{ "github_metadata": { "branch": "master", "commit_count": 511, "repo_created_at": "2020-05-16T14:25:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 375, "forks": 59, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "089b1...
1117eb14-53d7-415d-a112-b4700f46eac3
mk-ultron/sorting-algorithms
src/sorting.cpp
#include <iostream> // For input/output operations (cout, cin) #include <vector> // For std::vector container #include <algorithm> // For std::sort #include <random> // For random number generation #include <chrono> // For timing measurements #include <iomanip> // For output formatting (setw, setpreci...
ALGO
0.997584
6.179289
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2024-11-15T05:20:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e810c4e2d30a...
bc9a8b1c-f383-4370-b9ed-4ead4850d487
MacDue/llvm-project
llvm/lib/CodeGen/MachinePipeliner.cpp
//===- MachinePipeliner.cpp - Machine Software Pipeliner Pass -------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
TOOL
0.943696
7.525281
{ "github_metadata": { "branch": "main", "commit_count": 472626, "repo_created_at": "2022-11-15T20:56:44.000Z", "is_fork": true, "is_org_owned": false, "forked_from": "llvm/llvm-project", "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content...
7a93e202-d039-459a-a5a9-b52af678e453
virresh/CompetitiveProgrammingCodes
2017/AprilChallenge/cliqued.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define INF 200000000000000ll int main(){ ll t; cin>>t; while(t--){ ll n,k,x,m,s; ll dist[100005]; vector < pair<ll,ll> > adjL[100005]; cin>>n>>k>>x>>m>>s; // every old city has a distance x from another old city for(ll i=1; i<=m; i++)...
ALGO
0.999921
3.94683
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2018-04-26T15:36:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "139fdb7e3c...
6f10cb29-3d2e-4b80-b693-ed62ce3602f4
FrankEntriken/Assignment-6-Sorting
SelectionSort.h
#include <iostream> #include <chrono> using namespace std::chrono; using namespace std; class SelectionSort { public: SelectionSort() { } ~SelectionSort() { } // prints array in cout void printarray(double *array, int size) { int i = 0; while(i < size){ cout << array[i] << ...
ALGO
0.998777
5.646697
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-05-13T23:44: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": "3fc6100e07...
76dce82a-099a-4f61-b4d0-9d9b6d91c5a2
carter-glynn/Assembly-Line
Cglynn_AssemblyLineDesign.cpp
/******************************************** Author: <NAME> Email: <EMAIL> SN: 8657212 *********************************************/ #include <iostream> #include "Line.h" #include "Registration.h" #include <fstream> #include <string> #include <vector> #define COUNT 10 //--------------Array Definitions--------------...
ALGO
0.968464
4.16936
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2022-12-02T08:23: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": "0260a01ca75a...
4af024d7-0915-4243-8d11-aa4d5f6f134c
Mask1nen/2025-TDDD95-LabsExercises
lab3/suffix_sorting_old.cpp
/* Author: <NAME> (marmo607) This solution creates a data structure which contains an array of sorted suffix positions in lexicographical order. The i'th index of this suffix_array contains the position of the lexicographically smallest suffix. This suffix_array is made by tracking the cyclic shifts of substrings usi...
ALGO
0.999308
4.525899
{ "github_metadata": { "branch": "main", "commit_count": 103, "repo_created_at": "2025-06-09T20:41: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": "4c37dd8a59...
e71293fc-0012-4053-97c4-3bb1d30f5507
HaiZeizhouyuan/HZOJ
271_2.cpp
/************************************************************************* > File Name: 271_2.cpp > Author: zhouyuan > Mail: <EMAIL> > Created Time: 2021年02月03日 星期三 08时43分07秒 ************************************************************************/ #include<iostream> #include<cstring> #include<algorithm> #includ...
ALGO
0.999994
3.705642
{ "github_metadata": { "branch": "master", "commit_count": 62, "repo_created_at": "2020-06-24T02:31: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": "b98c213ad...
89971b33-6091-4b92-a809-771eb75ee0f6
MohamedSamehMohamed/Competitive-Programming
codeforces/ProblemsByRate/2400/379F.cpp
#include<bits/stdc++.h> using namespace std; class LCA { int N, LG, _time; int node_one_far, node_two_far, diameter; vector<vector<int>> kth_parent, adj; vector<int> time_in, time_out, level; void precompute(){ for (int j = 0; j < N; j++) precompute(j); } void precompute(int node){ for (int ...
ALGO
0.999823
4.174035
{ "github_metadata": { "branch": "main", "commit_count": 87, "repo_created_at": "2021-02-12T14:21:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0beada6a04e...
2d3ecb7a-31a5-49d9-9843-357e7028b90a
thedeveshpareek/competitive-coding
Armstrong.cpp
// A aramstrong number is a number that is sum of its own digits each raised to the power of the number of digits. // example 153 = 1^3 + 5^3 + 3^3 = 3+125+27 = 153 #include<iostream> #include<math.h> using namespace std; void armstrong(int x) { // find number of digits int n=0; int temp=x; while(tem...
ALGO
0.999678
4.580057
{ "github_metadata": { "branch": "main", "commit_count": 50, "repo_created_at": "2021-05-12T03:44:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 11, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "88b0d67683...
447b2e8e-39c9-4327-9197-9b1b1d445788
jluissandovalm/mpm
simpleMPM/src/simpleMPM.h
//================================================================================================== // Name : simpleMPM.h // Author : Ganzenmueller/<NAME>. // Version : 1.0 // Copyright : Your copyright notice // Description : Basic Material Point Method Algorithm in C++, Ansi-style // Created : ...
ALGO
0.990822
5.196959
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2015-12-29T15:11:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "391a86f2a3...
e6c0fa4d-1f28-4ada-be51-3e0aa7074080
CorgiPuppy/algo-ds-labs
lab3/src/main.cpp
#include <iostream> #include <string> #include <ctime> #include <vector> #include <random> #include <chrono> #include <fstream> #include <numeric> #include "Constants.h" #include "../include/DoublyLinkedList.h" struct Person { std::string lastName; std::string firstName; std::string middleName; std::string birthD...
TEST
0.911582
4.988928
{ "github_metadata": { "branch": "master", "commit_count": 289, "repo_created_at": "2025-02-15T18:02:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "01e05211...
e80157d4-98da-48ad-a992-4b45db6f7741
viCodexm/RSATU-Labs
semester-3/Algorithms and data structures/lab4 RPN/RPN-2-from-file-fixed.cpp
#include <bits/stdc++.h> using namespace std; class Calculator { public: vector<string> rpn; void run() { cout << "Чтение из файла ouput.o\n"; fstream file("output.o", ios_base::in); if (!file.is_open()) { cout << "Файл не открывается!\n"; return; } char c; map<char, int> dict; while (file >> c...
ALGO
0.991196
4.060914
{ "github_metadata": { "branch": "main", "commit_count": 134, "repo_created_at": "2023-10-18T13: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": "37ec321ea1...
9ea5dd94-476f-48ed-8d54-8dad4ba6b248
ShaswataG/mastering-dsa-using-c-cpp-abdul-bari
Section 11 Linked List/03.Linear Doubly/03.04.Reverse/main.cpp
using namespace std; #include<iostream> struct Node { struct Node* prev; int data; struct Node* next; } * first; void Create(int a[], int n) { Node* temp, * last; first = new Node; first->data = a[0]; first->prev = NULL; first->next = NULL; last = first; for (int i = 1; i < n; ...
ALGO
0.999977
4.263758
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2023-09-29T14:09: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": "ad2a3a3025a...
446164bc-91dd-43c1-904c-92ca3f2d8139
BWbwchen/Coding_Practice
2019_spring/10922-Insertion_Sort.cpp
#define DEBUG #include <bits/stdc++.h> //can try use vector to do using namespace std; void swap (int &a, int &b) { int temp = a; a = b; b = temp; } int main (int argc, char **argv) { #ifdef DEBUG freopen ("text.in", "r", stdin); #endif int case_number, answer = 0; cin >> case...
ALGO
0.999789
3.752009
{ "github_metadata": { "branch": "master", "commit_count": 484, "repo_created_at": "2019-01-21T14:01:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 11, "forks": 2, "issues": 1, "pull_requests": 5 }, "file_meta": { "content_id": "023cfe9...
969e653d-e120-4f09-9d93-d1c256a7f4d0
gpradofe/SATSolver
SatSolver/Classes/Body/BacktrackSolver.cpp
/** <summary> The BacktrackSolver class provides functionality to solve a Boolean formula using the backtracking method with optimizations like unit propagation and pure literal elimination. </summary> */ #include "BacktrackSolver.h" // Constructor for the BacktrackSolver class BacktrackSolver::BacktrackSolver(Boolean...
ALGO
0.999965
7.018002
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2023-09-18T15:32: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": "115789caaf6...
aed904db-2d28-4066-a77b-c595b29ef5a8
thomaskf/Hal-Has
lbfgsb_new.h
/* * * lbfgsb_new.h * HAL_HAS * * CSIRO Open Source Software License Agreement (GPLv3) * Copyright (c) 2014, Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230. * All rights reserved. CSIRO is willing to grant you a license to HAL-HAS on the terms of the GNU General Public *...
ALGO
0.999942
5.906679
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2017-05-09T05:02: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": "6850117d1f...
2b4bbdf9-b6ee-475e-90a5-f29eebb5dcaf
k0michi/atcoder
abc356/abc356_b.cc
#include <algorithm> #include <array> #include <bit> #include <bitset> #include <cctype> #include <cmath> #include <compare> #include <cstdint> #include <deque> #include <functional> #include <initializer_list> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #...
ALGO
0.999976
5.193339
{ "github_metadata": { "branch": "main", "commit_count": 104, "repo_created_at": "2024-11-19T14:27: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": "1a79fdaa08...
d7457f66-9a7f-42b1-87aa-a56aa8c99b99
tway24/kdtree
kdtree/library/KDTreeExtended.h
// // Created by tshah on 7/18/2016. // #ifndef BUILD_KDTREE_KDTREEEXTENDED_H #define BUILD_KDTREE_KDTREEEXTENDED_H #include "Point.h" //For given dimension, return minimum value from start to end poins template<typename T> T getMinDimension(std::vector<Point<T>> & dataPoints, int start, int end, int dimension){ ...
ALGO
0.966752
5.259314
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2016-07-26T23:15: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": "a2bf5dd8a...
11a5fc73-1393-475b-9842-b47674a9fe0e
divyamishra7/CompetitiveCoding
1636-sort-array-by-increasing-frequency/1636-sort-array-by-increasing-frequency.cpp
class Solution { public: static bool comp(pair<int,int> p1, pair<int, int> p2){ if(p1.first != p2.first) return p1.first < p2.first; else return p1.second > p2.second; } vector<int> frequencySort(vector<int>& nums) { unordered_map<int,int> m; for(a...
ALGO
0.999999
5.866765
{ "github_metadata": { "branch": "main", "commit_count": 294, "repo_created_at": "2022-07-09T18: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": "a360ec2b17...