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
c4981236-606a-4eb8-b265-fa5aee482bfd
AbdulrahmanJ204/cp
B_Subsegments.cpp
#include <bits/stdc++.h> using namespace std; #define test int t;cin>>t;while(t--) #define ll long long #define all(x) x.begin(),x.end() #define rall(x) x.rbegin(),x.rend() #define endl '\n' #define cendl cout<<endl #define cyes cout<<"YES" #define cno cout<<"NO" #define cin(v) for(ll i=0;i<v.size();i++)cin>>v[i]; #de...
ALGO
0.99964
3.144804
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2024-01-24T07:28:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "70e11b63b024...
a5762def-4086-47e4-a792-dcaa5b56d596
ishandutta2007/codeforces-a
anta/normal/786/C.cpp
#include "bits/stdc++.h" using namespace std; #define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i)) #define rer(i,l,u) for(int (i)=(int)(l);(i)<=(int)(u);++(i)) #define reu(i,l,u) for(int (i)=(int)(l);(i)<(int)(u);++(i)) static const int INF = 0x3f3f3f3f; static const long long INFL = 0x3f3f3f3f3f3f3f3fLL; typedef vector<...
ALGO
0.999936
3.508842
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-04-11T00:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a46ed273f98a...
f3aceadb-1931-44af-8616-4679a71488c8
TI-1050/code
opentrains/10397/h.cpp
#include <bits/stdc++.h> using namespace std; const int N = 1e2 + 10; int n; int a[N], b[N]; double res; void gao(int pos, int A, int B, int C, double ans) { if (pos > n) { res = max(res, ans); return ; } if (A < n / 3) { gao(pos + 1, A + 1, B, C, ans + a[pos]); } if (B < n / 3) { gao(pos + 1, A, B + 1...
ALGO
0.999936
4.169228
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2020-09-28T00:59:04.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bd2844213aa...
82b76111-1570-4d3b-9323-03ce7e9f69d8
Anyacoding/Coding-Pracitce
Leetcode 94. Binary Tree Inorder Traversal (Medium).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(n...
ALGO
0.999987
5.618059
{ "github_metadata": { "branch": "main", "commit_count": 195, "repo_created_at": "2021-10-02T08:41: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": "5c7beb5299...
6be8ddc9-2577-427d-bf10-2b1818318c8c
marihere/Codeforces
Level B/1895B_Points and Minimum Distance.cpp
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int t, n, s; cin >> t; for (int i = 0; i < t; i++) { s = 0; cin >> n; int a[2 * n]; for (int j = 0; j < 2 * n; j++) cin >> a[j]; sort(a, a + (2 * n)); for (int j = 1; j < n;...
ALGO
0.999554
3.744545
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2023-11-15T20:32: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": "9b1d0b1eeb...
7879702e-b03a-43ff-989c-58cf425a6beb
DanMesh/GeoHash
GeoHash/geo-hash-example.cpp
// Geometric hashing example // Obtained from http://www.cs.rpi.edu/academics/courses/spring08/cs2/homework/09/ #include "geo_hash.h" #include <iostream> #include <vector> // A simple stream operators to output a bin. std::ostream& operator<< ( std::ostream& s, bin_index b ) { s << b.i() << ',' << b.j(); return...
ALGO
0.959291
6.457911
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2018-08-17T11:59:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "719acbeff...
2a2fc428-1299-46b5-b44d-d97d129a6c01
jay16udani/Algorithmic_Toolbox_Coursera
03_divide_and_conquer_starter_files/majority_element-done/majority_element.cpp
#include <iostream> #include <vector> using std::vector; void merge_vector(vector<int> &left, vector<int> &right, vector<int> &a_b) { //cout<<"in merge\n"; //printf(a_b); a_b.clear(); while ((int)(left.size()) > 0 || (int)(right.size()) > 0) { if ((int)(left.size()) > 0 && (int)(right.size()) > 0) {...
ALGO
0.999996
4.044622
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2017-06-07T04:14: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": "f6f903c8dc...
f1b67f5c-4b0e-431f-bd8e-f3dfb23ef9d3
sanjusss/leetcode-cpp
0/700/710/714.hpp
#pragma once #include "leetcode.h" // class Solution { // public: // int maxProfit(vector<int>& prices, int fee) { // int n = prices.size(); // vector<vector<int>> singles(n, vector<int>(n)); // for (int i = 0; i < n; ++i) { // int buy = prices[i]; // for (int j = i ...
ALGO
0.999687
5.838952
{ "github_metadata": { "branch": "master", "commit_count": 2055, "repo_created_at": "2019-04-04T03:17:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d258048...
1a0ec1c9-86c4-4e4d-838c-f32f8c96033a
konoha19/algo
bipartiteMatching.cpp
#include <bits/stdc++.h> using namespace std; #define pb push_back #define Fd(start, end) for(int i = start; i < end; i++) #define Fb(end, start) for(int i = end - 1; i >= start; i--) #define pr pair<int,int> #define prll pair<ll,ll> #define N 200001 #define ll long long int #define mod 998244353 #define MOD 1000000007...
ALGO
0.999385
4.061024
{ "github_metadata": { "branch": "master", "commit_count": 38, "repo_created_at": "2020-10-01T08:36:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "39d7aa54b...
f222a7a8-c0c4-439e-8e6c-19650a35b755
yuanz4/Competitive-programming-template
segment_tree_lazy.cpp
// lazy propogation可以对一段范围进行更新 // 在这里是assign一个值到区间,然后对某点进行查询 // update时先push再update,最后每个小segment要和区间完全重合, // 因此当前区间所有值都有lazy标记,整个subtree也都是这个值 // 所以向下push会完全覆盖子区间,即使子区间有lazy标记也没关系,直接覆盖 // 在update的时候划分了目标区域,min和max的使用覆盖了所有情况 // 还有很多变形,比如加某个值到区间,然后查询单点或是查询区间 #include <bits/stdc++.h> using namespace std; #define left(v)...
ALGO
0.999955
4.661804
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2020-12-26T08:39: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": "23a05a115bb...
ebbe1b20-1491-4528-a0de-7431f4f244ee
wangw42/wSophomoreWork
dsaaExercise/lab03.cpp
/* Lab Work 03-1. Application of Lists and Stacks Note. Programming in C++, including <iostream>/<iostream.h> and <cstdlib>/<cstdlib.h> only Let n be a positive integer with specified initial value n=30. Use an array of n units to store polynomial of one indeterminate. Design and implement a C++ program to Determine...
ALGO
0.995698
4.391655
{ "github_metadata": { "branch": "master", "commit_count": 36, "repo_created_at": "2019-12-13T08:54:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 2 }, "file_meta": { "content_id": "e63eae512...
5bd4a82a-8710-4082-81fa-e9879d374456
liuyubobobo/Play-Leetcode
1501-2000/1669-Merge-In-Between-Linked-Lists/cpp-1669/main.cpp
/// Source : https://leetcode.com/problems/design-front-middle-back-queue/ /// Author : liuyubobobo /// Time : 2020-11-28 #include <iostream> using namespace std; /// Linked List Operation /// Time Complexity: O(b + |list2|) /// Space Complexity: O(1) /// Definition for singly-linked list. struct ListNode { ...
ALGO
0.999717
5.360435
{ "github_metadata": { "branch": "master", "commit_count": 2592, "repo_created_at": "2016-12-01T17:08:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2732, "forks": 718, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "6b...
b502464b-13aa-4f3f-a920-492d8ce75095
shubham-deshmukh/CP-Contests
DS implementation/Two Pointers Method/Coprime Segment.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long #define all(x) x.begin(), x.end() #define endl "\n" #define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) const int mod = 1e9+7; #define int long long struct SegmentTree { long long size; vector<long long> tree, arr; long l...
ALGO
0.999993
4.166172
{ "github_metadata": { "branch": "main", "commit_count": 365, "repo_created_at": "2023-05-21T17:27:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "da9fb0e574...
aee05faa-3916-47a1-8a25-74f079dd3e1f
jusancc/Proyecto_TT1
src/matrix.cpp
//$Header$ //------------------------------------------------------------------------------ // Matrix //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // **Legal** // // Author: <NAME> // /** * @file matrix.cpp ...
TOOL
0.944032
5.858666
{ "github_metadata": { "branch": "main", "commit_count": 30, "repo_created_at": "2025-03-28T08:57:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 6, "pull_requests": 0 }, "file_meta": { "content_id": "3f004c8ac03...
b8bb1f79-e90d-4194-bfa5-408dbe038496
CASR-HKU/ESDA
hardware/benchmark_results/sparse/DVS_mobilenet_0707_0p5-zcu102_50res_new/single_blk-block_8/top.cpp
#include "top.h" void wrapper(ap_int<CFG_AW * CFG_TOP_PIC> *act_in, ap_int<CFG_AW * CFG_TOP_POC> *act_out, ap_int<CFG_MW> *mask, int num_nz) { #pragma HLS DATAFLOW /*gen_code-fifo*/ hls::stream<BundleT<CFG_TOP_PIC, ap_int<CFG_AW>>> a_top; #pragma HLS STREAM variable=a_top depth=2 ...
DATA
0.973762
3.314159
{ "github_metadata": { "branch": "main", "commit_count": 135, "repo_created_at": "2023-12-10T15:40:38.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 11, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "19edce3e65...
d745eca2-9d2f-4e15-8c8f-69cd937e4a53
tsp-team/ttsp-engine
bsp/src/bsp/imagePacker.cxx
/** * PANDA3D BSP LIBRARY * * Copyright (c) <NAME> <<EMAIL>> * All rights reserved. * * @file imagePacker.cxx * @author <NAME> * @date September 1, 2020 */ #include "imagePacker.h" #include "mathlib.h" float ImagePacker:: get_efficiency() { return (float)_area_used / (float)(_max_width * CeilPow2(_minimum_...
TOOL
0.997569
6.309801
{ "github_metadata": { "branch": "master", "commit_count": 24718, "repo_created_at": "2020-05-12T04:13:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "316394b...
b3a7bfa9-f9a8-478f-8108-98d2410c50c0
YourName0729/competitive-programming
Kattis/coast.cpp
// DFS // https://open.kattis.com/problems/coast #include <iostream> #include <string> #include <vector> #include <sstream> #include <map> #include <cmath> #include <queue> #include <algorithm> #include <stack> #include <deque> #define forcase int __t;cin>>__t;getchar();for(int ___t=1;___t<=__t;___t++) #define For(i, ...
ALGO
0.999834
4.98906
{ "github_metadata": { "branch": "main", "commit_count": 59, "repo_created_at": "2021-02-19T08:35:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b964716bbd4...
020e2ac9-e250-4d13-9497-6376dbb6e06d
BIT-zhaoyang/competitive_programming
uva10505.cpp
#include <iostream> #include <vector> #include <cstring> #include <string> #include <algorithm> #include <map> #include <climits> #include <cmath> #include <set> #include <bitset> #include <sstream> #include <iomanip> #include <queue> #include <stack> #include <tuple> #define _ ios_base::sync_with_stdio(0), cin.tie(0)...
ALGO
0.999378
4.053762
{ "github_metadata": { "branch": "master", "commit_count": 120, "repo_created_at": "2016-02-07T23:17: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": "77656afc...
704efe45-2be7-4b16-bc7e-76fcfbadc340
Raj-3435/CppCodingQuesSoln
Week3/Day12/Ques1.cpp
// Ques 1 : Write a function void printLinkedList(Node* head) that traverses a singly linked list and prints each element's value. Input: A linked list with elements 10 -> 20 -> 30 -> 40 // Output: 10 20 30 40 #include <iostream> using namespace std; struct Node { int data; // Data stored in the node Nod...
ALGO
0.999594
5.937824
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2024-08-26T09:25:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2d7498505d3...
ab32e2c7-c4f3-4840-8c40-bcb324d0a126
jomael/NaroCAD
Lib/AlternateWrapper/NaroOccCore/NaroOccCore/Occ/Extrema/ExtremaExtPC.cpp
#include "ExtremaExtPC.h" #include <Extrema_ExtPC.hxx> DECL_EXPORT void* Extrema_ExtPC_Ctor() { return new Extrema_ExtPC(); } DECL_EXPORT void* Extrema_ExtPC_CtorCF4A20E8( void* P, void* C, double Uinf, double Usup, double TolF) { const gp_Pnt & _P =*(const gp_Pnt *)P; const Adaptor3d_Curve & _C =*(const ...
TOOL
0.950954
6.697683
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2018-05-07T04:31:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 20, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8b558d71b...
8c19de61-31be-4573-965c-e10668fb05bc
Huachr/PTA
哈利·波特的考试/哈利·波特的考试.cpp
// 哈利·波特的考试.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include<bits/stdc++.h> using namespace std; #define ll long long const int N = 1e2 + 5; #define inf 0x3f3f3f3f int n, m; struct node { int v, w; }; vector<node>G[N]; int ret, retid; int dis[N]; void BFS(int u) { queue<int>qu; qu.push(u); int vis[N] = { 0 }; vi...
ALGO
0.99999
3.974245
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2022-04-07T01:27:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0a3ee93b17...
797e45f7-fd07-45d8-a413-f4f28c3b0978
Effet/acm
project_euler/11/Sov_05_10_2012.cpp
#include <iostream> #include <algorithm> #include <cstring> using namespace std; int matrix[20][20]; int n = 20; bool ok(int x, int y) { return (x>=0&&x<n && y>=0&&y<n); } int main() { for (int i = 0; i < n; ++ i) for (int j = 0; j < n; ++ j) cin >> matrix[i][j]; int ans = -1; ...
ALGO
0.999964
3.783611
{ "github_metadata": { "branch": "master", "commit_count": 43, "repo_created_at": "2012-05-04T01:44:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f0ae4df7d...
008d46bb-b361-42ef-a5cf-5bb5439ca2d6
ChiragV21/Placement-Preparation-Module
Day-5/ReverseList.cpp
#include <bits/stdc++.h> using namespace std; // Linked List-Reverse Linked List class Node { public: int data; Node *next; Node(int val) { data = val; next = NULL; } }; void Insert(Node *&head, int val) { Node *n = new Node(val); if (head == NULL) { head = n; ...
ALGO
0.999985
5.541202
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2022-07-07T19:13: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": "e7edc8679fa...
d7866ba1-9d94-4be5-a990-9cc0db6c0659
ZiyaZa/AdventOfCode
2022/12/12_2.cpp
#include <bits/stdc++.h> using namespace std; int ans = 1000, n, m = -1, a[100][100], sti, stj, fi, fj, u[100][100]; string s; void dfs(int i, int j, int d = 0) { if (u[i][j] != -1 && u[i][j] <= d) return; u[i][j] = d; if (i == fi && j == fj) { ans = min(ans, d); return; } if (i...
ALGO
0.999782
3.899803
{ "github_metadata": { "branch": "main", "commit_count": 20, "repo_created_at": "2022-12-07T05:49: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": "aeb5d306613...
456dc5bf-9d7a-4a3b-8143-3dfa4011a572
KY2001/atcoder-all-my-submissions
abc085/abc085_d_1591602548.cpp
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author <NAME> */ #include "bits/stdc++.h" #define int long long #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define FOR(i, a) ...
ALGO
0.999955
3.805413
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2022-08-13T14:39: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": "73ea4b220a...
ca4f97a1-b3ec-40cf-82fc-893ddc1d54ed
lreis2415/TauDEM_ext
src_ext/RPISkidmore.cpp
// include fundamental libraries #include <stdlib.h> #include <iostream> #include <fstream> #include <math.h> #include <queue> #include <vector> #include <algorithm> #include <numeric> #include <time.h> #include <vector> // include mpich #include <mpi.h> // include TauDEM header files #include "commonLib.h" #include "l...
DATA
0.997242
3.44838
{ "github_metadata": { "branch": "master", "commit_count": 487, "repo_created_at": "2016-12-09T12:49:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f0505f86c...
a737c43b-ff2c-4a4f-9e31-dcdccfa21504
devgalvas/Oriented-Object-Programming
Classes/LongInt/LongInt.cpp
#include <iostream> #include "LongInt.h" using namespace std; LongInt::LongInt() {} LongInt::LongInt(int n) { for (int i = 0; i < 31; i++) { num[i] = 0; // inicializando todo o vetor com zeros } } LongInt::~LongInt() {} void LongInt::Read() { string n; cout << "Insira um longo numero in...
ALGO
0.996083
3.857051
{ "github_metadata": { "branch": "dev", "commit_count": 20, "repo_created_at": "2024-08-18T14:40: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": "c2fab4b09896...
f94cbd45-7165-4204-b568-76897fbfb721
baton/adventofcode-2020
23/2.cpp
#include <iostream> #include <fstream> #include <string> #include <list> #include <map> #include <algorithm> size_t constexpr steps = 10000000; int constexpr max_cup = 1000000; struct field_t { typedef std::list< int > list_t; list_t v; typedef std::map< int, list_t::const_iterator > map_t; map_t m; field_t( ...
ALGO
0.999723
5.162249
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2020-12-04T21:36: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": "558c5c74f...
61144872-b20f-44b4-8820-c5520323da41
Immortal-codes/Striver-A2Z-DSA-Sheet
Striver DSA Sheet Notes/SlidingWindow and Two Pointer/Hard.cpp
#include <bits/stdc++.h> using namespace std; // // 1. Longest Substring with At Most K Distinct Characters // int lengthOfLongestSubstringKDistinct(string s, int k) { unordered_map<char, int> count; int left = 0, maxLen = 0; for (int right = 0; right < s.size(); right++) { count[s[right]]++; ...
ALGO
0.999338
6.598312
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2025-06-17T15:20: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": "5d18d9cd963a...
cb865eab-b2ac-4717-9505-18640398c547
devpyc/PYC-Baekjoon
백준/Platinum/17408. 수열과 쿼리 24/수열과 쿼리 24.cc
#include <bits/stdc++.h> #define int long long #define endl "\n" using namespace std; const int INF = 1e9; const int MAXN = 100000; struct Node { long long max1, max2; }; class SegmentTree { private: vector<Node> tree; int size; Node combine(Node left, Node right) { vector<long long> values ...
ALGO
0.999936
5.843921
{ "github_metadata": { "branch": "main", "commit_count": 1118, "repo_created_at": "2023-12-28T12:20: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": "598f8d90d...
910c3140-40ee-46c1-8cb7-601c16e5fae8
kandika-Rohan/leetcode-practicing
Difficulty: Medium/Palindrome SubStrings/palindrome-sub-strings.cpp
//{ Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: int countPS(string &s) { // code here int n=s.size(); vector<vector<int>>dp(n,vector<int>(n,false)); for(int i=0;i<n;i++){ ...
ALGO
0.998109
5.734265
{ "github_metadata": { "branch": "main", "commit_count": 2858, "repo_created_at": "2024-07-04T10:40:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "887bb8f0c...
5e7574cc-abff-41ed-b81a-e7412e5621dd
ishandutta2007/codeforces-k
krijgertje/normal/1056/A.cpp
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> #include <queue> #include <set> #include <map> #include <cstdio> #include <cstdlib> #include <cctype> #include <cmath> #include <cstring> #include <list> #include <cassert> #include <climits> #inclu...
ALGO
0.999864
3.39372
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T06:06:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5eb216273813...
8996412b-2161-404a-a42e-30421d50ae56
Mabdullahatif/Object_Oriented_Programming
Beginners_2/Stage_5/task1.cpp
/* This C++ program defines a 'Set' class that represents a set of integers and provides various set operations. - The 'Set' class has private data members 'data', 'noOfElements', and 'capacity' to store the set elements, the number of elements in the set, and the capacity of the set, respectively. - The cl...
TOOL
0.994117
7.223481
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2023-07-27T22:04:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 15, "forks": 20, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "35bc1700...
7f9bb0d0-addf-4f21-a3b0-84ac7a7eb12d
MohiuddinSumon/allSolvedCodes
UVA Online Judge/10235 - Simply Emirp.cpp
#include<bits/stdc++.h> using namespace std; #define s(n) scanf("%d",&n) #define pf printf #define MAX 1000000 int status[MAX+1]; int rev_int(int n) { int ret=0; while(n != 0) { ret *= 10; ret += (n%10); n /= 10; } return ret; } int main() { memset(status,0,sizeof(s...
ALGO
0.999681
4.082591
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2016-11-27T07:16: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": "ee1e0d26e...
d72d7b3a-bd38-456c-897f-34d7f532f915
pradyumna0104/apan-college-dsa
45. Graphs (Part 3)/KhansAlgo.cpp
#include <iostream> #include <vector> #include <list> #include <queue> #include <stack> #include <string> using namespace std; class Graph{ int V; list<int> *l; bool isUndir; public: Graph(int V,bool isUndir = true){ this->V = V; l = new list<int>[V]; this->isUndir = isUndir; ...
ALGO
0.999961
5.547016
{ "github_metadata": { "branch": "main", "commit_count": 38, "repo_created_at": "2025-03-28T08:42:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2b4dfe8112b...
eec51b3e-e042-4049-b630-636098176584
Cybertron3/competitive
codeforce/edu85/c.cpp
//PLUS ULTRA #include<bits/stdc++.h> using namespace std; #define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0) #define pb push_back #define mp make_pair #define forn(i,st,n) for(int i = st; i < n ; i++) #define nfor(i,st,n) for(int i = st; i >= n ; i--) #define S second #define F first type...
ALGO
0.999932
3.120797
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2019-04-15T01:12: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": "b90faa4b2...
f92f7c1c-ed17-479f-b80f-258df3097093
bernhard-schmitzer/optimal-transport
v0.2.0/src/Common/THierarchyBuilder.h
#ifndef THierarchyBuilder_H_ #define THierarchyBuilder_H_ #include<cstdlib> #include<cmath> #include<vector> #include<Common/THierarchicalPartition.h> /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////...
ALGO
0.997175
5.165725
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2017-01-09T13:08:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 53, "forks": 17, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e97b573...
ba292167-3e1e-4c14-8b4c-bea6cc25d966
denosg/data-structures-and-alg-an2-sem1
lab 2 sdda/lab 2 sdda.cpp
#include <iomanip> #include <iostream> #include <conio.h> #define nrMaxN 20 using namespace std; typedef struct _nod { int cheie; int parinte; }nod; nod A[nrMaxN]; int nrEl; void AdaugFii(int idxParinte, int cheie, int niv) { int i, j, idx, nrFii; //adaugarea nodului idx = nrEl; //retinem indicele noului nod A...
ALGO
0.998902
3.648793
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2023-10-04T07:30:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ee6e10c038a4...
355cdc23-5ff6-4e47-bee2-d231e62d2b82
jonymony/codingground
sfdffdf/modedetect.cpp
// ModeDetect.cpp: implementation of the CModeDetect class. // ////////////////////////////////////////////////////////////////////// #include "modedetect.h" #include "message_types.h" #include <stdio.h> #include <string.h> #include "pc_types.h" // *** The number of times same mode has to be found to be confirmed t...
ALGO
0.989345
5.050849
{ "github_metadata": { "branch": "ghghjgadas", "commit_count": 144, "repo_created_at": "2015-04-14T05:47:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2826...
047bb4c0-fca3-4799-a058-c283657c8b18
fate7902/study
Programmers/Lv.2/괄호 변환.cpp
#include <string> #include <vector> #include <stack> using namespace std; void DivideString(string p, string& u, string& v){ int len = p.size(); int leftNum = 0, rightNum = 0; for(int i = 0; i < len; ++i){ if(p[i] == '(') leftNum++; else rightNum++; if(leftNum == rightNum){ ...
ALGO
0.99987
5.235237
{ "github_metadata": { "branch": "main", "commit_count": 234, "repo_created_at": "2023-02-27T01:35:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4cc2301dbe...
e3b7b175-bf88-4862-be8b-c544c7fe01b0
DianaRamirez14/LogicaProgramacion
Universidades.cpp
#include<iostream> using namespace std; int main() { int creditopos; int creditopre; string curso; float des; int mul; float promedio; creditopre = 50000; creditopos = 300000; cout << "Bienvenido, con los siguientes datos que le vamos a pedir, usted podra tener o no descuentos en sus proximos semestres." << ...
TOOL
0.920978
3.478719
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-11-06T06:40:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8754ca493e21...
bb642131-f7f8-4212-b47e-5bd9955bd9cd
ishandutta2007/codeforces-s
shun_pi/normal/1511/B.cpp
#include <bits/stdc++.h> using namespace std; using lint = long long int; using P = pair<int, int>; using PL = pair<lint, lint>; #define FOR(i, begin, end) for(int i=(begin),i##_end_=(end);i<i##_end_;i++) #define IFOR(i, begin, end) for(int i=(end)-1,i##_begin_=(begin);i>=i##_begin_;i--) #define REP(i, n) FOR(i,0,n) #d...
ALGO
0.999786
4.011494
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:07:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ee201bff163e...
a178d13a-cf7a-4a3a-9eab-69aeaa6207ba
ji-water/algo_study
[codeground]_009.cpp
#define MAX 50000 #include <iostream> #include <algorithm> #include <string> using namespace std; int Answer; string chem[] = { "H", "He", "Li", "Be", "B", "C", "N", "O", "F", "Ne", "Na", "Mg", "Al", "Si", "P", "S", "Cl", "Ar", "K", "Ca", "Sc", "Ti", "V", "Cr", "Mn", "Fe", "Co", "Ni", "Cu", "Zn", "Ga", "Ge", "As", ...
ALGO
0.998854
3.84111
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2019-06-04T14:59:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "520d44cdc9...
6aa7acff-fc7e-4e53-86d9-0891783ee429
ramkaranpatel4661/DSA_Practice
TRIE/longest_string_with_all_prefix_ispresent.cpp
#include <iostream> #include <vector> #include <string> using namespace std; class TrieNode { public: bool flag; TrieNode* children[26]; TrieNode() { flag = false; for (int i = 0; i < 26; i++) { children[i] = NULL; } } }; class Solution { private: TrieNode* roo...
ALGO
0.99997
5.405518
{ "github_metadata": { "branch": "main", "commit_count": 52, "repo_created_at": "2024-12-27T18:24: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": "58170448dac...
52730961-a06a-4d4f-b4b7-cfa42d0cb35e
zpublic/zpublic
pellets/z_win_utils/crc32.hpp
/************************************************************************* * * * I|*j^3Cl|a "+!*% qt Nd gW * * l]{y+l?MM* !#Wla\NNP NW MM I| * * PW ?E| ...
TOOL
0.934478
6.070785
{ "github_metadata": { "branch": "master", "commit_count": 1420, "repo_created_at": "2012-11-07T13:22:20.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 54, "forks": 54, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "850241...
69fbe409-dd16-493b-a6ff-251a8a74804a
hectorjimenezz/Repositorio_Org_Computadoras
Repositorio_Org_Computadoras-main/Repositorio_Org_Computadoras-main/ACT3/ACT3_EJE2_HJB_ORGCOMP.cpp
//<NAME> //Org de Computadoras //22 de marzo del 2024 //Actividad 3 #include <stdio.h> // Función para invertir los bits void flipBits(char *binary) { int i = 0; while (binary[i] != '\0') { binary[i] = (binary[i] == '0') ? '1' : '0'; i++; //Utilizamos un acumulador para que cuando se cumpla ...
ALGO
0.998703
5.135006
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2024-05-31T17:22: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": "8b7438210d1b...
2914cc5d-8aec-4c39-a776-ab01630b2d01
google/monster-mash
third_party/libigl/include/igl/path_to_edges.cpp
#include "path_to_edges.h" template <typename DerivedI, typename DerivedE> IGL_INLINE void igl::path_to_edges( const Eigen::MatrixBase<DerivedI> & I, Eigen::PlainObjectBase<DerivedE> & E, bool make_loop) { // Check that I is 1 dimensional assert(I.size() == I.rows() || I.size() == I.cols()); if(make_loop)...
ALGO
0.942352
5.571558
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2021-01-28T21:04:52.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1312, "forks": 182, "issues": 24, "pull_requests": 0 }, "file_meta": { "content_id": "17f528...
84529209-fdeb-4109-9866-17610e8795c8
goodstudyqaq/ACM
codeforces/1500-1599/1526/D.cpp
#include <bits/stdc++.h> #include <algorithm> #include <numeric> using namespace std; #ifdef LOCAL #include "copypaste/debug.h" #else #define debug(...) 42 #endif #define endl '\n' typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; struct fast_ios { fast_ios() { cin.tie(nullptr...
ALGO
0.999955
4.56705
{ "github_metadata": { "branch": "main", "commit_count": 844, "repo_created_at": "2021-05-25T15:11:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5a558556de...
dcb95465-7438-45a1-8c11-09d1c2b14381
Preetam2114/CP-Algorithms
Algebra/Prime numbers/Primality tests/SPOJ - Prime or Not.cpp
/* * File: SPOJ - Prime or Not * Algorithm: Primality tests * Created Date: Wednesday July 29th 2020 * Author: <NAME> */ #include <bits/stdc++.h> using namespace std ; typedef long long ll ; ll mulmod(ll a,ll b,ll c) { ll x = 0 , y = a%c ; while(b>0) { if(b%2) x = (x+y)%c ; y=(y*2)%...
ALGO
0.999573
5.049592
{ "github_metadata": { "branch": "master", "commit_count": 52, "repo_created_at": "2020-07-21T18:05:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "30ca5efba...
f6c54d92-314e-4793-b4c0-23bbb99c94d4
lxkeepcoding/competition
19200104卢鑫02.cpp
#define _CRT_SECURE_NO_WARNINGS 1 #include<iostream> #include<vector> using namespace std; int main() { int T; int num; int addmax = 0; int x = 0; int y = 0; int max; int max1; int a; int b; int c; cin >> T; vector<int>v; vector<vector<int> >A; vector<vector<int> >B; vector<vector<int> >C; ...
ALGO
0.999953
3.118133
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2021-09-27T14:51: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": "5419e73d35...
3d41224e-66f3-4892-8ad0-727371a92c9d
ehnryx/lca
geometry/circle.h
/* Circles * STATUS * somewhat tested: boj/15004,7019,9598,20989 */ #pragma once #include <variant> #include "lines.h" #include "point.h" template <typename> struct circle; namespace geo { template <typename T> struct circle_intersection_type { using type = T; using one = point<T>; using two = std::tuple<...
ALGO
0.99809
6.839031
{ "github_metadata": { "branch": "master", "commit_count": 188, "repo_created_at": "2018-04-25T18:09:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 4, "pull_requests": 0 }, "file_meta": { "content_id": "b7a0988d...
3925f7fb-4d32-4aec-b104-5558a56e4c6f
AdriCri22/Programacion-2-PRO2-FIB
Practicas/Sesion 5 - Stack & Queue/3 - X68213 - Biblioteca/X68213 - Biblioteca.cc
#include <iostream> #include <vector> #include <stack> using namespace std; void escriure(const vector<stack<string> >& v, int c) { cout << "Pila de la categoria " << c << endl; stack<string> llibres = v[c-1]; while (not llibres.empty()) { cout << llibres.top() << endl; llibres.pop(); }...
ALGO
0.982323
4.24223
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2021-01-20T09:06: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": "7c6cacd91dd...
d6fb2b78-c63f-4519-89ee-0cbb3a4f5c7c
varunrk05/HackerRank-Code
get-the-value-of-the-node-at-a-specific-position-from-the-tail.cpp
#include <bits/stdc++.h> using namespace std; class SinglyLinkedListNode { public: int data; SinglyLinkedListNode *next; SinglyLinkedListNode(int node_data) { this->data = node_data; this->next = nullptr; } }; class SinglyLinkedList { public: S...
ALGO
0.999976
4.432228
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2018-10-15T18:48:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "5ca5c7378...
a4b0a11b-f313-4507-99a0-2c50ef08bd7a
ishandutta2007/codeforces-a
alexandr_ts/normal/659/B.cpp
#include <bits/stdc++.h> #define fr(i, n) for (int i = 0; i < n; ++i) #define frab(i, a, b) for (int i = a; i < b; i++) #define pb push_back #define mp make_pair using namespace std; typedef long long ll; typedef long double ld; const int N = 2e5 + 3; struct pers { string name; int reg, score; } a[N]; bool...
ALGO
0.999963
3.443218
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-04-11T00:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3d65da2944e5...
cf003124-a51d-468a-91cd-17c002074048
SerenityOS/serenity
Userland/Utilities/xargs.cpp
/* * Copyright (c) 2020, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Function.h> #include <AK/StdLibExtras.h> #include <AK/StringBuilder.h> #include <LibCore/ArgsParser.h> #include <LibCore/System.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib....
TOOL
0.944471
7.242515
{ "github_metadata": { "branch": "master", "commit_count": 65459, "repo_created_at": "2018-12-02T19:28:41.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 32033, "forks": 3254, "issues": 725, "pull_requests": 7 }, "file_meta": { "content_id":...
c3a1203e-1e85-46c8-af82-2cf28e39d5e4
dhs347/Dream
Personal_Training/fb/min-max容斥/hdu4624.cpp
#include<bits/stdc++.h> using namespace std; #define fi first #define se second #define mp make_pair #define pb push_back #define rep(i, a, b) for(int i=(a); i<(b); i++) #define per(i, a, b) for(int i=(b)-1; i>=(a); i--) #define sz(a) (int)a.size() #define de(a) cout << #a << " = " << a << endl #define dd(a) cout << #a...
ALGO
0.999761
3.952116
{ "github_metadata": { "branch": "master", "commit_count": 1232, "repo_created_at": "2019-09-26T15:21:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 16, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "723b86...
115a390a-5944-47e8-a30f-65304c24d722
flucoma/flucoma-core
include/flucoma/algorithms/public/OnsetSegmentation.hpp
/* Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/) Copyright University of Huddersfield. Licensed under the BSD-3 License. See license.md file in the project root for full license information. This project has received funding from the European Research Council (ERC) under the European Union’s H...
ALGO
0.964247
7.055141
{ "github_metadata": { "branch": "main", "commit_count": 2386, "repo_created_at": "2020-04-27T20:55:30.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 86, "forks": 16, "issues": 56, "pull_requests": 14 }, "file_meta": { "content_id": "202607...
a7c08257-e9bd-4355-8d97-c730c933ea21
pmateusz/quake
src/main/legacy/action_formulation.h
// // Copyright 2018 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distrib...
ALGO
0.996503
7.160372
{ "github_metadata": { "branch": "master", "commit_count": 145, "repo_created_at": "2019-12-05T21:11:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e4af6334...
f1b1b1e6-fe5c-4f22-a606-802db2ae2688
scylladb/scylladb
utils/bloom_calculations.hh
/* * Copyright (C) 2015-present ScyllaDB * * Modified by ScyllaDB */ /* * SPDX-License-Identifier: (LicenseRef-ScyllaDB-Source-Available-1.0 and Apache-2.0) */ #pragma once #include "utils/assert.hh" #include <seastar/core/format.hh> #include "exceptions/exceptions.hh" namespace utils { /** * The following ...
ALGO
0.966044
7.341085
{ "github_metadata": { "branch": "master", "commit_count": 48526, "repo_created_at": "2014-12-24T13:16:33.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 14677, "forks": 1388, "issues": 3257, "pull_requests": 335 }, "file_meta": { "content_i...
b1673980-a2f4-4a0f-8554-52d653967fce
tuw-robotics/tuw_multi_robot
tuw_multi_robot_router/src/avoidance_resolution.cpp
/* * Copyright (c) 2017, <copyright holder> <email> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this...
ALGO
0.999984
4.814602
{ "github_metadata": { "branch": "master", "commit_count": 304, "repo_created_at": "2017-12-19T14:28:58.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 271, "forks": 118, "issues": 11, "pull_requests": 1 }, "file_meta": { "content_id": "f525...
4db34ab9-001f-4235-82a9-7e4d2b0cb1c1
proteinprospector/prospector
libucsf/lu_seq_exp.cpp
/****************************************************************************** * * * Library : libucsf * * * ...
ALGO
0.941603
5.811681
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2015-10-25T00:26:54.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "edd98a58431...
de4a19ac-1091-44f6-80a5-d7f66dcef26c
TOTORO95/Algorithm
백준/Silver/2910. 빈도 정렬/빈도 정렬.cc
#include <bits/stdc++.h> using namespace std; int n = 0; // 1<= n <= 1000 int c = 0; // 1<- c <= 1000000000 typedef pair<int, pair<int, int>> pp; unordered_map<int, pair<int, int>> sequenceMap; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> n >> c; int temp; ...
ALGO
0.999993
3.267544
{ "github_metadata": { "branch": "main", "commit_count": 100, "repo_created_at": "2023-02-26T05:13:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4ad84704f9...
009f7a40-6d04-4599-a06a-6a3b69a83834
YashSampat23154/Strivers-A2Z-Sheet
Step 4 - Binary Search [1D, 2D Arrays, Search Space]/Step 4.2 - BS on Answers/9) Allocate Books.cpp
// https://www.codingninjas.com/studio/problems/allocate-books_1090540?utm_source=striver&utm_medium=website&utm_campaign=a_zcoursetuf&leftPanelTab=0 int checkMinPages(vector<int>& arr, int minPages){ int totalChildren = 0; int currPages = 0; for(int i = 0; i<arr.size(); i++){ currPages += ...
ALGO
0.999977
5.526928
{ "github_metadata": { "branch": "master", "commit_count": 41, "repo_created_at": "2023-08-21T02:20:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 14, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "616129db...
53898307-9201-4579-815f-899d9426688a
pulver22/nbs_ros
PathFinding/astar.cpp
// Astar.cpp // http://en.wikipedia.org/wiki/A* // Compiler: Dev-C++ 4.9.9.2 // FB - 201012256 #include "PathFinding/astar.h" #include "PathFinding/node.h" using namespace std; Astar::Astar() {} Astar::~Astar() {} bool operator<(const Node &a, const Node &b) { Node tmp1 = a; Node tmp2 = b; // return tmp1.getP...
ALGO
0.999825
3.963254
{ "github_metadata": { "branch": "topologicalMap", "commit_count": 277, "repo_created_at": "2015-05-20T13:51:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "...
7b1037db-5eba-42ef-bac6-072083bdca55
Junital/OneCodeChallenge
Day201-300/Day281-290/Day285/B2146inLuogu.cpp
/********************************************* * 题目:Hermite 多项式 * 描述:分段、递归函数。 * 思路:模拟。 * 对象:Hermite模拟多项式。 * 注意:封装完善。 ********************************************/ #include <bits/stdc++.h> using namespace std; #define rep(i, s, k) for (int i = s; i <= k; i++) // 定义快速循环 class Hermite { private: /* 内部调用函数 */...
ALGO
0.999983
4.694936
{ "github_metadata": { "branch": "main", "commit_count": 647, "repo_created_at": "2023-12-20T07:44:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c1ddc53eb7...
cdf29926-d244-4ccb-8a7b-58f792a1f254
TrevSh/ClassAssignment16_HighScores
ClassAssignment16_HighScores/ClassAssignment16_HighScores.cpp
#include <iostream> #include <vector> #include <algorithm> #include <ctime> #include <cstdlib> int main() { std::vector<int>::const_iterator iter; std::cout << "Creating a list of scores."; std::vector<int> scores; scores.push_back(1500); scores.push_back(3500); scores.push_back(7500); st...
ALGO
0.982534
4.14009
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2023-07-24T07:36: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": "8b02823f79...
fba265b9-d336-405e-88e1-644dac705ab8
ishandutta2007/codeforces-t
tsukiko_tsutsukakushi/normal/1117/C.cpp
/** * author: otera **/ #include<iostream> #include<string> #include<cstdio> #include<cstring> #include<vector> #include<cmath> #include<algorithm> #include<functional> #include<iomanip> #include<queue> #include<deque> #include<ciso646> #include<random> #include<map> #include<set> #include<complex> #include<bi...
ALGO
0.999903
3.63458
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:27: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": "0a54a73b543b...
0bfe165b-3c27-49ee-bf01-11977deac388
alexeiz/advent2022
include/day11.hpp
#pragma once #include <cstdint> #include <functional> namespace day11 { struct monkey { std::vector<std::int64_t> items; std::function<std::int64_t (std::int64_t)> op; int div; int true_case; int false_case; }; inline monkey test_monkeys[] = { {{79, 98}, [](std::int64_t old) {return old...
ALGO
0.975209
5.423048
{ "github_metadata": { "branch": "master", "commit_count": 46, "repo_created_at": "2022-12-05T00:53:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "005d2d0a2...
e277c0ec-81be-40c7-b1ab-71065670d9b6
UpperLEFTY/exit-nodes
0687-longest-univalue-path/0687-longest-univalue-path.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.999681
6.565533
{ "github_metadata": { "branch": "Main", "commit_count": 5132, "repo_created_at": "2022-02-08T23:44:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e2c5704db...
98edac3b-3caf-4d3f-a3f6-70a73960e5a5
coleharlow12/C_computationalEM
hw1_q2_b.cpp
// Compile it with: // g++ hw1_q2_b.cpp -lboost_iostreams -lboost_system -lboost_filesystem #include <iostream> #include <iomanip> #include <cmath> #include "gnuplot-iostream.h" #define runs 200 float r = 0.1; float Phi_n[11] = {0}; float Phi_n_p_1[11] = {0}; double Data[11][5]; int main() { Gnuplot gp; int take...
ALGO
0.999511
3.991775
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-10-19T01:27: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": "a499e9e28a75...
dd7b249f-de7d-4432-88d2-b64e0c145320
parsaabbasi115/cpp_practice
Source.cpp
#include <iostream> int main() { //coin=$2 & $1 & $0.25 & $0.1 & $0.05 & $0.01 //for get number double amount; double s; int z; //start the operation std::cout << "Please enter number: "; std::cin >> amount; std::cout << "\nPlease wait....\n"; //set the precision to 2 std::...
ALGO
0.988941
3.374815
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2021-07-24T19:01: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": "0f31d668a75c...
c4d45db6-194c-48ae-930c-ed6135c10631
abellagonzalo/go2012
player/src/lib/vision/segmentation/Region.cpp
/* * Name: Region.h * @Author: <NAME> (<EMAIL>) * * Description: Class to collect up several Segments with the same color. * * Copyright (C) 2009-2010 Universidad Rey J<NAME> * All Rights Reserved. */ #include "Region.h" Region::Region() { this->init = NULL; } Region::~Region() { } int Region::calcMoment00...
TOOL
0.91496
4.748587
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2013-09-26T14:59:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ba7266e28...
d82a4d41-7044-4a6b-898f-3c707877e862
luismoax/Competitive-Programming---luismo
COJ_ACCEPTED/3646 - Tobby on Tree II.cpp
/* Author: <NAME> (LUISMO) Problem: 3646 - Tobby on Tree II Online Judge: COJ Idea: Use Heavy Light Descomposition. Use a SegmentTree of GCD for each chain. */ #include<bits/stdc++.h> // Types #define ll long long #define ull unsigned long long // IO #define sf scanf #define pf printf using namespace std; const i...
ALGO
0.999979
4.41258
{ "github_metadata": { "branch": "master", "commit_count": 218, "repo_created_at": "2020-03-28T14:52:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8b1a2f25...
883de6da-8423-48c6-8758-27caaf666c48
jaxxstar/Shadow-bot
control/differential-drive/differential-drive.ino
// Pins used on arduino #define rEncoder 3 #define REnable 16 #define RRev 14 #define RFwd 15 #define LEnable 17 #define LFwd 18 #define LRev 19 // Variables used in interrupts double rightPulse; double rightTime; double rightWheel; float rightSpeed = 0; // Actual Speed in Relvolutions Per Second (RPS)...
ALGO
0.992798
5.635331
{ "github_metadata": { "branch": "master", "commit_count": 23, "repo_created_at": "2019-01-13T16:40:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3b3af156f...
0f4e3104-ef17-4627-991d-5815dbbe4f97
XenonWZH/involution
Virtual Judge/Contest 508752/A.cpp
#include <cstdio> #include <climits> struct Splay { struct Node { Node *fa, *ch[2], **root; int x, size, cnt; Node (Node **root, Node *fa, int x) : root(root), fa(fa), x(x), cnt(1), size(1) { ch[0] = ch[1] = nullptr; } int relation() { return this =...
ALGO
0.999969
4.975032
{ "github_metadata": { "branch": "main", "commit_count": 615, "repo_created_at": "2021-07-31T13:30:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a8c54d953a...
970764de-f908-4c7d-a913-b47ac6ecba35
ultimatecoder2/6c_30d_chal
GS/ques4.cpp
/* RUN LENGTH ENCONDING Given a string, Your task is to complete the function encode that returns the run length encoded string for the given string. eg if the input string is “wwwwaaadexxxxxx”, then the function should return “w4a3d1e1x6″. You are required to complete the function encode that takes only one argumen...
ALGO
0.99999
5.562898
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-01-02T05:24: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": "21d6bda50025...
ebae6785-0c70-4135-9dab-50100916398f
asolarlez/sketch-frontend
pldi/rex1c/rex1c.main.cpp
#include "spmd.h" #include <fstream> #include <sstream> #include <ctime> #include <cstdlib> using namespace std; time_t start; time_t end; time_t totalEnd; #include "rex1c.cpp" using namespace ANONYMOUS; int W, H; LState * ls; void init() { int base, width; partition(spmdnproc, spmdpid, W, base, width); ls ...
ALGO
0.987198
3.52496
{ "github_metadata": { "branch": "master", "commit_count": 3967, "repo_created_at": "2020-07-13T22:20:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 38, "forks": 8, "issues": 4, "pull_requests": 5 }, "file_meta": { "content_id": "bcbdc8...
76a457f7-d4a3-422e-849c-ea9ee0355968
vamanra/assignments
sparse_matrix.cpp
#include <iostream> using namespace std; // Structure to represent a sparse matrix element struct SparseMatrix { int row; int col; int value; }; // Function to display the sparse matrix void displaySparseMatrix(SparseMatrix sm[], int nonZeroElements) { cout << "Sparse Matrix Representation: (row, col,...
ALGO
0.995328
6.035635
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2024-09-01T01:43: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": "f306cbd2596...
31465329-4d39-437f-be32-ca92a5304b70
CongJyu/CCF-CSP-Problemset-Solutions
202206-2/main.cpp
// ccf-csp 202206-2 #include <iostream> #include <map> using namespace std; int a[1005][2]{}, b[52][52]{}; map<int, map<int, int> > mp; int main() { ios::sync_with_stdio(false); int n{}, l{}, s{}; cin >> n >> l >> s; for (int i{}; i < n; ++i) { cin >> a[i][0] >> a[i][1]; mp[a[i][0]][...
ALGO
0.9998
4.608968
{ "github_metadata": { "branch": "main", "commit_count": 40, "repo_created_at": "2023-01-10T09:37:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "934aec10b43...
1a4236ea-5488-41e8-aa0f-c8f65ba80d52
Danielbook/TNG033_-_Programmering_i_C-
Earlier years/kod/Tentor/120528/Code/Exerc2/ex2.cpp
#include <iostream> #include <vector> #include <algorithm> #include <iterator> #include <fstream> #include <sstream> using namespace std; bool congruent_eq(int a, int b) { return (a%5 == b%5); } bool f(int n) { return (n > 15); } /************************************** * Main function ...
TOOL
0.915007
3.593669
{ "github_metadata": { "branch": "master", "commit_count": 27, "repo_created_at": "2014-11-24T06:58:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6f4f8cf06...
1fbdcbec-affc-48d7-9196-6c6af6ae0f69
pmathur007/cp
cpp_CSES/subtree_queries.cpp
#include "bits/stdc++.h" using namespace std; const int MAXN = 2e5 + 5; int N, Q; vector<int> g[MAXN]; int f[MAXN], s[MAXN]; long long a[MAXN], fwt[2 * MAXN]; void update(int i, long long v) { for (; i <= 2 * N; i += (i & -i)) fwt[i] += v; } long long query(int i) { long long ans = 0; for (; i > 0; i -=...
ALGO
0.99961
4.197192
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-11-01T00:45: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": "c9ecb2a5404d...
3fc04251-5c11-4f0d-8676-e7efab4656c7
Gnaroshi/practice-algorithm-solvedac
With_Levels/Bronze/Bronze_3/9161.cpp
// problem: Sir Bedavere’s Bogus Division Solutions // id: 9161 // time taken: #include <bits/stdc++.h> using namespace std; int main(void) { ios::sync_with_stdio(false); cin.tie(nullptr); for (int i = 100; i < 1000; i++) { if (i % 111 == 0) continue; double di = double(i); ...
ALGO
0.992118
4.427828
{ "github_metadata": { "branch": "main", "commit_count": 476, "repo_created_at": "2024-03-13T08:59: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": "ad721489d5...
6196d64a-1099-4fd3-a156-5d3e1ac217b3
Delires/welcome-to-Cpp-world
黑马-程序/0.2C++的OO语法/4.1类和对象_对象/1.3深拷贝和浅拷贝.cpp
/** 深拷贝与浅拷贝 (经典面试问题) 1.深浅是从对象的生命周期上区分的 2.浅拷贝:简单的赋值拷贝操作 深拷贝:在堆区重新申请空间,进行拷贝操作 这时候析构函数就有用了,在堆开辟的空间,在析构里结束生命,但这样写又不是很对 ①拷贝函数是原封不动的逐字节拷贝 Person p2(p1);就把p1的内容逐字节拷贝给p2 ②这是p2.m_Age == p1.m_Age p2.m_High == p1.m_High ③由于栈的先入后出原则,先创建p1后p2,析构的时候先析构p2后p1 ④但由于m_High是一个指针,所以p1.m_High和p2.m_High都指向一块内存。不像p1.m_Age p2.m_Age有各自的内存 ...
TOOL
0.955662
5.03992
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2020-10-31T03:07: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": "6516c98e152e...
4692c1c7-dbb1-4374-a38f-b516710026a0
RafayGhafoor/Exercise
C++/Semester 02/Class Work/Lab-Mid [01].cpp
// ConsoleApplication1.cpp : Defines the entry point for the console // application. // #include <cmath> #include <cstring> #include <fstream> #include <iostream> #include <string> using namespace std; void RESIZE(char **&names, int *&marray) { int n_size = 0; for (; names[n_size]; n_size++) { } int *new_ar...
TOOL
0.928322
3.405352
{ "github_metadata": { "branch": "master", "commit_count": 92, "repo_created_at": "2017-10-03T17:59: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": "380f06c41...
430d2418-2b2f-4798-8fcd-2d379d87be1b
anuragtomer/practice_coding
geeksforgeeks/Arrays/subarrayMaxContiguousSum.cpp
/* * Kadane's Algorithm: * * We need to find max contiguous sum in the array A. * Let B[j] be an array which has the max contiguous sum till jth index. * So B[j] = MAX SUM_OVER_ALL(A[k]), j >= k >= i, for some i >= 1, meaning we are taking contiguous * sum. * This is equivalent of * B[j] = max(B[j-1] + A...
ALGO
0.999899
5.776639
{ "github_metadata": { "branch": "master", "commit_count": 392, "repo_created_at": "2017-12-18T11:39: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": "7a50acc3...
41da1454-9a18-46eb-9c5a-2503df0ee2e5
IvanValchetski/Dithering
src/lib/median_cut.cpp
#include "include/median_cut.h" median_cut::median_cut(CImg<unsigned char>& image, const unsigned int& palette, const size_t width, const size_t height): _palette{palette},_width{width},_height{height} { this->_image = image; init(); } void median_cut::init() { for (size_t r = 0; r < _height; r++) ...
ALGO
0.99734
4.782423
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2019-02-28T13:17:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d797c72004...
2795c609-6075-4639-9ac0-908ec503b91e
BIC-MNI/EZminc
mrfseg/gamixture.h
// ****************************************************** // Functions for mixture model optimization using genetic algorithms // MRFSEG + GAMIXTURE software bundle: Voxel classification in volumetric // images using genetic algorithms and Markov random fields. // The genetic algorithm is described in: // [1] <NAME>...
ALGO
0.999167
5.277084
{ "github_metadata": { "branch": "master", "commit_count": 218, "repo_created_at": "2012-03-08T18:19:27.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6, "forks": 6, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "d110909b2...
57fa824e-8d59-4ecd-b67b-e0f9d2092150
AnikHawk/Algorithm
DS LAB/Lab_Xm_2/LabXm2.cpp
#include<bits/stdc++.h> using namespace std; struct Max_heap { struct student { string name; int marks; int roll; }; student s[100010],c[100010]; int last_index=0,p=0,n=0; void Insert(string iname,int iroll,int imarks) { last_index++; n++; ...
ALGO
0.999483
3.608221
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-04-07T20:57:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c3c0985a5c...
bc0012e3-270d-41c6-8c16-e1f82d78fd46
pouiyter/MinimalResolution
hopf_algebroid/5.h
//embed a comodule into a cofree one and take the quotient template<typename ring, typename algebroid> template<typename degree_type> cofree_comodule<algebroid,degree_type> Hopf_Algebroid<ring,algebroid>::resolvor(comodule_generic<algebroid,degree_type> &X, matrix<ring> *inj, matrix<ring> *indj, matrix<ring> *quot, cur...
ALGO
0.997282
3.08062
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2020-04-07T08:04:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a19263c59...
cfd3928f-97b4-47d2-b8c2-f54e00157cc4
WSDOT/WBFL
RCCapacity/MomentInteractionCurveSolver.cpp
/////////////////////////////////////////////////////////////////////// // RCCapacity - Reinforced Concrete Capacity Analysis Library // Copyright © 1999-2025 Washington State Department of Transportation // Bridge and Structures Office // // This library is a part of the Washington Bridge Found...
ALGO
0.974612
5.658538
{ "github_metadata": { "branch": "master", "commit_count": 862, "repo_created_at": "2018-10-25T16:59:08.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 10, "forks": 5, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "ba505301...
0f333e71-9c89-42bc-a944-80d8c948899f
VijayNegi/LeetCodeProblems
solutions/787. Cheapest Flights Within K Stops.cpp
class Solution { public: // self : 31 ms int findCheapestPrice1(int n, vector<vector<int>>& flights, int src, int dst, int k) { vector<vector<pair<int,int>>> adj(n); for(auto& f:flights){ adj[f[0]].push_back({f[1],f[2]}); } vector<int> cost(n,INT_MAX); queue<p...
ALGO
0.999884
5.074059
{ "github_metadata": { "branch": "main", "commit_count": 2443, "repo_created_at": "2021-08-14T18:40: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": "3d8ab8c8d...
68dd4e6d-2ff6-494a-b98b-5f15ec27bd10
ivan-resetnikov/obj-loader-demo
src/main.cpp
/* The MIT License (MIT) Copyright © 2024 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
TOOL
0.919743
6.849991
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-10-24T18:30:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bc1c22c6ea25...
18877d41-4aa1-46bb-94e9-0c0479757ac2
ishandutta2007/codeforces-m
matthew99/normal/644/C.cpp
#include <bits/stdc++.h> using namespace std; #define REP(i, a, b) for (int i = (a), _end_ = (b); i < _end_; ++i) #define debug(...) fprintf(stderr, __VA_ARGS__) #define mp make_pair #define x first #define y second #define pb push_back #define SZ(x) (int((x).size())) #define ALL(x) (x).begin(), (x).end() template<t...
ALGO
0.997719
3.425515
{ "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": "fac823e367ad...
1b866c4e-19a6-44cf-a649-c94ce1740cc9
lppferreira/solids4foam
src/blockCoupledSolids4FoamTools/BlockFvm/blockTangentialCoeffs/blockTangentialCoeffs.H
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | foam-extend: Open Source CFD \\ / O peration | \\ / A nd | For copyright notice see file Copyright \\/ M anipulation | ---------------------...
ALGO
0.905847
6.374724
{ "github_metadata": { "branch": "3dTube-fix-parallel", "commit_count": 311, "repo_created_at": "2020-12-25T11:36:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_i...
34923d1c-8080-4d59-83e7-100fc0bfebc5
stella-cv/stella_vslam
src/stella_vslam/data/graph_node.h
#ifndef STELLA_VSLAM_DATA_GRAPH_NODE_H #define STELLA_VSLAM_DATA_GRAPH_NODE_H #include <atomic> #include <mutex> #include <vector> #include <map> #include <set> #include <memory> namespace stella_vslam { namespace data { class keyframe; class graph_node { public: /** * Constructor */ explicit grap...
ALGO
0.989349
7.057787
{ "github_metadata": { "branch": "main", "commit_count": 1060, "repo_created_at": "2021-01-30T03:16:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1039, "forks": 420, "issues": 20, "pull_requests": 1 }, "file_meta": { "content_id": "ab1d...
e791e6bc-be66-48f9-9111-0fdc4ffd7303
hal-oconnell/prog2100
leapyear-timed/main.cpp
// Program to determine if a date is a leap year or not and then compare // the difference between the standard algorithm and the optimized one // // Author: <NAME> // October, 2017 // // Works looping through a boolean array using the index as the year values // and setting the array element to true or false depending...
ALGO
0.99817
5.401299
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2017-10-05T14:56: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": "0255e7c376...
2e149507-a34a-4a13-8196-a962f60f979f
hendriko373/code-gymnastics
cpp/accelerated_cpp/chapter8/exercises/1/grade.cpp
#include <vector> #include <stdexcept> #include <algorithm> #include <iterator> #include <iostream> #include "student_info.hpp" #include "grade.hpp" #include "median.hpp" #include "average.hpp" using std::vector; using std::domain_error; using std::transform; using std::back_inserter; using std::ostream; us...
TOOL
0.99717
6.425026
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2019-10-05T09:45:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 8 }, "file_meta": { "content_id": "6ee94b66e...
b172ee38-3f22-48b8-908c-b89154adcf45
amoghmadireddi/Leetcode
0295-find-median-from-data-stream/0295-find-median-from-data-stream.cpp
class MedianFinder { private: //store lower elements priority_queue<int> maxheap; //store higher elements priority_queue<int, vector<int>, std::greater<int>> minheap; public: MedianFinder() { } void addNum(int num) { if(maxheap.empty() || maxheap.top() > num){ ...
ALGO
0.999985
6.19714
{ "github_metadata": { "branch": "main", "commit_count": 332, "repo_created_at": "2024-10-22T19:29:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "28625f6cba...
b0421a71-fad4-4036-b4d9-3ccd0c6269a3
metaphysis/Code
UVa Online Judge/volume111/11130 Billiard Bounces/program.cpp
// <NAME> // UVa ID: 11130 // Verdict: Accepted // Submission Date: 2018-02-27 // UVa Run Time: 0.000s // // 版权所有(C)2018,邱秋。metaphysis # yeah dot net #include <bits/stdc++.h> using namespace std; const double PI = 2.0 * acos(0); int main(int argc, char *argv[]) { cin.tie(0), cout.tie(0), ios::sync_with_stdio(fa...
ALGO
0.998567
3.952182
{ "github_metadata": { "branch": "master", "commit_count": 1710, "repo_created_at": "2016-03-07T13:28:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 229, "forks": 50, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "185f...
67c3576e-2888-4ddb-bbb5-ea5436f7fffb
ishandutta2007/codeforces-n
nutella3000/normal/1371/C.cpp
#include <bits/stdc++.h> using namespace std; #define int long long #define pii pair<int, int> #define sz(a) ((int)a.size()) typedef long double ld; const int inf = 1e18 + 7; signed main() { #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif cin...
ALGO
0.999905
4.280727
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:35:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f34c62dd29bf...