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
13a50ddc-41b4-480c-b129-a900cdd0e33b
kknaks/study
코딩테스트/3th_week/3_A_15686_combi+brute.cpp
#include <bits/stdc++.h> using namespace std; int n, m, a[54][54], result = 987654; vector<vector<int>> chiken_idx; vector<pair<int, int>> home, store; void combi(int start, vector<int> v) { if (v.size() == m) { chiken_idx.push_back(v); return; } for (int i = start + 1; i < store.size...
ALGO
0.999723
3.984206
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2024-07-17T09:05:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "64f23d01e5f6...
6041629d-5e51-4062-9938-f27af65e95db
asdolo/algo3-tp3
src/3-sweep-algorithm.cpp
#include <vector> #include <iostream> #include <math.h> #include <fstream> #include <queue> #include <chrono> #include "tsplib-helper/instance.hpp" #include "tsp-solvers/tsp-solvers.hpp" #include "clusterization/clusterization-methods.hpp" #include "aux.hpp" #define _USE_MATH_DEFINES void ejecutarSweepAlgorithm(TSPL...
ALGO
0.999794
4.382325
{ "github_metadata": { "branch": "master", "commit_count": 50, "repo_created_at": "2018-10-29T20:38:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "89e72ab10...
612eab4b-2305-4dba-97dd-cefdfbe2392a
mmonitto2/Comsc---210
Lab15-210/GraphShortest.cpp
// Lab 15b // Programmer: <NAME> // Editor(s) used: VS++ 2010 Express // Compiler(s) used: VC++ 2010 Express // DvcSchedule5b by <NAME>(0985765) #include <fstream> #include <iostream> #include <list> #include <queue> #include <stack> #include <string> #include <vector> #include <algorithm> #include <utility> using name...
ALGO
0.973269
4.34039
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2014-08-17T00: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": "0cf419c486...
ad8859d9-22aa-49e5-a5e5-2d44b4f9b5cb
Siddharthm10/Competitive-Coding-Repo
CodeForces/contests/730_070721/A.cpp
// clang-format off #include <bits/stdc++.h> #include <algorithm> #define fastio() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) using namespace std; using namespace chrono; #define ll long long #define ull unsigned long long #define ld long double #define fi first #define se second #define mp ...
ALGO
0.999944
4.439747
{ "github_metadata": { "branch": "master", "commit_count": 232, "repo_created_at": "2020-06-30T12:33:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7aac0e71...
fcd98d7b-001c-4a5b-9874-8b1ab2aea7a5
optml/ac-dc
cpp/src/experiments/cdn_common.h
/* * cdn_common.h * * Created on: Jan 30, 2015 * Author: taki */ #ifndef CDN_COMMON_H_ #define CDN_COMMON_H_ #include "../helpers/c_libs_headers.h" #include "../utils/randomNumbersUtil.h" #include <gsl/gsl_linalg.h> #ifdef MKL #include "mkl_lapacke.h" #else #include "lapacke.h" #endif #include <gsl/gsl_c...
ALGO
0.995666
3.759656
{ "github_metadata": { "branch": "master", "commit_count": 62, "repo_created_at": "2015-06-19T05:38:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 14, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "68eaf921...
266227e0-e704-4171-9e61-902712491d35
wanshuanglong/learnC-
test_pointer_bubble_sort.cpp
/* 编写一个程序,实现冒泡排序算法。要求如下: 定义一个整型数组,包含n个元素; 定义一个指向整型的指针变量,指向数组的第一个元素; 使用循环遍历数组,比较相邻的两个元素的大小,如果前一个元素大于后一个元素,则交换它们的位置,并使用指针变量进行操作; 重复上述步骤,直到整个数组有序; 输出排序后的数组。 */ #include <iostream> #include <cstdlib> #include <ctime> #include <cmath> #include <iomanip> using namespace std; using std::setw; //void co...
ALGO
0.999856
4.639294
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2023-11-20T11:52: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": "403e1be2bc...
c50cd712-f937-47bc-b23d-4dd1ad548e02
armijoalb/ED
Practica 6/avl.hxx
/** * Implementación métodos clase AVL. * <NAME>. * 2º GII A. */ #include <iostream> using namespace std; //------------------------------------------------------------------------------------------------------ // Constructores. //---------------------------------------------------------------------------------...
ALGO
0.994502
5.253654
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2018-04-16T11:40: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": "8d6adda3ca...
203f30d6-140b-4beb-88b9-0d037e329b68
Ponchik-Lukich/Yandex-Coderun
save.cpp
#include <iostream> #include <vector> #include <unordered_set> using namespace std; int main() { int n; long long length, squareLength, cubeLength, r1, r2, r3, x, y, z; cin >> n; cin >> x >> y >> z; if (n == 3) { cout << 1 << " " << 2 << " " << 3; return 0; } length = n * (n...
ALGO
0.999941
4.272518
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2023-04-12T08:24:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f916a92bf...
5f8ef8d3-6e31-485c-84a7-adb164293a89
aquaskyline/SOAP3-dp
PEAlgnmt.cpp
/* * * PEAlgnmt.c * Soap3(gpu) * * Copyright (C) 2011, HKU * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option)...
ALGO
0.999155
4.252755
{ "github_metadata": { "branch": "master", "commit_count": 60, "repo_created_at": "2015-02-04T08:58:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 31, "forks": 9, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "a353d55c...
dbd2f4ac-6710-4a35-8671-41d766f11539
Ste1nb0cK/2D_Percolation
src/index_matrix.cpp
#include<Eigen/Eigen> #include "index_matrix.hpp" Eigen::ArrayXXi index_matrix(Eigen::ArrayXXi &I, int L) { //Se recibe una matriz de percolación Eigen::ArrayXi V_H_clouster_id = sep(I, L); //Se crea un vector que tendrá el valor de la función sep aplicada a I. Eigen::ArrayXXi F = I; //Se crea una copia de la m...
ALGO
0.999532
4.766016
{ "github_metadata": { "branch": "main", "commit_count": 93, "repo_created_at": "2022-12-26T14:53:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5ece3c8c7ee...
778ce82b-99dc-4ccb-aabd-7c251020a92f
ioperations/leetcode
cc/557_reverse_words_in_a_string_iii.cc
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: // https://pvs-studio.com /* Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. */ #include ...
ALGO
0.997153
6.61319
{ "github_metadata": { "branch": "master", "commit_count": 587, "repo_created_at": "2022-12-03T15:39:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aa271c3d...
ad07ab36-99a8-4b3c-a17f-6d77b2fc79d0
ColinChen1843/Competitive-Programming
DMOPC/DMOPC '19 Contest 3 P0 - What is it.cpp
#include <iostream> using namespace std; int main() { int n; cin>>n; while(n--){ int arr[10]; for(int i = 0; i<10; i++) cin>>arr[i]; int ari, geo; if(arr[0] != 0){ geo = arr[1] / arr[0]; } else geo = 0; ari = arr[1]-arr[0]; int achec...
ALGO
0.99917
3.305604
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2021-05-30T20:34:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "eb0b25967496...
1f721014-5ee2-4ab8-8f95-df68cc4aaf74
earthkc/MiniCamelot_AB-Prune
MiniCamelot_AB-Prune/compAction.cpp
// // compAction.cpp // Mini Camelot // // //move ordering could use a better heuristic #include "compAction.hpp" #include <chrono> #include <ctime> #include <iostream> #ifndef BoardClass_hpp #include "BoardClass.hpp" #endif #ifndef PlayerClass_hpp #include "PlayerClass.hpp" #endif #ifndef precaptureCheck_hpp #i...
ALGO
0.999723
5.036765
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2018-04-08T20:42: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": "34d21ec94b...
6c4d67eb-4715-4988-a196-855be6d81b32
Guosheng-Ye/Recursion
SumOfAllNodes.cpp
/* * @Author: YeGuoSheng * @Date: 2019-03-16 14:28:05 * @Description: retutn the sum of all nodes in btree * @Last Modified by: YeGuoSheng * @Last Modified time: 2019-03-16 14:28:30\ */ #include<iostream> #include<queue> using namespace std; #define ELEMTYPE int typedef struct node { int data; struct n...
ALGO
0.999764
3.602608
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2019-06-09T14:25:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5062417be3...
5caa5593-fc58-455d-bd9c-4a24a363d300
mcjuneho/CVC4_opt
src/expr/proof_node_updater.h
/********************* */ /*! \file proof_node_updater.h ** \verbatim ** Top contributors (to current version): ** <NAME> ** This file is part of the CVC4 project. ** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS ** in the top-level sour...
TOOL
0.988583
7.53212
{ "github_metadata": { "branch": "master", "commit_count": 7900, "repo_created_at": "2020-09-21T06: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": "a705907...
4e63a7ef-4066-41a9-8365-5685f12a2fcc
NDT080506/HocLapTrinh
Thuật toán/tonguoc.cpp
#include <bits/stdc++.h> #define fo(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; const ll mod = 1000000007; vector<int> sumDiv(1000001, 0); // tinh toan tong uoc cua tung so (khong chua chinh n) trong khoang [1,n]; no co do phuc tap la (Nlogn) void precompute(int n){ for(int ...
ALGO
0.999666
3.989401
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2025-05-17T09:34: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": "0a804686447...
0baa8cdb-ed00-4884-8296-d1d522019bd8
lantimilan/topcoder
CODEFORCE/prob229A.cpp
// ========================================================= // // Filename: prob229A.cpp // // Description: // // Version: 1.0 // Created: 10/02/2012 04:31:02 PM // Revision: none // Compiler: g++ // // Author: <NAME> (lyan), <EMAIL> // Company: U of Calif...
ALGO
0.999961
3.285164
{ "github_metadata": { "branch": "master", "commit_count": 493, "repo_created_at": "2012-07-16T05:16: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": "f2e48f7d...
6bf6b91a-deeb-4dd6-870b-45127c13051a
sin22766/POSN-TOI_related
Contest02/SecretCode.cpp
#include <string> #include <iostream> using namespace std; int main(){ string vertical[13],horizontal[13]; bool atk,def,re,pre; atk = def = re = pre = false; for (int i = 0; i < 13; ++i) { for (int j = 0; j < 13; ++j) { char temp; cin >> temp; vertical[i].pus...
ALGO
0.999894
3.574894
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-02-07T13:29: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": "f304f218d5f3...
1b3fa5fe-ab08-4b99-ab1b-31aa7ea7c4ac
crimson000000/OIcode
luogu/2915.cpp
#define LOCAL /*#include <bits/stdc++.h> using namespace std; #define int long long typedef long long ll; typedef pair<int, int> PII; inline int read() { int x = 0, f = 1; char ch = getchar(); while(ch < '0' || ch > '9') { if(ch == '-') f = -1; ch = getchar(); } while (ch >= '0'...
ALGO
0.999948
4.104426
{ "github_metadata": { "branch": "main", "commit_count": 13, "repo_created_at": "2023-07-06T06:03:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5f1a6dd3e52...
0412c2f9-c462-4bfa-813a-cd24e1d40efb
guilherme-iram/projeto_APA
Perturbacao.cpp
#include "Solution.hpp" #include "Instancia.hpp" #include "iostream" #include "math.h" class Pertubacao_double_swap { public: Instancia instancia; Pertubacao_double_swap (const Instancia& instancia) { this->instancia = instancia; }; void run(So...
ALGO
0.999098
4.48556
{ "github_metadata": { "branch": "main", "commit_count": 41, "repo_created_at": "2023-05-01T04:56: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": "fdb59ad3bf5...
7e667509-bc59-4df7-9c7d-5b1a4987f250
jniegema/AdventOfCode
2023/Day2.cpp
#include "FileIO.h" #include "ContainerHelpers.h" #include "StringToVector.h" #include <iostream> #include <algorithm> #include <ranges> #include <numeric> #include <cassert> #include <cctype> #include <regex> using namespace std; using IntT = unsigned long long int; const IntT maxRed = 12; const IntT maxGreen = 13...
ALGO
0.980266
5.392955
{ "github_metadata": { "branch": "main", "commit_count": 25, "repo_created_at": "2022-12-24T09:27:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "23f71597d15...
ebf51001-a471-49da-9e19-4cd62e9ff3e9
NickZhy/algorithms
leetcode/MultiplyStrings_43.cpp
class Solution { public: string multiply(string num1, string num2) { int len1 = num1.size(), len2 = num2.size(); if(!len1 || !len2) return "0"; vector<int> rst(len1 + len2, 0); reverse(num1.begin(), num1.end()); reverse(num2.begin(), num2.end()); for(int i = ...
ALGO
0.999991
5.789695
{ "github_metadata": { "branch": "master", "commit_count": 60, "repo_created_at": "2017-09-07T18:20: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": "71c449dca...
151e8df3-d765-4912-8edb-a13b165b1579
ruritoBlogger/AtCoder
abc147/c/main.cpp
#include<bits/stdc++.h> using namespace std; #define ll long long #define INF 99999999 #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define all(x) (x).begin(),(x).end() template < typename T > std::string to_string( const T& n ) { std::ostringstream stm ; stm << n ; return stm.str() ; } int main()...
ALGO
0.999868
3.435219
{ "github_metadata": { "branch": "master", "commit_count": 90, "repo_created_at": "2018-07-21T15:52:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9a0d216f1...
36de9a2a-36ca-445d-ae35-5b420739d134
bvbasavaraju/competitive_programming
leetcode/daily/2020_8_August/day9.cpp
/**************************************************** Date: July 9th link: https://leetcode.com/explore/challenge/card/august-leetcoding-challenge/550/week-2-august-8th-august-14th/3417/ ****************************************************/ #include <iostream> #include <vector> #include <list> #include <algorithm> #i...
ALGO
0.999933
5.801491
{ "github_metadata": { "branch": "master", "commit_count": 693, "repo_created_at": "2019-10-20T13:24:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "aa4daea5...
aa26e8dd-4def-40f3-ba91-548d0ff6fd25
kemalozyon/CS152-LabGuideQuestions
LG15/LG15_Sols/LG15_sols/LG15_AQ2/AQ2.cpp
/* LG15_AQ2 -> Postfix & Infix Question */ #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string.h> #include "stack_int.h" int calculate(int op1, int op2, char oper); int evaluatePostfixExpression(char* expr); int main(void) { char exp[50]; int res; //read the expression as string printf("\nEnt...
ALGO
0.99915
3.92972
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2025-03-03T12:38:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d47ec93376e...
c2477ad0-d5f0-482d-bb31-22831df25830
cran/Rborist
src/runaccum.h
// This file is part of ArboristCore. /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** @file runaccum.h @brief Definitions for the Run classes, which ...
ALGO
0.965113
6.620289
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2015-02-14T07:44:07.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "08897963ac...
2f6c112d-32e4-4759-8e82-b334b68dc1ca
ishandutta2007/codeforces-o
okwedook/normal/1040/A.cpp
#pragma GCC optimize("Ofast", "unroll-loops") #include <bits/stdc++.h> using namespace std; #define FILES freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout) #define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define FIXED cout << fixed << setprecision(20) #define RANDOM srand(time(...
ALGO
0.999794
3.938983
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:45: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": "9c2bdb7f2673...
65cc5409-d2e5-4033-9ad4-613beda3823c
happyZYM/OI-source
2.11212.cpp
//迭代加深搜索 #include<cstdio> #include<cstring> using namespace std; const int maxn = 9; int n, a[maxn]; //判断是否达到状态 bool is_sorted() { for(int i = 0; i < n-1; i++) if(a[i] >= a[i+1]) return false; return true; } //计算序列中不正确数的个数 int h() { int cnt = 0; for(int i = 0; i < n-1; i++) if(a[i]+1 != a[i+1]) cnt++; ...
ALGO
0.999876
3.311724
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2023-08-03T01:57: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": "57f3cece8f...
04a51ac2-f70a-479a-a055-f566c3a8e1cc
mjsmith707/CS425_FinalProject
FinalProjectParallel/FinalProjectParallel/SerialTravellingSalesmanDFS.h
// // SerialTravellingSalesmanDFS.h // FinalProjectParallel // // Created by Max on 12/7/15. // Copyright (c) 2015 Matt. All rights reserved. // #ifndef FinalProjectParallel_SerialTravellingSalesmanDFS_h #define FinalProjectParallel_SerialTravellingSalesmanDFS_h #include <iostream> #include <vector> #include <cli...
ALGO
0.999783
4.271635
{ "github_metadata": { "branch": "master", "commit_count": 32, "repo_created_at": "2015-11-28T11:53: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": "46c768cfe...
ea272c68-1547-4136-8366-cba0a6eae90d
CN-xiaoxiao/CodesOFDataStructure
C and C++/树/层序遍历/levelOrder.cpp
#include <iostream> #define CAPATICY 999 using namespace std; /** 二叉树的层序遍历的实现 */ typedef char ElementType; /** 二叉树的存储结构 */ typedef struct Node { ElementType data; struct Node* lChild; struct Node* rChild; }Node, *BinTree; /** 队列的存储结构 */ typedef struct { Node* array[CAPATICY]; // 存放结点.貌似只...
ALGO
0.999884
3.929066
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2021-05-30T11:51: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": "7f6b94ab122...
fc676fc6-18c1-4107-bc6a-75fe77272ab7
bruno-avr/competitive-programming
kattis/exactchange2.cpp
#include "bits/stdc++.h" using namespace std; #define optimize ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); #define endl "\n" #define ll long long #define ld long double #define pii pair<ll,ll> #define fi first #define se second #define pb push_back #define all(x) x.begin(),x.end() #define INF ...
ALGO
0.999853
4.085405
{ "github_metadata": { "branch": "main", "commit_count": 30, "repo_created_at": "2024-01-23T23:56: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": "cc1ccd16863...
5995d4f9-33aa-4736-8a31-11e4839ed6b8
netw0rkf10w/NoRELAX-cpp
norelax/DenseMRF.cpp
#include <iomanip> #include "DenseMRF.hpp" #include "lemmas.hpp" using namespace std; using namespace Eigen; DenseMRF::DenseMRF() { } double DenseMRF::ADMM() { if(parameters.verbose){ cout<<"**********************************************************"<<endl; cout<<"Number of nodes: "<<numberOfNo...
ALGO
0.999954
5.415855
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-06-17T08:14: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": "7904c1cb7f...
ccc3b021-9846-4618-8503-5f7fa81628b6
mkleesiek/google-codejam
archive/2017/Round1b/A.cpp
/** * @file A.cpp * * @date 22.04.2017 * @author NoSheep (<EMAIL>) */ #include <iostream> #include <iomanip> using namespace std; int main() { int T = 0; cin >> T; // int K[1000]; // int S[1000]; // double eta[1000]; for (int t = 1; t <= T; ++t) { int D, N; cin >> D >>...
ALGO
0.999774
4.300703
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2017-11-05T22:14:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "267481a23...
4509428a-5550-486c-b2d2-3aefb04b9259
Inazuma110/atcoder
cpp/arc/104/c/main.cpp
#include <bits/stdc++.h> #include <boost/multiprecision/cpp_int.hpp> // #include <atcoder/all> using boost::multiprecision::cpp_int; using namespace std; // using namespace atcoder; #if __has_include("print.hpp") #include "print.hpp" #endif #define rep(i, n) for(ll i = 0; i < (ll)(n); i++) #define ALL(x) (x).begin...
ALGO
0.999985
4.338051
{ "github_metadata": { "branch": "master", "commit_count": 179, "repo_created_at": "2018-02-09T15:11: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": "13b0e58a...
71d1b37b-a88b-44cd-beb3-f87c753452a3
raincross7/code-similarity
codes/train_code/problem202/problem202_464.cpp
/** "Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.**/ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #define ll long long #define bp __builtin_popcount #define endl "\n" #define ...
ALGO
0.999858
3.749677
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-06T05:07:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "18ac9868c4a7...
2ff7e397-87b4-4e0e-bb6e-90a7d0cc7b3c
intfloat/AlgoSolutions
poj/1655.cpp
#include <stdio.h> #include <algorithm> using namespace std; const int MAX_N = 20005; const int MAX_M = 2 * MAX_N; int ptr, head[MAX_N], pnt[MAX_M], nt[MAX_M], N; inline void addedge(int x, int y) { pnt[ptr] = y; nt[ptr] = head[x]; head[x] = ptr++; pnt[ptr] = x; nt[ptr] = head[y]; head[y] = ptr++; } int tson[MA...
ALGO
0.999927
4.096864
{ "github_metadata": { "branch": "master", "commit_count": 527, "repo_created_at": "2013-04-16T14:53:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 12, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8adddd0...
65ea6402-ac2b-4fdd-ab71-70c799f77552
tpn/cuda-samples
v10.2/7_CUDALibraries/nvgraph_Pagerank/nvgraph_Pagerank.cpp
/* * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
ALGO
0.999627
4.560945
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2016-10-02T21:04:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 61, "forks": 41, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "d168467...
83b53548-5ffc-4f79-a153-3da2ba44a579
HwangCU/cppAlgorithm
ChiChi/PS/SWEA/10966_물놀이를 가자/code.cpp
#include<iostream> #include<vector> #include<queue> using namespace std; int N, M; int map[1001][1001]; int dx[] = { 1,0,-1,0 }; //우하좌상 int dy[] = { 0,1,0,-1 }; void print() { cout << '\n'; for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { cout << map[i][j]; } cout << '\n'; } } struct Point {...
ALGO
0.999868
3.985748
{ "github_metadata": { "branch": "main", "commit_count": 134, "repo_created_at": "2024-08-21T11:01: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": "e3a2077803...
07b73016-9145-4330-920f-bbd57e199180
dnhsieh/LDDMM
MATLAB/src/computeKernelITF.cpp
// Author: <NAME> (<EMAIL>) // Date : 11/17/2020 #include <cmath> #include "mex.h" void computeKernel(double *, double *, int, double, int, int); void computeKernel(double *, double *, double *, int, double, int, int, int); void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { // order 0 t...
ALGO
0.99978
5.773235
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2021-05-11T18:26:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a630e5052cd6...
53a27e6e-68c6-48e9-9113-c025277b6e58
PriyanshuDas/college-work
Archieved Programs/Regionals_Practice/18_12_16/H.cpp
#include <bits/stdc++.h> #define sf scanf #define pf printf #define ll long long int #define mp make_pair #define ins insert #define pb push_back using namespace std; int T, n; int main() { cin >> T; for(int t = 0; t < T; t++) { cin >> n; vector <ll> coal; vector <ll> pol; for(int i = 0; i < n; i++) { ...
ALGO
0.999756
3.07839
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2016-07-27T15:23: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": "2dbe52947...
d659db78-fd07-4616-b299-2982bf601617
chan9934/programmers
2016년.cpp
// //문제 설명 //2016년 1월 1일은 금요일입니다. 2016년 a월 b일은 무슨 요일일까요 ? 두 수 a, b를 입력받아 2016년 a월 b일이 무슨 요일인지 리턴하는 함수, solution을 완성하세요. // 요일의 이름은 일요일부터 토요일까지 각각 SUN, MON, TUE, WED, THU, FRI, SAT // //입니다.예를 들어 a = 5, b = 24라면 5월 24일은 화요일이므로 문자열 "TUE"를 반환하세요. // //제한 조건 // 31일 1,3,5,7,8,10,12 28일 2 30일 4,6,9, 11 //2016년은 윤년입니다. //201...
ALGO
0.999768
4.298188
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2022-06-18T06:38:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5ea27a1b531...
fdb3ea2d-085f-4511-a59b-4ad60c5d2045
bethesirius/ChosunTruck
linux/tensorbox/utils/stitch_rects.cpp
#include <vector> #include <math.h> #include <assert.h> #include <stdlib.h> #include <algorithm> #include <iostream> #include "./hungarian/hungarian.hpp" #include "./stitch_rects.hpp" using std::vector; void filter_rects(const vector<vector<vector<Rect> > >& all_rects, vector<Rect>* stitched_rects,...
ALGO
0.997388
6.091713
{ "github_metadata": { "branch": "master", "commit_count": 145, "repo_created_at": "2016-07-04T12:10:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 734, "forks": 104, "issues": 9, "pull_requests": 0 }, "file_meta": { "content_id": "89b3...
e573b3f8-cd27-4114-bb1f-12279af83562
maku693/daily-snippets
2018/2018052001.cpp
template <class T> mat<T, 3, 3> rotate(const vec<T, 3>& axis, T theta) { const T& [x, y, z] = axis; const T st = std::sin(theta); const T ct = std::cos(theta); const T a = (1 - ct); return { x * x * a + ct, x * y * a - z * st, x * z * a + y * st, y * x * a + z * st, y * y * a + ct, y ...
ALGO
0.900133
7.367165
{ "github_metadata": { "branch": "master", "commit_count": 443, "repo_created_at": "2017-04-06T00:50:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6d499fd7...
05db0e73-53d3-45f3-94db-a7092c961452
cache-tlb/cache-tlb.github.io
morton-code/test_morton_code.cpp
#include <cstdio> #include <cstdint> #include <set> #include <functional> typedef uint32_t uint; struct uint2 { uint2(int _x, int _y) : x(_x), y(_y) {} uint2() {} int x, y; }; uint MortonCode2(uint x) { x &= 0x0000ffff; x = (x ^ (x << 8)) & 0x00ff00ff; x = (x ^ (x << 4)) & 0x0f0f0f0f; x = (x ^ (x << 2)) & 0x33...
ALGO
0.997364
5.165822
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2021-08-12T14:20:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "901304ed15b2...
468af904-e1b7-4858-867b-e191dfc1923c
Keyur2311/Leetcode23
0386-lexicographical-numbers/0386-lexicographical-numbers.cpp
// 3 approaches //approach 1 (nlogn and with extra space) // class Solution { // public: // vector<int> lexicalOrder(int n) { // vector<string> v; // for (int i = 1; i <= n; i++) // v.push_back(to_string(i)); // sort(v.begin(), v.end()); // vector<int> ans; // for (auto &it : v) // ...
ALGO
0.999841
6.568307
{ "github_metadata": { "branch": "main", "commit_count": 1837, "repo_created_at": "2023-01-27T18:01:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8df5c1de2...
ac860727-1f87-4426-8dc3-c8c019e56e52
ishandutta2007/codeforces-m
marckess/normal/812/C.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef vector<int> vi; typedef vector<bool> vb; typedef pair<int, int> ii; typedef vector<ii> vii; #define fi first #define se second #define endl '\n' #define MOD(n,k) ( (n % k) + k ) % k #define isOn(S, j) (S & (1 << j) ) ...
ALGO
0.99996
3.634406
{ "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": "0182cdce69c7...
790677c1-3eac-4328-962d-e4322d487dca
Nagahlon/Exercice_BatailleNavale
Exercice_BatailleNavale/TBateau.cpp
#include "Define.h" #include "TBateau.h" bateau createBateau(cases* tableau[TAILLE * TAILLE], int n_l, int n_c, int n_r, int n_n) { //n_r est la rotation (Vertical ou Horizontal) //n_n est la longeur de case du bateau bateau temp{}; if (detectBateau(tableau, n_l, n_c, n_r, n_n) == 1) { //Si la position est compro...
TOOL
0.953256
3.221249
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2022-05-12T10:57: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": "9167a50401...
0e62807f-4a80-46c7-902d-86cf4ceb2915
ibchand/EC327
PA1/Q2.cpp
#include <iostream> #include <math.h> using namespace std; //checkINTERSECT function prototype: Will check to see if squares intersect bool checkINTERSECT(int x1TL, int y1TL, int x1BR, int y1BR, int x2TL, int y2TL, int x2BR, int y2BR); int main() { int x1TL, y1TL, x1BR, y1BR, x2TL, y2TL, ...
ALGO
0.991436
4.49837
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2019-10-03T19:29:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "163cdb3812...
eb471139-356f-4d82-bcad-a6f9754731f8
seyoung5744/CodingTest
프로그래머스/2/17686. [3차] 파일명 정렬/[3차] 파일명 정렬.cpp
#include <string> #include <vector> #include <cctype> #include <algorithm> #include <iostream> using namespace std; struct File { vector<string> name; string origin; File(string o) : origin(o) { name = vector<string>(3, ""); } }; vector<string> solution(vector<string> files) { vec...
ALGO
0.997241
4.365371
{ "github_metadata": { "branch": "main", "commit_count": 1472, "repo_created_at": "2022-09-19T12:54: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": "801fd8bcb...
6f6be7f8-9f95-451d-a631-e21db47dc242
lakshaynanda/EVM_Biometric_FacialRecognition
EVM/Arduino Codes/code2/code2.ino
#include <LiquidCrystal.h> #include <SoftwareSerial.h> //FT232 #include <Adafruit_Fingerprint.h> #define BUZZ 11 Adafruit_Fingerprint finger = Adafruit_Fingerprint(&Serial); SoftwareSerial FSerial(2,3); // RX, TX // WiFi //************************************************* LiquidCrystal lcd(4, 5, 6, 7, 8, 9); int pp...
TOOL
0.95305
3.215632
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2020-05-20T17:16: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": "5af512a4dd...
3d2dbbe9-49b4-4ef8-89e6-31d3b81f276e
noeaieta/practicasTaller
TANQUES REVISAR/Final Tanques/Final Taller (Tanques).cpp
// Final Taller (Tanques).cpp: define el punto de entrada de la aplicación de consola. // #include "stdafx.h" #include "math.h" #include <iostream> const int MAX_POZOS = 15; typedef struct{ char id[20]; float x; float y; float radio; }Pozo; typedef struct{ char id[20]; float xInfIzq; float yInfIzq; float xS...
ALGO
0.988645
3.538644
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2016-07-03T23:42:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "40c4547df...
1c74a63d-e0e6-4ca8-8411-bad65a0e81c9
Daazay/cplusplus-labs
lab4/lab4/src/vec.h
#pragma once #include <unordered_map> #include <initializer_list> #include <vector> #include <cmath> #include <iostream> #include <cassert> #include "defines.h" #include "mat.h" class Vec { friend class Mat; public: Vec(u64 size); Vec(const std::vector<f64>& v); Vec(const std::initializer_list<f64>& ...
TOOL
0.939323
5.950721
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-12-25T14:03: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": "3246d4730329...
a54d46e3-3ca7-4286-9a23-58420e90d5f2
jchengai/gpir
gp_planner/thirdparty/gtsam-4.1rc/gtsam/3rdparty/Spectra/LinAlg/Lanczos.h
// Copyright (C) 2018-2019 <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at https://mozilla.org/MPL/2.0/. #ifndef LANCZOS_H #define LANCZOS_H #include <Eigen/Core> #include <c...
ALGO
0.998225
7.200334
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2021-07-01T05:24:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 244, "forks": 54, "issues": 4, "pull_requests": 0 }, "file_meta": { "content_id": "c8861cb87...
67ebb1a1-941b-4028-9f19-6ad4be32db80
carisio/emstudio
EMStudio/src/emstudio/core/engine/fdtd/elementcore/RadiationPatternFDTDCore.h
/* * RadiationPatternFDTDCore.h * * Created on: 06/03/2012 * Author: leandrocarisio */ #ifndef RADIATIONPATTERNFDTDCORE_H_ #define RADIATIONPATTERNFDTDCORE_H_ #include "FDTDElementCore.h" #include "emstudio/core/engine/fdtd/FDTDEngine.h" #include "emstudio/dto/fdtdapp/RadiationPatternDTO.h" #include "emstu...
ALGO
0.903536
4.600313
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2018-02-04T18:19:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "65e6c873c...
087e65bc-ea39-4f62-8177-b28868635cc9
hujc7/Leetcode
templates/binary_search.cpp
#include <vector> #include <iostream> using namespace std; /** * Binary search universal template * * Key: * 1. use l < r * 2. use one of * a. lean left: l + (r - l) / 2, l = mid+1 and r = mid * b. lean right: l + (r - l + 1) / 2, l = mid, and r = mid -1 * 3. Always output l */ int upper_boun...
ALGO
0.999917
4.969039
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2020-11-01T05:39: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": "334cae8977...
dbe38ed4-3e9d-4442-8a00-753bac1753d9
morris821028/UVa
volume111/11159 - Factors and Multiples.cpp
#include <stdio.h> #include <string.h> int g[1005][1005], gt[1005]; int mx[1005], my[1005], used[1005]; int dfs(int nd) { int i, a; for(i = 0; i < gt[nd]; i++) { a = g[nd][i]; if(!used[a]) { used[a] = 1; if(my[a] < 0 || dfs(my[a])) { mx[nd] = a, my[a] = nd...
ALGO
0.999839
3.624547
{ "github_metadata": { "branch": "master", "commit_count": 1197, "repo_created_at": "2013-06-14T12:34:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 571, "forks": 269, "issues": 1, "pull_requests": 1 }, "file_meta": { "content_id": "364...
bc19742e-9be1-4141-80a7-b0c0daa0620c
dangnm9699/applied-algorithms
Contest-2/G-SORT-INT/main.cpp
#include <bits/stdc++.h> using namespace std; // Chọn phần tử đầu làm Pivot int PartitionL(int a[], int left, int right){ int pivot = a[left]; int i = left + 1, j = right; while (true){ // Tìm phần tử >= Pivot while ((i <= right) && (a[i]) < pivot) i ++; // Tìm phần tử <= Pivot while ((j >= left) && (a[j]...
ALGO
0.999985
4.623238
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-10-20T15:22:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f602d9e0b7...
65d4092d-4cf3-445d-b3fe-4e6e45fc3ed7
liuyubobobo/Play-Leetcode
0001-0500/0239-Sliding-Window-Maximum/cpp-0239/main4.cpp
/// Source : https://leetcode.com/problems/sliding-window-maximum/description/ /// Author : liuyubobobo /// Time : 2017-11-22 #include <iostream> #include <vector> #include <deque> #include <cassert> using namespace std; /// Using Deque as a Decreasing Queue /// It's a template problem! :) /// Time Complexity: O(...
ALGO
0.99996
6.264252
{ "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": "6f...
555f2c64-7a66-4708-b7b6-bfcae0aa356d
El-Medonho/Contests
Geral/CSES/PD/918countingtilings2.cpp
#include "bits/stdc++.h" using namespace std; #define MOD 1000000007 #define mod(x,mvvm) (((x%mvvm)+mvvm)%mvvm) #define f first #define s second #define pb push_back #define pii pair<int,int> #define pll pair<long long,long long> #define vii vector<int> #define vll vector<long long> #define endl "\n" #define esp " " #...
ALGO
0.999996
4.227486
{ "github_metadata": { "branch": "main", "commit_count": 34, "repo_created_at": "2022-09-03T14:12: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": "d032b0fbb00...
29e095b8-8bcf-44ef-841a-14ca619ee7b2
mzry1992/workspace
contest/2012summer/UESTC Summer Training #22/Business Cards.cpp
#include <iostream> #include <algorithm> #include <cstdio> #include <cstring> using namespace std; long long a,b,c,d; long long gcd(long long a,long long b) { if (b == 0) return a; return gcd(b,a%b); } long long lcm(long long a,long long b) { return a/gcd(a,b)*b; } long long ex_gcd(long long a,long long...
ALGO
0.999804
4.270748
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2012-11-03T05:40:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "be1f8b6af...
28d2b5fb-9188-4249-81c8-34825abc88e5
mahabub19/resource
Contest/CF_practice/F_Forever_Winter.cpp
#include<bits/stdc++.h> using namespace std; #define deb(x) cout << #x << " = "; print(x) #define ll long long #define all(v) v.begin(), v.end() #define allr(v) v.rbegin(), v.rend() #define N (ll)(2e5 +1) #define f first #define s second #define pb push_back #define mod (ll)(1e9+7) void print(vector<ll> &vec){ f...
ALGO
0.999837
3.644195
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2023-09-17T12:59:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "7ddd20b4f7c3...
ef056825-d55c-402c-8e5c-19b429d3bb46
RauniMF13/Rauni_CSE3150
Week_1/ECCalculator.cpp
#include <cstdlib> #include <iostream> #include "ECCalculator.h" using namespace std; void print_arr(int* arr, int length) { cout << "[" << arr[0]; for(int i = 1; i < length; i++) { if (arr[i] == -1) { cout << ",_"; } else { cout << "," << arr[i]; } } cout << "]"; } int ECRemoveSp...
ALGO
0.999765
4.874568
{ "github_metadata": { "branch": "main", "commit_count": 67, "repo_created_at": "2023-01-28T02:28: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": "a0c745451ca...
07b829cc-9fb1-416d-87ac-a237dde8de17
JacobRVaughn/College-Coding-Works
FactorialNumber.cpp
#include <string> #include <iostream> using namespace std; int myabs(int value) { cout << "integer\n"; if (value < 0) { value = -value; } return value; } double myabs(double value) { cout << "double\n"; if (value < 0) { value = -value; } return value; } int main(int argc, char **argv) { string strVal...
TOOL
0.906995
3.965476
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-09-03T21:20: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": "cd3cf3d6ea06...
3c3e5d6f-fc10-4dd5-921b-66915d1fe92a
shuangde/ACM-ICPC-Record
hdu/hdu-3586.cpp
/**===================================================== * This is a solution for ACM/ICPC problem * * @source : hdu-3586 Information Disturbing * @description : 树形dp + 二分 * @author : shuangde * @blog : blog.csdn.net/shuangde800 * @email : <EMAIL> * Copyright (C) 2013/08/30 ...
ALGO
0.999979
3.75543
{ "github_metadata": { "branch": "master", "commit_count": 269, "repo_created_at": "2013-08-17T17:12:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1dc33852...
8d7baca2-fe69-4cc0-a637-1eaf284f3b57
gregdionne/mcbasic
src/optimizer/merger.cpp
// Copyright (C) 2021 <NAME> // Distributed under MIT License #include "merger.hpp" #include "ast/lister.hpp" #include "constfolder.hpp" #include "constinspector.hpp" #include "consttable/fixedpoint.hpp" #include "factorizer.hpp" #include "isequal.hpp" #include "isrelational.hpp" #include "shiftcombiner.hpp" #include <...
TOOL
0.934526
7.058065
{ "github_metadata": { "branch": "main", "commit_count": 86, "repo_created_at": "2021-01-16T23:50:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 12, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b3dd75afbe...
c5ac02f5-1541-4bbe-81d5-163b4ee28b77
brittonsmith/c10.00-b
source/iter_track.h
/* This file is part of Cloudy and is copyright (C)1978-2010 by <NAME> and * others. For conditions of distribution and use see copyright notice in license.txt */ #ifndef ITER_TRACK_H_ #define ITER_TRACK_H_ //////////////////////////////////////////////////////////////////////////////// // The class iter_track was ...
ALGO
0.999953
6.952657
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2019-11-26T12:10:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ef529df658...
10e15ac3-aae3-41fe-9066-d9b1de370df7
NickWarren317/DataStructs-and-Algo-Library
CircularDynamicArray.cpp
//<NAME> //Data Structures and Algorithms //Project Phase 1 //12164563 #include<iostream> #include <cstdlib> using namespace std; template <class elmtype> class CircularDynamicArray{ //Classinator public: elmtype* arr; elmtype error; elmtype* hold; int frontidx,size,cap; CircularDyn...
ALGO
0.999878
3.794608
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2022-12-06T22:52: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": "7a9360d70a...
0033caa0-9fc4-4bf5-9788-de110da57bcd
PaddlePaddle/Paddle-Lite
lite/backends/arm/math/viterbi_decode.h
// Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
ALGO
0.999601
6.667331
{ "github_metadata": { "branch": "develop", "commit_count": 7526, "repo_created_at": "2017-09-20T11:41:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 7124, "forks": 1620, "issues": 68, "pull_requests": 17 }, "file_meta": { "content_id": ...
6ecfc0ae-946e-4fbd-8987-99b49ca6da0f
li-chiun-lin/GoogleKickStart
2015_A/gcube.cpp
/* */ #include <algorithm> #include <climits> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> using namespace std; void print(vector<double> v) { ...
ALGO
0.99975
3.894486
{ "github_metadata": { "branch": "master", "commit_count": 49, "repo_created_at": "2023-05-07T06:39: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": "f439a9eef...
de8bea77-5b13-4f8d-8b18-4093da668320
NaSchkafu/cxsc-docker
CToolbox/Modules/matinv.cpp
/* ** CXSC is a C++ library for eXtended Scientific Computing (V 2.5.4) ** ** Copyright (C) 1990-2000 Institut fuer Angewandte Mathematik, ** Universitaet Karlsruhe, Germany ** (C) 2000-2014 <NAME>/Softwaretechnologie ** Universitaet Wuppertal, Germany *...
ALGO
0.999968
5.759312
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2020-03-08T19:26: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": "3e4655f5ce...
d2906a0f-2424-467f-b4b0-e8665450abdf
obrusvit/ppp_stroustrup
chap23_text/mails_processing/main.cpp
#include <iostream> #include <stdexcept> #include <map> #include <string> #include <regex> #include "Mail_file.hpp" #include "Message.hpp" using namespace std; //------------------------------------------------------------------------------ // NOTE: // string(s,n) constructs a tail of s from n onward: s[0]..s[n-1...
TOOL
0.915216
5.122415
{ "github_metadata": { "branch": "master", "commit_count": 43, "repo_created_at": "2019-12-08T09:03: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": "99577db32...
c91c3724-09c8-45b6-8adb-a779ee8c90b8
viettrungIT3/UngDungThuatToan
LyThuyet/Buoi_2/VD2.cpp
#include <bits/stdc++.h> using namespace std; // Liệt kê các tập con k của phần tử // Hiển thị cấu hình void view_config(int a[], int n) { cout << "{"; for (int i = 0; i < n; i++) { cout << a[i]; if (i == n - 1) continue; cout << ", "; } cout << "}" << endl; } ...
ALGO
0.999457
4.422608
{ "github_metadata": { "branch": "main", "commit_count": 25, "repo_created_at": "2022-11-06T16:06: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": "fa9a37ef58d...
030bc048-e0d2-49c4-ab90-c10a77037881
KashishJuneja101003/LeetCode-Problems
345. Reverse Vowels of a String.cpp
// Brute Force /* class Solution { public: bool isVowel(char c){ c = tolower(c); switch(c){ case 'a': case 'e': case 'i': case 'o': case 'u': return true; default: return false; } } ...
ALGO
0.999915
6.246652
{ "github_metadata": { "branch": "main", "commit_count": 304, "repo_created_at": "2024-10-03T10:39: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": "623707b5b7...
d97dcd25-f972-4c11-bd51-520264297822
neivv/teippi
src/unit_ai.cpp
#include "unit.h" #include "ai.h" #include "order.h" #include "sprite.h" #include "perfclock.h" #include "constants/order.h" #include "constants/tech.h" #include "constants/unit.h" #include "bullet.h" #include "pathing.h" using namespace Ai; void Unit::Order_AiGuard() { if (order_timer) return; STATIC...
TOOL
0.967203
5.988624
{ "github_metadata": { "branch": "master", "commit_count": 167, "repo_created_at": "2015-08-11T09:44:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 16, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0370888...
8cae86a4-e8fa-48af-b6f0-1b9a13a01e4b
min9813/algorithm_contest
arihon/shokyu/2_1_1/abc_train_ticket.cpp
#include <iostream> #include <vector> #include <string> using namespace std; static const int size_n = 4; string input_s; vector<int> input_i(size_n); vector<int> operator_list = {0, 1}; int main(){ cin >> input_s; input_i.resize(size_n); for(int i=0;i<size_n;i++){ input_i[i] = (int)(input_s[i]) - ...
ALGO
0.999534
3.647624
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2020-02-02T13:08:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "610f0589a...
ab491dd0-265d-47a0-ac06-2c00a57ce98c
sdorsher/CPP-General-Relativity-wave-equation-simulation
ReferenceElement.cpp
#include "ReferenceElement.h" #include <iostream> //The reference element has quite a number of subroutines, but there are only //two outputs that ultimately matter: the derivative matrix and the //lift matrix. The lift matrix is used to calculate the numerical flux. //The derivative matrix is used to calculate the ...
ALGO
0.950108
5.297352
{ "github_metadata": { "branch": "master", "commit_count": 267, "repo_created_at": "2015-02-07T00:13:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5495e23f...
0d390d4d-d60e-4336-82f6-baae12602a96
thesidshah/misc_projects
heap in cpp/heap.cpp
/*Read the marks obtained by students of second year in an online examination of particular subject. Find out maximum and minimum marks obtained in that subject. Use heap data structure. Analyze the algorithm*/ #include<iostream> using namespace std; # define max 20 class stud { int mks[max]; public: stud() ...
ALGO
0.996535
3.194912
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2022-07-16T17:38: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": "9f225554c9c3...
4cd8cf60-e5ee-4005-90ed-86d820b6d9ab
gstrick2/sboost
3rdparty/milvus/core/src/server/delivery/request/SearchByIDRequest.cpp
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
WEB
0.934317
6.574125
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2021-04-06T03:18:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2e15453ea...
07e4c3d0-a588-4afe-8e63-5c28deda6558
jmonetti/circuit-simulator
PruebaCliente/modelo/circuito/compuertas/common_XOR.cpp
#include "common_XOR.h" XOR::XOR(int id, int tiempoTransicion, EntradaCompuerta* entrada1, EntradaCompuerta* entrada2, SalidaCompuerta* salida, Posicion posicion, SENTIDO sentido) : Compuerta(id,posicion,sentido){ this->entradas[0] = entrada1; this->entradas[1] = entrada2; this->salida= salida; this->tiempoTrans...
ALGO
0.994181
4.668486
{ "github_metadata": { "branch": "master", "commit_count": 289, "repo_created_at": "2015-03-14T12:42: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": "e43e0f60...
653d7193-6ea7-490c-9271-ac1b64f7be98
lgsvl/apollo-5.0
modules/perception/camera/lib/obstacle/tracker/omt/omt_obstacle_tracker.cc
/****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * 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 *...
ALGO
0.976062
7.245228
{ "github_metadata": { "branch": "simulator", "commit_count": 13395, "repo_created_at": "2019-08-19T21:00:15.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 88, "forks": 91, "issues": 0, "pull_requests": 18 }, "file_meta": { "content_id": "5...
b358528e-dd4a-402b-bb45-7fd75599e585
MohamedMarnissi2017/SORTIDES-I-ENTRADES-DIGITALS
A/A.ino
/**************************************************************** ** ** ** TÍTOL: ** ** ARRAYde8LEDS 6 ** ** ...
ALGO
0.972745
3.64304
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2017-03-19T13:03: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": "41d6e3a3b...
6629879d-611c-4216-bfff-fdbb74b650d7
purisaurabh/GeeksForGeeks
Medium/Aggressive Cows/aggressive-cows.cpp
//{ Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function Template for C++ class Solution { public: bool is_possible(vector<int> &stall , int mid , int k) { int cow_count = 1; int last_position = stall[0]; ...
ALGO
0.99998
6.213732
{ "github_metadata": { "branch": "main", "commit_count": 608, "repo_created_at": "2022-11-23T12:52: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": "be3a06a870...
51384bd8-91bb-4820-9c23-ef8ae87f7cee
waynewee/static-program-analyzer
Team13/Code13/src/spa/src/pql/PQLOptimization.cpp
#include <PQLOptimization.h> PQLOptimization::PQLOptimization() { this->occurrence_count_ = *(new STRING_INTEGER_MAP()); } PQLOptimization::PQLOptimization(STRING_INTEGER_MAP occurrence_count) { this->occurrence_count_ = occurrence_count; } bool PQLOptimization::operator()(const STRING_LIST& lhs, const STRIN...
ALGO
0.998873
5.674513
{ "github_metadata": { "branch": "main", "commit_count": 760, "repo_created_at": "2021-05-26T01: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": "f0aba99563...
9bee2f66-cefe-46c6-8135-abf539a8e0ec
ishant9805/DSA-LearnAndPractice
codingNinja/6. Linked List/5. Hard Problems/rotate.cpp
#include<bits/stdc++.h> using namespace std; class Node { public: int data; Node *next; Node() { this->data = 0; next = NULL; } Node(int data) { this->data = data; this->next = NULL; } Node(int data, Node* next) { this->data = data; ...
ALGO
0.999947
5.188861
{ "github_metadata": { "branch": "main", "commit_count": 363, "repo_created_at": "2023-09-06T04:11:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e519a7be06...
9e6a6f2a-c59c-43d2-ba09-78ebc234b428
EmaGaleas/Proyecto_BaseDatos_Silabos
Proyecto_Silabos/nodoB.cpp
#include "nodoB.h" // Constructor del nodo B nodoB::nodoB(bool hoja) { this->hoja = hoja; } // Recorrer y mostrar todas las llaves del nodo void nodoB::recorrer() { int i; for (i = 0; i < llaves.size(); i++) { if (!hoja) { hijos[i]->recorrer(); } llaves[i].imprimir(); ...
ALGO
0.998278
3.190516
{ "github_metadata": { "branch": "main", "commit_count": 56, "repo_created_at": "2024-04-20T17:44: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": "75f33e535cc...
5f7a6795-c254-4d40-834c-4135b3c6b045
GabiNeme/ed-tp2
src/cpp/quicksort/QNR.cpp
#include "quicksort/QNR.h" /* Quicksort não recursivo: realiza o algoritmo quicksort simulando as chamadas recursivas através de pilha */ void QNR_Ordena(int vetor[], int n, long &comp, long &mov){ Pilha pilha; //pilha para simular chamadas recursivas int e_item, d_item; // campos esq e dir //pos...
ALGO
0.999959
5.356013
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2019-05-30T13:56:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ed00a79330...
9fb11acc-eb36-47d1-9808-605d6fd4a237
Musa-Yigit-Yayla/DSA-Course-Problems
DSA-LinkedListQuestions/AddTwoLists.cpp
#include <cmath> #include <string> #include "Node.cpp" /*struct Node { int data; struct Node* next; Node(int x) { data = x; next = NULL; } }; */ using namespace std; class AddTwoLists{ public: //Function to add two numbers represented by linked list. Node* addTwoList(Node* first...
ALGO
0.99962
5.227324
{ "github_metadata": { "branch": "main", "commit_count": 423, "repo_created_at": "2023-01-02T09:44:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ea63e3bed3...
7db5edf7-a4c4-4154-9f10-51461dda4d67
Scholasticpal/DSA_Practice
GFG/Trees/LCAofBinaryTree.cpp
#include<iostream> #include<bits/stdc++.h> using namespace std; struct Node{ Node *left; Node *right; int val; Node(int k){ val = k; left = right = NULL; } bool findPath(Node* root, vector<Node*> path, int n){ if(root == NULL){return false;} path.push_back(root)...
ALGO
0.999976
3.976756
{ "github_metadata": { "branch": "main", "commit_count": 54, "repo_created_at": "2023-01-01T18:52: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": "5893850441b...
f26f0a33-3dd3-4b42-a674-d918f80d0707
TheMarex/charge
include/common/domination.hpp
#ifndef CHARGE_COMMON_DOMINATION_HPP #define CHARGE_COMMON_DOMINATION_HPP #include "common/constants.hpp" #include "common/critical_point.hpp" #include "common/limited_function.hpp" #include "common/piecewise_function.hpp" namespace charge::common { template <typename T1, typename T2> bool epsilon_dominates_lexicogr...
ALGO
0.999567
7.347072
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2017-12-15T01:08:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 12, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b5199d6...
1fe03fdd-11a6-45bc-ab5b-c19975c5af98
thangtoanh26/Nhapmonlaptrinh
Week 2/Part 2/Problem 13.cpp
/* Mèo Tâm và chuột <NAME> đang chơi đuổi bắt với nhau. Mèo Tâm đang ở vị trí x1 và di chuyển với vận tốc v1. Chuột Gia Huy đang ở vị trí x2 và di chuyển với vận tốc v2. Viết chương trình kiểm tra xem liệu Tâm có thể tương tác Gia Huy sau N lần di chuyển (N là số nguyên) được không? INPUT 4 số nguyên dương lần lượt c...
ALGO
0.999691
4.370441
{ "github_metadata": { "branch": "main", "commit_count": 92, "repo_created_at": "2024-11-02T16:29: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": "33c08502b7e...
35217476-4013-4e27-b50b-6d6058a3dda8
iratimoshchenko/Lb10
MyForm.h
#pragma once namespace Lb10 { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace System::IO; /// <summary> /// Summary for MyForm /// </sum...
TOOL
0.950733
3.260112
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2025-05-11T19:06: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": "9521ccbc92...
3819bac6-95d6-4f92-becd-49d6ef8d887a
daviddoria/VTKHoughPlanes
include/slam6d/kdc.h
/** * @file * @brief Representation of the optimized cached k-d tree. * @author <NAME>. Institute of Computer Science, University of Osnabrueck, Germany. * @author <NAME>. Institute of Computer Science, University of Osnabrueck, Germany. */ #ifndef __KDC_H__ #define __KDC_H__ #ifdef _MSC_VER #ifdef OPENMP #def...
ALGO
0.995774
3.329441
{ "github_metadata": { "branch": "master", "commit_count": 28, "repo_created_at": "2011-04-30T13:53:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 36, "forks": 19, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f5cdd77...
5d9c14f5-b0f9-4be3-b37d-baac31b4e11d
RyanCabaong/Palomar-College-C-
TrafficLightsSystem/Place.cpp
#include <iostream> #include <utility> #include "Place.h" #include "Vehicle.h" #include "Constants.h" #include "TrafficLight.h" using namespace std; Place::Place() { loc = pair<int, int>(-1, -1); veh = NULL; N = NULL; S = NULL; E = NULL; W = NULL; light = 1; } Place::Place(pair<int, int> location) { loc = lo...
TOOL
0.911937
4.034208
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-12-26T03:58:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4836799580f6...
8020c675-5b58-4be2-8012-b7d3ee2e39f8
KevinRLE/Progrmacion-1-Tareas
6.2 Laboratorio Mòdulo 1 (grupal)/Laboratorio GrupalPartidos Políticos.cpp
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <iomanip> #include <algorithm> #include <vector> using namespace std; //variables contantes #define VOTOS_AFILIADOS 50 #define RONDAS 5 //prototipos void llamarCiclo(); int busquedaAleatorios(int minimo, int m...
ALGO
0.997271
4.317501
{ "github_metadata": { "branch": "main", "commit_count": 26, "repo_created_at": "2025-01-17T15:05:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4bd5ea9acbb...
3d26ff2c-f409-4b9e-919b-5c5be8249f56
VanshGusain18/DSA
Array/Hard/Missing And Repeating.cpp
// Brute Approch class Solution { public: vector<int> findTwoElement(vector<int> &arr) { // code here int n = arr.size(); vector<int> result = {-1, -1}; for (int i = 1; i <= n; i++) { int cnt = 0; for (int j = 0; j < n; j++) { ...
ALGO
0.999987
4.991975
{ "github_metadata": { "branch": "main", "commit_count": 330, "repo_created_at": "2024-10-26T03:27: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": "4acd233d7b...
34c47fd1-d145-4e9b-ac1a-73276208b21a
farihapromi/problem_solving
evenOdd.cpp
#include <iostream> using namespace std; int main() { int i,index = 0; long long n, k; cin >> n >> k; // Validate input if (n <= 0 || k <= 0 || n > 100) { cout << "Invalid input!" << endl; return 1; } int arr[100]; // Fill array with odd numbers first for (i =...
ALGO
0.999904
4.055307
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-12-04T17:03: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": "0d7b7dfb8f...
773aa5c8-ffba-4a42-93da-8e186905dd3d
shinez1997/Competitve-programming
codeforce/codeforce-725/C.cpp
#include <bits/stdc++.h> using namespace std; #define int long long typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; typedef vector<char> vc; typedef pair<int, int> pii; #define endl '\n' #ifdef _LOCAL_ #define dbg(...) "[" << #__VA_ARGS__ ":" << (__VA_ARGS__) << "] " template<typename T> void ...
ALGO
0.999902
4.938432
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2021-09-09T06:22: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": "87a1c1f85d77...
6054d3ff-5308-4592-aeec-2c2a025b6b81
alibaba/havenask
aios/storage/indexlib/indexlib/merger/merge_strategy/temperature_merge_strategy.cpp
/* * Copyright 2014-present Alibaba Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
ALGO
0.989056
6.97899
{ "github_metadata": { "branch": "main", "commit_count": 44, "repo_created_at": "2022-10-17T03:46:01.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1698, "forks": 316, "issues": 56, "pull_requests": 8 }, "file_meta": { "content_id": "342fde...
b36d87f2-bc63-410c-bb57-ab9dde7e61c6
Longxiaoze/Machine_vision_with_opencv
opencv13/main.cpp
#include <iostream> #include<opencv2/opencv.hpp> #include<opencv2/core/core.hpp> #include<fstream> #include <string> using namespace std; using namespace cv; float **Points=nullptr;//全局指针,存放坐标数组 int Points_count=0; //读取txt文件 void readfile(string filename) { ifstream file(filename); if (!file) //判断文件打开是否有问题 ...
ALGO
0.994439
3.691583
{ "github_metadata": { "branch": "main", "commit_count": 52, "repo_created_at": "2020-10-05T13:41:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "86623c6401b...
2bf35444-1d37-4342-8a82-ddb45561fdae
jlema/Udacity-Self-Driving-Car-Engineer-Nanodegree
Term 2 - Sensor Fusion- Localization- and Control/Project 4 - PID Controller/src/PID.cpp
#include "PID.h" using namespace std; /* * TODO: Complete the PID class. */ PID::PID() {} PID::~PID() {} void PID::Init(double _Kp, double _Ki, double _Kd, int _t_max_steps, double _dPKp, double _dPKi, double _dPkd) { Kp = _Kp; Ki = _Ki; Kd = _Kd; i = 0; dP[0] = _dPKp; dP[1] = _dPKi; dP...
ALGO
0.991892
6.174765
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2017-03-01T06:02: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": "95744e818...