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
2bb301c8-24b5-4df7-9ccb-54baadaa706b
NikkiJain09/programming-abstractions
Chapter_05/Exersice_5_06/5_06.cpp
/* * File: 5_06.cpp * ------------- * A program to use the algorithm: sieve of Eratosthenes. * */ /* Imports */ #include <iostream> #include <string> #include "simpio.h" #include "vector.h" #include "strlib.h" #include "benfile.h" #include "histogram.h" /* Function Prototypes */ /* main */ int main() { int...
ALGO
0.999544
4.698223
{ "github_metadata": { "branch": "master", "commit_count": 128, "repo_created_at": "2015-10-24T06:37:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 14, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "45cd0b3...
8547994b-58ed-4af3-b224-90cf54b2c02d
GaurangRastogi/Codeforces
Chocolate.cpp
#include <bits/stdc++.h> using namespace std; typedef long long int ll; void solve() { ll m, n; cin >> m >> n; vector<ll> row(m - 1), col(n - 1); for (int i = 0; i < m - 1; i++) cin >> row[i]; for (int i = 0; i < n - 1; i++) cin >> col[i]; sort(row.begin(), row.end(), greate...
ALGO
0.999978
3.607509
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-11-16T15:04:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6f9b9b118c02...
ddd23020-32c5-40a3-8556-d11879007dcb
Hemant2A2/Codeforces
EatingCandies.cpp
#include<iostream> #include <algorithm> #include <math.h> #include <vector> #include <utility> #include <stdio.h> #include <string> using namespace std; #define pb push_back typedef long long ll; typedef unsigned long long ull; typedef vector<long> v; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL...
ALGO
0.999964
3.979409
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-10-02T13:21: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": "479f30137409...
ef56f04b-baaa-4847-8558-c7229a3a2884
jash-git/Jash-good-idea-20210816-001
OpenCV演算法精解:基於Python與C++/code/unzip/OpenCV算法精解-代码/第11章:频率域滤波/11.3/ihpFilter.cpp
#include<opencv2\core\core.hpp> #include<opencv2\highgui\highgui.hpp> #include<opencv2\imgproc\imgproc.hpp> using namespace cv; #include<iostream> using namespace std; /*全局变量*/ Mat image; Mat fImageFFT;//存储图像的快速傅里叶变换 Point maxLoc;//傅里叶谱的最大值的坐标 int radius = 10;//截止频率 const int Max_RADIUS = 100; //理想高通滤波器 Mat ihpFilter;...
ALGO
0.997607
4.400231
{ "github_metadata": { "branch": "main", "commit_count": 34, "repo_created_at": "2021-08-16T01:59:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8af361c5f0...
021f2e84-b0f3-45bd-9b15-bda99fedc97b
OpenFOAM/OpenFOAM-dev
src/thermophysicalModels/specie/reaction/reactionRate/FallOffReactionRate/FallOffReactionRateI.H
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation \\...
TOOL
0.994819
6.744849
{ "github_metadata": { "branch": "master", "commit_count": 8589, "repo_created_at": "2014-12-10T15:47:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1770, "forks": 642, "issues": 0, "pull_requests": 3 }, "file_meta": { "content_id": "f8...
b5711f56-3d81-4167-936e-c5861a2a1189
charlotte0829/Algorithm
ACM/poj/poj2774.cpp
/********************************************************* file name: poj2774.cpp author : Sakura_Mashiro create time: 2015年09月27日 星期日 08时15分53秒 ********************************************************** solution: SAM 对第一个串创建后缀自动机,第二个串在后缀自动机上跑,更新 最大值 **********************************************************...
ALGO
0.999952
3.771389
{ "github_metadata": { "branch": "master", "commit_count": 64, "repo_created_at": "2015-05-03T15:23:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3115b779f...
eee92151-7ca1-4f86-bed7-6e11c0825f4e
qhoa256/PTIT-CODE-CPP
CPP0515.cpp
#include <bits/stdc++.h> using namespace std; struct SinhVien { string hoten, lop, ngaysinh; double gpa; string masv = "B20DCCN"; }; vector<SinhVien> v; void nhap(SinhVien ds[], int n) { for (int i = 0; i < n; i++) { cin.ignore(); getline(cin, ds[i].hoten); cin >> ds[i].lo...
ALGO
0.990907
4.308307
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-01-19T10:14: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": "4a71f0bb3aed...
d6587f35-6d29-4c26-92fb-932053a56439
rsijiao0518/CPPTEST
Shell/InterpolantMinimizerNew.hpp
/* * File InterpolantMinimizerNew.hpp. * * This file is part of the source code of the software program * Vampire. It is protected by applicable * copyright laws. * * This source code is distributed under the licence found here * https://vprover.github.io/license.html * and in the source directory * * In su...
ALGO
0.983082
6.644264
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2018-08-02T17:31:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "89fd20034...
68559d4e-e665-40bc-9f3f-e6b3d240dc87
brianchennn/Cryptography_Final_Project
Encrypt.cpp
#include <iostream> #include <fstream> #include <cstring> #include <chrono> #include <vector> #include <cmath> using namespace std; typedef int _8b; bool isCoprime(int a, int b){ // a,b 是否互質 while(b != 0){ int tmp = a % b; a = b; b = tmp; if(b == 1){ return true; ...
ALGO
0.996681
3.670348
{ "github_metadata": { "branch": "main", "commit_count": 36, "repo_created_at": "2022-05-08T14:36: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": "93988b6d113...
2d1edbc2-3bd0-4417-b7e7-f5b80005a48c
rkamran/CarND-Kidnapped-Vehicle
src/particle_filter.cpp
/* * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include <random> #include <algorithm> #include <iostream> #include <numeric> #include <math.h> #include <iostream> #include <sstream> #include <string> #include <iterator> #include "particle_filter.h" using namespace std; static d...
ALGO
0.950594
5.834487
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2017-08-12T04:26: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": "589551625b...
8009902c-838f-4d9d-bcb4-1d7626e0a0a8
sthsuyash/CSIT_Labs
5th_Semester/Cryptography/18_Elgamal.cpp
/* * Cpp program to implement Elgamal Algorithm */ #include <iostream> #include <cmath> // #include "./returnName.h" using namespace std; // Power function to return value of a ^ b mod P long long int power(long long int a, long long int b, long long int P) { if (b == 1) return a; else retu...
ALGO
0.999918
5.291748
{ "github_metadata": { "branch": "main", "commit_count": 705, "repo_created_at": "2022-08-13T12:11:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 37, "forks": 10, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5a5a53fb...
0bf441ee-5146-450a-88bc-c03468cec9d0
loremach/Initial_Orbit_Determination
src/DEInteg.cpp
// $Source$ //---------------------------------------------------------------------------------------- // DEInteg //---------------------------------------------------------------------------------------- // Under the MIT License 2020 // // Created: 2024/04/26 // /* * @file DEInteg.cpp * @bri...
ALGO
0.999942
5.657073
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2024-05-23T21:50:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "524fadc976a2...
83e43414-209c-49ea-9ffa-1053a87f295e
shashwat0105/CPP-Data-Structures-and-Algorithms
09 (Graph Algorithms)/Practice Problems/Leetcode and GFG/36) evaluateDivision.cpp
https://leetcode.com/problems/evaluate-division/ class Solution { public: void dfs(string s, string d, map<string, vector<pair<string, double>>> &m, set<string> visited, double &ans, double temp){ if(visited.find(s)!=visited.end()) return; else{ visited.insert(s); if(s==d)...
ALGO
0.999865
6.40783
{ "github_metadata": { "branch": "master", "commit_count": 225, "repo_created_at": "2021-01-23T10:22:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "73d170ed...
f8013bd8-35ab-4210-b019-04e02d5aa79a
showmanlee/HowCanISolveThisQuestion
BOJ/2000/2935.cpp
// 소음 // https://www.acmicpc.net/problem/2935 #include <iostream> #include <string> #include <algorithm> using namespace std; int main(void) { cin.tie(NULL); ios_base::sync_with_stdio(false); string a, o, b; cin >> a >> o >> b; if (a.length() < b.length()) swap(a, b); if (o == "*") { cout << 1; for (int...
ALGO
0.99981
3.815707
{ "github_metadata": { "branch": "master", "commit_count": 1741, "repo_created_at": "2020-09-16T11:55:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5cdf624...
8c797369-9d9e-4750-bf6e-fb165de035b7
joshWretlind/CSCI440-ParallelComputing
project3/part2.cpp
/************************************* * Project 3 * Purpose: This is to answer the second part of the assignment * Author: <NAME> * Date: 10/17/2013 *************************************/ #include<iostream> #include "mpi.h" #include<string> #include<vector> #include<cmath> using namespace std; /****************...
ALGO
0.99741
4.713359
{ "github_metadata": { "branch": "master", "commit_count": 590, "repo_created_at": "2013-08-31T20:15:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "227b2b0c...
7429fdac-9e00-4dfd-8671-9edbb6f87474
jinhwanlazy/problem-solving
boj_12865/solution.cpp
#include <bits/stdc++.h> using namespace std; int knapsack(int N, int K, const vector<int>& W, const vector<int>& V) { /* * dp[i][j] := 1~i번째 물건으로 크기 j인 배낭을 채웠을 때의 최대 가치 */ vector<vector<int>> dp(N + 1, vector<int>(K + 1, 0)); for (int i = 1; i <= N; ++i) { for (int j = 1; j <= K; ++j) { int w = ...
ALGO
0.999998
4.452812
{ "github_metadata": { "branch": "main", "commit_count": 160, "repo_created_at": "2022-05-13T18:28: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": "f383de8fb2...
b688ea43-d239-496c-9998-3a1d66b35203
vsharkovski/Competitive-Programming
Programs/UVa/12346 - Water Gate Management.cpp
#include <bits/stdc++.h> #define endl '\n' typedef long long ll; using namespace std; void main1() { int n; cin >> n; int f[n], c[n]; for (int i = 0; i < n; ++i) { cin >> f[i] >> c[i]; } int m; cin >> m; for (int M = 1; M <= m; ++M) { int v, t; cin >> v >> t; ll finalc = 1e17; for...
ALGO
0.999946
4.264793
{ "github_metadata": { "branch": "master", "commit_count": 2053, "repo_created_at": "2018-04-09T16:32:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5313b04...
1abfeefb-c76a-4304-98a4-ba791631437b
Islam-Imad/CP-Templates
Geometry/point.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long int #define X first #define Y second #define f(c) c - 'a' #define sz(x) ((int)(x).size()) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define ld double const ld EPS = 1e-9; int dcmp(ld a, ld b) { if (fabs(a - b)...
ALGO
0.997692
4.407993
{ "github_metadata": { "branch": "main", "commit_count": 59, "repo_created_at": "2023-12-01T11:24:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "58996edc571...
be0cc549-00e6-420e-b613-35cf7850aa0f
Nickx58/Google
Algorithm/Sorting/SelectionSort.cpp
#include <iostream> using namespace std; void selectionSort(int arr[], int n) { int i, j, min_index; for (i = 0; i < n - 1; i++) { min_index = i; for (j = i + 1; j < n; j++) { if (arr[j] < arr[min_index]) { min_index = j; } ...
ALGO
0.999967
5.232204
{ "github_metadata": { "branch": "main", "commit_count": 433, "repo_created_at": "2022-05-14T11:41: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": "256409b2e5...
eb59bfca-1e72-4330-b287-b7c331130548
panigsan/eth-algolab
week_09_algocoon/algocoon.cpp
// ALGOLAB BGL Tutorial 2 // Flow example demonstrating // - interior graph properties for flow algorithms // - custom edge adder // Compile and run with one of the following: // g++ -std=c++11 -O2 flows.cpp -o flows ./flows // g++ -std=c++11 -O2 -I path/to/boost_1_58_0 flows.cpp -o flows; ./flows // Includes // ====...
ALGO
0.999439
5.111612
{ "github_metadata": { "branch": "master", "commit_count": 169, "repo_created_at": "2018-09-20T08:39:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 1, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "52e439eb...
217b855e-392b-4c65-b393-54f1a9e43620
mwashief/step
Codeforces/1751-2000/1779/1779D.cpp
/* 03 January 2023 Codeforces 1751-2000 1779 1779D */ #ifndef __DEBUG__ #pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") #endif #undef __INTERACTIVE__ #include <bits/stdc++.h> #define pb push_back #define mp make_pair #define fr first #define sc second #define pyes cout << "YES" //"Yes" #defi...
ALGO
0.999892
4.051602
{ "github_metadata": { "branch": "master", "commit_count": 1440, "repo_created_at": "2020-06-25T20:48: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": "ca92917...
98152433-2ff0-42fd-8002-b63b74f1f641
Folea/Data-Structures-and-Algorithms-c-
ArbolTrie.cpp
#include <iostream> #include <sstream> #include <cmath> #include <list> #include "ArbolTrie.h" using namespace std; ArbolTrie * ArbolTrie::arbolActual; // 97 es 'a' en ASCII void ArbolTrie::insertar(string palabra){ arbolActual = this; int indiceActual = 0; // Hasta que se acabe la palabra. for (int indicePala...
ALGO
0.998973
3.697481
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2014-08-13T09:03: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": "bd12101cde...
b0d78803-f2b8-4afd-a298-2f38fd9915b8
Bhron/LeetCode
Algorithms/C++/Easy/101_Symmetric_Tree.cpp
// Recursion, O(n) Time, O(n) Space (Stack call) /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: bool isSymmetric(TreeNode* root) { if ...
ALGO
0.999975
6.510015
{ "github_metadata": { "branch": "master", "commit_count": 411, "repo_created_at": "2016-03-03T22:29:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "20970efd...
603d6beb-655c-4955-a151-3323861914b7
redcpp/Competitive-Programming
codeforces/545C.cpp
#include <bits/stdc++.h> #define PB push_back using namespace std; typedef long long ll; typedef long double ld; const int N = 1e5 + 7; int n; int x[N], h[N]; int main(void) { // freopen("in", "r", stdin); // freopen("out", "w", stdout); ios_base::sync_with_stdio(0), cin.tie(nullptr); cin >> n; fo...
ALGO
0.999893
3.516451
{ "github_metadata": { "branch": "master", "commit_count": 245, "repo_created_at": "2016-10-10T01:03:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a8fdf5cd...
ffa413cf-a4fe-4564-a97f-c7b575868826
Zhefan-Xu/Intent-MPC
trajectory_planner/include/trajectory_planner/third_party/ACADO/acado/estimator/estimator.cpp
/* * This file is part of ACADO Toolkit. * * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. * Copyright (C) 2008-2014 by <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>. * Developed within the Optimization in Engineering Center (OPTEC) * under supervision of <NAME>. All rig...
ALGO
0.967328
6.97753
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2025-03-16T02:42:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 219, "forks": 21, "issues": 8, "pull_requests": 1 }, "file_meta": { "content_id": "9dbde72c...
8718457b-109f-4449-9e26-e88ccf4d8cbc
Syed-Yousha/PF_C_Tasks
Lab 8/arrays/Q9.cpp
#include <stdio.h> int main(){ // Original Matrix int matrix[3][3] = { {1,2,3}, {4,5,6}, {7,8,9} }; printf("\nMatrix before row exchange: \n\n"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { printf("%d ", matrix[i][j]); ...
ALGO
0.997562
4.676578
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-01-21T15:51: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": "5d7a4332b77c...
cd55f26f-d8f4-497e-a521-1af61893643a
kpatton1/pdf
include/CDF.h
#ifndef CDF_H #define CDF_H #include <iostream> #include "gsl/gsl_cdf.h" #include "gsl/gsl_interp.h" #include <cmath> class CDF { public: virtual double cdf(double lnx) { return 0.0; } virtual double cdf_inv(double cdf) { return 0.0; } virtual ~CDF() { } }; class CDF_GAUSSIAN : public CDF { ...
ALGO
0.989672
3.858033
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2014-02-19T14:41:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c93223309...
d5cedfe6-19a9-48c4-8093-31fc5b985a6f
DairyQueenXD/Competitive-Programming
DMOJ-Solutions/USACO/usaco20mars1.cpp
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pl; int N, M; vector<pl> vec; ll ans; bool check(ll d){ int cows = 0; ll last = -1e18; for(pl e: vec){ while(max(last+d, e.first) <= e.second){ last = max(last+d, e.first); cows++; if(cows >= ...
ALGO
0.999998
4.135836
{ "github_metadata": { "branch": "main", "commit_count": 80, "repo_created_at": "2024-08-03T13:39:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e8fd9f7760f...
e6b027cb-1a31-4397-bfd9-e6b451c5236a
rasberrypai/neat
population.cpp
#include "population.hpp" #include "parameters.hpp" #include <iostream> #include <algorithm> using namespace NEAT; Population::Population(int pop_size, int _inputs, int _outputs): generation(0), inputs(_inputs), outputs(_outputs), size(pop_size), compat_tolerance(INIT_COMPAT_TOLERANCE) { for (int i = 0; i <...
ALGO
0.997076
5.761127
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2021-09-16T22:34: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": "ad905f1bb8c...
211deeef-368a-4903-89d3-7b63724432e7
AlaHammouda/codingame
Medium/mayan-calculation.cpp
#include <math.h> #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int64_t get_number(int l, int h, string array[20]) { int s; cin >> s; cin.ignore(); string str = ""; int count = 0; int64_t number = 0; int power = s / h - 1; for (int i = 0; i < s; i++)...
ALGO
0.999255
3.300602
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2023-01-01T12:12: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": "dfa03523974...
27158742-29f1-456c-91dd-fc9fdee59f18
RosettaCommons/rosetta
source/src/protocols/membrane/MembranePositionFromTopologyMover.cc
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*- // vi: set ts=2 noet: // // (c) Copyright Rosetta Commons Member Institutions. // (c) This file is part of the Rosetta software suite and is made available under license. // (c) The Rosetta software is developed by the co...
ALGO
0.901119
6.465394
{ "github_metadata": { "branch": "main", "commit_count": 11737, "repo_created_at": "2023-11-17T16:42:18.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 296, "forks": 100, "issues": 27, "pull_requests": 9 }, "file_meta": { "content_id": "fcc3...
58c80dc4-350d-4c1e-9126-4d485490dcbb
junhg0211/boj
cpp/2/1672.cpp
#include <iostream> char get_dna(char previous, char now) { if (previous == now) return now; if (previous == 'A') { if (now == 'G') return 'C'; else if (now == 'C') return 'A'; return 'G'; } if (previous == 'G') { if (now == 'A'...
ALGO
0.99987
4.091755
{ "github_metadata": { "branch": "master", "commit_count": 942, "repo_created_at": "2022-11-04T23:45:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cbc0b631...
5e3a04d6-4ce2-4822-ae4c-5eb9206580ab
gnunesm/manual_sensor_calibration
plane_segmentation/segmentation.cpp
//http://pointclouds.org/documentation/tutorials/extract_indices.php #include <iostream> #include <pcl/ModelCoefficients.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/sample_consensus/method_types.h> #include <pcl/sample_consensus/model_types.h> #include <pcl/segmentation/sac_segmentation.h> ...
ALGO
0.944786
5.57512
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-07-17T20:34:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "702744be8f...
82a4ed18-a0a1-428a-b4be-87cc15f0b987
chen-jy/competitive-programming
dmoj/ioi/ioi01p1 - Mobile Phones.cpp
#include <iostream> using namespace std; const int MAXN = 1025; int bit[MAXN][MAXN], S; void add(int x, int y, int v) { for (; x <= S; x += (x & -x)) { for (int j = y; j <= S; j += (j & -j)) bit[x][j] += v; } } int sum(int x, int y) { int res = 0; for (; x > 0; x -= (x & -x)) { for (int j = y; j > 0; j -=...
ALGO
0.99925
4.656456
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-03-24T21:55:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e11e778d52...
57774d71-0264-4a39-985a-ca1f86a40149
Kibishii/NearBee
source/release_with_output/release_with_output.ino
#include <Adafruit_NeoPixel.h> // Zuweisung der Board-Ausgaenge: #define trigPinB 0 #define echoPinB 1 #define trigPinR 2 #define echoPinR 3 #define trigPinL 6 #define echoPinL 12 #define vibratorL 9 #define vibratorR 10 #define led 8 // Deklaration --- Start Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, led, NE...
TOOL
0.938784
5.507434
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-09-28T08: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": "1d2ce1ab91...
287a2e49-4ca0-47f8-ac78-ebc6945fd762
dbkwce/CA22-23
Assignment 1/2020BTEIT00059/main.cpp
/* In this algorithm, we sort the array by divide and conquer method or partition method. 1. We consider a pivot at low position in each recursive call and run a while loop atleast once until (i>j) (i=low+1, j=high, pivot = arr[low]). 2. Find element greater than pivot with help of i and element less than p...
ALGO
0.999997
5.658154
{ "github_metadata": { "branch": "main", "commit_count": 206, "repo_created_at": "2022-07-29T09:04:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 80, "issues": 0, "pull_requests": 66 }, "file_meta": { "content_id": "f5fe4c9e...
f6c29893-bf1f-4eb1-9931-0242f8440eab
jigjnasu/leet_code
705_design_hashset.cpp
/* Leetcode.com Problem No : 705 Problem : Design HashSet Author : <EMAIL> Date: 19/04/2021 */ #include <bits/stdc++.h> class MyHashSet { public: MyHashSet() { table = std::vector<int>(bucket, -1); status = std::vector<bool>(bucket, false); } void add(int key) { if (!con...
ALGO
0.999105
5.333418
{ "github_metadata": { "branch": "master", "commit_count": 387, "repo_created_at": "2016-09-02T02: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": "aef22d08...
314b7b5a-2b5f-4473-8b8c-4c18f34ff49e
StefanShivarov/introduction-to-programming-fmi-2024-25
Week 06/Pract. 06/Stefan's solutions/Task04.cpp
#include <iostream> using std::cout; using std::cin; using std::endl; const unsigned MAX_SIZE = 10; void readMatrix(int matrix[][MAX_SIZE], unsigned rows, unsigned cols) { for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { cin >> matrix[i][j]; } } } bool areAllDiago...
ALGO
0.999627
4.997048
{ "github_metadata": { "branch": "main", "commit_count": 244, "repo_created_at": "2024-10-05T13:48:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 12, "issues": 0, "pull_requests": 123 }, "file_meta": { "content_id": "751209...
242e5251-5093-4f0d-badc-8d6d844148e8
Marclap/beecrowd
c++/1763.cpp
#include <bits/stdc++.h> using namespace std; int main() { map<string, string> feliz; feliz["brasil"] = "Feliz Natal!"; feliz["alemanha"] = "Frohliche Weihnachten!"; feliz["austria"] = "Frohe Weihnacht!"; feliz["coreia"] = "Chuk Sung Tan!"; feliz["espanha"] = "Feliz Navidad!"; feliz["grec...
ALGO
0.998204
4.359884
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-12-15T06:41: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": "31c0cf73df66...
7f234663-1c7f-482e-8026-c48164a0b3c2
rrvignesh21/CPP-Tasks
Function/func/q3.cpp
#include<iostream> using namespace std; /* C++ Program to Add Two Time Objects using call by address */ class Time{ public: int sec,minute,hour; void getTime(){ cout << "Enter the time : "; cin >> hour >> minute >> sec; } void displayTime(){ cout << hour << ":" << minute << "...
ALGO
0.987121
5.475165
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-11-02T12:29: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": "6ec7984320a6...
404df264-202a-4f86-948a-9d9e210627b8
simonlindholm/simd-book
binomial-coefficients/general-mont.cpp
#pragma GCC optimize ("O3") #include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for (int i = (a); i < (b); ++i) typedef long long ll; typedef uint32_t u32; typedef uint64_t u64; ll euclid(ll a, ll b, ll &x, ll &y) { if (b) { ll d = euclid(b, a % b, y, x); return y -= a/b * x, d; } return x = 1, y = 0...
ALGO
0.999967
4.829603
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2020-05-26T21:35:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 12, "forks": 2, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "19e6e8dc...
859389f5-5a20-4977-b044-c6cf79646e0d
abidh8820/LightOJ-Solutions
LOJ-1037 Agent 47.cpp
#include "bits/stdc++.h" using namespace std; const int N = 17; int dp[1 << N], health[N]; int grid[N][N], n; int call(int mask) { if (mask == 0) return 0; if (dp[mask] != -1) return dp[mask]; dp[mask] = 1e9; for (int j = 0; j < n; j++) { if ((mask >> j) & 1) { int damage = 1; ...
ALGO
0.999724
3.871208
{ "github_metadata": { "branch": "main", "commit_count": 22, "repo_created_at": "2024-01-06T09:13:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a2bde699455...
69a6c28c-3550-4730-91fc-2f2948ebcff7
rapidsai/raft
cpp/include/raft/random/random_types.hpp
/* * Copyright (c) 2018-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
ALGO
0.994641
5.029045
{ "github_metadata": { "branch": "branch-25.08", "commit_count": 2224, "repo_created_at": "2019-06-13T14:32:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 912, "forks": 208, "issues": 421, "pull_requests": 12 }, "file_meta": { "content_i...
54b5ba12-2dae-4ca0-bed1-1e3e4fc1c241
RapidsAtHKUST/SubgraphMatching
matching/EdgeListToCSR.cpp
// // Created by yche on 10/29/19. // #include <cassert> #include <algorithm> #include <vector> #include <fstream> #include <iostream> #include <sstream> #include <chrono> #include <tuple> #include <random> using namespace std; vector<pair<int, int>> GetEdgeList(string &input_file_path, int &max_ele) { vector<pair...
DATA
0.995235
4.682741
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2020-02-19T05:50:52.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 158, "forks": 40, "issues": 11, "pull_requests": 0 }, "file_meta": { "content_id": "2e62c0...
e5a67724-161f-411e-abee-2e52388bf5c7
cyjseagull/gem5-nvmain-hybrid-simulator
gem5-stable/src/base/intmath.cc
/* * Copyright (c) 2001, 2003-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright ...
ALGO
0.999961
5.060417
{ "github_metadata": { "branch": "master", "commit_count": 63, "repo_created_at": "2015-09-14T01:17:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 77, "forks": 49, "issues": 3, "pull_requests": 0 }, "file_meta": { "content_id": "80dda3f...
057e62a6-3128-45e1-ad3d-17bd4d325deb
Gfans/ISPH_NVIDIA_CUDA_CONTEST
IncompressibleFluidsPcisphCUDA/src/ISPH_NVIDIA_CUDA_CONTEST/include/cuda5.5_include/include/thrust/system/cpp/detail/sort.h
/* * Copyright 2008-2012 NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
ALGO
0.999711
7.512869
{ "github_metadata": { "branch": "master", "commit_count": 24, "repo_created_at": "2014-08-03T09:23:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 62, "forks": 14, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "7feebdc...
ea05d848-c954-423b-b7fd-49a0be1710ba
funaLee/NMLT_UIT_wecode
Assignment 6/6.7.cpp
#include <bits/stdc++.h> using namespace std; #define pb push_back #define pf push_front #define fi first #define se second #define mp make_pair #define endl "\n" typedef long long ll; typedef unsigned long long ull; typedef long double ld; typedef pair<int, int> pi; typedef vector<int> vi; typedef vector<pi> vii; i...
ALGO
0.999981
4.280642
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2024-12-06T01:21: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": "00e15072a8d4...
3434ffad-77ed-402f-916d-65fe1b9f5f06
dako98/Introduction-to-Programming--2019-2020
Practice-02--Data-types--Variables--Operators/Code/Example-03--Division.cpp
/// Напишете програма, която по въведени две числа /// изкарва на стандартния изход частното и остатъка /// при делението на двете числа. #include <iostream> using namespace std; int main() { // Декларация на променливитe. int num, divisor; // Извеждаме подканващо съобщение и четем от конзолата двете п...
ALGO
0.990808
4.530955
{ "github_metadata": { "branch": "master", "commit_count": 108, "repo_created_at": "2019-09-26T14:42:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ec6816fa...
aa5ec8d6-9738-426b-aedc-904bd5a0a762
ten986/procon
saikyo/2.cpp
#include <bits/stdc++.h> using namespace std; typedef long long int LL; typedef long long int ll; typedef pair<long long int, long long int> pii; typedef pair<double, double> pdd; #define SORT(c) sort((c).begin(),(c).end()) #define BACKSORT(c) sort((c).begin(),(c).end(),std::greater<LL>()) #define FOR(i,a,b) for(LL i...
ALGO
0.999944
3.833555
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2019-12-16T15:57: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": "302de29511...
dcc1e128-8747-45e1-a333-fa39b0b5df10
NiltonGMJunior/neps-basica
03 - Vetores e Matrizes/quadradoMagico/main.cpp
#include <iostream> int main() { // Lê a ordem da matriz int n; std::cin >> n; // Declara uma matriz de inteiros 10x10 (máximo n é 10) int mat[10][10]; // Preenche a matriz for (int lin = 0; lin < n; ++lin) for (int col = 0; col < n; ++col) std::cin >> mat[lin][col]; ...
ALGO
0.999949
5.48231
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2019-02-17T20:30: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": "cd358be4c...
6c363f41-f27e-4847-aea6-95c1d489c344
MahaKoala/cracking-the-coding-interview
4.1-treesAndGraphs.cxx
#include <iostream> #include <assert.h> #include <cstdio> #include "lib/datastructures/BinaryTree.h" /* 4.1 Implement a function to check if a binary tree is balanced. For the purposes of this question, a balanced tree is defined to be a tree such that the heights of the two subtrees of any node never ...
TEST
0.997477
5.308672
{ "github_metadata": { "branch": "master", "commit_count": 179, "repo_created_at": "2015-11-12T22:00: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": "dd77571c...
88c0cdc5-e693-4178-b329-6453027ee97c
YoonLee-lab/projects
UCLA/[C++][CS31] Intro to Computer Science/Project3/poll.cpp
#include <iostream> #include <cassert> #include <cctype> #include <cstdio> using namespace std; bool isValidUppercaseStateCode(string stateCode) { const string codes = "AL.AK.AZ.AR.CA.CO.CT.DE.FL.GA.HI.ID.IL.IN.IA.KS.KY." "LA.ME.MD.MA.MI.MN.MS.MO.MT.NE.NV.NH.NJ.NM.NY.NC.ND." "OH....
ALGO
0.996215
3.428348
{ "github_metadata": { "branch": "master", "commit_count": 33, "repo_created_at": "2019-08-29T03:23: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": "43c9bbd91...
6a36d95f-0074-4b4a-8da8-8d35fb882942
ishandutta2007/codeforces-m
majk/normal/804/C.cpp
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author Majk */ #include <vector> #include <iostream> #include <unordered_map> #include <map> #include <iomanip> #include <set> #include <functional> #include <fstream> #include <algorithm> #include <cassert> #include <cmath> ...
ALGO
0.999909
4.352639
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-06-06T01:03: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": "5a56cdba73f6...
5f95c489-a09b-45f8-9821-aa1536d51043
IreNox/tiki2
src/Game/PathPlanner.cpp
#include "Game/PathPlanner.h" #include "Game/TikiBot.h" #include "Core/IGraphics.h" namespace TikiEngine { namespace AI { PathPlanner::PathPlanner(TikiBot* bot) { this->bot = bot; pathActive = false; pathMovement = Vector3::Zero; pathPos = Vecto...
ALGO
0.938376
5.088562
{ "github_metadata": { "branch": "master", "commit_count": 678, "repo_created_at": "2014-07-23T18:48:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1aaaed07...
092f958f-d736-423e-b067-80c9d2db4f3f
vu-luong/Algorithm
codewar/couple_numbers.cpp
#include <map> #include <set> #include <cmath> #include <cstdio> #include <vector> #include <string> #include <cstdlib> #include <cstring> #include <iostream> #include <algorithm> #define PB push_back #define MP make_pair #define SZ(a) a.size() #define DEBUG(x) cout << #x << " = " << x << endl; #define PR(A,n) { cou...
ALGO
0.999976
3.643286
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2016-07-09T02:58: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": "f003cdd3e...
2bfe5cea-1f59-4da4-83f7-57651716c1a5
Mujahid2923/DataStructure
InfixToPostfixUsingStack.cpp
///...................................*****................................................./// /// <NAME> ( <EMAIL> ) /// /// Department of Ict /// /// Comilla University , Bangladesh. ...
ALGO
0.999976
3.763207
{ "github_metadata": { "branch": "master", "commit_count": 27, "repo_created_at": "2019-01-19T09:08:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "df32cff2b...
1fa7e0fc-4590-4201-9af9-c074892c30f3
kjbartel/magma
src/zgetrs_batched.cpp
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @author <NAME> @precisions normal z -> s d c */ #include "common_magma.h" #include "batched_kernel_param.h" /** Purpose -...
ALGO
0.994867
5.574955
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2015-06-04T17:28:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 23, "forks": 3, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "a08a1d5d...
9bf1bd62-0400-485c-aedb-2f32caf6b968
qmaruf/Topcoder
HandsShaking.cpp
#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream> #include<fstream> #include<string> #include<vector> #include<queue> #include<map> #include<algorithm> #include<set> #include<sstream> #include<stack> using namespace std; #define ll long long struct HandsShaking{...
ALGO
0.999898
4.063293
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2017-10-09T06:22: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": "26f236782d...
2a50d568-70c8-45fe-9924-461ad20f020a
tanish35/Lab
OOPSLab/Assignment2/q18.cpp
#include <bits/stdc++.h> using namespace std; class Point { public: int x, y; Point() : x(0), y(0) {} Point(int x, int y) { this->x = x; this->y = y; } double distanceTo(const Point &other) const { return sqrt(pow(x - other.x, 2) + pow(y - other.y, 2)); } }; ...
ALGO
0.998617
5.301097
{ "github_metadata": { "branch": "main", "commit_count": 51, "repo_created_at": "2024-08-07T19:00: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": "61f2cc8c4aa...
d4ab6eb6-62d6-4638-8865-1aabd3b28e61
mikeblas/EulerSolutions
Euler022/Euler22.cpp
// Euler22.cpp : Defines the entry point for the console application. // #include "stdafx.h" vector<string> names; int main(int argc, char* argv[]) { if (argc != 2) { printf("Usage: euler22 <file_name>\n"); return 1; } FILE *f = fopen(argv[1], "r"); if (f == NULL) { printf("couldn't open %s\n", argv[1]);...
ALGO
0.991852
3.545048
{ "github_metadata": { "branch": "main", "commit_count": 47, "repo_created_at": "2014-02-09T18:51: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": "ba50c052996...
c3b65283-56c6-4498-a951-121451e3f7fb
robotics-laboratory/truck
packages/geom/src/intersection.cpp
#include "geom/intersection.h" #include "geom/segment.h" #include "geom/vector.h" #include <cmath> namespace truck::geom { namespace { enum class Mode : int8_t { kColinear = 0, kClockwise = 1, kCounterclockwise = -1 }; } // namespace /** Implementation of segments intersection * * See https://www.geeksforgeek...
ALGO
0.99931
7.021423
{ "github_metadata": { "branch": "master", "commit_count": 245, "repo_created_at": "2021-11-17T14:46:23.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 15, "forks": 8, "issues": 0, "pull_requests": 11 }, "file_meta": { "content_id": "424315d...
f7f7bf1f-f139-414b-bd50-ec66276f83b2
Dup4/competitive-programming
BZOJ/3237/b.cpp
#include <stdio.h> struct edge { int u, v, tim; int cnt, ans, c[6]; } ed[200010], q[200010]; int stk1[5000010], stk2[5000010], fa[200010]; int n, m, T, top, tim; int getfather(int x) { if (fa[x] == x) return x; int y = getfather(fa[x]); if (fa[x] != y) stk1[++top] = x, stk2[top] = ...
ALGO
0.99994
4.347559
{ "github_metadata": { "branch": "main", "commit_count": 838, "repo_created_at": "2019-04-07T01:16:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8b217f989a...
466988d2-24a0-4d10-a512-19345e4f9022
vvvkks/-ITMO-Algo-1-sem
lab_6/task_3.cpp
#include <fstream> using namespace std; struct el // Структура ячейки элемента списка { string key; // Ключ string value; // Значение el* nextInChain; // Адрес следующего элемента в цепочке el* next; // Адрес следующего элемента el* prev; // Адрес предыдущего элемента }; class LinkedMap // Класс ...
ALGO
0.999347
4.323455
{ "github_metadata": { "branch": "main", "commit_count": 69, "repo_created_at": "2021-10-23T15:42:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "98d0793c88d...
f569ce6a-d2cc-47d8-9d98-7d30e60dcad6
johnpaulguzman/MINLP-Solve
solvers/CoinAll-1.6.0-win64-intel11.1/include/coin/AlpsSolutionPool.h
/*===========================================================================* * This file is part of the Abstract Library for Parallel Search (ALPS). * * * * ALPS is distributed under the Eclipse Public License as part of the * * C...
TOOL
0.994161
4.960376
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2017-06-11T08:54:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4538a425d...
2d7a3257-4193-4fb0-84ac-cd37b2438fe2
gqjjqg/android-extend
android-extend/src/main/jni/commen/render/Matrix.cpp
#include <string.h> #include "Matrix.h" #define PI 3.1415926f #define normalize(x, y, z) \ { \ float norm = 1.0f / sqrt(x*x+y*y+z*z); \ x *= norm; y *= norm; z *= norm; \ } #define I(_i, _j) ((_j)+4*(_i)) // //void Matrix() //{ // /...
TOOL
0.952758
3.83139
{ "github_metadata": { "branch": "master", "commit_count": 256, "repo_created_at": "2014-02-26T03:13:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 129, "forks": 49, "issues": 4, "pull_requests": 0 }, "file_meta": { "content_id": "c817d...
37dc0a95-a22f-4bb8-a675-b9a9816c0162
DungTran2301/SourceCodeTRR
TRR2/DuyetCanhCau.cpp
/** Name: Duyệt các cạnh cầu Author: DungTD Date: 3/17/2021 */ #include <iostream> #define Max 100 using namespace std; class Dothi{ int n; int A[Max][Max]; public: bool chuaXet[Max]; void readData(); void init(); void recursiveDFS(int u); void duyetC...
ALGO
0.999865
3.318574
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2021-05-26T04:17:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "333a66f08d...
3a828508-eb3d-43c6-b804-23fd241d023d
mdenardis/DeNardis_CSCI2270_FinalProject
main.cpp
/* CSCI2270 Final Project * * Authors: <NAME> and <NAME> and <NAME> * * For the project description, please refer to README.txt in the project file. */ #include <iostream> #include <string> #include <vector> #include <cstdlib> #include <ctime> //Necessary in order to use srand #include "Hangman.h" //Includes Hang...
TOOL
0.902637
3.34695
{ "github_metadata": { "branch": "master", "commit_count": 45, "repo_created_at": "2015-04-16T18:36:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 4, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "511cfe4ce...
31b22393-bab9-4c6a-bb8a-d99f522701d2
asad5059/CP
B_Meeting.cpp
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define ull unsigned long long int #define pb push_back #define ff first #define ss second using namespace std; using namespace __gnu_pbds; template <typename PB> using ordered_set = tree<PB, ...
ALGO
0.999842
4.598306
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-03-14T06:41:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ef6d7cf986ca...
98527500-ff70-46de-9504-4fc2d7084f48
blender/blender
source/blender/bmesh/tools/bmesh_bisect_plane.cc
/* SPDX-FileCopyrightText: 2023 Blender Authors * * SPDX-License-Identifier: GPL-2.0-or-later */ /** \file * \ingroup bmesh * * Cut the geometry in half using a plane. * * \par Implementation * This simply works by splitting tagged edges who's verts span either side of * the plane, then splitting faces along ...
ALGO
0.999792
6.542704
{ "github_metadata": { "branch": "main", "commit_count": 152123, "repo_created_at": "2019-10-09T12:47:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 15670, "forks": 2395, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8...
316ee035-8208-405b-8dd9-91621949a258
sunnyisgalaxy/moabs
src/mcomp/lib/stan/math/prim/scal/prob/double_exponential_cdf.hpp
#ifndef STAN__MATH__PRIM__SCAL__PROB__DOUBLE_EXPONENTIAL_CDF_HPP #define STAN__MATH__PRIM__SCAL__PROB__DOUBLE_EXPONENTIAL_CDF_HPP #include <boost/random/uniform_01.hpp> #include <boost/random/variate_generator.hpp> #include <stan/math/prim/scal/meta/OperandsAndPartials.hpp> #include <stan/math/prim/scal/err/check_cons...
ALGO
0.902158
6.634569
{ "github_metadata": { "branch": "master", "commit_count": 123, "repo_created_at": "2015-04-11T19:07:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 10, "issues": 8, "pull_requests": 1 }, "file_meta": { "content_id": "d36dde...
d1bd05e8-4d51-44ac-93d9-a89f3b82f456
PEL-unive/progetto-23-24
include/trie.hpp
#include <iostream> #include <cassert> #include "bag.hpp" // file with the implementation of your container bag<Val> #include <vector> struct parser_exception { parser_exception(std::string const& str) : m_str(str) {} std::string what() const { return m_str; } private: std::string m_str; }; template ...
ALGO
0.964041
3.982341
{ "github_metadata": { "branch": "main", "commit_count": 39, "repo_created_at": "2024-05-07T11:35:22.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 11, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d79e8db6fd...
99bd0188-d9b3-4096-aa7a-565bc4271def
parvg555/Competitive-Programming
leetcode/43_MultiplyStrings.cpp
#include<bits/stdc++.h> using namespace std; class Solution { public: string multiply(string num1, string num2) { if(num1 == "0" || num2 == "0"){ return "0"; } vector <int> ans(1000,0); reverse(num1.begin(),num1.end()); reverse(num2.begin(),num2.end()); f...
ALGO
0.999984
4.981113
{ "github_metadata": { "branch": "master", "commit_count": 309, "repo_created_at": "2020-11-08T19:02: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": "723fd7c5...
6b05cd95-eee7-4c8a-bbd6-bcea6cb3da57
hossam7amdy/competitive-programming
leetcode-easy/two-sum.cpp
#include <bits/stdc++.h> using namespace std; /* Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. SOLUTIONS: 1- nested loop: for each num find its complement -> O(n^2) 2- sort + BS: for each num BS for its complement -> O(nlogn) ...
ALGO
0.999668
5.778236
{ "github_metadata": { "branch": "main", "commit_count": 69, "repo_created_at": "2022-10-14T23:18:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f678e965714...
7aed2010-d533-4841-aca7-04496fd79d1d
ParRes/Kernels
Cxx11/transpose-raja.cc
/// /// Copyright (c) 2018, Intel Corporation /// /// Redistribution and use in source and binary forms, with or without /// modification, are permitted provided that the following conditions /// are met: /// /// * Redistributions of source code must retain the above copyright /// notice, this list of conditions ...
ALGO
0.992574
6.621561
{ "github_metadata": { "branch": "main", "commit_count": 3919, "repo_created_at": "2013-10-04T18:00:10.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 434, "forks": 110, "issues": 21, "pull_requests": 2 }, "file_meta": { "content_id": "19d55...
69229199-ddad-4c7f-a97a-dc1720e676cd
JanaSabuj/Leetcode-solutions
Session 2019/Youtube/Angle between Hour and Minute Hand.cpp
// GS - What is the angle between the hour and minute hand , given the // input time ? // e.g - 9 : 30 // Ans: 90 degrees #include <iostream> using namespace std; int GSTime(string time){ string delim = ":"; auto start = 0U; auto end = time.find(delim); string hr = time.substr(start, end - st...
ALGO
0.995106
4.933784
{ "github_metadata": { "branch": "master", "commit_count": 780, "repo_created_at": "2019-01-13T14:59:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 13, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8a9aa41...
0bba9071-1e06-4e4f-b9cb-59d221c9e8cd
pkern/openclonk-debian
src/lib/StdMesh.cpp
/* * OpenClonk, http://www.openclonk.org * * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/ * Copyright (c) 2009-2015, The OpenClonk Team and contributors * * Distributed under the terms of the ISC license; see accompanying file * "COPYING" for details. * * "Clonk" is a registered trademark...
TOOL
0.942227
3.676131
{ "github_metadata": { "branch": "master", "commit_count": 152, "repo_created_at": "2017-11-11T17:20:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c924fc5c...
af151080-88bc-445c-902c-21531fd2cf07
alexandraback/datacollection
solutions_5753053697277952_0/C++/Holla/main.cpp
#include <istream> #include <fstream> #include <iostream> #include <vector> #include <string> #include <memory> #include <map> #include <algorithm> using namespace std; #define INPFILE "input.in" #define OUTFILE "output.out" ifstream inp; ofstream out; class Linker { public: Linker(int num, string nm) :mNum(num), n...
ALGO
0.999918
3.658622
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2017-03-08T11:33:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7525100b8...
74ef90e3-72c7-4801-bdb7-c9ca8c093338
jsonzilla/3_pow_n-1
src/main.cpp
#include <iomanip> #include <iostream> unsigned long long ipow(unsigned long long base, unsigned long long exp) { unsigned long long result = 1; for (;;) { if (exp & 1) { result *= base; } exp >>= 1; if (!exp) { break; } base *= base; } ...
ALGO
0.999662
3.917343
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2021-05-08T15:21: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": "248579211d...
0b5e6471-4a36-4acc-9ef4-55ee882cd0d2
ferchooz4/ComputoNube
SumatoriaArreglos.cpp
#include <iostream> #ifdef _OPENMP #include <omp.h> #endif using namespace std; void imprimeArreglo(int *d); int main(){ srand(time(NULL)); int numeroThreads; int numeroElementosArreglos; cout << "Ingresa el tamaño del arreglo: "; cin >> numeroElementosArreglos; cout << "Ingresa el núme...
ALGO
0.993895
4.057941
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2025-01-27T01:52:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "658e290a0b8d...
8510f21c-94fb-4514-a71a-de337c7da41c
useyourfeelings/POJ
1732/6105072_OLE.cpp
#include<iostream> using namespace std; char PN[101], words[50000][51], word[51];//, code[51];; int N, best[101], choice[101]; char ctoi[] = "22233344115566070778889990"; //abcdefghijklmnopqrstuvwxyz int LEN, ID, MAX = 10000; struct TrieNode { int match; // -1 not match, else word id TrieNode *...
ALGO
0.999924
3.390189
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2014-05-06T02:40: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": "544201fb81...
7833b24a-d662-45c5-a1d0-3ce3a61e57f1
KR-EGOIST/Baekjoon-Algorithm
약수 배수와 소수 2/4134.cpp
#include <iostream> #include <cmath> using namespace std; bool isPrime(long long num){ if(num < 2){ return false; } for(int i = 2; i <= floor(sqrt(num)); i++){ if(num % i == 0){ return false; } } return true; } int main() { cin.tie(NULL); cout.tie(NUL...
ALGO
0.999948
4.870147
{ "github_metadata": { "branch": "main", "commit_count": 179, "repo_created_at": "2024-05-27T11:44:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "186166da69...
7f96937d-66f6-4c20-b335-e23f66abf4e3
MntiKor/VTK-WASM
Generator/sources/PolyData/VertexConnectivity.cxx
#include <vtkActor.h> #include <vtkDataSetMapper.h> #include <vtkExtractEdges.h> #include <vtkExtractSelection.h> #include <vtkIdList.h> #include <vtkIdTypeArray.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkPolyData.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInt...
ALGO
0.961122
6.697543
{ "github_metadata": { "branch": "master", "commit_count": 51, "repo_created_at": "2023-09-11T08:18:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ccbfce9f4...
c39524ca-04a6-45e9-911f-94f3b532db76
EdoardoCarlesi/cmbeasy
cosmos/cosmos.cc
#include "cosmos.h" #include "global.h" #include "cleanvector.h" #include "recfast.h" #include "recfastalpha.h" #include "recombinationfactory.h" #include "massiveneutrinos.h" #include "perturbation.h" #include "mass_function.h" #include <fstream> #include <map> #include <limits> #include <cmath> #include <iomanip> #...
ALGO
0.963986
4.784562
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2013-04-13T10:55:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e451b5facf...
593262c9-9b22-44b2-bcd7-1ac4b40af865
E869120/kyopro-tessoku
codes/cpp/chap07/answer_A49.cpp
#include <iostream> #include <vector> #include <algorithm> #include <functional> using namespace std; // 盤面の状態を表す構造体 struct State { int score; // 暫定スコア int X[29]; // 現在の配列 X の値 char LastMove; // 最後の動き('A' または 'B') int LastPos; // Beam[i-1][ どこ ] から遷移したか }; // sort 関数の順序を決める(スコアが大きい方が「大きい」とする) bool operator>(const...
ALGO
0.999982
4.503769
{ "github_metadata": { "branch": "main", "commit_count": 613, "repo_created_at": "2022-09-10T03:26:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 665, "forks": 61, "issues": 12, "pull_requests": 0 }, "file_meta": { "content_id": "d85862...
99985782-dcf9-49a5-b7c4-bd21651bc078
ishandutta2007/codeforces-d
demoralizer/normal/1080/F.cpp
#include "bits/stdc++.h" using namespace std; #define int long long #define pb push_back #define ppb pop_back #define pf push_front #define ppf pop_front #define all(x) (x).begin(),(x).end() #define uniq(v) (v).erase(unique(all...
ALGO
0.999903
4.712066
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:31: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": "a7c48c585cc3...
74419d73-b441-4ad8-85ca-863f06894da4
Shrouk-Sharaf/CS112_projects
Subtract a Square Game.cpp
// program: the code aims to create an interactive and engaging text-based game where players compete to strategically // remove items from a pile, with the ultimate goal of being the player to remove the last item and win the game // (GAME 3). // Author: <NAME> // Version: 2.0 // Date: 28/2/2024 #incl...
ALGO
0.988526
4.592216
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2024-03-07T19:50:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "23d09dff5f4...
e2072a75-7523-4132-aade-454b2ca33588
Kuro-orzz/CP
Codeforces/1989D.cpp
// #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; // using ordered_set = tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update>; #include <bits/stdc++.h> using namespace std; #define ll long long #define MOD (ll)(1e9+7) #define ...
ALGO
0.999983
3.837232
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2025-03-10T14:13: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": "44ed449d258...
339ebfc4-3a3b-4978-aea5-f2458a57b5cc
hzaaaa/graphics
backup/study/main.cpp
#include <iostream> #include <string> #include <vector> #include <deque> #include <math.h> #include <tuple> #include <map> #include <limits.h> #include "a.hpp" #include "Sales_data.cpp" using namespace std; using f = int(int); void sTox(string &s); void sTox2(string &s) { int l = s.length(); for (int i = 0; i...
ALGO
0.997546
3.210912
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2023-03-31T02:45: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": "cb07cf876ec...
0d330740-9a80-43ee-950f-aa2798c5f0df
Anshc1/Leetcode-Solutions
0879-profitable-schemes/0879-profitable-schemes.cpp
class Solution { public: int n ; int mx ; vector<int>g , p ; int mod = 1e9+7; using ll = long long ; int dp[101][101][101]; ll recur(int i , int minp , int t){ if(t > mx){ return 0 ; } if(i == n ){ //cout<< t << endl; if(t <= ...
ALGO
0.999968
4.798453
{ "github_metadata": { "branch": "main", "commit_count": 740, "repo_created_at": "2023-06-20T22:11: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": "9456915964...
6dc3fd13-a01a-4ac3-ae18-e3cef5fd0c0f
geewhy123/MEGA
GAdriveruser.cc
/**************************************** *file:GAdriveruser.cc * A sample user input driver code that runs * a constrained GA optimization * * * <NAME>, <NAME> * June 13,2012 ****************************************/ #include <iostream> #include <armadillo> #include "WindFarmEvaluation.hh" #include "includ...
ALGO
0.999683
4.20746
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2016-07-30T00:24:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0b4941fcd3...
3894f8a8-38e6-4283-8cf5-d33f676f0709
manishbisht/Competitive-Programming
Data Structures/03 Stack/Stack.cpp
#include <iostream> #include <cstdlib> using namespace std; // define size capacity of the stack #define SIZE 10 // Class for stack class stack { int *arr; int top; int capacity; public: // constructor stack(int size = SIZE); // destructor ~stack(); void push(int); int pop(); int peek(); int size...
ALGO
0.995951
4.529368
{ "github_metadata": { "branch": "master", "commit_count": 1057, "repo_created_at": "2016-07-10T16:33:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1673, "forks": 402, "issues": 0, "pull_requests": 4 }, "file_meta": { "content_id": "44...
ede9924d-907f-4c31-8b94-a3640925ffa7
qruxz/encode
index.cpp
#include <iostream> #include <string> using namespace std; namespace SymbolEncoding { string encode(const string& message) { string encodedMessage = ""; string symbolKey = "$§¢€¥%÷√π~&@#£∆!}✓^48260/?"; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (char letter : message) { ...
TOOL
0.997074
5.546971
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-10-20T05:42: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": "06aec38d480f...
b24facda-7a16-47ea-87d0-2fd3c1b5c3e8
fardinabir/LeetCode_Solutions
1235-maximum-profit-in-job-scheduling/1235-maximum-profit-in-job-scheduling.cpp
class Solution { public: struct Job { int startTime; int endTime; int profit; // Constructor for easy initialization Job(int start, int end, int p) : startTime(start), endTime(end), profit(p) {} }; int dp[100005]; // Added a semicolon to end the line int jobScheduling(std::vector<int>...
ALGO
0.999979
6.16012
{ "github_metadata": { "branch": "main", "commit_count": 530, "repo_created_at": "2022-07-31T12:19: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": "4d4ad0643e...
4d5ae8f4-308f-44f4-b2c5-2b816add44d2
Tushar-Sukhwal/codeforces
C_Fox_And_Names.cpp
// Author :- Tushar || 07-02-2025 15:49:34 #include <bits/stdc++.h> #define int long long using namespace std; /* ∧_∧   (。・ω・。)つ━☆・*。 ⊂/  /  ・゜  しーJ    °。+ * 。        .・゜ */ vector<int> kahntopo(vector<bool>& vis, vector<vector<int>>& gp) { int n = gp.size(); vector<int> degree(n, 0); ...
ALGO
0.999984
4.135397
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2023-01-31T11:16:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b2449d33c8a...
2c5159a2-f802-4711-9f72-e1182953ed9f
xtensor-stack/xtensor-blas
include/xflens/cxxlapack/interface/pbcon.tcc
/* * Copyright (c) 2012, <NAME>, <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 * notic...
TOOL
0.986859
5.798406
{ "github_metadata": { "branch": "master", "commit_count": 366, "repo_created_at": "2017-03-31T08:48:41.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 168, "forks": 63, "issues": 50, "pull_requests": 6 }, "file_meta": { "content_id": "48546...
a1aaade6-a237-45f5-bad1-a5d1d6dff9dc
dillongoostudios/goo-engine
source/blender/blenlib/BLI_vector_list.hh
/* SPDX-FileCopyrightText: 2023 Blender Authors * * SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include <algorithm> #include "BLI_vector.hh" namespace blender { /** * A VectorList is a vector of vectors. * * VectorList can be used when: * * 1) Don't know up front the number of elements that w...
TOOL
0.956289
7.285116
{ "github_metadata": { "branch": "goo-engine-main", "commit_count": 132039, "repo_created_at": "2021-05-08T09:53:07.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1109, "forks": 148, "issues": 44, "pull_requests": 6 }, "file_meta": { "conte...
dd56cbee-d0ff-4dda-a5de-ea4615dee617
binayakbehera999/IPC-and-process-synchronisation
question-2.cpp
#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sys/wait.h> #include <time.h> #define MAX_SIZE 100 using namespace std; // structure of message for msg queue struct msg{ long mtype; char text[MAX_SIZ...
ALGO
0.988064
4.20545
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2023-08-24T17:05: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": "e2a9642772...
b3e03ce5-a29b-40a3-b1bf-dc46bb4b9733
Loyea/PAT-Cpp
PAT/B1017.cpp
#include <cstdio> #include <cstring> #include <string> #include <iostream> using namespace std; struct bign { int d[1010]; int len; bign() { memset(d, 0, sizeof(d)); len = 0; } }; bign convert(string str) { bign a; a.len = str.length(); for (int i = 0; i < a.len; i++) { ...
ALGO
0.999923
3.766181
{ "github_metadata": { "branch": "master", "commit_count": 36, "repo_created_at": "2019-02-05T12:08:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ac7bec0bd...
cc03287c-72e0-446c-9c1d-f918f6b23e58
open-mmlab/mmcv
mmcv/ops/csrc/parrots/contour_expand.cpp
// Copyright (c) OpenMMLab. All rights reserved // It is modified from https://github.com/whai362/PSENet #include <iostream> #include <queue> #include "pytorch_cpp_helper.hpp" using namespace std; class Point2d { public: int x; int y; Point2d() : x(0), y(0) {} Point2d(int _x, int _y) : x(_x), y(_y) {} }; ...
DATA
0.917845
3.867182
{ "github_metadata": { "branch": "main", "commit_count": 1467, "repo_created_at": "2018-08-22T07:05:26.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6189, "forks": 1704, "issues": 332, "pull_requests": 110 }, "file_meta": { "content_id": "...
7b48cf87-24ec-4ab3-9361-1a1c538ae6db
lballabio/QuantLib
ql/pricingengines/exotic/analyticcomplexchooserengine.hpp
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2014 Master IMAFA - Polytech'Nice Sophia - Université de Nice Sophia Antipolis This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org...
ALGO
0.973234
7.161168
{ "github_metadata": { "branch": "master", "commit_count": 17543, "repo_created_at": "2015-12-17T16:29:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6151, "forks": 1964, "issues": 51, "pull_requests": 11 }, "file_meta": { "content_id":...