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
54e55cdc-dfbd-4bb9-8d94-28dcfae2a346
lkimuk/algorithms
dynamic-programming/longest-common-subsequence/lcs.cpp
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <utility> using namespace std; using table_type = vector<vector<int>>; using result_type = pair<table_type, table_type>; result_type lcs_length(const string& x, const string& y) { table_type c(x.size() + 1, vector<int>(y.size() +...
ALGO
0.999918
4.786143
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2021-05-04T05:24: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": "63e22e76fdcd...
9ddd5fa5-1e0f-4669-b170-f5b86163c7c2
zucchett/SFrame
VariableTool/interface/Mt2Com_bisect.h
#ifndef Mt2Com_bisect_h #define Mt2Com_bisect_h #include <vector> //#include "NTFormat/interface/NTEvent.h" #include <TVector2.h> #include <TLorentzVector.h> #include "MT2Utility.h" #include "mt2bl_bisect.h" #include "mt2w_bisect.h" #include <string> using namespace std; class Mt2Com_bisect : public mt2bl_bisect::...
ALGO
0.935364
5.232677
{ "github_metadata": { "branch": "master", "commit_count": 252, "repo_created_at": "2017-08-14T09:07:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 6, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "66f4e908...
023f107b-e6b9-4d08-a397-723c9be50718
IceTea233/CSES
Mathematics/007_Creating Strings II/007_Creating Strings II.cpp
#include<bits/stdc++.h> #define int long long #define all(x) begin(x), end(x) #define SZ(x) ((int)(x).size()) #define EB emplace_back #define PB push_back #define PP pop_back #define MP make_pair #define F first #define S second #define de(x) if(x && x == MODE) #define MODE 1 using namespace std; typedef pair<int, in...
ALGO
0.999997
4.353707
{ "github_metadata": { "branch": "test", "commit_count": 1, "repo_created_at": "2021-09-27T12:16:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5acaee8c5376...
f69f3ff3-454d-4cf7-a214-2c96257c012f
sanaa139/studies
AISD/Lista1/src/zad1_lifo.cpp
#include <iostream> struct node{ int data; node* next; }; class lifo{ public: lifo()= default; ~lifo(); void push(int value){ node *newNode = new node; newNode->data = value; newNode->next = head; head = newNode; } int pop(){ int k = 0; if(...
ALGO
0.983709
4.968585
{ "github_metadata": { "branch": "main", "commit_count": 43, "repo_created_at": "2022-05-06T17:59:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b8e7ed69cf1...
3a0d9a9d-2d03-4bb9-ae90-48be11041cce
masaya154t/Golden-section-search
Golden-search/Golden-search/Source.cpp
/*********************************************/ /* Golden-search-solution */ /* coded by <NAME> */ /*********************************************/ #include <iostream> #include "Golden-serch.h" using namespace std; //関数値の定義// double snx(double α); //リンク旅行時間// double link_TimeA(do...
ALGO
0.999874
3.590271
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2015-11-11T09:22: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": "40b46b93e1...
d075a793-cf4b-4da9-8778-a89df71e5c70
sreeharipremkumar/Content-Based_Image_Retrieval
src/CBIR.cpp
/* <NAME>, MS Robotics Northeastern University The Main code that does Content Based Image Retreival */ #include <cstdio> #include <cstring> #include <cstdlib> #include <vector> #include <dirent.h> #include <iostream> #include <limits> #include <opencv2/highgui.hpp> #include "../include/feature_extract.h" #include "...
ALGO
0.989462
3.857218
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2023-02-18T03:07: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": "a4c2234ee6...
f7b95450-1fb1-4311-807b-061c5bb8ba25
Linwenye/daily_training
leetcode51_100/73. Set Matrix Zeroes/Source.cpp
class Solution { public: void setZeroes(vector<vector<int>>& matrix) { if (matrix.empty() || matrix[0].empty()) { return; } for (int i = 0; i < matrix.size(); ++i) { for (int j = 0; j < matrix[0].size(); ++j) { if (matrix[i]...
ALGO
0.999453
6.641751
{ "github_metadata": { "branch": "master", "commit_count": 74, "repo_created_at": "2017-07-13T17:36: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": "622ad4205...
c1967005-3671-4662-a662-42fc316647a0
amansingh2/questions-practice
random_questions/CD_1842C.cpp
#include <bits/stdc++.h> #define int long long using namespace std; int dp[1000000]; int solve(vector<int> & arr , int i , int n ,int val, int res){ if(i > n){ return 0; } if(dp[i] != -1){ return dp[i]; } int ans2 = 0; int ans1 = 0; if(arr[i] == val){ ans1 = res + ma...
ALGO
0.999885
3.999014
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2024-11-09T13:00: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": "a75c9808f8c2...
26dd3899-92b2-4f39-a6c6-de34495c9003
SongHayoung/LeetCode
450-delete-node-in-a-bst/450-delete-node-in-a-bst.cpp
/** * 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 *right) : val(x), l...
ALGO
0.999996
5.856272
{ "github_metadata": { "branch": "master", "commit_count": 13354, "repo_created_at": "2021-01-06T12:46:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "661684...
9dd187ff-ab0a-4871-9972-68059cf88a2c
MooSayed1/CompetitiveProgramming
Codeforces/Codeforces Round 1020 (Div. 3)/C. Cherry Bomb.cpp
// ﷽ // Contest: Codeforces Round 1020 (Div. 3) // Judge: Codeforces // URL: https://codeforces.com/contest/2106/problem/C // Memory Limit: 256 // Time Limit: 2000 // Start: Thu 24 Apr 2025 05:03:45 PM EET // #include <bits/stdc++.h> using namespace std; #ifdef MOHAMED #include "debug.hpp" #else #define debug(...) 0 #d...
ALGO
0.999971
4.427837
{ "github_metadata": { "branch": "main", "commit_count": 22, "repo_created_at": "2024-03-27T17:38: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": "d8eaab6fc2e...
dc916ced-6cb5-4783-8388-b9d32894000b
vandit-bera/DSA-Program-CPP
fibonacci/Fibonacci.cpp
#include<iostream> using namespace std; int fib(int num){ if((num == 0) || (num == 1)){ return (num); } else { return (fib(num-1) + fib(num-2)); } } int main(){ // if you print all pair int count, i=0; cout << "Enter count value: "; cin >> count; while (i < count){ ...
ALGO
0.999676
4.308124
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2023-05-03T16:51: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": "6983161f0064...
c374765d-1d15-4927-b955-38ac81be2625
Sai-Chakradhar-Mahendrakar/GeeksForGeeks
Difficulty: Medium/Subset Sums/subset-sums.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: vector<int> subsetSums(vector<int> arr, int n) { // Write Your Code here vector<int> sum; helper(arr, sum, 0, 0); return sum; } private: void helper(vecto...
ALGO
0.999677
6.634909
{ "github_metadata": { "branch": "main", "commit_count": 287, "repo_created_at": "2024-07-06T13:39:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0aa6e1bbb1...
a61f3e18-ffbc-408e-80ce-382a85ae7096
libterty/con_prepare
sum-with-multiplictiy/main.cpp
#include <iostream> #include <vector> #include <unordered_set> #include <unordered_map> using namespace std; /** * @see https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/591/week-4-march-22nd-march-28th/3682/ */ class Solution { public: int threeSumMulti(vector<int>& arr, int target) { ...
ALGO
0.999969
6.158073
{ "github_metadata": { "branch": "master", "commit_count": 147, "repo_created_at": "2021-01-19T13:38: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": "62119385...
cadace6b-e704-4fd3-9fbc-88f934a412ff
flang-compiler/flang
runtime/libpgmath/lib/common/asin/fma3/vsasin8.cpp
/* * 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 * */ #if defined(TARGET_LINUX_POWER) #error "Source cannot be compiled for POWER architectures" #include "xmm2...
ALGO
0.992116
6.222977
{ "github_metadata": { "branch": "master", "commit_count": 2173, "repo_created_at": "2017-05-10T19:13:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 837, "forks": 141, "issues": 262, "pull_requests": 22 }, "file_meta": { "content_id": "b...
d477804b-90c4-4046-9378-f5a39a89ae00
meti-liu/daily-learning
lc872.cpp
#include<iostream> #include<stack> #include<string> #include<vector> using namespace std; struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode(int x):val(x),left(NULL),right(NULL){} }; void dfs(TreeNode* root, vector<int>& leaf) { if(root==nullptr) return; if(root->left==n...
ALGO
0.999882
4.964402
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2023-12-19T07:45:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d0995c4c6b1...
35645e1c-5403-4b64-b1a2-62668ecf99c0
leverimmy/Codes
题目/洛谷/P1484 种树/tree.cpp
#include <cstdio> #include <cstdlib> #include <algorithm> #include <cmath> #include <cstring> #include <vector> #include <cctype> #define rgi register int #define il inline #define ll long long #define maxn 500010 using namespace std; ll n, k, siz, ans; ll l[maxn], r[maxn], a[maxn], vis[maxn]; il ll read() { regist...
ALGO
0.999992
3.690524
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2019-11-04T09:43:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c92e8fe1d...
aaf0cf45-3da6-47ef-b25e-b4af31c012d6
Flasf/Proyecto-Final-MonsterMaker
Source/main.cpp
/* Author: <NAME> Email: <EMAIL> Assignment: final proyect for Object Orientes Programming Last Changed: May 29, 2022 Description: Program a short game, using all tools learnd during the semester. Choose one of the following: * Battleships * A monster creator that allows you to fill all the attr...
TOOL
0.912908
3.101333
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2022-05-24T05:40:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f337c93381f...
66b96ded-f75e-4842-b40a-98ea21d54fe6
ChangminYi/Baekjoon_code
2848_알고스팟어/main.cpp
#include <iostream> #include <string> #include <vector> #include <queue> using namespace std; int n; string arg[100]; vector<char> alpha_set, seq; vector<int> graph[26]; int in_degree[26]; bool alpha_appear[26], many_child = false, wrong_order = false; queue<int> q; int main() { /** * 두 문자열 간 비교를 통해 알파벳의 선...
ALGO
0.999997
3.772752
{ "github_metadata": { "branch": "master", "commit_count": 725, "repo_created_at": "2021-05-13T06:59: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": "b866702a...
defb363a-1a00-41dc-85a0-2b2196baba7c
doodomartins/INE5412-ICs
IC1/main.cpp
#include <string> #include <iostream> #include <unistd.h> #include <errno.h> #include <sys/wait.h> using namespace std; int main () { // include declarations you need int count = 0; int i; pid_t pid; /* Repeat 5 times */ for(i = 0; i < 5; i++){ cout << "Parent process " << getpid() << ": Creati...
TOOL
0.996012
4.60731
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2016-03-18T01:47: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": "4e035a47a5...
a2bffac1-1eb7-4ec6-ba3e-886d376856db
mikki155/C-projects
writeToFile.cpp
#include <iostream> #include <fstream> #include <cstring> #include <string> #include <sstream> #include <map> using namespace std; int writeToFile(){ ofstream filen; filen.open("filen.txt"); if (filen.fail()){ cout << "Kunne ikke aapne fil." << endl; } cout << "Skriv inn et ord (skriv 'quit' for aa avslutte)...
TOOL
0.905291
3.254528
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2018-06-19T10:22: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": "ed44723965...
429c8101-9c87-456a-9f4f-21be024c8371
buildCodeZ/buildz
buildz/xf/cpp/loaderz/code.cpp
#include<cstring> int unicode_to_utf8(int code_point, char* s) { if (code_point<0)return 0; int i=0; if (code_point <= 0x7F) { // 1-byte sequence s[i++]=(char)code_point; } else if (code_point <= 0x7FF) { // 2-byte s[i++]=(char)(0xC0 | ((code_point >> 6) & 0x1F)); s[i++]=(char)(...
TOOL
0.917163
3.463221
{ "github_metadata": { "branch": "main", "commit_count": 141, "repo_created_at": "2022-08-14T08:14: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": "dd0a691fe6...
5290e282-3981-40e8-bb5d-f8f921a6edc8
zhangyx1122/Earth_Cat_Template
计算几何/计算几何全家桶.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll N = 1 << 20; const ll mod = 1e9 + 7; const double dinf = 1e99; const int inf = 0x3f3f3f3f; const ll linf = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-9; const double PI = acos(-1.0); struct Line; struct Point { double x, y; Point()...
ALGO
0.999798
3.405414
{ "github_metadata": { "branch": "master", "commit_count": 446, "repo_created_at": "2020-08-06T16:21:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "87ba87a1...
6c4552ab-f2ef-4aee-a7b7-f5f24133262e
rohan-sawhney/optimization
main.cpp
#include "Solver.h" #include <iostream> struct Rosenbrock { void objective(double& f, const VectorXd& u) { double x = u(0); double y = u(1); f = 100*pow(y - x*x, 2) + pow(1 - x, 2); } void gradient(VectorXd& g, const VectorXd& u) { double x = u(0); ...
ALGO
0.99997
5.641095
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2017-01-06T23:19:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c09d8bb53c...
473d478b-32db-471f-a085-a34399b368e3
kassandei/Goldbach-Euler-Algorithm
AlgorithmGoldbach-Euler.cpp
#include <iostream> using namespace std; void askRange(int &rangeMin, int &rangeMax, int MIN, int MAX); void goldbachEuler(int rangeMin, int rangeMax); bool isPrime(int number); int main() { const int MIN = 2, MAX = 1000001; int rangeMin, rangeMax; char continueChoice = 's'; cout << "Welcome! This ...
ALGO
0.999643
5.060492
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-05-04T14:51: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": "0f7f5f2d9235...
b01d8e19-5e3e-40f4-9d46-582be54c8632
markkraay/concurrent_cpp
lock_based_structures/concurrent_list.cpp
#include <memory> #include <thread> #include <mutex> #include <iostream> template<typename T> class ConcurrentList { struct Node { std::mutex m; std::shared_ptr<T> data = nullptr; Node* next = nullptr; Node() {} Node(T const& value) : data(new T(value)) {} }; Node head; public: ConcurrentList() {} Co...
TOOL
0.956827
6.60869
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2023-08-08T18:08: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": "aa7a35dcda...
ae6828ec-5bae-461f-97a0-4a3c071591a7
ryanzhang15/RJ_HKOI
M1702.cpp
#include <cstdlib> #include <iostream> #include <cstdio> #include <iomanip> #include <fstream> #include <cmath> #include <cstring> #include <ctime> #include <deque> #include <string> #include <stack> #include <vector> #include <map> #include <queue> #include <list> #include <set> #include <algorithm> #include <nume...
ALGO
0.999699
3.441278
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2025-02-03T18:14:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "affc70edc50f...
0a09eb09-26f2-425b-bddf-58aaed6b0ff2
ZexuWang/Code_learning
C++/algorithms/backtrace/combinationSum2.cpp
/*40. 组合总和 II 给定一个候选人编号的集合 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。 candidates 中的每个数字在每个组合中只能使用 一次 。 注意:解集不能包含重复的组合。 示例 1: 输入: candidates = [10,1,2,7,6,1,5], target = 8, 输出: [ [1,1,6], [1,2,5], [1,7], [2,6] ] 示例 2: 输入: candidates = [2,5,2,1,2], target = 5, 输出: [ [1,2,2], [5] ] 提示: 1 <...
ALGO
0.999988
6.028608
{ "github_metadata": { "branch": "main", "commit_count": 40, "repo_created_at": "2021-06-22T15:17: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": "b7e9b252674...
74b82fef-39e9-4cb7-a8e3-de4bfe376249
to-mi/epwx
ep_wx_parallelep_factcov.cpp
/* * <NAME>, <EMAIL> * http://becs.aalto.fi/en/research/bayes/epwx/ * * Compile in Matlab with "mex -largeArrayDims -I/path/to/eigen/ ep_wx_parallelep_factcov.cpp" */ #include <Eigen/Eigen> #include <iostream> #include "mex.h" // quadrature settings (TODO: make user configurable?) #define MAX_EVALS 5120 #define M...
ALGO
0.999907
5.983796
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2014-11-10T14:17:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7c2bb48cec...
3f17941a-3fde-4d85-881f-6cb81aaef1e6
Swinston07/CSC_17C_Project1
CSC_17C_Spades_V10_CompareValues/main.cpp
/* * File: main.cpp * Author: <NAME> * * Created on November 6, 2024, 8:58PM * In this program I will create a getter function that will return the value of * each player's card and return the value of the card. This is b/c in order to * get a book in the game of Spades, a team must have the highest value on ...
ALGO
0.999767
4.511505
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2024-11-11T06:48: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": "fafaab2b3432...
d1beecc5-03f8-4858-91ca-57e7fd4d4c31
vuonghovan/c-learning
loop/loop.cpp
#include <stdio.h> int main() { // int so_nguyen[5] = [1, 2, 3, 4, 5]; int a = 10; int b = 2; // a++ => a = a + 1; printf("\n a++"); printf("\na = %d", a); printf("\n"); printf("a + b = %d", (a++) + b); // => Lan dua in a + b ~ 10 + 2 = 12, sau do no gan a = a + 1 => a = 10 + 1 printf("\n"); printf("a =...
ALGO
0.979815
3.136435
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2020-08-01T06:14: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": "efe625688c...
9ef90221-3d12-433e-9ed3-e603533d489a
elimamos/cpp-task
cpp_task/main.cpp
#include <iostream> #include <fstream> #include "Build/json.hpp" #include <string> #include <vector> #include <list> #include <regex> #include <algorithm> using namespace std; //https://github.com/nlohmann/json using json = nlohmann::json; using json_pointer=nlohmann::json::json_pointer; //Possible types of filters s...
TOOL
0.956918
4.596385
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2021-04-07T19:11: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": "0f87f9ca4a7d...
c6fb0cc8-8529-4394-ad1f-6ba58476ca7d
higuoxing/OJ
pat/1019.cc
#include <iostream> #include <algorithm> using namespace std; int main() { long long n, d; int num[100]; fill(num, num + 100, 0); scanf("%lld %lld", &n, &d); int idx = 0; while (n) { num[idx] = n % d; ++ idx; n /= d; } int flag = 1; for (int i = 0; i < idx; ++ i) { if (num[i] != num[id...
ALGO
0.999981
3.170973
{ "github_metadata": { "branch": "master", "commit_count": 43, "repo_created_at": "2018-08-05T05:14: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": "fe5d6e9bb...
81ac2a6e-dc79-40ad-87b5-dd0be67cae54
BMGongsg1/algorithms-code
2024-03-13----2024-03-17/2024-03-15-1.cpp
//P1140 相似基因 #include<bits/stdc++.h> using namespace std; struct pair_hash { size_t operator() (const pair<char,char>& pair) const{ return hash<char>()(pair.first) ^ hash<char>()(pair.second); } }; int main() { int n,m; string str1,str2; cin>>n>>str1; cin>>m>>str2; str1 = ' '+str1; ...
ALGO
0.999946
3.647726
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2024-03-13T12:33: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": "49da00945580...
c194eecd-d120-4183-b998-189c4df674be
anguillanneuf/hybridAStar
hybrid_breadth_first.h
// // Created by <NAME> on 8/8/17. // #ifndef HYBRIDASTAR_HYBRID_BREADTH_FIRST_H #define HYBRIDASTAR_HYBRID_BREADTH_FIRST_H #include <iostream> #include <sstream> #include <fstream> #include <math.h> #include <vector> using namespace std; class HBF { public: int NUM_THETA_CELLS = 90; double SPEED = 1.45; ...
ALGO
0.999722
4.927975
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2017-08-09T01:15:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4a1302599b...
20aa5457-404e-418b-846f-740487dedc1c
jasdeep-batra/Leetcode-GFG-Problem-Solving
Partition Equal Subset Sum - GFG/partition-equal-subset-sum.cpp
// { Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function Template for C++ class Solution{ public: int equalPartition(int N, int arr[]) { int sum =0; for(int i=0;i<N;i++) { sum+=arr[i]; ...
ALGO
0.999494
5.413102
{ "github_metadata": { "branch": "main", "commit_count": 2470, "repo_created_at": "2022-01-10T05:21:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1e12248fc...
380008ef-d72f-463d-ac99-4fc382975331
HinnoNguyen/-StudyFiles-IntroCoding
Wecode/Assignment1/2.10.cpp
#include <iostream> using namespace std; bool IsLeapYear (int nm) { return (nm % 4 == 0 && nm % 100 != 0) || (nm % 400 == 0); } bool ValidYear (int nm) { return nm > 0; } bool ValidMonth(int th) { return th >= 1 && th <= 12; } bool ValidDate (int ng, int th, int nm) { int DayInMonth [] = {0, 31, 28,...
ALGO
0.991586
3.564166
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2024-07-17T14:46: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": "f72beece45a...
03499dba-ad31-47fa-aa62-e8d081c300ec
Manan-Chhajed/AskSenior-Solutions
D - Flipping and Bonus.cpp
#include<bits/stdc++.h> using namespace std; void cmc() { #ifndef ONLINE_JUDGE freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); freopen("err.txt", "w", stderr); #endif } using ll = long long; const ll inf = 1e18; /* consider 1 based indexing dp[i][j] --> max money after ith coin to...
ALGO
0.999844
3.4334
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2023-10-18T08:16:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "28f6b5cb056...
1ea1734a-3349-4117-8fe6-43c6be687cb5
Camithilwen/Code-Cloning-Analysis
src/llm-scripts/testing/Project_CodeNet_experimentation_dataset/data/p00218/s874051046.cpp
#define _USE_MATH_DEFINES #include "bits/stdc++.h" #define EPS 1e-10 using namespace std; typedef long long llong; int main() { int n; while (cin >> n, n) { for (int i = 0; i < n; i++) { int m, e, j; cin >> m >> e >> j; if (m == 100 || e == 100 || j == 100 || (m + e) / 2 >= 90 || (m + e + j) / 3 >= 80)cou...
ALGO
0.993864
3.580503
{ "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": "0f4a2da266...
44523835-6e4c-475b-8db5-2e977dcba69e
inticoy/problem-solving
boj/class3/1620.cpp
#include <iostream> #include <map> #include <string> using namespace std; bool isInt(string &input) { for (int i = 0; i < input.size(); i++) if ('0' > input.at(i) || input.at(i) > '9') return false; return true; } int main() { ios_base::sync_with_stdio(false); // use cpp buffer only ...
ALGO
0.999603
4.133885
{ "github_metadata": { "branch": "main", "commit_count": 204, "repo_created_at": "2021-05-20T14:33: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": "1ac32c71f8...
c5414217-09fb-4ca8-a6d0-e132874aa742
pacocp/University-Works
Second Year/SCD/Práctica 1/productor_consumidor/src/productor-consumidor.cpp
/************************************************************ <NAME> * Sistemas Concurrentes y distribuidos. * Práctica 1 * ************************************************************/ #include <iostream> #include <pthrea...
ALGO
0.986806
5.098142
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2017-09-28T08:49: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": "a9cbe6837...
44bb66aa-2332-483b-a1a9-dfb2857b27a0
wanglei828/leetcode
medium/Minimum_Time_Difference-medium/solution.cpp
/* Given a list of 24-hour clock time points in "HH:MM" format, return the minimum minutes difference between any two time-points in the list. Example 1: Input: timePoints = ["23:59","00:00"] Output: 1 Example 2: Input: timePoints = ["00:00","23:59","00:00"] Output: 0 Constraints: 2 <= timePoints.length <= 2 ...
ALGO
0.999918
6.034903
{ "github_metadata": { "branch": "master", "commit_count": 1063, "repo_created_at": "2016-06-24T00:56: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": "89c29f3...
4e5b0b24-71db-4a68-a621-b76ceca16d55
PritishDoc/DSA-in-C-
Geek For Geek POTD/LongestCommonPrefixOfString.cpp
/* Longest Common Prefix of Strings Difficulty: EasyAccuracy: 29.52%Submissions: 271K+Points: 2 Given an array of strings arr. Return the longest common prefix among all strings present in the array. If there's no prefix common in all the strings, return "-1". Examples : Input: arr[] = ["geeksforgeeks", "geeks", "gee...
ALGO
0.999741
6.02165
{ "github_metadata": { "branch": "main", "commit_count": 1411, "repo_created_at": "2024-07-21T12:19:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3383634ff...
56440246-44b5-4821-aaea-03a83a63c8a4
Luo-Ying/Tetravex
TP2/exo2.cpp
#include <iostream> #include <thread> #include <string> #include <vector> #include <cctype> #include <algorithm> #include <queue> #include <condition_variable> #include <mutex> #include <functional> using namespace std; mutex m; queue<string> job0; queue<string> job1; queue<vector<string>> job2; queue<vector<string>>...
TOOL
0.99228
3.529632
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2022-10-19T07:47: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": "c8c02a59170...
81cb4ab4-a4d5-4a9d-b7ac-b473698a7181
lianlian51/LeetCode
leetcode14/LeetCode461/LeetCode461/test.cpp
//class Solution { //public: // int hammingDistance(int x, int y) { // x = x^y; // int count = 0; // while (x) // { // if (x & 1) // { // count++; // } // x >>= 1; // } // return count; // } //}; //#include <stdio.h> //#include <string.h> //# // //int main() //{ // char buff[30]; // gets(buff); // // ...
ALGO
0.982441
3.225216
{ "github_metadata": { "branch": "master", "commit_count": 247, "repo_created_at": "2020-09-27T07:52: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": "a0624d08...
7c804952-c30d-46ac-839e-f73bd5dfd74b
diptayan2k/CP-Submissions
codeforces/1365/A.cpp
#include <iostream> #include<bits/stdc++.h> #define ll long long int #define lld long double #define F first #define S second #define f(i,a,b) for(int i=a;i<=b;i++) #define g(i,a,b) for(int i=a;i>=b;i--) #define mp make_pair #define pb push_back #define mh make_heap #define ph push_heap #define pq priority_queue #defin...
ALGO
0.999971
4.187901
{ "github_metadata": { "branch": "master", "commit_count": 645, "repo_created_at": "2020-12-21T09:34: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": "6516ad31...
53313600-a964-42fb-948f-01cef532ad0d
vickykolhe/operating_system_lab_codes
dining_philosopher.cpp
#include <bits/stdc++.h> #include <semaphore.h> using namespace std; #define NUM_PHILOSOPHERS 5 // Semaphore array to represent chopsticks sem_t chopsticks[NUM_PHILOSOPHERS]; // Function for each philosopher's behavior void *philosopher(void *num) { int id = *((int *)num); while (true) { // Thi...
ALGO
0.999892
5.430978
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-11-21T21:02: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": "0ab74f9b4eff...
7e9bd8df-b529-4e33-9797-63c48676a901
Cxbx-Reloaded/XbSymbolDatabase
src/test/util/cliConfig.cpp
// SPDX-License-Identifier: MIT // SPDX-FileCopyrightText: 2019 RadWolfie #include <chrono> #include <deque> #include "cliConfig.hpp" struct pair_str { std::string first; std::string second; }; class cli_deque : public std::deque<pair_str> { public: cli_deque() = default; virtual ~cli_deque() ...
TOOL
0.924216
6.838353
{ "github_metadata": { "branch": "master", "commit_count": 680, "repo_created_at": "2018-05-03T23:49:52.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 27, "forks": 9, "issues": 27, "pull_requests": 2 }, "file_meta": { "content_id": "55178c2...
a9d40f9f-31f2-497d-b741-4017b8a4448e
18-VK/Coding__ninjas-DSA-CPP
linked_list/singly_linked_list/problems_on_list/eliminated_duplicates.cpp
#include <iostream> #include <bits/stdc++.h> #include "input_byuser.cpp" using namespace std; // eliminate duplicates from sorted linked list node *duplicates(node *head) { node *original_head = head; node *temp = head; node *current = original_head->next; if (temp == NULL) // if list has no node or onl...
ALGO
0.999832
3.638776
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2022-01-02T08:17: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": "964a7f5b866...
7bb69496-e1f9-47f9-9d7d-b462d2a7590d
raincross7/code-similarity
codes/train_code/problem464/problem464_345.cpp
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<n; i++) #define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++) long long mo = 1e9 + 7; typedef long long ll; typedef long double ld; typedef pair<int,int> Pii; typedef pair<ll,ll> Pll; template<class T, class S> void cmin(T &a, const S &b) { if (...
ALGO
0.999997
3.976481
{ "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": "ae23cdc24f78...
3a31ba4e-63f9-4757-8931-8a21d07dafee
PrabhakarKulkarni7/Leetcode_submissions
753-open-the-lock/open-the-lock.cpp
class Solution { public: int openLock(vector<string>& deadends, string target) { unordered_set<string> v(deadends.begin(), deadends.end()); pair<string, int> c; // bfs and find target deque<pair<string, int>> deq; string cur; int len = target.length(); for (in...
ALGO
0.999948
5.774652
{ "github_metadata": { "branch": "main", "commit_count": 2201, "repo_created_at": "2024-01-26T09:58:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aae67268c...
98a8742f-90fe-452d-bcdf-d08cd529d365
GariFFon/C_plus_plus
C++/DSA/Stack/Postfix_Evaluation.cpp
//#include <iostream> //#include <memory> //#include <stack> //#include <string> // //using namespace std; // //class Node { //public: // int data; // unique_ptr<Node> next; //}; // //class Stack { //private: // unique_ptr<Node> top; //public: // Stack(); // void push(int x); // int pop(); // int p...
ALGO
0.988618
6.50034
{ "github_metadata": { "branch": "main", "commit_count": 27, "repo_created_at": "2024-09-25T11:59:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d51b85de4e0...
555cb0df-8f43-4261-bba6-d6ba1a85e000
tenzin1308/number-system-convetor
main.cpp
// // main.cpp // converter // // Created by <NAME> on 1/18/19. // Copyright © 2019 <NAME>. All rights reserved. // #include <iostream> #include <string> #include <stdlib.h> #include <cmath> using namespace std; string input,inputFrom,inputTo,out; int digit,converted,power,rem; void menu(){ cout << "Conveter...
ALGO
0.922714
3.773054
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-07-27T22:10: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": "e379361894...
152c8649-678e-4557-9235-329457cdb2c6
ahmedelsaie/AlgorithmsProblems
CodeForces/B. Sherlock and his girlfriend.cpp
#include <bits/stdc++.h> using namespace std; #define MAX 1000009 #define ll long long int sieve(); int numPF(ll x); bool v[MAX]; int primes[MAX], arr_fac[100], n_primes; int colors[MAX]; int fn(); int n; int main() { scanf("%d",&n); printf("%d\n", fn()); for(int i = 2; i <= n+1; i++) printf("%d ...
ALGO
0.999902
3.648561
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2017-12-26T01:29: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": "8316805709...
862700d6-6c6f-4e6c-98a5-cbeea4275fbc
min9yu98/Algorithm
백준/Silver/2581. 소수/소수.cc
#include <stdio.h> #include <iostream> #include <vector> #include <cmath> #include <algorithm> #include <set> #include <ostream> #include <string> #include <cstring> #include <sstream> #include <time.h> #include <queue> #include <cstdlib> #include <stdbool.h> using namespace std; int m, n, total = 0, min_prime = 1000...
ALGO
0.999981
3.997332
{ "github_metadata": { "branch": "main", "commit_count": 920, "repo_created_at": "2022-06-21T14:03: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": "74586d5de2...
1142cccc-e1da-4fad-b438-6745b379217d
arangodb/arangodb
3rdParty/boost/1.78.0/libs/graph/example/inclusive_mean_geodesic.cpp
// (C) Copyright <NAME> 2007 // // Use, modification and distribution are subject to the // Boost Software License, Version 1.0 (See accompanying file // LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) //[inclusive_mean_geodesic_example #include <iostream> #include <iomanip> #include <boost/graph/directed_gr...
ALGO
0.999732
6.478622
{ "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": ...
8c53d1bf-3e5d-4237-95ad-9ff8cd3f593c
Nazlbit/rasterizer
main.cpp
#include <cstdio> #include <vector> #include <cmath> #include <chrono> #include <thread> #include <algorithm> namespace math { union vec2 { struct { float x, y; }; float values[2]; }; inline vec2 operator-(const vec2 &a, const vec2 &b) { return {...
ALGO
0.997389
5.891768
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2022-05-03T21:16:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9d849e537767...
b629a66a-ab93-43d6-953a-fa73bc716c70
yfliu017258/CPP_programs
TOJ/已註解,整碼/toj239-2.cpp
#include<iostream> using namespace std; const int maxNode = 4000000; //左子節點和右子節點的座標位置 #define LC (now*2) #define RC (now*2+1) #define M (L+R)/2 struct Node { int max,min,flag; }node[maxNode]; //建造一個H[]的線段數 //now為線段數的座標 //L,R為此點中包含H的位置 //H*為H[] void build(int now,int L,int R,int *H) { node[now].flag=0; ...
ALGO
0.999761
4.358345
{ "github_metadata": { "branch": "master", "commit_count": 244, "repo_created_at": "2020-03-27T15:18: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": "c0c8eebc...
f0cfe16d-e182-4863-a8c8-becc9c4fd5ac
hbutler97/ci
linked_list/2/HelloWorld.cpp
/* Remove Dups: Write code to remove duplicates from a unsorted linked list */ #include <iostream> #include <cstddef> #include <cstdlib> #include <stdlib.h> #include <stdio.h> #include <string> #include <stack> #include "tclap/CmdLine.h" class Node { public: Node(int data){m_data=data;m_next = NULL;}; void setDat...
ALGO
0.9993
5.195274
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2019-05-03T22:03: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": "24e14aed6c...
103f016b-3da1-49fa-8d8e-49216538fad0
NamHyeongKeol/professor_carlos
leebros/look-and-say-sequence/royce.cpp
#include <iostream> #include<vector> using namespace std; std::vector<int> numbers(1000, 0); std::vector<int> next_numbers(1000, 0); int main( ) { int n; cin >> n; numbers[0] = 1; for (int i = 1; i < n; ++i) { int digit = 0; int count = 0; int k = 0; for (int j = 0; j <...
ALGO
0.999934
3.881512
{ "github_metadata": { "branch": "master", "commit_count": 40, "repo_created_at": "2019-02-07T11:11:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 2, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "28b99cb96...
fea1b108-a138-476e-a3ec-12e3897ccea6
tiennguyen2310/CompetitiveProgrammingAlgos
Graph Algorithms/Labyrinth.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define fi first #define se second int m, n; const int Sz = 1000; char a[Sz + 1][Sz + 1]; pair <int, int> xp, kt; void Read() { cin >> m >> n; for(int i = 1; i <= m; i++) { for(int j = 1; j <= n; j++) { c...
ALGO
0.999991
3.715081
{ "github_metadata": { "branch": "main", "commit_count": 75, "repo_created_at": "2021-12-03T14:22:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "423415f2b33...
2da34980-37f0-4118-ba2c-5e80752cb2c7
stan-dev/math
stan/math/opencl/prim/bernoulli_cdf.hpp
#ifndef STAN_MATH_OPENCL_PRIM_BERNOULLI_CDF_HPP #define STAN_MATH_OPENCL_PRIM_BERNOULLI_CDF_HPP #ifdef STAN_OPENCL #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/opencl/kernel_generator.hpp> #include <stan/math/prim/fun/constants.hpp> #include <stan/math/prim/functor/partials_...
ALGO
0.983952
6.819994
{ "github_metadata": { "branch": "develop", "commit_count": 28933, "repo_created_at": "2015-07-01T18:40:54.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 785, "forks": 195, "issues": 298, "pull_requests": 19 }, "file_meta": { "content_id": ...
bda0ae5a-7b9d-4950-9ad0-c16b2cd4a522
hayaten0415/Competitive-programming
Codeforces/div3/686/B.cpp
#pragma region Macros // #pragma GCC target("avx2") #pragma GCC optimize("O3") #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define rrep(i, n) for (int i = (n - 1); i >= 0; i--) #define ALL(v) v.begin(), v.end() #define pb push_back #define eb emplace_back #define endl "\n" using namespace s...
ALGO
0.999948
4.431681
{ "github_metadata": { "branch": "master", "commit_count": 1321, "repo_created_at": "2019-02-17T01:01: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": "c7b1168...
99c8d726-0fac-4fda-88de-4241dc0194b6
SeanCST/Algorithm_Problems
程序员代码面试指南/036_找到二叉树中符合搜索二叉树条件的最大拓扑结构.cpp
#include <iostream> #include <map> #include <algorithm> using namespace std; struct tree_node { int val; tree_node *left; tree_node *right; tree_node(int v) : val(v), left(NULL), right(NULL){} }; // bool isBSTNode(tree_node *h, tree_node *n, int value) { // if(h == NULL) { // return f...
ALGO
0.999929
4.176855
{ "github_metadata": { "branch": "master", "commit_count": 515, "repo_created_at": "2018-08-09T14:19: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": "81342a14...
cb27baa8-6236-4a61-936c-7de5a5946358
zhou-jk/code
QOJ/1668 2024 北京市大学生程序设计竞赛/B/B.cpp
#include<bits/stdc++.h> using namespace std; constexpr int N=300005; struct Node { int op,val,x,y,id; }a[N]; struct BIT { int c[N]; int lowbit(int x) { return x&-x; } void add(int x,int y) { for(int i=x;i<N;i+=lowbit(i)) c[i]+=y; return; } int quer...
ALGO
0.999969
4.23869
{ "github_metadata": { "branch": "master", "commit_count": 123, "repo_created_at": "2019-11-07T12: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": "d670ada6...
3f83bc55-52ea-4eef-8ac1-4e3823a93196
fehlfarbe/python-aruco
include/posetracker.h
/** Copyright 2017 <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
ALGO
0.978116
6.666993
{ "github_metadata": { "branch": "master", "commit_count": 49, "repo_created_at": "2016-04-05T10:50:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 70, "forks": 16, "issues": 8, "pull_requests": 0 }, "file_meta": { "content_id": "249456f...
4e3c3d3b-bbb1-4f11-8b49-2ef4d5902824
airwindows/airwindows
plugins/WinVST/Pear/PearProc.cpp
/* ======================================== * Pear - Pear.h * Copyright (c) airwindows, Airwindows uses the MIT license * ======================================== */ #ifndef __Pear_H #include "Pear.h" #endif void Pear::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames) { float* in1 = ...
ALGO
0.925529
4.871147
{ "github_metadata": { "branch": "master", "commit_count": 458, "repo_created_at": "2018-01-22T02:05:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 951, "forks": 91, "issues": 31, "pull_requests": 4 }, "file_meta": { "content_id": "21d4...
034e39cd-4228-4a66-be6e-7a42ef9ab27a
pankdm/icfpc-2019
src/solvers/task_splitter.h
#pragma once #include "base/action.h" #include "base/sleep.h" #include "base/world_task_split.h" #include "solvers/solver.h" #include <algorithm> #include <vector> namespace solvers { template <class TCloneSolver, class TWorkerSolver> class TaskSplitter : public Solver { protected: WorldTaskSplit world; TCloneSo...
ALGO
0.996185
6.341323
{ "github_metadata": { "branch": "master", "commit_count": 1626, "repo_created_at": "2019-06-20T20:20:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 5 }, "file_meta": { "content_id": "c1fabfd...
61989092-c4c5-4c2b-888e-7fba09a5df35
rabiya1992/PF-Lab-Week-6
example3.cpp
#include <iostream> using namespace std; int isGreatest(int num1, int num2, int num3); main() { int num1; int num2; int num3; int answer; cout << "Enter first number: "; cin >> num1; cout << "Enter second number: "; cin >> num2; cout << "Enter third number: "; cin >> num3; answer = isGreatest(num1, num2...
ALGO
0.999599
3.894151
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2023-01-15T13:07: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": "875e74303e...
5f0ae7c5-54ec-47c4-b95f-bb18f99e4716
HalleBeary/EMC-Koen
include/free_flight_scatter.hpp
#ifndef free_flight_scatter_HPP #define free_flight_scatter_HPP #include "treeStructure.hpp" #include "drift.hpp" #include "scatter.hpp" //* Free Flight scatter function for a single particle */ void free_flight_scatter (geometryClass DevGeometry, ContainerClass* particles, scat_paramClass *scat_par, mat_paramCla...
ALGO
0.984202
4.34798
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2022-04-21T10:21: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": "b5507e3e50...
71a16cb8-deb2-4386-9d32-55206d606593
kneternal/PrimerLearner
dsa/sort/runner/main.cpp
#include "headers.h" void *run(void *threadid) { for (auto i = 0; i < 8; ++i) { vector<int> data; string file_name = "data_" + to_string(int(pow(10, i))) + ".txt"; cout << "Process file: " << file_name << endl; read_data(data, file_name); auto start = chrono::steady_clock::now(); if(i == 1) ...
ALGO
0.996584
4.508891
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2019-01-30T08:59: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": "3ece3aaf8...
38ef4afb-065b-4744-89cb-b814591904d6
Ming4444/CppPrimerPlus6Code
Chapter 10/10_10_5______________________________star.cpp
/* 模拟栈实现 */ #include <iostream> #include <string> using namespace std; typedef struct customer Item; struct customer { char fullname[35]; double payment; }; class stack { public: stack(); ~stack(); bool isEmpty() const; bool isFull() const; bool push(const Item&); double pop(Item...
TOOL
0.917225
3.968042
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-10-21T06:27: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": "28d663521a...
7816199f-dd45-4bca-8737-47f23c04833b
avalonlll/Compilers
ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp
// ConsoleApplication1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "iostream" #include "string" using namespace std; char namear[1000]; char gen[1000]; char prv[1000]; string name; void shiftright(char myarray[], int size) { for (int i = 99; i>=0; i--) { myarray[i] = ...
ALGO
0.958128
3.143885
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2017-03-03T11:43: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": "190b1ed8f9...
70f8ca6a-95bf-4bc2-bba5-20e319e5fc93
jiangtao1234ji/ACM-code
洛谷代码存放/普及练习场/广度优先搜索/P1126 机器人搬重物.cpp
#include <iostream> #include <algorithm> #include <string> #include <cstring> #include <queue> #define maxn 55 using namespace std; struct node { int x, y, s, st; node() {} node(int x, int y, int s, int st) : x(x), y(y), s(s), st(st) {} }; int dir[5][2] = {{0, 0}, {0, 1}, {0, -1}, {1, 0}, {-1, 0}}; int n...
ALGO
0.999981
4.292305
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-01-11T09:21:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "50e1b865da...
84b4725a-ef68-4869-ac01-60260ca7a5e5
nachtfuchs/CppExercisesBasedOnPPP
Ch04_Ex17_MinMaxMode/source.cpp
/* @brief Assignment from chapter 4 exercise 17 . * Book: Programming Principle and Practice using C++ - Stroustrup * * Write a program that finds the min, max, and mode of a sequence of * strings. */ #include "../std_lib_facilities.h" string getMode(vector<string> input) { /*@brief Get the mode of the input ve...
ALGO
0.999821
6.596818
{ "github_metadata": { "branch": "master", "commit_count": 25, "repo_created_at": "2019-06-21T15:56: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": "43ef847a1...
995dc3b4-cea5-4fad-9157-4ea92b4456b1
trheredia/hw5
schedwork.cpp
#ifndef RECCHECK #include <set> #include <iostream> #include <fstream> #include <string> #include <vector> #include <map> #include <algorithm> // add or remove necessary headers as you please #endif #include "schedwork.h" using namespace std; // a constant that can be used to indicate an INVALID // worker ID if th...
ALGO
0.995329
5.453553
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2025-04-24T19:56: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": "605ed25b5200...
6f2f3a89-1dc5-4966-9d78-1add1a577762
meysam-bagheri/MercuryDPM
Drivers/USER/Behzad/SiloBehzad.cpp
//Copyright (c) 2013-2023, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
ALGO
0.998064
3.990366
{ "github_metadata": { "branch": "master", "commit_count": 772, "repo_created_at": "2024-09-06T11:58:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2d7fc423...
90dc0364-9845-4287-b903-2e618593a837
wtenorioucb/ProgramacionI_1-2025
Unidad II/Ejercicio_06.cpp
// EJERCICIOS CON VECTORES // Materia: Programación I, Paralelo 3 // Docente: <NAME> // Fecha: 27/03/2025 // EJERCICIO: Encontrar la posición de un número en el vector #include <iostream> using namespace std; void LlenarVector(int[], int); void MostrarVector(int[], int); void EncontrarPosicionValor(int[], int, int)...
ALGO
0.999639
4.850784
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2025-02-12T20:42:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dd1449096...
76829fa7-0995-4545-b49d-230bba77cfc6
WYCTSTF/solution
codeforces/contest/1816/d/d.cpp
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <...
ALGO
0.999601
3.303982
{ "github_metadata": { "branch": "main", "commit_count": 121, "repo_created_at": "2022-08-29T04:06: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": "e9c12189ec...
e5e5ffc9-1233-4394-9a2f-be52dd8ba941
EveKristinLee/CodingTest
Programmers/Level 1/신규 아이디 추천.cpp
#include <string> #include <vector> #include <iostream> using namespace std; string first(string id) { for (int i = 0; i < id.length(); i++) { if (isalpha(id[i])) { if (isupper(id[i])) { id[i] = tolower(id[i]); } } } return id; } string second(string id) { for (int i = 0; i < id.length();) { if (...
ALGO
0.999183
4.33102
{ "github_metadata": { "branch": "main", "commit_count": 1041, "repo_created_at": "2021-05-11T16:10: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": "387512ba0...
62ef9626-8e43-4859-8694-1bea2118c280
hkhl/LeetCode
561. Array Partition I.cpp
/************************************************************************* > File Name: 561. Array Partition I.cpp > Author: wang > Mail: <EMAIL> > Created Time: 2018年04月18日 星期三 22时00分51秒 ************************************************************************/ #include <iostream> using namespace std; /* * Give...
ALGO
0.999961
5.223776
{ "github_metadata": { "branch": "master", "commit_count": 110, "repo_created_at": "2018-03-25T06:59:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "876c0130...
20390fc5-e095-41fb-a2e6-60250b5ff341
josselincastro/cpp
main1.cpp
# incluye < iostream > # incluir < cadena > usando el espacio de nombres std ; cadena de productos [ 5 ] [ 3 ] = { { " 001 " , " iPhone X " , " 0 " }, { " 002 " , " Laptop Dell " , " 5 " }, { " 003 " , " Monitor Samsung " , " 2 " }, { " 004 " , " Ratón " , " 100 " }, { " 005 " , " HeadSet " , ...
TOOL
0.934027
3.892145
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2021-06-05T03:05: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": "7aa5d9970cd...
408da2d2-9dbf-49b9-b457-150b2f7991ef
abdelaleem024/competitive-programming
Solutions/Google-Kick-Start-2022/Round C/Range Partition.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define NeedForSpeed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0) #define ll long long #define int ll int num[5004]; void solve() { int n, x, y; cin >> n >> x >> y; int s1 = x + y; int s2 = n * (n + 1) / 2; if (s2 % s1 == 0)...
ALGO
0.999861
4.289493
{ "github_metadata": { "branch": "main", "commit_count": 531, "repo_created_at": "2021-11-17T18:36:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 53, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "64b717e7e...
82328e50-b31d-4ca0-9fe1-b3ccf1afd7cd
Eagle-Konbu/procon-archive
atcoder.jp/typical90/typical90_ah/Main.cpp
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; typedef long long ll; typedef pair<ll, ll> P; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define reps(i, n) for (ll i = 1; i <= (ll)(n); i++) #define rrep(i, n) for (ll i = (ll)n - 1; i >= 0; i--) #define rreps(i, n) f...
ALGO
0.99998
4.441485
{ "github_metadata": { "branch": "master", "commit_count": 463, "repo_created_at": "2022-08-28T09:30: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": "0c0bcf59...
cf58f5f2-3d47-4d27-a2e1-aa746ed3faec
Jahangirhussen/Code_Force
Div 2 CodeForce/228A-Is your horseshoe on the other hoof.cpp
/** My Name : <NAME> Country : Bangladesh Gmail : <EMAIL> Github Link : https://github.com/Jahangirhussen WebSite Name : Code Force Problem Name : A. Is your horseshoe on the other hoof? Problem Number : 228A Difficulty : Div 2 Problem Link : https://codeforces.com/problemset/proble...
ALGO
0.99982
3.386776
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2023-09-15T15:12:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eaa637786d37...
78f094a0-f395-4803-9a91-8c9c9ebb2813
CreatorSeraph/2021-digitech-cpp
baekjoon/채영훈/CodingTest/CodingTest/1072 - 게임.cpp
#include <iostream> #include <vector> #include <numeric> #include <iostream> #include <string> #include <chrono> #include <set> #include <map> #include <unordered_map> #include <unordered_set> #include <algorithm> #include <list> using namespace std; #define async_with_stdio ios_base::sync_with_stdio(false); cin.tie(...
ALGO
0.999695
3.770146
{ "github_metadata": { "branch": "main", "commit_count": 130, "repo_created_at": "2021-07-22T02:07:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a8ae3f8093...
39d64759-5cdb-46b7-84fd-4e59e1cc0d96
shixiang08abc/deep-learning
LSTM_IMP/scr_code/lstm_tag_parse_decode.h
// ===================================================================== // Author: <EMAIL> // Copyright 2017 Sogou Inc. All Rights Reserved. // ===================================================================== #ifndef LSTM_TAG_PARSE_DECODE_H #define LSTM_TAG_PARSE_DECODE_H #include <iostream> #include <string> #i...
DATA
0.966891
5.849113
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2018-10-12T07:03:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d6ff9ce134...
b4a559b0-919d-4f95-a3ff-009c1289bbd1
rijuyuezhu/XCPC-code
Problems/2022/09/LG_P1991/main.cpp
/* * @Author: rijuyuezhu * @Date: 2022-09-12 14:16:03 * @Description: https://www.luogu.com.cn/problem/P1991 * @Tag: 图论,最小生成树 */ #include<cstring> #include<cstdio> #include<algorithm> #include<cmath> using namespace std; using ll = long long; using db = double; char In[1 << 20], *ss = In, *tt = In; #define getchar(...
ALGO
0.999902
3.83609
{ "github_metadata": { "branch": "master", "commit_count": 37, "repo_created_at": "2023-03-05T03:20: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": "4850d8941...
99b220bc-e322-482e-8f49-2643b815eb47
Fudmottin/Collatz
collatz5.cpp
#include <iostream> #include <mutex> #include <future> #include "memo.h" constexpr int collatz(uint64_t seed) { int steps = 0; while (seed > 1) { if (seed < 1'000'000) return steps + memo[seed]; (seed & 1) ? seed = 3 * seed + 1 : seed >>= 1; ++steps; } return steps; } int mai...
ALGO
0.999716
5.943922
{ "github_metadata": { "branch": "main", "commit_count": 31, "repo_created_at": "2024-04-07T10:06:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "4caf0890480...
2aa3c994-7f57-4a33-b232-89b7d51be12e
Prakhar-002/LEETCODE
📚 Study 🎧 Plan 👨🏻‍💻/🍢 Top Interview 150 🥡 Must do List/🔬 Examine Thoroughly 🧬/01 Array & String/Day ➺ 08 🍢 122. Best Time to Buy and Sell Stock II ☃️ 🍁 🍰 🎲 💖/🎲CPP - 122. Best Time to Buy and Se.cpp
//! https://github.com/Prakhar-002/LEETCODE // Todo 💎 QUESTION NUMBER 122 //? ⌚ Time complexity ➺ O(n) 👉🏻 n = len(profit) //? 🧺 Space complexity ➺ O(1) #include <vector> using namespace std; class Solution { public: int maxProfit(vector<int>& prices) { // Initialize profit variable ...
ALGO
0.999911
5.985202
{ "github_metadata": { "branch": "main", "commit_count": 3568, "repo_created_at": "2024-05-24T09:01:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "33b4c6936...
f228b219-076e-4e27-9d91-a611d1d2ac85
0megaXX/Baek_Joon
백준/Gold/5972. 택배 배송/택배 배송.cc
#include <iostream> #include <string> #include <vector> #include <ctime> #include <cstdlib> #include <fstream> #include <stddef.h> #include<iostream> #include<string> #include<algorithm> #include<vector> #include <sstream> #include <cmath> #include<map> #include <queue> #include <stack> #include <cstring> #include <de...
ALGO
0.999911
3.744149
{ "github_metadata": { "branch": "main", "commit_count": 555, "repo_created_at": "2024-03-19T11:50: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": "442b6ca1a0...
4ca76cee-e653-4c0c-8470-75b133f38172
cheeyeo/dirac
libdirac_motionest/me_utils_mmx.h
/* ***** BEGIN LICENSE BLOCK ***** * * $Id: me_utils_mmx.h,v 1.3 2008/05/27 01:29:55 asuraparaju Exp $ * * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in compliance * with the License. You may o...
TOOL
0.982434
5.61934
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2012-01-30T22:32:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a236e88e9d...
99486091-4e1e-4c89-9177-0253b109ba99
yadurajgupta/CSES_Solutions
Sorting and Searching/Array_Division.cpp
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <iostream> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #undef INT_MAX #define INT_MAX LLONG_MAX #define endl '\n' #define int unsigned long l...
ALGO
0.999961
4.74153
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2021-06-04T17:00: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": "f887de297...
d39b7b99-2e89-4418-8a6e-601c18611d53
hjguyue/usaco
section1_5_numtri/section1_5_numtri/main.cpp
/* ID: hjguyue1 PROG: numtri LANG: C++ */ #include <iostream> #include <fstream> using namespace std; int num[1000][1000]; int main(int argc, const char * argv[]) { ifstream fin("numtri.in"); ofstream fout("numtri.out"); cin.rdbuf(fin.rdbuf()); cout.rdbuf(fout.rdbuf()); int R = 0; cin >>...
ALGO
0.999904
3.951548
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2013-12-19T03:44: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": "39f7a9ebad...
0fe4297b-e2ca-4d9a-a321-160af77cead3
iam1513/Competitive-Programming
CF Rated 800/C03_Cover_in_Water_1900A.cpp
#include <iostream> using namespace std; int func(int n, string st) { int ans = 0; int cnt = 0; int maxi = 0; for (int i = 0; i < st.size(); i++) { if (st[i] == '.') { cnt++; // cout << cnt << " "; } else { ans += cnt; ...
ALGO
0.999083
3.601689
{ "github_metadata": { "branch": "master", "commit_count": 248, "repo_created_at": "2024-12-02T03:32:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7863ac06...
9aaba22e-5f00-4657-9131-7cf4e9cc520e
kashee337/problems
opticon013/a.cpp
#include <algorithm> #include <cmath> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define pb push_back #define rep(i, n) for (int i = 0; i < (n); i++) #define reps(i, n, s) for (int i = (s...
ALGO
0.999758
4.312759
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2021-09-29T10: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": "afc27ede0d...
44e02376-c764-4f0d-a271-1fcf222f7866
MohamedGhareeb933/CPP-Code-Camp
Data Structure/hash table/Source.cpp
#include <iostream> #include <string> const int SIZE = 15; class hashMap { private: std::string value; public: hashMap(std::string value) { this->value = value; } }; class hashTable { private: hashMap** Table; // pointer to pointer this can only be initialized to pointer public: hashTable() { Table = ne...
ALGO
0.987427
4.669909
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-01-27T01:45:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5831f61e4541...
f8bc6ff6-1973-4881-9b10-4c6cb4ea5799
singh-gurkawalbir/LeetCode_Solns
438. Find All Anagrams in a String/Sol.cpp
class Solution { public: vector<int> findAnagrams(string s, string p) { unordered_map<char,int> mp1, mp2; for(auto ch : p) mp1[ch]++; int i =0,j=0,k = s.size(),n = p.size(); vector<int> ans; while(j<k){ mp2[s[j++]]++; if(j-i == n){ i...
ALGO
0.99999
7.699654
{ "github_metadata": { "branch": "main", "commit_count": 148, "repo_created_at": "2024-01-03T18:04: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": "5bdc6d1a8b...
f1bfbc6f-9d92-426a-ab17-9e8ebd30a89e
Haotian-RA/multi-core-iir-code
include/recursive_filter/multi_core_filter.h
#ifndef MULTI_CORE_FILTER_H #define MULTI_CORE_FILTER_H 1 #include "tbb_iir_multi_core.h" #include <vector> #include <tuple> // real function to user: use the cascaded second order filter to process a trunk of data. template<typename T,int N> class MultiCoreFilter{ // select the vector length and type based...
ALGO
0.965067
6.419179
{ "github_metadata": { "branch": "main", "commit_count": 27, "repo_created_at": "2024-06-26T04:05:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dc58c7c675f...
d372b551-8e27-4a52-b81d-3da3063d4b8f
MrGolden1/UVA
Volume 004/423 - MPI Maelstrom/423 - MPI Maelstrom.cpp
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <set> #include <sstream> #include <stdio.h> #include <math.h> #include <map> #include <iomanip> using namespace std; int INF = 1000000000; int dist[150][150]; int p[150][150]; vector<int> path; in...
ALGO
0.99949
3.915082
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2019-05-13T12:18:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "44cc6ef35f...
d404a4c3-27b6-4be7-b8f7-636b6163af92
Xiangyu-Hu/SPHinXsys
modules/opencascade/opencascade/relax_dynamics_surface.cpp
#include "relax_dynamics_surface.h" #include "level_set_shape.h" #include "surface_shape.h" #include <opencascade/GeomAPI_ProjectPointOnSurf.hxx> #include <opencascade/gp_Pnt.hxx> namespace SPH { namespace relax_dynamics { //=============================================================================================...
ALGO
0.996089
4.527314
{ "github_metadata": { "branch": "master", "commit_count": 5288, "repo_created_at": "2019-05-28T17:05:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 406, "forks": 291, "issues": 29, "pull_requests": 28 }, "file_meta": { "content_id": "8...