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
3d3b2235-fbfb-4080-aca2-1b6d8acf70b9
mmorella-dev/data-structures
04-polynomial/poly0.cpp
// FILE: poly0.cpp // AUTHOR: <NAME> // // Implementation of the polynomial class, using an dynamically sized array. // The array of coefficients is automatically resized, so it can theoretically // store theoretically arbitrarily large coefficients. In practice, values // beyond several thousand requires allocatin...
TOOL
0.90948
6.047924
{ "github_metadata": { "branch": "main", "commit_count": 169, "repo_created_at": "2020-08-24T21:29: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": "de9e1fd741...
ef725259-477b-48b8-b9b5-fc62b844d32a
JackRoxton/hae_gp2
cours1/cours 1/cours 1/IntArray.hpp
#include <algorithm> //pour std::max<int>() #include <cstdlib> #include <cstring> #include <cstdio> #include <functional> class IntArray { int* data = nullptr; int length; public: IntArray() { //alloc dynamique des data tailler "suffisamment grand" data = new int[length = 65536]; //data = (int*) malloc(65535...
TOOL
0.970463
4.238564
{ "github_metadata": { "branch": "main", "commit_count": 58, "repo_created_at": "2021-09-21T12:35: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": "be3417c2d4e...
b9fc3a56-b539-40a1-8d7b-b46284544cf6
ICAMS/lammps-user-pace
wigner-cpp/include/wigner/gaunt.hpp
/* * The MIT License (MIT) * * Copyright (c) 2016-2017 <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, ...
ALGO
0.999639
5.550774
{ "github_metadata": { "branch": "main", "commit_count": 63, "repo_created_at": "2021-02-25T10:04:48.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 29, "forks": 13, "issues": 2, "pull_requests": 3 }, "file_meta": { "content_id": "1bda10ce94...
9a6c80d8-56c7-4e31-9b92-90e12b845757
snake0/spec-int-2006
benchspec/CPU2006/453.povray/src/spec_qsort.cpp
/******************************************************************************** This module's spec_qsort is used to eliminate nondeterministic cross-platform behavior for elements with identical values when one using a system's stdlib qsort. The C standard says: "If two elements compare as equal, their orde...
ALGO
0.998472
6.14021
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-10-16T06:18:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "315933c369...
14082bf5-8dbb-453c-91f2-0a10931e68b8
Xilinx/hls-llvm-project
clang-tools-extra/clangd/ClangdServer.h
//===--- ClangdServer.h - Main clangd server code ----------------*- C++-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
TOOL
0.984077
5.277203
{ "github_metadata": { "branch": "main", "commit_count": 281033, "repo_created_at": "2021-06-10T19:27:20.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 34, "forks": 9, "issues": 2, "pull_requests": 1 }, "file_meta": { "content_id": "53ede47...
78e81258-55d5-4af1-be43-d30c8b5b95ec
kainzhang/kz-algo-cpp
PAT/Advanced/1073-Scientific-Notation.cpp
// // Created by LOKKA on 2020/5/25. // #include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int i = 0, len = str.size(); while (str[i] != 'E') i++; char sym = str[i + 1]; int sum = 0; for (int j = i + 2; j < len; j++) { sum = sum * 10 + str[j] - '0'; ...
ALGO
0.999741
3.762397
{ "github_metadata": { "branch": "master", "commit_count": 24, "repo_created_at": "2020-03-16T11:13:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4f8e42af4...
94e07233-fb7b-4cfb-94fb-199a871d4f20
samindaa/RLLib
util/TreeFitted/ExtraTree.h
/************************************************************************** * File: extratree.h * * Description: Class for extra-trees * * Copyright (C) 2007 by <NAME> & <NAME> * ******************************...
ALGO
0.906772
6.434375
{ "github_metadata": { "branch": "master", "commit_count": 321, "repo_created_at": "2012-08-22T06:55:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 203, "forks": 51, "issues": 12, "pull_requests": 1 }, "file_meta": { "content_id": "870e...
39e44b49-58b4-49eb-ade3-8026d4a501c6
ecmwf/atlas
src/atlas/interpolation/element/Triag3D.cc
/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergo...
ALGO
0.992312
7.039248
{ "github_metadata": { "branch": "develop", "commit_count": 5252, "repo_created_at": "2018-02-26T13:44:07.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 131, "forks": 44, "issues": 14, "pull_requests": 9 }, "file_meta": { "content_id": "9f0...
d4286fc4-fa09-47bb-9edc-880670bfdb02
JerryDGroom/Lab10
HashTable.cpp
/* ******************************************************************* Laboratory 10 Hash Table Lab || Group Project HashTable.cpp <NAME> <NAME> <NAME> 5/3/2015 ******************************************************************* */ #include <iostream> #include "HashTable.h" template <typenam...
ALGO
0.982652
5.173666
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2015-04-29T21:55:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "867e568361...
b9c4ae8b-a2df-4c13-b874-650946f2ac2c
diffblue/cbmc
src/analyses/invariant_set_domain.cpp
/*******************************************************************\ Module: Invariant Set Domain Author: <NAME>, <EMAIL> \*******************************************************************/ /// \file /// Invariant Set Domain #include "invariant_set_domain.h" #include <util/expr_util.h> #include <util/simplify_...
TOOL
0.944288
7.370767
{ "github_metadata": { "branch": "develop", "commit_count": 28406, "repo_created_at": "2016-02-16T23:03:52.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 932, "forks": 277, "issues": 432, "pull_requests": 141 }, "file_meta": { "content_id":...
540d1729-dfee-4294-b64f-6f928a563851
icrelae/cpp_primer
10-generic_algorithms/10.34-reverse_iterator.cpp
/* 2016.12.23 21:16 * P_365 * !!! * all container support reverse-iterator except forward_list !!! * reverseIterator.base(): return normal iterator !!! */ #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; void ReverseIteratorEG() { vector<int> vecInt1({4, 2, 1, 3,...
ALGO
0.998604
5.443635
{ "github_metadata": { "branch": "master", "commit_count": 115, "repo_created_at": "2016-12-20T15:25: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": "9743dd1c...
1e286907-9324-4273-bb27-b489ae45da9c
xinwangus/CPPExcercise
Dijkstra/dijkstra.cc
/* * My own implementation of Dijkstra's algorithm * to find the shortest path in a Graph. */ #include <queue> #include <string> #include <iostream> #include <stdio.h> using namespace std; class AdjNode; // forward declaration class Node { public: Node(string s); virtual ~Node() {}; string id; AdjNode* a...
ALGO
0.999917
4.713884
{ "github_metadata": { "branch": "master", "commit_count": 65, "repo_created_at": "2017-08-24T02:04:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "0fb857d3a...
14f21504-24b6-4b10-a543-8f362b292459
thebes2/Competitive-Programming
dmoj/mcco17p.cpp
#include <bits/stdc++.h> using namespace std; const int MN = 150005; int ds[MN], dep[MN], sc[MN], p[MN], N, M, Q, i, x; struct pii{int f, s;}bd[MN], b[MN], q[MN]; bool done; vector<int> adj[MN]; struct qur{int x,y,id;}_; pii pr(int a,int b){pii z={a,b}; return z;} queue<qur> qu[MN]; void reset(int n){for(int i=1;i<=n...
ALGO
0.999945
3.7846
{ "github_metadata": { "branch": "master", "commit_count": 62, "repo_created_at": "2018-08-03T02:04: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": "b1738096f...
be47d13a-b493-4bac-8540-99c92b837ad7
sinhadiptiprakash/dsa
Top Interview Questions/3sum.cpp
#include<bits/stdc++.h> using namespace std; vector<vector<int>> threeSum(vector<int> &nums) { vector<vector<int>> res; if (nums.size() < 3) return res; //1. Sort the given vector sort(nums.begin(), nums.end()); //a+b+c = 0 => b+c = -a //Moving for value of 'a' (a=num[i]) which is not ...
ALGO
0.99992
5.495349
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-01-08T07:31:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7d99c062abdf...
37bed536-e06c-49fe-a798-bd2178dce380
SEOICodeGroup/LYY
VIRTUALJUDGE/POJ/1068/BASIC.cpp
#include <iostream> #include <algorithm> #include <string> #include <iomanip> #include <cstdio> using namespace std; //Product by MiracleEEEE int k[25],num[25],N,n,p; bool input(){ cin >> n; for(int i = 1; i <= n ; i++) cin >> num[i]; } void judge(){ //for(int i = 1; i <= n*2; i++ )cout << k[i]<<" "; //cout << en...
ALGO
0.999976
3.37157
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2017-03-05T05:47:58.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "14f3488c94...
2f457699-e978-4f13-ab6c-a6c9770593df
simonyang0608/LeetCode
Sliding_Window/2090.K_Radius_Subarray_Averages/C++/2090.K_Radius_Subarray_Averages.cpp
class Solution { public: vector<int> getAverages(vector<int> & nums, int k) { //====================================// // Input type: // // - vector<int> ref. (nums vector) // // - int (k-th radius) // // Return type: ...
ALGO
0.999903
6.563129
{ "github_metadata": { "branch": "main", "commit_count": 1711, "repo_created_at": "2024-07-07T03:14:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9d084c5bd...
42f6245f-dd45-495f-a2eb-18065905216e
zhongweiy/cpulsplus_primer
chapter9/e9_26.cpp
#include <vector> #include <list> #include <iostream> using std::vector; using std::list; using std::cout; using std::cin; using std::endl; int main () { int ia[] = {0, 1, 1, 2, 3, 5, 8, 13, 21, 55, 89}; vector<int> ivec(ia, sizeof(ia) / sizeof(*ia) + ia); list<int> ilist(ia, sizeof(ia) / sizeof(*ia) + ia)...
ALGO
0.983042
5.042452
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2012-07-15T09:46:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "10a580daab...
22666450-bd47-411a-bbf5-f3985cb37168
dianarudenko/cg_2
src/main.cpp
#include <vector> #include <iostream> #include <ctime> // #include <algorithm> #include "lib.h" #include "geometry.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" Color trace_ray (const std::vector<Object *> &objects, const std::vector<Light> &lights, Ray ray, ...
ALGO
0.972415
4.134885
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2021-03-29T10:17: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": "8bb697ff83...
12388fd0-d195-41a8-81f9-3d5b83e28b8e
lbvx/CP-Problems
atcoder/abc298/B.cpp
#include <bits/stdc++.h> using namespace std; void rotate90(std::vector<std::vector<int>> &m) { std::vector<std::vector<int>> copy = m; for (int i = 0; i < m.size(); i++) { for (int j = 0; j < m.size(); j++) { m[j][m.size() - i - 1] = copy[i][j]; } } } bool check(v...
ALGO
0.99999
4.893928
{ "github_metadata": { "branch": "master", "commit_count": 162, "repo_created_at": "2022-11-10T02:49: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": "5a8d5d70...
cc53c3c3-a92a-4bfb-89b6-6893178ae20d
AylenaSaige/pointers
main.cpp
#include <iostream> #include <fstream> #include <cmath> // function prototypes int *allocateArray(int *array, int *size); double calcAvg(int *array, int size); int main() // main function { std::ifstream inFile("nums.txt"); //open input file std::ofstream outFile("out.txt"); // open an output file int ...
ALGO
0.997791
4.086578
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2021-05-12T02: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": "af200b355d70...
ab05569c-d941-4234-8613-d4e08bd9713e
everbird/leetcode
ReverseNodeInK-Group.h
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode *reverseKGroup(ListNode *head, int k) { // Start typing your C/C++ solution below // DO NOT write int main(...
ALGO
0.999979
5.560454
{ "github_metadata": { "branch": "master", "commit_count": 50, "repo_created_at": "2013-07-02T05:17: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": "eb160a437...
888b949f-d4d1-4a10-aa7b-47b9904281a2
nishitsharma03/Competitive_Programming
codeforces/1490/B.cpp
//#pragma GCC optimize "trapv" #pragma GCC optimize("Ofast") #pragma GCC optimize("O3", "unroll-loops") #pragma GCC target("avx,avx2,fma") #include<bits/stdc++.h> #define ll long long int #define fab(a,b,i) for(int i=a;i<b;i++) #define pb push_back #define db double #define mp make_pair #define endl "\n" #define f firs...
ALGO
0.999826
3.955267
{ "github_metadata": { "branch": "master", "commit_count": 639, "repo_created_at": "2020-12-24T09:57:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b7efba32...
01626a97-3ceb-448b-8281-b67d7830c7a3
transmogrifox/transmogriFX_bela
src/iir_1pole.cpp
#include <math.h> #include "iir_1pole.h" // // First order high-pass and low-pass filters. // void compute_filter_coeffs_1p(iir_1p* cf, unsigned int type, float fs, float f0) { float w0 = 2.0*M_PI*f0/fs; float a1; float b0, b1; float g = 1.0; // This could be brought out into a user-configurable para...
ALGO
0.998804
5.853797
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2017-07-10T23:15:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 40, "forks": 9, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9b7701dc...
4ba69371-7a98-48a7-bf5e-9badee0e3bbc
ZRZRING/algorithm
Practice/CCPC/2024 Shandong Province/C.cpp
#include <bits/stdc++.h> #define int64 long long #define endl '\n' #define PII std::pair<int64, int64> const int64 mod = 998244353; void solve() { int64 n, m; std::cin >> n >> m; #define l first #define r second std::vector<PII> a(n + 1); std::set<int64> s; for (int i = 1; i <= n; i++) { ...
ALGO
0.999962
4.646168
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2025-03-11T04:17: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": "6925b734d44b...
0789c4e4-e826-4b0d-9de8-9ae8392d0e70
rathod-sahaab/cpp-dsa
problems/dynamic-programming/longest-common-subsequence/substring/main.cpp
#include <algorithm> #include <bits/stdc++.h> using namespace std; int lcsubstr(const string &str1, const string &str2, int &maxi, int i, int j) { if (i == 0 or j == 0) { return 0; } if (str1[i - 1] == str2[j - 1]) { int result = 1 + lcsubstr(str1, str2, maxi, i - 1, j - 1); maxi = max(result, maxi);...
ALGO
0.999894
5.118472
{ "github_metadata": { "branch": "main", "commit_count": 115, "repo_created_at": "2021-01-15T17:39: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": "bbc06dc783...
1ca3141a-2f52-41dd-9c21-3e7f4b688da4
MadsCarlsen/WavePacketLaserModulation
WavePacketModulation.h
// // Created by au642261 on 4/25/25. // #ifndef WAVEPACKETMODULATION_H #define WAVEPACKETMODULATION_H #include "EvanescentField.h" #include "Grid2D.h" #include "WavePacket.h" //#include "Spline2D.h" #include "HelperFunctions.h" #include <boost/math/interpolators/cardinal_cubic_b_spline.hpp> #include "BilinearInterp...
ALGO
0.99419
6.223948
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-05-20T07:55:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "be25bc0fee62...
bf7fd603-d4dc-44ed-a9b8-5a4f88fae94a
TheAlgorithms/C-Plus-Plus
math/extended_euclid_algorithm.cpp
/** * @file * @brief GCD using [extended Euclid's algorithm] * (https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm) * * Finding coefficients of a and b ie x and y in Bézout's identity * \f[\text{gcd}(a, b) = a \times x + b \times y \f] * This is also used in finding Modular * multiplicative inverse of ...
ALGO
0.999959
6.046631
{ "github_metadata": { "branch": "master", "commit_count": 1738, "repo_created_at": "2016-07-16T10:19:45.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 32391, "forks": 7439, "issues": 10, "pull_requests": 23 }, "file_meta": { "content_id": ...
2efa015f-0596-4bed-9eff-a5a27529f2b9
Egorovdev12/-_-
abiturient_struct/body.cpp
#include <iostream> #include <fstream> #include <cstring> #include <string> using namespace std; struct person { char lastname[30]; char name[30]; char otch[30]; int gr; int EGE; }; void surnamefind(int count, person list[]) { string find; int amount = 0; int s = 0; char chk; int *number = new int[20]; int a, b...
TOOL
0.927657
3.508754
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-09-18T17:57: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": "942b559ae0...
481c9daf-3b4d-4f00-802a-76242983498a
cy118/ps
알고리즘 문제해결 전략/FENCE_n^2.cpp
#include <iostream> #include <algorithm> using namespace std; /* * problem ID : FENCE * from algospot.com * * 2018.01.01 MON * this code uses brute-force search, * which have time complexity O(n^2) */ int boards[20000]; int brdnum; /* find the largest rectangle */ int bigrec(int cur) { /* if there's no more...
ALGO
0.999899
4.222861
{ "github_metadata": { "branch": "master", "commit_count": 31, "repo_created_at": "2017-12-24T04: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": "6c535c4e2...
56fea61a-670b-4edb-9a67-a5a26666757a
UmBender/comp
contest/58/b/main.cpp
// clang-format off //#include <atcoder/all> #include <bits/stdc++.h> using namespace std; #define endl '\n' void __dbg() { cerr << endl; } template <typename T> void __dbg(T t) { cerr << t << endl; } template <typename T, typename... TRest> void __dbg(T first, TRest... rest) { cerr << first << ", "; __dbg(rest...)...
ALGO
0.999924
5.531603
{ "github_metadata": { "branch": "main", "commit_count": 278, "repo_created_at": "2024-01-07T13:26: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": "01506a4d84...
f1ca9fa3-9c66-4beb-940f-bae26a6d9955
math10/Solved-Problem
UVA-12648.cpp
/* Author :: MD. <NAME> Aust cse 28th Batch ID:11.02.04.097 */ //{ Template using namespace std; //{ C-headers #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <climits> #include <cfloat> #include <cctype> #include <cassert> #include <ctime> //} //{ C++-headers #include <iostream> #inc...
ALGO
0.99994
3.585673
{ "github_metadata": { "branch": "master", "commit_count": 208, "repo_created_at": "2013-09-07T15:39:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cfcf23ec...
37227d61-1a89-4fbe-b208-67c327e6b77e
iliyian/CompetitiveProgramming
codeforces.com/2032/B.cpp
#include <bits/stdc++.h> #define int long long using namespace std; void solve() { int n, k; std::cin >> n >> k; if (n == 1) { std::cout << 1 << '\n' << 1 << '\n'; return; } if (k == 1 || k == n) { std::cout << -1 << '\n'; return; } if (k & 1 ^ 1) { std::cout << 3 << '\n'; std::co...
ALGO
0.999691
4.22764
{ "github_metadata": { "branch": "main", "commit_count": 354, "repo_created_at": "2024-04-21T10:50: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": "1b2d7641e7...
cce9dcb8-591c-43e5-be9c-3ba73f5a7119
RaymondMoorhead/CPlusPlus-Tutorial
Source/Lessons/L32_Iterators.cpp
/* Iterators are a nearly universal way to sequentially acquire each element of a data structure, and read it or modify it. This is less about C++ and more about the standard template library- but their structures will be frequently used in your code. Some common structure functions using iterators are...
ALGO
0.957371
5.723251
{ "github_metadata": { "branch": "master", "commit_count": 25, "repo_created_at": "2021-03-01T05:57: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": "902388600...
0dc67171-4f33-4fc3-974f-63cbfb10024f
spectm2/Albany
src/LCM/utils/MiniSolvers.h
//*****************************************************************// // Albany 3.0: Copyright 2016 Sandia Corporation // // This Software is released under the BSD license detailed // // in the file "license.txt" in the top-level Albany directory // //**************************************...
ALGO
0.991947
6.295988
{ "github_metadata": { "branch": "NoConsolidation", "commit_count": 8251, "repo_created_at": "2016-09-08T21:27:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id":...
dc5e9e07-c748-4e9b-8bfa-f80c3da25cbd
studiomobile/webcore
WebCore/platform/audio/HRTFPanner.cpp
/* * Copyright (C) 2010, Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
ALGO
0.922836
7.39363
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2011-07-25T16:05:37.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "68ce7d3173...
e42f97ce-531c-4198-976f-bf07a96984ee
intel/FlexRAN-FEC-SDK-Modules
source/phy/lib_crc/phy_crc_sse.cpp
/********************************************************************** * * * Copyright [2019 - 2023] [Intel 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 * * ht...
ALGO
0.901673
6.047433
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2023-09-08T23:29:22.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6, "forks": 3, "issues": 4, "pull_requests": 2 }, "file_meta": { "content_id": "827fb21dd6d5e...
fe9e9a18-9f21-4fda-98e5-5efc00c9aaaa
dehezhang2/CityUOJ
code/146.cpp
#include <stdio.h> #include <string.h> #include <algorithm> using namespace std; #define MAX 101 struct Edge { int src, tar, cost; bool operator<(const Edge& o) const { return cost > o.cost; } } G[MAX*MAX] ; int root[MAX]; int find(int a) { if (root[a] < 0) return a; else return root[a] = find(root[a]); } void j...
ALGO
0.999949
4.470899
{ "github_metadata": { "branch": "master", "commit_count": 30, "repo_created_at": "2019-02-28T03:12:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cf166be84...
2fea0067-ca40-4779-8d35-1ff8d208881c
chmin1020/BaekjoonCode
10000~/14500_테트로미노.cpp
#include <iostream> using namespace std; bool visited[500][500]; int paper[500][500]; int res = -1, n, m; void dfs(int num, int sum, int x, int y) { if (num == 4) { if (sum > res) res = sum; return; } visited[x][y] = true; if (x < n - 1 && !visited[x + 1][y]) dfs(num + 1, sum + paper[x + 1][y], x + 1, y); ...
ALGO
0.999989
4.331638
{ "github_metadata": { "branch": "main", "commit_count": 614, "repo_created_at": "2021-01-04T15:17: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": "bb9e237a4f...
c995ed5d-7736-4831-9f4e-a3038e897d54
decile-team/submodlib
cpp/submod/FacilityLocation2.h
#ifndef FACILITYLOCATION2_H #define FACILITYLOCATION2_H #include"../optimizers/NaiveGreedyOptimizer.h" #include"../optimizers/LazyGreedyOptimizer.h" #include"../optimizers/StochasticGreedyOptimizer.h" #include"../optimizers/LazierThanLazyGreedyOptimizer.h" #include"../SetFunction.h" #include <unordered_set> #include <...
ALGO
0.941232
6.28267
{ "github_metadata": { "branch": "master", "commit_count": 245, "repo_created_at": "2020-10-20T03:40:50.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 103, "forks": 44, "issues": 14, "pull_requests": 3 }, "file_meta": { "content_id": "e115e...
c1e6cafd-7796-4a30-8212-a775b3cbaf66
mfacchinelli/thesisProject
thesisTransOnlyIMANLoop.cpp
/* Copyright (c) 2010-2018, Delft University of Technology * All rigths reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under the terms of the Modified BSD license. You should have received *...
ALGO
0.991214
6.498341
{ "github_metadata": { "branch": "master", "commit_count": 49, "repo_created_at": "2018-06-01T08:40: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": "0bc966b95...
00575c48-86fc-4ee4-91ca-d4db3db49d87
dm-stulov/SpbStu_cpp_second_year
A1/polygon.cpp
#include "polygon.hpp" #include <iostream> #include <cmath> #include <stdexcept> Polygon::Polygon(const Polygon &polygon) : points_(new point_t[polygon.size_]), size_(polygon.size_) { for (int i = 0; i < size_; i++) { points_[i] = polygon.points_[i]; } } Polygon::Polygon(Polygon &&polygon) : points_(p...
TOOL
0.938001
6.490949
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-03-17T17:16: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": "aed87428bc...
e4942e44-7662-42e2-81e2-53aea353bef2
sinsin950313/CodingTest
1261/1261.cpp
#include <iostream> #include <memory> #include <limits> #include <queue> #include <set> #include <functional> class FMaze { public: void SetSize(int Width, int Height); void SetRoom(int x, int y, int Weight); int GetWidth() { return Width; } int GetHeight() { return Height; } int GetWeight(std:...
ALGO
0.999495
4.942598
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2024-01-24T05:08: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": "ac1d912c7a8...
94dbea87-6231-4b50-a5ce-0a17475788c5
skyler237/aoc_2022
src/day2/main.cpp
#include <iostream> #include "aoc_puzzle.h" #include "input.h" #include "range/v3/getlines.hpp" /** * Part 1 Scoring: * A = Rock * B = Paper * C = Scissors * * X = Rock (1) * Y = Paper (2) * Z = Scissors (3) * * A X = Tie + 1 = 3 + 1 = 4 */ static const std::map<std::string, int> kPart1ScoreMap { {"A X"...
ALGO
0.999176
6.078555
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2022-11-11T07:48: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": "f805d405583...
c2c2446e-c385-4fcc-b46c-169ce09cece4
shanto86/problem-book-1-solutions
STL/Exercises/UVa 1594 - Ducci Sequence.cpp
/** * Problem: UVa 1594 - Ducci Sequence * Author: sjsakib * Approach: Simple Loop * We get our cycle in 50 steps if we are to get. But why? I just gave up. Please let me know if you find out. **/ #include <stdio.h> #include <stdlib.h> int arr[16]; int main() { int t,n,head; int all; scanf("%d", &t); ...
ALGO
0.999601
3.33808
{ "github_metadata": { "branch": "master", "commit_count": 34, "repo_created_at": "2017-09-22T22:05:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 56, "forks": 26, "issues": 0, "pull_requests": 2 }, "file_meta": { "content_id": "3d05d53...
fd6d4710-1480-4578-94e3-7e52f05e47ae
msoild/dataStructureAndAlgorithms
Algorithm-level2/week1-基础算法/787.归并排序.cpp
/* 1. 找中间点 2. 归并 */ #include <iostream> using namespace std; const int N = 1000010; int q[N]; int merge_sort(int q[], int l, int r) { if (l >= r) return q[l]; int m = l + r >> 1; int i = l - 1, j = r + 1, x = q[l + r >> 1]; while (i < j) { do i ++ ; while (q[i] < x); do j -- ; ...
ALGO
0.999996
4.414921
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2020-01-22T10:23:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "726b4a0a9e...
1c2f9e9c-0dd9-44fd-a702-5b91c489be8d
jackrabbit-start/PS
굉장한_학생.cpp
#define _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING #include "bits/stdc++.h" using namespace std; #define modn 998244353 using ll = long long int; using ld = long double; ll N; ll arr[3][500500]; vector<tuple<ll, ll, ll>> v; class segtree{ public: ll size; vector<ll> tree; segtree(ll n){ for(size...
ALGO
0.999975
4.788687
{ "github_metadata": { "branch": "main", "commit_count": 29, "repo_created_at": "2024-01-01T06:15: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": "27544d33c9d...
07fb6f0a-1832-4aba-8d02-fa6f40729187
agasanaut/windows
deleteLinkedListWithoutHead/deleteAnodeWithoutHeadPtr/deleteAnodeWithoutHeadPtr.cpp
// C++ program to delete a node #include <iostream> using namespace std; /* Link list node */ struct Node { int data; struct Node* next; }; // Fucntion to delete the node without head void deleteNodeWithoutHead(struct Node* node) { if ((!node) || !(node->next) ) { return;} Node* temp(node->next->next); node->da...
ALGO
0.998179
4.387402
{ "github_metadata": { "branch": "master", "commit_count": 46, "repo_created_at": "2021-02-02T17:11: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": "a80d89e5c...
88d1c6a6-7549-4b25-b990-ee6279436a19
AdriPanG/EDA
Iterativos/Meseta/Source.cpp
#include <iostream> using namespace std; //Precondicion: 0<=n<=long(v) and Paratodo k : 0<=k<n : v[k] >= 0 //inicio = {max p, k : 0 <= p <= k < n ^ (A[p] == A[k]) : p} //fin = {max p, k : 0 <= p <= k < n ^ (A[p] == A[k]) : k} void calculaMesetas(int v[], int n, int &inicio, int &fin) { inicio = 0; fin = 0; int ...
ALGO
0.999812
3.836321
{ "github_metadata": { "branch": "master", "commit_count": 54, "repo_created_at": "2016-11-17T10:05: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": "52ad4d63a...
64b0fceb-c487-4626-bcbe-ca8eba3baffa
ishandutta2007/codeforces-r
rajat1603/normal/817/C.cpp
#include "bits/stdc++.h" using namespace std; const int N = 19; const int S = 9 * 19 + 5; long long n , s; long long ans; long long dp1[N][S][2]; long long dp2[N][S][2]; string a , b; long long solve(int pos , bool pre , int sum , long long dp[N][S][2] , const string &num){ if(sum < 0){ return 0; } if(pos >= num.s...
ALGO
0.995652
3.871845
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:58: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": "9bd94e314b93...
963c0099-45c6-415e-aaed-42984a706ee9
juce-framework/JUCE
modules/juce_dsp/processors/juce_FIRFilter.h
/* ============================================================================== This file is part of the JUCE framework. Copyright (c) Raw Material Software Limited JUCE is an open source framework subject to commercial or open source licensing. By downloading, installing, or using the JUCE framew...
TOOL
0.911848
7.671788
{ "github_metadata": { "branch": "master", "commit_count": 15168, "repo_created_at": "2012-03-31T11:19:43.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 7401, "forks": 1859, "issues": 239, "pull_requests": 174 }, "file_meta": { "content_id"...
6bc0d524-d8f1-45f1-9daa-0eb5273eb997
bamboohiko/problemSolve
hdoj/c20160804/p3.cpp
#include<iostream> #include<cstdio> #include<map> #include<set> #include<vector> #include<stack> #include<queue> #include<string> #include<cstring> #include<sstream> #include<algorithm> #include<cmath> #define INF 0x3f3f3f3f #define eps 1e-8 #define pi acos(-1.0) using namespace std; typedef long long LL; int g[32]; se...
ALGO
0.999969
3.6471
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2015-12-13T17:03:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fa694a612...
2c446e13-aed9-45f3-bb82-17e2a73706db
pedropaulovc/USP-2011
ED/EP3-FreqPalavra/Estruturas/NodoRB.h
/** * MAC0323 - ESTRUTURAS DE DADOS * EP3 - FREQUENCIA DE PALAVRA * ALUNO: <NAME> - 7538743 * * Neste arquivo estão definidos os métodos e atributos do objeto * NodoRB (Nodo de árvore binária balanceada rubro-negra) a serem * implementados no arquivo NodoRB.ipp. */ #ifndef NODORB_H_ #define NODORB_H_ #include...
ALGO
0.989207
4.87599
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2012-08-26T12:59:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7fdc55ae9b...
82daba1f-9219-47d9-9345-b5500777f93a
vasilypht/Parallel_programming_labs
lab 9/l8/modules/player.cpp
#include <iostream> #include <vector> #include <sstream> #include <tuple> #include <random> #include <string> #include <map> std::map<std::string, uint32_t> GetCmdTable(); std::vector<std::vector<uint16_t>> InputMatrix(); std::tuple<uint16_t, uint32_t, uint32_t> GetRandPoint(const std::vector<std::vector<uint16_t>> &...
TOOL
0.975999
4.355017
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2021-09-15T16:32: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": "53268bbf2a6...
d6b0dac5-9b42-4edf-a4ac-1e623064225f
mostafa-saad/MyCompetitiveProgramming
Olympiad/POI/official/2014/code/lam/prog/lams3.cpp
/************************************************************************* * * * XXI Olimpiada Informatyczna * * * * Zadanie: ...
ALGO
0.999981
3.965277
{ "github_metadata": { "branch": "master", "commit_count": 439, "repo_created_at": "2017-02-05T22:26:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 415, "forks": 85, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1de50...
4c984ae6-c4dc-4286-afdd-3425da8b22ac
YoCodingJosh/jccc_cs200
phone/phone/phone.cpp
// // phone.cpp // // Created by <NAME> on 10 November 2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #include <iostream> using namespace std; // Definition of the PhoneTones struct struct PhoneTones { // Frequencies of the tones generated by a key press uint rowTone; uint colTone; }; // F...
ALGO
0.953933
5.169455
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2013-08-26T00:15: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": "5041cb39a6...
88f2512f-466c-4aba-a342-efc6a42459bd
tathagat2602/Leetcode-Problems
0002-add-two-numbers/0002-add-two-numbers.cpp
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ // Definition for singly-linked list. class Solut...
ALGO
0.999973
6.999619
{ "github_metadata": { "branch": "main", "commit_count": 751, "repo_created_at": "2024-08-04T09:11: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": "825dd6e397...
55a9ed34-9c01-455f-82ba-75f4d95ee444
PanOtlet/RCKU_Files
PSiO/C-Plus-Plus/Funkcje Tablice/BezNazwy8.cpp
#include <iostream> #include <iomanip> using namespace std; void generuj (int[][6]); void wypisz (int[][6]); int suma_kolumny (int[][6],int); int suma_wiersza (int[][6],int); int suma_wszystkiego (int[][6]); int main() { int tab[6][6]; srand(time(0)); cout<<"Oto wygenerowana tablica:"<<'\n'; generuj...
ALGO
0.976429
3.56389
{ "github_metadata": { "branch": "master", "commit_count": 77, "repo_created_at": "2014-03-31T09:52:49.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 5, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2dec017e71...
d7bf0824-827b-4071-9f4b-02e1db100199
RainbowRain9/C--
Algorithm/PTA/L1-031-到底是不是太胖了.cpp
/* * @Author: RainbowRain9 * @Date: 2025-04-07 21:19:57 * @LastEditTime: 2025-04-07 21:37:38 * @FilePath: \C++\Algorithm\PTA\L1-031-到底是不是太胖了.cpp * @Description: */ /************************************************** * 题目描述: * 计算一个人的标准体重(身高-100)*0.9,判断真实体重与标准体重的误差是否在10%以内。 * 已知1公斤=2市斤,根据输入的身高和体重(市斤),判断是否太胖或太瘦。 ...
ALGO
0.996757
3.817518
{ "github_metadata": { "branch": "C++", "commit_count": 51, "repo_created_at": "2024-11-26T15:31:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3db5bef1f414...
ec44db2c-fbc1-4e0e-ad35-bec33e258872
crimcrist/data_struct
lab_dataStruct/AVLtree.cpp
// AVL Tree -> bst self balancing // Insert & Update #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> struct Mahasiswa { int age; char name[100]; Mahasiswa *left; Mahasiswa *right; int height; }; Mahasiswa *createNewMhs(int age, char name[100]){ Mahasiswa *newMhs ...
ALGO
0.999587
4.417105
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2025-02-13T01:35: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": "71673c85953...
e3475c4b-c03e-4b53-9e07-d878bd02513c
francecil/RunFace
Test1/ThreePoint.cpp
#include<iostream> #include<string> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <algorithm> #include <vector> #include <list> using namespace std; using namespace cv; #define PI 3.1415926 #define eps 1e-8 Mat srcImage, smallImage, meanshi...
ALGO
0.976017
3.645683
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2016-04-09T12:40:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9878af4454...
3fff1453-d493-4eb5-a503-d20ce74e1429
arafat-yasin-2413/COURSE-4-Algorithm
WEEK -7/Mod 25/2_unboundedKnapsackMemoization.cpp
#include <bits/stdc++.h> using namespace std; int n, S; int val[1005]; int w[1005]; int dp[1005][1005]; int unboundedKnapsack(int n, int S) { if(n == 0 or S == 0) { return 0; } if(dp[n][S] != -1) { return dp[n][S]; } if (w[n - 1] <= S) { int choice1 = val[n -...
ALGO
0.999989
3.931628
{ "github_metadata": { "branch": "main", "commit_count": 44, "repo_created_at": "2023-08-21T03:42:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bcef660629a...
09d48f1f-c678-4651-9b7e-c74725a942c9
NVIDIAGameWorks/PhysX
physx/source/geomutils/src/pcm/GuPCMContactCapsuleHeightField.cpp
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
ALGO
0.952497
6.260415
{ "github_metadata": { "branch": "4.1", "commit_count": 12, "repo_created_at": "2018-12-05T14:30:22.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3397, "forks": 824, "issues": 311, "pull_requests": 18 }, "file_meta": { "content_id": "a9f30...
c0f7b734-8978-45c9-9d36-8c0d027eced3
xryuseix/SA-Plag
test/training_data/plag_original_codes/arc072_a_5782194_480.cpp
/* 引用元:https://atcoder.jp/contests/abc059/tasks/arc072_a C - SequenceEditorial // ソースコードの引用元 : https://atcoder.jp/contests/abc059/submissions/5782194 // 提出ID : 5782194 // 問題ID : arc072_a // コンテストID : abc059 // ユーザID : xryuseix // コード長 : 1609 // 実行時間 : 14 */ #include <iostream> #include <cstdio> #include <algorithm> ...
ALGO
0.999992
3.988937
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2021-01-20T18:36:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7f7b0f81...
bc6cec00-9be3-4473-bf59-421056ee5f42
DaniyalAtiq9/projectsCpp
Connect4.cpp
#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; const int MaxRows = 14; const int MaxCols = 14; struct Player { string Name; char Mark; Player(char mark = 'o', string PlayerName = "Player Name") { Mark = mark; Name = PlayerName; } ...
TOOL
0.95858
4.201618
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-10-07T15:42:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a47068d99b7a...
d2806d9f-685d-4522-9b81-52a7bdb18d14
AbdelrahmanElhawary/CompetitiveProgramming
Codeforces gym solutions/III (XIV) Volga Region Open Team Student Programming Contest/I.cpp
#ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS #endif #include<iostream> #include<map> #include<cmath> #include<algorithm> #include<string> #include<set> #include<sstream> #include<vector> #include<string.h> #include<queue> #include<list> #include<iterator> #include<functional> #include<iomanip> #include<bitset> #inc...
ALGO
0.999985
3.486046
{ "github_metadata": { "branch": "master", "commit_count": 214, "repo_created_at": "2018-01-28T20:33:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "6524ecc0...
70d8f502-96ea-47c0-8e9d-8d7f257cbaf7
JJH-Log/BaekjoonOnlineJudgeSolvedList
202204/4M5W/B5624.cc
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <vector> #include <string> #include <map> #include <queue> #include <stack> #include <utility> #include <algorithm> #include <cstring> #include <string.h> #include <math.h> #include <set> #include <cassert> #include <bitset> #include <sstream> #include <cmath...
ALGO
0.998926
3.684866
{ "github_metadata": { "branch": "main", "commit_count": 78, "repo_created_at": "2021-03-02T08:54: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": "dcd0b0152d3...
eb96b048-b771-4038-abdc-b2db62f69b6c
andrinux/MOOC-Courses
Cracking/chap5/chap5_2_BinFloat.cpp
/* * Given a (decimal - e.g. 3.72) number that is passed in as a string, print the binary representation. * If the number can not be represented accurately in binary, print ¡°ERROR¡±. */ //Consider to extend to Base-any. #define MAX 100 #include <iostream> #include <string> #include <stdlib.h> #define M 10 using nam...
ALGO
0.920803
4.246052
{ "github_metadata": { "branch": "master", "commit_count": 333, "repo_created_at": "2015-04-13T01:08: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": "3a88b109...
7baeed6d-009c-4e79-89cc-7e138ef5e7b9
nucleargezi/acm-icpc
atcoder/abc/130-139/AtCoder Beginner Contest 130 -ak/E_Common_Subsequence.cpp
#include "MeIoN_Lib/MeIoN_all.hpp" #include "MeIoN_Lib/math/mod/modint.hpp" #include "MeIoN_Lib/string/hash.hpp" #include "MeIoN_Lib/ds/hashmap.hpp" void before() {} // #define tests using mint = modint<mod17>; NAME MeIoN_is_UMP45() { int n, m; std::cin >> n >> m; vector<int> a(n), b(m); std::cin >> a...
ALGO
0.999989
4.500008
{ "github_metadata": { "branch": "master", "commit_count": 264, "repo_created_at": "2024-10-29T13:52:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0e596af8...
4f493272-0e25-44b9-a004-bcb24e849ef0
hyojin38/Algorithm-code
BOJ-Code/11053-가장 긴 증가하는 부분수열/11053-가장 긴 증가하는 부분수열1DP.cpp
//가장 긴 증가하는 부분수열 //방법1. DP 사용 #include <iostream> #include <vector> #include <cmath> #define MAX 1000+1 using namespace std; int A,Ans=0; vector <int > V; int DP[MAX]; void Input() { cin >> A; int temp; for (int i = 0; i < A; i++) { cin >> temp; V.push_back(temp); } } int max(int a, int b) { if (a > b)retu...
ALGO
0.999925
3.973311
{ "github_metadata": { "branch": "main", "commit_count": 242, "repo_created_at": "2021-01-06T14:29: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": "a6f2cc575a...
a89e10d1-d3a4-4ec8-9d7f-e2627a801e73
GyosunShin/ProblemSolving
프로그래머스 문제풀이/서머코딩윈터코딩(~2018)/배달.cpp
// 마을의 개수 N, 각 마을을 연결하는 도로의 정보 road, 음식 배달이 가능한 시간 K가 매개변수로 주어질 때 // OUTPUT : 음식 주문을 받을 수 있는 마을의 개수를 return #include <string.h> #include <iostream> #include <vector> #include <algorithm> #include <queue> using namespace std; struct INFO{ int node, len; }; queue<INFO> q; // 1 <= N <= 50 vector<pair<int, int> > map...
ALGO
0.999817
4.587074
{ "github_metadata": { "branch": "master", "commit_count": 122, "repo_created_at": "2020-02-14T11:32: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": "6c29376c...
5861d38a-c464-4310-8611-3d3f2a76e451
sourav-bisht/-CrackYourInternship
45-Days Challenge/27 July 2024/48. Replace O's with X's.cpp
class Solution{ public: vector<pair<int,int>> directions = { {-1,0}, {0,-1}, {1,0}, {0,1} }; void dfs(int i, int j, vector<vector<char>> &mat, vector<vector<bool>> &visited) { int n = mat.size(); int m = mat[0].size(); visited[i][j] = true; for( auto it : directions...
ALGO
0.999944
5.504157
{ "github_metadata": { "branch": "main", "commit_count": 182, "repo_created_at": "2024-07-16T19:24: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": "45750caa3d...
db92c6cb-b2c9-4202-b98f-c1fe37e993c0
Mohiiit/DSA-Coursera-Specialization
Course-1/Week-5/W5-B.cpp
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; #define fi first #define se second #define pb push_back #define mp make_pair #define foreach(it, v) for(auto it=(v).begin(); it != (v).end(); ++it) #define gcd(a,b) __gcd(a,b) #define fastio() ios_base::sync_with_stdio(f...
ALGO
0.99998
3.433254
{ "github_metadata": { "branch": "master", "commit_count": 40, "repo_created_at": "2020-05-02T14:02:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2e7f4679e...
835a5f88-0091-4de4-aa72-89d2ebe8b29f
Balthov60/TP2-CPP-Maranzana
Project/src/SearchEngine/SearchEngine.h
/************************************************************************* SearchEngine - description ------------------- début : 04/10/2018 copyright : (C) 2018 par <NAME> - <NAME> e-mail : $EMAIL$ ***********...
ALGO
0.981041
3.98774
{ "github_metadata": { "branch": "master", "commit_count": 104, "repo_created_at": "2018-09-27T06:35:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5a624651...
a61be5bb-2ec1-4cea-a8b7-e1a40df7c82a
sejalxz/DSA
Basic Programming/Ali_and_helping_innocent_people.cpp
//Ali_and_helping_innocent_people.cpp //Ali and helping innocent people //Basic Programming //Author: sejalxz #include <iostream> #include <string> using namespace std; bool isNotVowel(char ch) { if (ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U' || ch == 'Y') return false; else ...
ALGO
0.999706
3.939265
{ "github_metadata": { "branch": "main", "commit_count": 46, "repo_created_at": "2021-09-19T13:18:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "69b30cf628a...
870a4064-7112-4f73-a83f-e3bfb54f2116
rootkit/SVGWraper
grabcut/grabcut/kmeansAndGrabcutTest.cpp
// // kmeansTest.cpp // grabcut // // Created by xyz on 16/8/23. // Copyright (c) 2016年 xyz. All rights reserved. // #include "FileUtil.h" #include <stdio.h> #include <vector> using namespace std; #include <opencv2/opencv.hpp> using namespace cv; Scalar colorTab[] = { Scalar(0, 0, 0), Scalar(255, 255...
ALGO
0.939758
4.516079
{ "github_metadata": { "branch": "dev", "commit_count": 30, "repo_created_at": "2016-11-24T01:54: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": "418978b7e91e...
41b503af-1f29-4bce-a3a1-d1f4880e1067
lelouchvibritannia1/cpp_codes
cp/1744e1.cpp
#include "bits/stdc++.h" // #include<iostream> #include <cstdint> #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma") #pragma GCC optimize("unroll-loops") using namespace std; #define int long long int #define double long double typedef pair<int, int> p64; typedef ...
ALGO
0.999924
4.738361
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2023-02-04T12:25: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": "aee54342a69...
e7124c6f-ab65-4731-a911-0e79ea3de6b2
srbeam/Cpp-Practice
assignment/CS/ws05.cpp
//6. ประชากรของเมือง A มีจำนวนน้อยกว่าประชากรของเมือง 8 อย่างไรก็ตาม จำนวนประชากรของเมือง A มี // การเติบโตเร็วกว่าจำนวนประชากร ของเมือง B เขียนโปรแกรมที่แจ้งให้ผู้ใช้ปีอนจำนวนประชากรและอัตรา // การเติบโตของแต่ละเมือง โปรแกรมแสดงผลลัทธ์อีกกี่ปีประชากรของเมือง A จะมากกว่าหรือเท่ากับประชากร // ของเมือง B (ตัวอย่างอินพุดค...
ALGO
0.998428
3.794073
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2021-10-23T02:33: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": "4f67c81e70e...
aa95b12d-183f-4145-9b1a-24bf515a7fa3
Badhon1401/DBMS-2
Dummy/main2.cpp
#include <iostream> #include <vector> #include <fstream> #include <sstream> #include <unordered_map> #include <string> using namespace std; // Function to perform DFS and detect cycles bool dfs(int node, vector<vector<int>>& graph, vector<int>& visited, vector<int>& recStack) { visited[node] = 1; recStack[nod...
ALGO
0.99953
6.514554
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2024-12-28T14:37: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": "cb077984f78...
262b0464-017b-44c3-94e4-3fe12a3a467f
sangwoojun/sortreduce
examples/simple/_simple.cpp
#include <stdio.h> #include <stdlib.h> #include <chrono> #include <ctime> #include <map> #include "sortreduce.h" #include "types.h" uint32_t update_function(uint32_t a, uint32_t b) { /* uint32_t a1 = a & 0xffff; uint32_t a2 = (a>>16)&0xffff; uint32_t b1 = b & 0xffff; uint32_t b2 = (b>>16)&0xffff; uint32_t ret =...
ALGO
0.939161
4.311709
{ "github_metadata": { "branch": "master", "commit_count": 126, "repo_created_at": "2018-06-21T01:48:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0bfd0ebc...
7e8cc860-a873-49f7-9a32-7c1b5e51ec6f
chfeng-cs/CPU2017
benchspec/CPU/510.parest_r/src/source/me-tomography/state_discretization.cc
#include <me-tomography/state_discretization.h> #include <me-tomography/me_slave.h> #include <me-tomography/problem_description.h> namespace METomography { template <int dim> StateDiscretization<dim>:: StateDiscretization (const Triangulation<dim> &old_global_grid, const libparest::GridTransf...
ALGO
0.908187
5.195026
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2021-04-19T12:20:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "634449968...
8b670729-41a3-40af-8740-7f9530916ceb
elemental/Elemental
src/matrices/random/misc/Haar.cpp
/* Copyright (c) 2009-2016, <NAME> All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #include <El-lite.hpp> #include <El/lapack_like/factor.hpp> #...
ALGO
0.997398
5.489572
{ "github_metadata": { "branch": "master", "commit_count": 3773, "repo_created_at": "2012-05-06T08:37:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 513, "forks": 110, "issues": 38, "pull_requests": 7 }, "file_meta": { "content_id": "1d8...
663958b4-2436-4ad5-b8ab-caaa650cc7eb
openvinotoolkit/openvino
src/core/reference/include/openvino/reference/adaptive_max_pool.hpp
// Copyright (C) 2018-2025 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <cmath> #include <numeric> #include <vector> #include "openvino/core/shape.hpp" #include "openvino/reference/adaptive_avg_pool.hpp" namespace ov { namespace reference { template <typename T, typename IT> voi...
ALGO
0.990093
7.086023
{ "github_metadata": { "branch": "master", "commit_count": 19551, "repo_created_at": "2018-10-15T10:54:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 8597, "forks": 2656, "issues": 303, "pull_requests": 258 }, "file_meta": { "content_id"...
b6952771-8906-415c-a91a-fb7928869ef9
klevzoff/CtCI-solutions
src/ch4/p9.cpp
#include "Tree.hpp" #include "testing.hpp" #include "printing.hpp" #include <vector> #include <algorithm> namespace impl { template<typename Iter> std::vector<std::vector<typename std::iterator_traits<Iter>::value_type>> mix_sequences(Iter s1, Iter e1, Iter s2, Iter e2) { using T = typename std::iterator_traits<Ite...
TEST
0.991231
7.08794
{ "github_metadata": { "branch": "main", "commit_count": 26, "repo_created_at": "2021-01-27T04:35: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": "082c0d2a9cf...
062a4e30-7ea0-49c6-b0ae-d98b02e2f053
that-coder-q/CPP-JAVA-DSA
Stack/leetcode_32_longest_valid_parantheses.cpp
// Given a string containing just the characters '(' and ')', find the // length of the longest valid (well-formed) parentheses substring. // leetcode HARD!! # include <iostream> # include <algorithm> # include <stack> # include <vector> using namespace std; // high time and space complexity, can be optimized class ...
ALGO
0.999817
5.284579
{ "github_metadata": { "branch": "master", "commit_count": 129, "repo_created_at": "2021-05-19T18:15: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": "d701f2e1...
5717d2e0-e4f6-43db-9c97-29c0de3d109c
Lance-Bai/tfhe_lhe
ntt_based_lhe/src/binfhe/include/rlwe-schemeswitch.h
#ifndef _RLWE_SCHEMESWITCH_H #define _RLWE_SCHEMESWITCH_H #include "rlwe-cryptoparameters.h" #include "rlwe-schemeswitchkey.h" #include "rlwe-ciphertext.h" namespace lbcrypto{ /** * @brief scheme switching algorithms described in * https://eprint.iacr.org/2023/112 section 3.1 */ class RingLWESchemeSwitch { public...
ALGO
0.991664
6.80456
{ "github_metadata": { "branch": "ccs", "commit_count": 4, "repo_created_at": "2025-05-29T02:29: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": "eb5dd178edf82...
75738606-7d6a-40d7-bb9e-a2f1de652839
haoel/leetcode
algorithms/cpp/minimumWindowSubstring/minimumWindowSubstring.cpp
// Source : https://oj.leetcode.com/problems/minimum-window-substring/ // Author : <NAME> // Date : 2014-07-22 /********************************************************************************** * * Given a string S and a string T, find the minimum window in S which will * contain all the characters in T in compl...
ALGO
0.999932
6.56851
{ "github_metadata": { "branch": "master", "commit_count": 788, "repo_created_at": "2014-10-20T03:22:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17857, "forks": 4931, "issues": 26, "pull_requests": 28 }, "file_meta": { "content_id": ...
1978919f-2cfa-4653-a52a-a1dbb9c9159d
chohongmin/CKKS_tutorial
Step8. EvalPoly/test_poly.cpp
#include <stdio.h> #include "CKKS_ks_wih_dnum.h" #include "CKKS_poly.h" #define logN 10 #define N (1<<logN) #define L 9 #define DNUM 3 #define K (L/DNUM) #define Delta (1ULL<<40) double norm_square_exp(const double zr[N/2], const double zi[N/2]){ double sum=0; for(int i=0; i<N/2; i++) sum+=zr[i]*zr[i]+zi[i]*zi[i];...
ALGO
0.998365
3.000375
{ "github_metadata": { "branch": "main", "commit_count": 41, "repo_created_at": "2022-12-28T01:42:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4fc745255af...
f374932e-a5fa-403a-8791-e7759c41cc9b
mgtruuuu/LeetCode
1008-construct-binary-search-tree-from-preorder-traversal/1008-construct-binary-search-tree-from-preorder-traversal.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.999998
7.09071
{ "github_metadata": { "branch": "main", "commit_count": 2391, "repo_created_at": "2023-05-27T05:02: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": "74338ef60...
48713bc5-c28c-4add-9e6b-a5be7b414a8c
LSH3333/PS
baekjoon/1759 (2).cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; int L, C; vector<char> inputs; bool Check(const vector<char> &comb) { int vowels=0, consonants=0; for(const auto &x : comb) { if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u') { vowels++; } ...
ALGO
0.999939
3.730078
{ "github_metadata": { "branch": "master", "commit_count": 1357, "repo_created_at": "2021-07-07T06:42:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ed3047b...
ff5deb21-e25b-4b98-aa4a-6afff035d2f8
KumarRobotics/mrsl_quadrotor
mrsl_quadrotor_simulator/src/QuadrotorSO3AttitudeControl.cpp
#include <mrsl_quadrotor_simulator/QuadrotorSO3AttitudeControl.h> namespace mrsl_quadrotor_simulator { void QuadrotorSO3AttitudeControl::init(const Quadrotor &quad, float I[][3]) { kf_ = quad.getPropellerThrustCoefficient(); km_ = quad.getPropellerMomentCoefficient(); for (int i = 0; i < 3; i++) for (int j =...
TOOL
0.963677
5.710941
{ "github_metadata": { "branch": "master", "commit_count": 124, "repo_created_at": "2015-01-07T22:45:14.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 125, "forks": 30, "issues": 2, "pull_requests": 1 }, "file_meta": { "content_id": "26a37e...
15d36a27-62b1-4ba1-93f9-d5b8bfc1fed4
hotai/cpp-utils
_num_eval_.cpp
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // _num_eval_.cpp - implementation file for the // recursive descent numeric expression parser. // //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include "_num_eval_.h" namespace soige { // helper rounder #define ROUNDED_LONG(x) ( \ ...
ALGO
0.932611
6.243873
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2018-01-20T19:49:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "85718a3bb5...
869f6a3d-bd60-40f9-9ffd-0a523ee7c309
Amarjeet-Kumar1/dsa
linked-list/reverse_group2.cpp
#include<iostream> using namespace std; class Node{ public: int data; Node *next; Node(int d){ data = d; next = NULL; } }; void printLL(Node *head){ while(head != NULL){ cout<<head->data<<" "; head = head->next; } cout<<endl; } No...
ALGO
0.999971
5.077255
{ "github_metadata": { "branch": "main", "commit_count": 122, "repo_created_at": "2022-11-04T13:37:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "db70d4434a...
1dc23854-da2b-4705-a5c7-b06cd0095801
g0311/PS
백준/Gold/14002. 가장 긴 증가하는 부분 수열 4/가장 긴 증가하는 부분 수열 4.cc
#include <iostream> #include <vector> #include <cmath> #include <algorithm> using namespace std; #define endl '\n' #define ll long long #define INF 1'000'000'007 pair<int,int> DP[1001]; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int N; cin >> N; vector<int> A(N); for (...
ALGO
0.999999
4.178819
{ "github_metadata": { "branch": "main", "commit_count": 227, "repo_created_at": "2025-03-13T13:12: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": "418b161be6...
e0330ce5-0744-4a97-88d6-10011e907f4f
EchuCompa/repo-taller-algo1
ejercicios9.cpp
#include "ejercicios9.h" using namespace std; #import <algorithm> //Para ordenar la lista //Aplico una idea similar a un counting sort /************* Ejercicio 1 *************/ //a) bool sonAnagramas(string p1, string p2) { string p1_ord = ordenarString(p1), p2_ord =ordenarString(p2); return p1_ord == p...
ALGO
0.999776
3.174285
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2020-09-11T18:17: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": "b075425e3...
31c08c52-24c9-41e4-a899-f4dbbe57a045
nfb1799/IGME-209
HW3/HW3/snake.cpp
#include <iostream> #include <Box2D/Box2D.h> #include "snake.h" #define SFML_STATIC #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> using namespace std; using namespace sf; void display(b2Vec2 target, b2Body* snake) { b2Vec2 pos = snake->GetPosition(); cout << "Target: " << target.x << ", " << target.y << "...
ALGO
0.968389
4.934
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-11-02T04:04: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": "62a826f408...
a32ea3c5-0fb1-4253-8b92-e0f14a4e3bd7
Philip-ZENG/LeetCode-Algorithm
Two Pointers/5. Longest Palindromic Substring/Dynamic Programming/Dynamic_programming_v0.cpp
/************************************************************************************************* * Use dynamic programming idea * Use an n*n 2d vector (grid) to store the state of each substring * Mark the corresponding entry as true if the substring is palindrome and mark as false otherwise * Use dp[i][j] to rep...
ALGO
0.999908
5.942005
{ "github_metadata": { "branch": "main", "commit_count": 166, "repo_created_at": "2021-05-01T05:15: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": "a608f89a0e...
64e25740-86b1-436c-8053-4ee4368db23d
99hgz/Algorithms
Problems/loj/6060.cpp
#include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> typedef long long ll; using namespace std; ll a[101000]; struct LB { ll f[70]; LB() { memset(f, 0, sizeof(f)); } void insert(ll val, ll tmp) { for (int i = 60; i >= 0; i--) { if ((val...
ALGO
0.999927
3.506848
{ "github_metadata": { "branch": "master", "commit_count": 190, "repo_created_at": "2017-04-21T11:47:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "fa6ca6dd...
bf6a1eaf-5f6b-4397-84c6-6623ef68825b
SuperBigFive/Charming_XCPC
Codeforces/Edu/Edu159/D.cpp
#include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 5; int n, q; int ans[N]; pair <int, int> qry_seg[N], qry_pos[N], mov_pos[N]; vector <int> qry_l[N], qry_r[N]; map <pair <int, int>, vector <int> > mp; string mov; void charming () { cin >> n >> q >> mov; mov = '#' + mov; ...
ALGO
0.999967
4.767232
{ "github_metadata": { "branch": "main", "commit_count": 86, "repo_created_at": "2023-03-06T12:05:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dd5ab8f6cf8...
4fafe461-79ce-4e7c-ba22-b5a82eadbbe9
crishoj/OpenPNL
c_pgmtk/src/pnlBayesLearningEngine.cpp
///////////////////////////////////////////////////////////////////////////// // // // INTEL CORPORATION PROPRIETARY INFORMATION // // This software is supplied under the terms of a license agreement or // // nond...
ALGO
0.96747
5.856386
{ "github_metadata": { "branch": "master", "commit_count": 1090, "repo_created_at": "2011-01-10T16:48:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 23, "forks": 11, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "86a08...
4d3c5b1c-33aa-4388-b9b9-6954ef8c537e
md143rbh7f/competitions
codeforces/245/working_out.cpp
#include <iostream> #include <vector> using namespace std; typedef long long ll; #define range(i,a,b,d) for(auto i=(a);i!=b+d;i+=d) #define N 1005 int a[N][N]; ll b[N][N], c[N][N], d[N][N], e[N][N]; void work(ll ans[N][N], int i0, int j0, int i1, int j1, int di, int dj) { range(i, i0, i1, di) range(j, j0, j1, dj)...
ALGO
0.999983
3.466264
{ "github_metadata": { "branch": "master", "commit_count": 628, "repo_created_at": "2013-08-29T15:52:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 8, "forks": 9, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "13e979e8...