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
51767e79-dde0-4592-a3e5-e43ec117c22a
JackBai0914/Competitive-Programming-Codebase
kickstarta/1.cpp
/* * * * * * * * * * * * * * * * * * * * * @author: <NAME> * @date: 2021-03-21 03:58:38 * @description: * * * @notes: * g++ -fsanitize=address -ftrapv * * * * * * * * * * * * * * * * * */ #include <bits/stdc++.h> #define F first #define S second #define MP make_pair #define TIM...
ALGO
0.999734
4.337379
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-04-14T23:11: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": "128f298e9ec9...
313ee732-94bd-4cad-8ffe-3532d2577754
fabiopolimeni/angie
include/angie/core/algorithm.hpp
// Copyright (c) 2017 <NAME> // Created on: 16/04/2017 // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include "angie/core/defines.hpp" #include "angie/core/types.hpp" namespace angie { namespace core { namespace algorithm { templat...
ALGO
0.998142
7.069496
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2017-03-17T12:54: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": "60a94aba8...
10630217-7c8e-48f5-b839-8ffef123b65c
midaslmg94/CodingTest
Graph/DFS/1325_효율적인 해킹.cpp
#include <bits/stdc++.h> #define endl "\n" #define MAX 10000 + 1 using namespace std; vector<int> arr[MAX]; bool visited[MAX]; int n, m; int a, b; int idx = 0; bool cmp(pair<int, int> a, pair<int, int> b) { if (a.first == b.first) { return a.second < b.second; } return a.first > b.first; } int dfs...
ALGO
0.999994
3.836762
{ "github_metadata": { "branch": "master", "commit_count": 510, "repo_created_at": "2019-11-17T11:28: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": "db5bcc38...
521ce641-555e-46d2-98a2-51aad9904fca
Yawn-Sean/Daily_CF_Problems
daily_problems/2025/03/0328/personal_submission/cf930b_dinghc.cpp
#include <bits/stdc++.h> using namespace std; constexpr int N = 5'000; char s[N + 1]; constexpr int A = 26; vector<int> pos[A]; int main() { scanf("%s", s); int n = strlen(s); for (int i = 0; i < n; i++) { pos[s[i] - 'a'].push_back(i); } int ans = 0; for (int c = 0; c < A; c++) if (!p...
ALGO
0.999542
3.706583
{ "github_metadata": { "branch": "main", "commit_count": 20410, "repo_created_at": "2024-02-26T01:04:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 478, "forks": 302, "issues": 0, "pull_requests": 7 }, "file_meta": { "content_id": "3b35...
5de967a2-7e1c-4799-a8a7-fd6eff87bb97
huxd2334/Data-Structures-and-Algorithms-Lab
lab 4/problem2.cpp
#include <bits/stdc++.h> using namespace std; typedef struct student { char name[30]; char id[12]; char clas[10]; float mMath; float mPhysic; float avg() { return (mMath + mPhysic)/2; } }STUDENT; STUDENT A[50]; int n; void input(STUDENT A[50], int &n) { for (int i=0; i<n; i++) { cout<< "\nStudent "<<...
TOOL
0.966945
3.873055
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2023-06-25T05:36: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": "94fdee1eea...
14017727-9a2a-4d32-bb94-61842959bb76
fkanehiro/openhrp3
hrplib/hrpPlanner/Roadmap.cpp
// -*- mode: c++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*- #include "PathPlanner.h" #include "Mobility.h" #include "RoadmapNode.h" #include "Roadmap.h" using namespace PathEngine; void Roadmap::clear() { nodes_.clear(); m_nEdges = 0; } Roadmap::~Roadmap() { clear(); } void Roadmap::ad...
ALGO
0.984602
5.899097
{ "github_metadata": { "branch": "master", "commit_count": 3274, "repo_created_at": "2014-08-05T04:41:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 28, "forks": 35, "issues": 11, "pull_requests": 5 }, "file_meta": { "content_id": "6201...
c545f0d9-daed-42e5-9b1f-453095561b2e
dizid2539/UNIST_AdvProgramming
example/assignment6_alt/functions.cpp
#include <cstddef> #include "shape.h" static double abs(double a) {return (a>=0 ? a : -a);} // dist: calculates the distance between two points static double dist(const double *point1, const double *point2) { double delta_x = point1[0]-point2[0]; double delta_y = point1[1]-point2[1]; double distance = del...
ALGO
0.9963
5.996871
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2021-05-13T16:53: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": "932969c9c2...
228d7b9e-cb39-42ad-a7a0-fa00aa26c12d
Animesh005/Torus-FHE
src/share.hpp
#ifndef SHARE_H #define SHARE_H #include <boost/numeric/ublas/io.hpp> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/matrix_proxy.hpp> #include <boost/numeric/ublas/blas.hpp> #include <bits/stdc++.h> namespace ublas = boost::numeric::ublas; typedef int32_t INT; typedef ublas::row_major ORI; ...
ALGO
0.99589
4.134268
{ "github_metadata": { "branch": "main", "commit_count": 30, "repo_created_at": "2022-08-22T08:13:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "341b14056a8...
9c7e47dd-7f3d-4187-8d7e-a47a439ca28f
rjenez/W266-final-project
data/programming-homework-dataset-plagiarism-detection/src/B2017/Z3/Z1/student2664.cpp
/B2017/2018: Zadaća 3, Zadatak 1 #include <iostream> #include <vector> #include <utility> //pair #include <functional> #include <algorithm> #include <exception> #include <cstring> #include <cmath> //?? #include <string> using std::vector; using std::pair; using std::function; using std::sort; using std::domain_error; ...
ALGO
0.99827
4.396617
{ "github_metadata": { "branch": "main", "commit_count": 125, "repo_created_at": "2022-02-09T00:45:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a1691f7a81...
430e02f9-f679-4b81-ac8e-ba92262334e7
Ash0369/Geeks_for_geeks
Count the Substring.cpp
#define ll long long ll int merge(int left,int mid,int right,vector<int>&arr) { ll int cnt=0; int aptr=left; int bptr=mid+1; int i=0; vector<ll int>temp; while(aptr<=mid && bptr<=right) { if(arr[aptr]>=arr[bptr]) { temp.push_back(arr[bptr]); bptr++; ...
ALGO
0.999973
4.628591
{ "github_metadata": { "branch": "main", "commit_count": 868, "repo_created_at": "2022-07-05T13:13: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": "ccb15eb999...
9494e54f-d520-423a-b509-e5b9db118d9c
PaoloLanaro/WordGames
lib/src/MergeSortString.cpp
// // Created by <NAME> on 1/28/2024. // #include "../include/MergeSortString.h" #include <sstream> #include <cmath> using std::string; string MergeSortString::lexicographicSort(const string& word) { return mergesort(word); } string MergeSortString::merge(const string& left, const string& right) { int n = l...
ALGO
0.999492
6.315413
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2024-01-27T21:40: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": "36cff613baa9...
3d56c3dd-35ec-426d-acef-2bcdec115ada
siddharthakatiyar/CP-MyWay
basics.h
#ifndef BASICS_H #define BASICS_H #include <vector> #include <string> #include <algorithm> using namespace std; namespace Basics { template <typename T> class ReadWrite { public: static vector<T> readVector() { int n; cin >> n; vector<T> v(n); ...
ALGO
0.997956
4.429584
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2023-07-04T11:49: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": "2189f55d764a...
37ac844a-b59f-4af3-8309-2c6947a7691b
amarnus/algorithms
segment-tree/range-update/main.cpp
#include <iostream> #include <vector> using namespace std; struct Node { int min; int max; Node *left_node; Node *right_node; int sum; }; Node* build_tree(vector<int> input, int min, int max) { Node *node = new Node(); node->min = min; node->max = max; if (min == max) { no...
ALGO
0.999983
5.615304
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2019-03-20T10:15: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": "e1c2dc0b22...
1beb77bf-4e7c-4639-bcd4-7536295f74b0
rushikeshk1411/Preparation
LECT_47_LL_QUE.cpp/LOOP_OR_NOT.cpp
#include <iostream> #include<map> using namespace std; class Node { public: int data; Node* next; Node(int data){ this->data = data; this->next = NULL; } }; void InsertNode(Node* &tail,int element, int data){ //Asuming the element is present in the list; //If the LL is...
ALGO
0.999741
4.880787
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2024-05-21T13:39: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": "7fb3fa18e4cc...
7a6343f1-e578-406a-8076-7b900afaec88
corypisano/euler
euler021.cpp
/* 4/29/2012 5:24 (only working on it til i leave for dinner) amicable pairs first thoughts- use a function to find divisors and sum them, store original number and sum in container next to each other, be able to look up at the end */ #include <iostream> using namespace std; int divisorSum(int original){ //find d...
ALGO
0.999939
4.582405
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2013-04-24T03:29:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "11d4d9932...
e4fbf85f-cfc8-4570-8e90-7c5a9e36016d
abhiXsliet/DSA-SHEETS
Love Babbar DSA Sheet/004-Searching & Sorting/014-merge-two-sorted-arrays.cpp
// https://www.geeksforgeeks.org/problems/merge-two-sorted-arrays-1587115620/1 //{ Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution{ private: typedef long long ll; // TC : O(N + M) // SC : O(N + M) void solve_brute(ll arr1[], ll arr2[],...
ALGO
0.999997
5.51406
{ "github_metadata": { "branch": "main", "commit_count": 198, "repo_created_at": "2023-11-04T17:18:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "01d1e99794...
135883e9-98f2-4e1c-9fb4-50b0baea4da4
wdzeng/cp-solutions
PCCA-Winter-Camp-2020/Day2/cf101196g.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; #define x first #define y second #define all(v) v.begin(), v.end() #define ms(v) memset(v, 0, sizeof(v)) #define mss(v) memset(v, -1, sizeof(v)) inline void foul() { cout << "No\n"; exit(0); } inline void require_s...
ALGO
0.999965
4.183
{ "github_metadata": { "branch": "master", "commit_count": 170, "repo_created_at": "2019-03-26T03:15:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "603203b8...
2dd2a9e0-69c4-43dd-ac97-ca112b064642
xXHachimanXx/LPA
exercicios/Tp1v2/Tp1v2.cpp
#include <stdio.h> #include <iostream> using namespace std; class Matriz { public: int tamanho, linhas, colunas; int ** matriz; ~Matriz(); //destrutor Matriz(int linhas, int colunas); //construtor void lerEntradas(); void mostrarMatriz(); void...
ALGO
0.999959
4.289563
{ "github_metadata": { "branch": "master", "commit_count": 63, "repo_created_at": "2020-02-12T10:02:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "98217eff5...
d2a7aefa-958d-40fc-8403-86ba95e4e823
QinMou000/Code
NowCode/大数乘法.cpp
class Solution { public: string solve(string s, string t) { reverse(s.begin(), s.end()); reverse(t.begin(), t.end()); vector<int> arr(s.size() + t.size()); for (int i = 0; i < s.size() ; i++) { for (int j = 0 ; j < t.size() ; j++) { arr[i...
ALGO
0.999938
6.35506
{ "github_metadata": { "branch": "master", "commit_count": 264, "repo_created_at": "2025-03-16T13:14:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "297e79c8...
521e30c4-fe14-4ba5-8b14-2735dd040621
mtrempoltsev/msu_cpp_autumn_2017
homework/Valinurov/06/calculator.cpp
#include <iostream> #include <ctype.h> #include <unordered_map> #include <limits> #include <cmath> enum class Token { Minus, Plus, Mul, Div, Number, Br_Open,// открывающаяся скобка Br_Close,// закрывающаяся скобка End }; template<class T> struct NumericTraits{}; template<> struct Nume...
ALGO
0.992181
3.832372
{ "github_metadata": { "branch": "master", "commit_count": 1334, "repo_created_at": "2017-09-19T12:52:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 9, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f5a4a6b...
d8a30eea-f05c-4775-869e-863ca456455d
arjun-holland/leetcode
3264-final-array-state-after-k-multiplication-operations-i/3264-final-array-state-after-k-multiplication-operations-i.cpp
/* int n = nums.size(); vector<pair<int,int>> vec(n);//O(n) for(int i=0;i<n;i++){ vec[i] = {nums[i],i}; } make_heap(vec.begin(),vec.end(),greater<>());//making min heap with vector while(k--){//O(k*logn) pop_heap(vec.begin(),vec.end(),gr...
ALGO
0.999996
5.252315
{ "github_metadata": { "branch": "main", "commit_count": 320, "repo_created_at": "2024-10-28T13:37: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": "0985074659...
ca64c4d9-91b6-4528-9399-030caeb0d06e
devdeepray/RND
src/Programs/NQueen/multithreadcpp/nqueen.cpp
#include <iostream> #include <vector> #include <cmath> #include <queue> #include <sys/time.h> #include <pthread.h> using namespace std; double getCurrentTime() { struct timeval tp; gettimeofday(&tp, NULL); double ms = tp.tv_sec * 1000 + tp.tv_usec / 1000.0; return ms; } bool validAddition(vector<int> &sol, ...
ALGO
0.99956
4.528634
{ "github_metadata": { "branch": "master", "commit_count": 70, "repo_created_at": "2015-08-05T19:20: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": "7ceeeb645...
ccb3f823-7ea3-42b2-a2b8-e7d55c2dd8e3
rlcuber9/pary
old/10/3/main.cpp
//main.cpp #include <iostream> #include <string.h> #include <math.h> #include <climits> using namespace std; int main(int argc, const char *argv[]){ srand(time(0)); int imin, min = INT_MAX, n = 20; cin >> n; int *p = new int[n]; cout << "p = " << endl; for (int i = 0; i < n; i++) { p[i]...
ALGO
0.999699
3.203802
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2024-04-22T16: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": "bfa9fc6ea86...
2b7255d3-d169-4e53-9693-a76f74791c39
Ary4/Discrete-Logarithm-encryption-in-Client-Server-Chatroom
DiscreteLog.cpp
#include <bits/stdc++.h> #include <time.h> using namespace std; class ZeroKnowldege{ public: long power(long x, long y, long p) { long res = 1; x = x % p; while (y > 0) { if((y & 1)==1) res = (res * x) % p; y = y >> 1; ...
ALGO
0.999794
3.870288
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2020-11-29T07:14: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": "db3e0f2ae049...
00ef9917-c33d-494e-96df-a45b4a0784d0
Nyarmith/CPP_Algorithms
AST_Implementations/linked_list.cpp
#include <iostream> #include <string> template <class T> struct node { node<T>* next; T data; }; template <class T> class list { public: list<T>(); //POST: Default list object constructed with head initialized to null void insertAtHead(T value); //PRE: value is ini...
ALGO
0.982148
5.077914
{ "github_metadata": { "branch": "master", "commit_count": 92, "repo_created_at": "2015-10-05T14:39:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3ba2f1ab9...
9f953566-0e51-45e2-af7e-5738d23c52cc
grivasgervilla/AOC2022
4/2.cpp
#include <iostream> #include <string> #include <fstream> using namespace std; const char COMA = ','; const char GUION = '-'; struct Par{ int primero_ext_inferior, primero_ext_superior; int segundo_ext_inferior, segundo_ext_superior; }; Par obtener_informacion_rangos(string linea){ Par informacion; ...
ALGO
0.998674
4.16907
{ "github_metadata": { "branch": "main", "commit_count": 44, "repo_created_at": "2022-12-01T01:07:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "3f4f6f223d9...
4cb1282c-f386-4e1b-a146-c22b24282039
tritonlmk/RRT_Planner
include/kd_tree.h
#ifndef CATKIN_WS_SRC_RRT_PLANNER_INCLUDE_KD_TREE_H_ #define CATKIN_WS_SRC_RRT_PLANNER_INCLUDE_KD_TREE_H_ #include <vector> #include <algorithm> #include <iostream> #include <cmath> namespace lmk_rrtplanning { //tree node struct KDTreeNode { // node value std::vector<double> node_value; int axis; // splitting p...
ALGO
0.995889
5.459021
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2018-11-30T01:54:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "87cbeec13a...
798afd58-e5ae-4603-a562-3c1c3940a32a
flitai/UAVLinkCalculator
main.cpp
#include <iostream> #include <iomanip> #include "UAVLinkCalculator.h" using namespace LinkModel; // 声明一个函数用于打印结果 void printResults(const LinkResults& results); int main() { // 设置中文字符集,以便在终端正确显示中文 #ifdef _WIN32 system("chcp 65001"); #endif // --- 为一个特定场景定义输入参数 --- // 这些参数基于文档中的示例和典型值进行设置。...
TOOL
0.998608
6.506594
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2025-06-25T09:31: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": "4f1114910779...
2e41e260-e37e-4e32-a34a-a472d11f7cbf
devphilip21/kjoalgo
programmers/highscore_kit/stack_queue_3.cpp
#include <string> #include <vector> #include <iostream> using namespace std; int solution(int bridge_length, int weight, vector<int> truck_weights) { vector<int> onbridges; vector<int> positions; vector<int> completes; int total = truck_weights.size(); int t = 0; auto get_current_weight =...
ALGO
0.999969
5.526981
{ "github_metadata": { "branch": "main", "commit_count": 64, "repo_created_at": "2020-04-15T07:02: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": "bfb6b4067a7...
9b36f25f-f392-4a05-a589-c45fef72cb5e
jeonggyunkim/problemsolving
boj/98f9f1619c60.cpp
#include <iostream> #include <vector> #define INF 987654321 using namespace std; int price[5][5] = {{0, 2, 2, 2, 2}, {0, 1, 3, 4, 3}, {0, 3, 1, 3, 4}, {0, 4, 3, 1, 3}, {0, 3, 4, 3, 1}}; int main() { ios::sync_with_stdio(0); cin.tie(0); vector<vector<int>> dp(100000, vector<int>(32, INF)); int t; cin >> t; dp[...
ALGO
0.999684
4.164836
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2020-10-04T16:52:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4bc53e348...
b9d9cfb6-5569-4518-9a75-d7b99683cdc3
kimsuyeon0916/Algorithm_cpp
Baekjoon/Graph Theory/Graph Traversal/1012.cpp
#include <iostream> #include <vector> #include <algorithm> #include <queue> #define FASTIO ios::sync_with_stdio(false), cin.tie(0), cout.tie(0) using namespace std; void BFS(int x, int y); void DFS(int x, int y); //Flood Fill(Seed Fill) 문제 int board[50][50]={0,}; bool visited[50][50]={0,}; int dx[4]={1,-1,0,0}; int dy...
ALGO
0.999733
4.047268
{ "github_metadata": { "branch": "main", "commit_count": 259, "repo_created_at": "2023-06-26T02:49: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": "95404f209a...
ead371c0-5137-4af5-81fb-df1f88abbfd6
kang-min-seok/BaekJoon_cpp
알고리즘별 풀어보기/그래프탐색/1967.cpp
#include <iostream> #include <queue> using namespace std; vector<vector<pair<int,int>>> first_line; vector<vector<pair<int,int>>> second_line; int n; // 끝점, 그 비용 반환 pair<int,int> bfs(int start, vector<int> &v, vector<vector<pair<int,int>>> &line){ queue<int>q; q.push(start); int result_cost = 0; int ...
ALGO
0.999854
4.107307
{ "github_metadata": { "branch": "main", "commit_count": 62, "repo_created_at": "2024-10-02T07:03:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4f49117b0fb...
6fcb062a-c785-4512-89b6-dc3a4528be5e
Nog022/codigos_em_C-C_mais_mais
lista2/exercicio3.cpp
#include <iostream> using namespace std; #include <stdio.h> /* A soma das folhas é contar os filhos da arovore. PreOrdem é tendo a impressão antes de visiar os filhois. EmOrdem Vissitando o filho que fica a esquerda, passando para o próprio no e depois os filhos na parte direita e o de PosOrdem visita os filhos dire...
ALGO
0.999816
4.154309
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-03-23T13:25: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": "89708614e3a3...
914c1879-6e11-4fd1-beb0-4fc717119334
NoAvailableAlias/signal-slot-benchmarks
benchmark/lib/libsigcplusplus/sigc++/tuple-utils/tuple_transform_each.h
/* Copyright (C) 2016 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of the License, or (at your option) any later version. * * This library is distr...
TOOL
0.945043
7.265163
{ "github_metadata": { "branch": "master", "commit_count": 202, "repo_created_at": "2015-05-16T14:09:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 141, "forks": 30, "issues": 3, "pull_requests": 1 }, "file_meta": { "content_id": "e2b82...
a41631dc-a60a-42f7-8e0e-65eb66b2b9fc
Clover24/LeetCode
LeetCode_345-Reverse_Vowels_of_a_String/ReverseVowelsofaString.h
#include <string> using namespace std; /* 345. Reverse Vowels of a String Difficulty: Easy Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = "hello", return "holle". Example 2: Given s = "leetcode", return "leotcede". */ class Solution { public: string rev...
ALGO
0.999678
5.906959
{ "github_metadata": { "branch": "master", "commit_count": 28, "repo_created_at": "2016-05-04T07:12:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "809fad35a...
e1da993f-181f-4c21-8c9e-7b6cc715e558
TheEntityCircle/oop-2nd-term
2025/lection02/04_overload_problem_solved.cpp
#include <iostream> using namespace std; // Базовый класс «зверушка» class Animal { protected: bool brain; public: Animal() { cout << "Animal created" << endl; this->brain = true; } // Все эти методы будут доступны в дочерних классах virtual void say() = 0; // Этот метод виртуал...
TOOL
0.967352
5.633551
{ "github_metadata": { "branch": "master", "commit_count": 172, "repo_created_at": "2016-03-06T22:36:57.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 8, "forks": 6, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0277efe89...
791257a8-7827-4dd1-9051-db8718b4e63e
coolfluid/dcm
dcm/cf3/dcm/equations/navierstokes/ComputePrimitiveVariables.hpp
// Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium // // This software is distributed under the terms of the // GNU Lesser General Public License version 3 (LGPLv3). // See doc/lgpl.txt and doc/gpl.txt for the license text. #ifndef cf3_dcm_equations_navierstokes_ComputePrimitiveVariables_hpp #...
ALGO
0.949058
6.055092
{ "github_metadata": { "branch": "master", "commit_count": 76, "repo_created_at": "2013-01-05T22:34:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 9, "issues": 4, "pull_requests": 0 }, "file_meta": { "content_id": "7bb4367dc0...
3612fdbc-ef6f-4037-810f-e80055a0ed0c
sangdo913/Algorithms
StudyAlone/StudyAlone/BOJ2933.h
//https://www.acmicpc.net/problem/2933 //BOJ 2933 ΉΜ³ΧΆφ #pragma once #include<iostream> #include<cstring> #include<queue> struct COD { int r, c; COD() :r(0), c(0) {} COD(int r, int c) :r(r), c(c) {} }; using namespace std; int R, C; COD que[10000]; int f, r; char arr[101][102]; bool visit[101][102]; int dr[4] =...
ALGO
0.999877
4.396117
{ "github_metadata": { "branch": "master", "commit_count": 850, "repo_created_at": "2018-01-06T13:25:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4ae357c9...
22fb000f-06ea-4a17-b2a0-46fa2ab47356
int2num/codecraft
2017/cdn/MCMF.h
// // Created by int2num on 3/24/2017. // #ifndef CDN_MCMF_H #define CDN_MCMF_H #include <lib_io.h> #include <bits/stdc++.h> #include<sys/time.h> #define MAXNODE 5000 #define INFCAPACITY 100000000 #define INFCOST INT_MAX / 2 #define eps 1e-8 #define MAXTYPE 1 #define FORTYPE 2 #define SERTYPE 3 using namespace std; e...
ALGO
0.998696
3.771017
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-04-27T02:57:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a038997cd3...
c13e92e0-7391-4e79-8cac-a39db613d2bf
ishandutta2007/codeforces-b
bixind/normal/792/C.cpp
#include <iostream> #include <vector> #include <deque> #include <algorithm> #include <queue> #include <iomanip> #include <set> using namespace std; string rem(const string& s, int v, int sum) { string s1; for (int i = s.size() - 1; i >= 0; --i) { if (sum % 3 == 0 || (s[i] - '0') % 3 != v) { ...
ALGO
0.999829
3.919007
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-04-11T01:05:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6366c59b4a6c...
a385e183-3f9f-4815-ac3f-b20f82a57ccc
nishant111/leetCode
545-boundary-of-binary-tree/545-boundary-of-binary-tree.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.99996
5.885327
{ "github_metadata": { "branch": "main", "commit_count": 1991, "repo_created_at": "2022-01-31T08:48: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": "5e4d87d48...
50c27d55-68b5-42ad-854b-6b78f01ee673
MaGaroo/Competitive-Programming
cf/319/C.cpp
//sobskdrbhvk //remember the flying, the bird dies ):( #include <bits/stdc++.h> using namespace std; typedef long long int LL; typedef long double LD; typedef pair<int, int> pii; typedef pair<LL, LL> pll; #define PB push_back #define MP make_pair #define L first #define R second #define sz(x) ((int)(x).size()) #defi...
ALGO
0.999975
3.269464
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2016-09-26T19:23:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "5139eb668...
f0527b4f-f43c-4530-8d4e-5cc7fc980ac5
Bhargav644/Questions
Trees/Balanced_height.cpp
#include <bits/stdc++.h> using namespace std; class Node { public: int data; Node *left; Node *right; Node(int val) { data = val; left = NULL; right = NULL; } }; int sum_of_all_nodes(Node *root) { if (root == NULL) { return 0; } return sum_of_all_n...
ALGO
0.999903
4.762218
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2022-07-11T14:21:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 3, "pull_requests": 1 }, "file_meta": { "content_id": "d3bac5eeb28...
4c0e885c-1e43-436c-9796-571448e83570
Kiritow/OJ-Problems-Source
HDOJ/5004_autoAC.cpp
#include <cstdio> #include <cstring> #include <queue> using namespace std; const int ROW = 16; const int COL = 10; const int dr[] = {-1, 0, 1, 0}; const int dc[] = { 0, 1, 0,-1}; struct Node { int r,c; Node() {} Node(int _r,int _c) { r = _r; c = _c; } }; int n; bool ok; char grid[ROW+1]...
ALGO
0.999892
3.465904
{ "github_metadata": { "branch": "master", "commit_count": 939, "repo_created_at": "2016-04-10T01:06:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 24, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "58c1eda...
98b5b3e4-7e94-4de1-b673-eced0ef96470
yarathealmighty/acmProjects
ubuildingteams/main.cpp
#include <bits/stdc++.h> using namespace std; typedef struct { bool wasChecked; int index; int color; //0 ures 1 kek 2 piros set<int> neighbors; }Node; Node nodes[100001]; bool coloring(Node& node){ if(node.wasChecked){ return true; } for(auto itr : node.neighbors){ if(no...
ALGO
0.999994
4.359927
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2023-11-14T16:52: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": "18197bbe36b...
95f4a841-7171-4e50-b825-cbe6a751281e
anand-avinash/BrahMap
brahmap/_extensions/PointingLO_tools.cpp
#include <functional> #include <pybind11/numpy.h> #include <pybind11/pybind11.h> #ifndef _DISABLE_OMP #include <omp.h> #endif #include "mpi_utils.hpp" namespace py = pybind11; template <typename dint, typename dfloat> void PLO_mult_I( // const ssize_t nsamples, // c...
ALGO
0.981229
5.893674
{ "github_metadata": { "branch": "main", "commit_count": 174, "repo_created_at": "2023-12-12T16:40:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3d59dd02d5...
bcf67581-4492-4764-875c-5bfcbbe51381
orestislamprousis/data_structures
doubly_linked_list/doubly_linked_list.hpp
#pragma once #include <stdexcept> namespace orla { template <class T> class doubly_linked_list { public: typedef bool (*item_comparator)(const T& a, const T& b); doubly_linked_list(item_comparator comparator); doubly_linked_list(const doubly_linked_list& list) = delete; ~doubly_linked_list(); si...
TOOL
0.973262
6.800771
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2019-11-04T22:34: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": "6b9b107afa...
eb830f35-564b-4e59-a222-03caa5d1e492
anzaika/guidance
programs/semphy/semphyStep.h
// $Id: semphyStep.h 702 2006-05-27 17:16:58Z ninio $ #ifndef ___SEMPHY_STEP #define ___SEMPHY_STEP #include "suffStatComponent.h" #include "semphyDistance.h" #include "rearangeTree.h" #include "minSpanTree.h" #include "tree.h" #include "sequenceContainer.h" #include "computePijComponent.h" #include "stochasticProces...
ALGO
0.99967
5.594862
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2016-08-28T12:48:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 11, "forks": 3, "issues": 4, "pull_requests": 0 }, "file_meta": { "content_id": "c80e7125...
1c9960bf-0712-4e49-9efe-0937c13d98b8
GaijinEntertainment/DagorEngine
prog/3rdPartyLibs/convert/nvtt-2.0.7/nvtt/squish/fastclusterfit.cpp
/* ----------------------------------------------------------------------------- Copyright (c) 2006 <NAME> <EMAIL> Copyright (c) 2006 <NAME> <EMAIL> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentat...
ALGO
0.988022
6.2068
{ "github_metadata": { "branch": "main", "commit_count": 148, "repo_created_at": "2023-09-16T15:07:56.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2677, "forks": 311, "issues": 35, "pull_requests": 4 }, "file_meta": { "content_id": "fa8e0...
7879f2ff-97e5-4bfb-bfc9-4b0658dfaf59
SokoloiD/made-cpp-2020-hw
vector_operations/src/vector_ops.h
#pragma once #include <iostream> #include <vector> namespace task { const double EPSILON = 1.0E-12; std::vector<int> operator+(const std::vector<int> &a, const std::vector<int> &b) { std::vector<int> c; for (size_t i = 0; i < a.size(); ++i) { c.push_back(a[i] + b[i]); } return ...
ALGO
0.998684
5.493706
{ "github_metadata": { "branch": "master", "commit_count": 65, "repo_created_at": "2020-09-18T08:47: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": "867d17d27...
fa7bab04-45a4-47c9-9697-a834371b46e5
ZL-Su/Matrice
Matrice/include/Matrice/algs/similarity.h
/*************************************************************************** This file is part of Matrice, an effcient and elegant C++ library for SC. Copyright(C) 2018, Zhilong (Dgelom) Su (<EMAIL>), all rights reserved. This program is free software : you can redistribute it and/or modify...
TOOL
0.970852
6.796182
{ "github_metadata": { "branch": "master", "commit_count": 1969, "repo_created_at": "2018-05-27T11:46:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 16, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "81759c...
f2fd7ff8-7961-4552-a494-c3fbb7b200c8
yukti-says/DSA
Queue/Queue.cpp
#include<iostream> #include<queue> using namespace std; /* //STL USING fifo order int main() { queue<int> q; q.push(10); q.push(20); q.push(30); q.push(40); cout<<"first element: "<<q.front()<<endl; //will give the first element cout<<"size is: "<<q.size()<<endl; cout<<"last eleme...
ALGO
0.989468
4.163322
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2025-06-12T16:22: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": "7c701e7989d...
e7bd9645-1dd7-4045-9938-3e4e989b1c50
ihsnayvid/Leetcode-Practice
Implementing Dijkstra Algorithm - GFG/implementing-dijkstra-algorithm.cpp
//{ Driver Code Starts #include<bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution { public: //Function to find the shortest distance of all the vertices //from the source vertex S. vector <int> dijkstra(int n, vector<vector<int>> adj[], int s) { vector<int> vis(n, 0), dist(...
ALGO
0.99996
5.799457
{ "github_metadata": { "branch": "main", "commit_count": 2393, "repo_created_at": "2022-04-22T05: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": "fc182d3a4...
fd19adaa-dc1b-46f4-9bef-9b1ba2705b45
cxy55555/AmazonStore
AmazonStore/util.h
#ifndef UTIL_H #define UTIL_H #include <string> #include <iostream> #include <set> /** Complete the setIntersection and setUnion functions below * in this header file (since they are templates). * Both functions should run in time O(n*log(n)) and not O(n^2) */ template <typename T> std::set<T> setIntersection(s...
TOOL
0.929388
5.061036
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2019-04-09T03:25: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": "0fd8992027...
5085f509-9d21-43a7-9dc6-588ace82f836
AoMas17/codeforces-perso
0289/B/accepted.cpp
#include <iostream> #include <vector> #include <string> #include <bits/stdc++.h> using namespace std; #define init ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); #define FORi(a) for (int i = 0; i < a; i++) #define FORj(a) for (int j = 0; j < a; j++) #define FORk(a) for (int k = 0; k < a; k++) #define ull unsigne...
ALGO
0.999822
3.587577
{ "github_metadata": { "branch": "main", "commit_count": 77, "repo_created_at": "2024-08-14T16:38: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": "2820b33fba9...
6ee07d52-9fdc-4975-a649-23d463e181b7
anujbansal16/APS-Assignment2
2018201096-aps/2018201096_4.cpp
#include <bits/stdc++.h> #include<time.h> using namespace std; template <class K, class V> class Unordered_map { list< pair<K,V> > *mymap; long long a,b; long long p; long m; public: Unordered_map(long n){ m=n; mymap=new list< pair<K,V> >[m]; initialize(); } void initialize(){ p=1000000007; srand(...
ALGO
0.977474
4.259344
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2018-10-07T12:29:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "88cec573ee...
b4897db1-5b5f-4751-9791-1409b6acf8aa
artur-amorim/PomeronHVQCD
physics/predictSigmaGammaProtonGluonKernel.cpp
#include <iostream> #include <string> #include <vector> #include "HolographicVQCD.h" #include "HQCDP.h" #include "GluonKernel.h" #include "SigmaGammaProton.h" #include "methods/optimization/NelderMead.hpp" #include "schrodinger/chebspec.h" using namespace std; int main(int argc, char ** argv) { // Kernel paramete...
ALGO
0.970092
4.812145
{ "github_metadata": { "branch": "master", "commit_count": 250, "repo_created_at": "2020-01-02T11:31:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2830f804...
9dd660af-fa38-43e9-bbbb-2f8928c7f356
jesyrivera/ie0217
Previos/Previo 2/sobrecargaOperadores.cpp
#include <iostream> using namespace std; class Fraccion { //se define la clase Fraccion int numerador, denominador; public: //los miembros son accesibles desde afuera de la clase Fraccion(int n, int d) : numerador(n), denominador(d) {} //se define el constructor //se sobrecarga el operador sum...
TOOL
0.973758
5.139654
{ "github_metadata": { "branch": "master", "commit_count": 233, "repo_created_at": "2024-01-08T20:28:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "25920d5f...
8808fddd-fcd9-4024-8008-a6e3cb179031
Audiodrome/exercism
cpp/bob/bob.cpp
#include "bob.h" #include <string> #include <iostream> #include <algorithm> bool ChkForCaps(std::string arg); bool ChkForAlphas(std::string arg); std::string RMWhiteSpc(std::string arg); std::string bob::hey(std::string input) { bool is_alpha = false, is_upper = false; std::string arg = RMWhiteSpc(input);...
TOOL
0.963365
3.901953
{ "github_metadata": { "branch": "master", "commit_count": 102, "repo_created_at": "2016-03-21T22:18:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "81e5a9ab...
3ac0ff30-7a7a-4a93-9e6c-7153820c80e7
hardikn13/Leetcode-Solutions
0div-idbig-omega-company-tagsdiv-idbig-omega-topbardiv-classcompanytagscontainer-styleoverflow-x-scroll-flex-wrap-nowrap-div-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-darkreader-inline-bgcolor-rgba0-8-26-005-data-darkreader-inline-bgcolordivamazon-divdiv-classcompanytagscontainer-tagoccurence3...
class Solution { public: int orangesRotting(vector<vector<int>>& grid) { int n = grid.size(); int m = grid[0].size(); int cnt = 0, cntFresh = 0; vector<vector<int>> vis(n, vector<int>(m, 0)); queue<pair<pair<int, int>, int>> q; for(int row =...
ALGO
0.999992
5.825182
{ "github_metadata": { "branch": "main", "commit_count": 5085, "repo_created_at": "2022-12-16T07:51: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": "d7726716f...
aad3e0c6-2c2f-45c3-9cc0-1e98c0531a39
hengma1001/openmm_ppc
platforms/opencl/src/OpenCLKernels.cpp
/* -------------------------------------------------------------------------- * * OpenMM * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
ALGO
0.986433
4.056198
{ "github_metadata": { "branch": "master", "commit_count": 5867, "repo_created_at": "2018-10-03T19:32:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c5bc74e...
8d14b48b-ac9c-4218-877c-67bfd5295788
singhjyotiraditya/Daily-LeetCode-Problems
0054-spiral-matrix/0054-spiral-matrix.cpp
#include <vector> using namespace std; class Solution { public: vector<int> spiralOrder(vector<vector<int>>& matrix) { vector<int> ans; if (matrix.empty()) return ans; // Handle empty matrix case int row = matrix.size(); int col = matrix[0].size(); int count = 0; in...
ALGO
0.999996
7.020566
{ "github_metadata": { "branch": "main", "commit_count": 102, "repo_created_at": "2024-01-13T21:17: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": "f98bee901d...
f0964a02-ec74-44f0-afff-15dc32dc0410
AneekG8/DSA
DATA STRUCTURES/ARRAY/ArraySearching/Ceiling&Floor.cpp
#include<bits/stdc++.h> using namespace std; void printarr(int *arr,int n) { int i=0; while(n--) { printf("%d ",arr[i++]); } printf("\n"); } int ceilSearch(int *arr,int low,int high,int x) { int mid; /* If x is smaller than or equal to the first element, then return the first element */ i...
ALGO
0.999954
4.421542
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2021-08-16T07:20: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": "37b8d01c5c...
d4069378-6d20-4ab9-a695-4990ffa5160a
umairanwar786/Rat-In-maze-using-stack-c-
ratinmaze.cpp
/*___________this code is generic you just changed da static memory to dynmaic and read data from file _____________*/ struct index { int x = 0, y = 0; index(int row, int col) { x = row; y = col; } }; #include<iostream> #include<stack>//using builtin stack #include<fstream> using namespace std; stack<index> solut...
ALGO
0.999966
3.704775
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-08-27T08:04:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d7582ce0bd54...
85673614-fabc-40cd-9b34-2a8c6742911e
kelvindisi/Data-Structures
FormarCompution.cpp
#include <iostream> #include <string.h> #include <ctype.h> using namespace std; struct Link { char value; Link *next; }; class Infix { private: Link *first; public: Infix(); void addItem(char); void print(); }; int main(void) { Infix act; bool condit = true; char val; while(c...
ALGO
0.999634
3.904153
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2020-02-19T13:11:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a0b20e455a...
1829a924-725d-41b6-8d61-4d48edb43069
davisking/dlib
dlib/geometry/rectangle_abstract.h
// Copyright (C) 2005 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #undef DLIB_RECTANGLe_ABSTRACT_ #ifdef DLIB_RECTANGLe_ABSTRACT_ #include "vector_abstract.h" #include <iostream> #include "../serialize.h" namespace dlib { class rectangle { /*! ...
TOOL
0.907473
7.381526
{ "github_metadata": { "branch": "master", "commit_count": 8325, "repo_created_at": "2014-01-29T00:45:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 14068, "forks": 3436, "issues": 41, "pull_requests": 5 }, "file_meta": { "content_id": ...
0c298009-2ce7-49b9-b01a-2ce683497705
mxaviersmp/class-competitive-programming
Lista-0/D.cpp
#include <iostream> #include <map> #include <vector> #include <algorithm> #include <string> using namespace std; bool comparator(char c) { if (isalpha(c)) return false; return true; } bool isNotAlnum(char c) { return isalnum(c) == 0; } int main() { map<char, int> histogram; string line; string::ite...
ALGO
0.999739
3.451989
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2020-03-07T15:44: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": "8d745d13e...
bf1aed1f-0d2e-4de1-b810-1d1b401a609a
shahraizali/DSA
linked List.cpp
#include <iostream> #include <conio.h> using namespace std; struct node{ int item; node *next; }; node *current = NULL; node *head = NULL; node *temp = NULL; void linkListMenu(); void createLinkList(); void displayLinkList(); node *findElement(int); void deleteLinkList(); void removeElementByValue(); void removeEleme...
ALGO
0.999799
4.516462
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2016-10-25T16:16: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": "88c2a76a96...
33db4630-4095-4b0f-9f56-a8b6884110e8
IntelligentSoftwareSystems/Galois
lonestar/scientific/cpu/delaunaytriangulation/QuadTree.h
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
ALGO
0.999898
7.266511
{ "github_metadata": { "branch": "master", "commit_count": 9932, "repo_created_at": "2018-06-18T17:33:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 331, "forks": 139, "issues": 57, "pull_requests": 7 }, "file_meta": { "content_id": "1bb...
2dce79d5-b1e7-44db-8313-ed44e894a87b
caiwaifung/algo
yandex/2017/qr/d.cc
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <limits> #include <map> #include <memory> #include <numeric> #include <queue> #include <set> #include <sstream> #include <string> #include <unordered_map> #include <unordered_set...
ALGO
0.999807
4.358033
{ "github_metadata": { "branch": "master", "commit_count": 608, "repo_created_at": "2015-05-10T11:28:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "07378fd4...
bfed0e0e-7188-4d6c-a257-9683355ef793
eunmann/chess-engine
src/MoveGeneration.hpp
#pragma once #include "GameState.hpp" #include "GameUtils.hpp" #include "Move.hpp" #include "Moves.hpp" #include "BitBoardUtils.hpp" #include "MagicBitBoards.hpp" #include "CachedMoves.hpp" namespace MoveGeneration { template<const Color color> auto get_pawn_moves(const GameState &game_state, Moves &moves) n...
ALGO
0.978779
7.41774
{ "github_metadata": { "branch": "main", "commit_count": 78, "repo_created_at": "2021-10-12T04:16:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4632af61d22...
1db7ff83-5825-4642-a97e-f1d512ac7043
Alpamyspyn/digi3d
Exercise9/09-DeformationTransfer/DeformationTransfer.cc
#include "../surface_mesh/Surface_mesh.h" #include "../surface_mesh/IO.h" #include "../eigen/eigen_include.h" #include <iostream> typedef surface_mesh::Surface_mesh Mesh; void copyPositions (const Mesh &src, Mesh &tgt) { for (Mesh::Vertex_iterator src_it = src.vertices_begin (), tgt_it = tg...
ALGO
0.999102
4.709113
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2019-03-25T14:59: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": "aa11097fa...
8f99a89a-f3ae-4ce3-9999-ce6205b5f8f7
samahakal/LeetCode_Septemper
September_17.cpp
// https://leetcode.com/problems/palindrome-pairs/ // 336. Palindrome Pairs class Solution { public: // check string is palindrome or not ? bool isPalindrome(string &a){ int i = 0; int j = a.size()-1; while(i<j){ if(a[i++]!=a[j--]) return false; } return ...
ALGO
0.999939
6.363038
{ "github_metadata": { "branch": "main", "commit_count": 39, "repo_created_at": "2022-09-02T06:16: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": "7d6d2e568a5...
a0644972-b528-41ca-8dd6-a6d272dd1450
liuzitong/TestProject
third-part/qxpack/indcom/algor/qxpack_ic_algor_arydet.hpp
#ifndef QXPACK_IC_ALGOR_ARYDET_HPP #define QXPACK_IC_ALGOR_ARYDET_HPP #include <cstring> #include <cstdint> #include <type_traits> #include <utility> #include <cmath> #include <cstdio> #include <cstdlib> #include <vector> #ifndef QXPACK_IC_CXX11 #if __cplusplus >= 201103L || ( defined(_MSC_VER) && _MSC_VER >= 1800 ) ...
ALGO
0.997701
6.523523
{ "github_metadata": { "branch": "master", "commit_count": 174, "repo_created_at": "2021-08-06T01:37: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": "d4594c9e...
dd06f78b-dc26-49db-91d0-4f32a4a2036a
Eaglebrave/the-C-repository
智力大冲浪(错).cpp
#include <bits/stdc++.h> using namespace std; int a[505], b[505]; bool hashn[505]; int n, m; void sort() { for (int i = 1; i < n; ++i) { for (int j = i + 1; j <= n; ++i) { if (b[i] < b[i]) { int tmp = b[i]; b[i] = b[i]; b[j] = tmp; tmp = a[i]; a[i] = a[j]; a[j] = tmp; } } } } int m...
ALGO
0.999945
3.248881
{ "github_metadata": { "branch": "C++", "commit_count": 7, "repo_created_at": "2021-02-20T02:32:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c3a68ccdd09f7...
767bbd9a-88dc-4332-b39f-6a7c2de223e5
renzov/Red_Crown
USACO/DEC19/Gold/cowmbat.cpp
#include<cstdio> #include<cstdlib> #include<climits> #include<algorithm> using namespace std; const int MAXN = 100005; int N, M, K; char S[MAXN]; int V[MAXN]; int sum[26][MAXN]; int W[26][26]; int dp[MAXN][26]; // dp[i][c] = min cost of converting string S[1 ... i] with last char being c int mindp[MAXN]; int main()...
ALGO
0.999988
3.518047
{ "github_metadata": { "branch": "master", "commit_count": 166, "repo_created_at": "2012-06-03T15:15:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "02cb3db9...
05d983b6-8cd6-4d7b-a318-b39d54e38eea
wilsonouo/algorithm
Sorting_And_Searching/Sum_of_Two_Values.cpp
#include <iostream> #include <algorithm> #include <map> using namespace std; int main() { int n, x; cin >> n >> x; multimap<int,int> value; pair<int,int> temp; for(int i = 0;i < n;i++){ cin >> temp.first; temp.second = i+1; value.insert(temp); } int ans = 0; ...
ALGO
0.999981
4.025069
{ "github_metadata": { "branch": "main", "commit_count": 26, "repo_created_at": "2023-09-28T14:21: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": "09d80644899...
d19a9b0e-8599-4edd-983e-37decf88a8f0
openmm/openmm
plugins/amoeba/platforms/common/src/kernels/hippoMutualField.cc
real fdamp3, fdamp5; computeMutualFieldDampingFactors(alpha1, alpha2, r, &fdamp3, &fdamp5); #ifdef COMPUTING_EXCEPTIONS fdamp3 *= scale; fdamp5 *= scale; #endif real invR2 = invR*invR; real invR3 = invR*invR2; #if USE_EWALD real ralpha = PME_ALPHA*r; real exp2a = EXP(-(ralpha*ralpha)); #ifdef USE_DOUBLE_PRECISION c...
ALGO
0.99981
5.418418
{ "github_metadata": { "branch": "master", "commit_count": 7207, "repo_created_at": "2013-05-20T17:42:52.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1644, "forks": 558, "issues": 408, "pull_requests": 22 }, "file_meta": { "content_id": "...
5cfc544e-b299-47b9-8fc0-b8b4ce956aee
byeongdori/Algorithm_byeongdori
BAEKJOON/Solved/13000~/17298.cpp
// 17298 - 오큰수 // 스택과 배열의 인덱스 활용 #include <iostream> #include <vector> #include <stack> using namespace std; int main() { int size, temp; stack<int> index_stack; cin >> size; vector<int> input_num, answer(size); for (int i = 0; i < size; i++) { cin >> temp; input_num.push_back(te...
ALGO
0.999998
4.254082
{ "github_metadata": { "branch": "main", "commit_count": 137, "repo_created_at": "2021-07-14T07:29:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a0e574004c...
c144ff5a-5a2f-4b4a-823e-9517619d9d79
faisalrafiq7/AOC23
3b.cpp
#include<bits/stdc++.h> using namespace std; #define int long long int N=140,ans=0,idx=0,lasti[2],lastj[2],num1,num2; int getnum(int i,int j,vector<vector<char>>v){ int num=0; int m=1; while(v[i][j]>=48 && v[i][j]<=57){ num+=(v[i][j]-'0')*m; m=m*10; j--; } return num; } bool ...
ALGO
0.999928
4.336882
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2023-12-01T15:34:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e78886a45cd1...
2e2ddf98-4878-4483-b436-66ab20a576fd
omlohade/dsa1
leetcode1/array 2d/med/74. Search a 2D Matrix.cpp
// 74. Search a 2D Matrix // Medium // Topics // Companies // You are given an m x n integer matrix matrix with the following two properties: // Each row is sorted in non-decreasing order. // The first integer of each row is greater than the last integer of the previous row. // Given an integer target, return true if ...
ALGO
0.999989
6.405531
{ "github_metadata": { "branch": "main", "commit_count": 37, "repo_created_at": "2025-02-26T22:38: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": "3941cab837e...
2c11b2d3-1119-4d29-907a-092e035de6db
Eosino/study-repo
IT/408/data-structure/list/SLinkList.cpp
/* 静态链表(带头),以数组方式实现的链表 优点:相比数组和顺序表增删不需要大量移动元素 缺点:不能随机存取;容量固定不变 场景:当前已少见,主要用于: 1、不支持指针的低级语言; 2、数据元素数量固定不变的场景(如操作系统的文件分配表FAT); */ #include <stdio.h> #include <stdlib.h> #include <string.h> typedef int ElemType; #define MaxSize 10 typedef struct { ElemType data; int next; //下个结...
ALGO
0.986635
4.336121
{ "github_metadata": { "branch": "master", "commit_count": 189, "repo_created_at": "2024-09-10T07:07: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": "05bc8663...
45ef43c6-2993-4a14-a9c4-39104a8df18e
tesseract-ocr/tesseract
src/textord/alignedblob.h
/////////////////////////////////////////////////////////////////////// // File: alignedblob.h // Description: A class to find vertically aligned blobs in a BBGrid, // and a struct to hold control parameters. // Author: <NAME> // // (C) Copyright 2008, Google Inc. // Licensed under the Apache L...
ALGO
0.926117
3.647426
{ "github_metadata": { "branch": "main", "commit_count": 6559, "repo_created_at": "2014-08-12T18:04:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 68226, "forks": 10036, "issues": 418, "pull_requests": 26 }, "file_meta": { "content_id": ...
af8b8ebd-76c1-47c1-8a06-25320d2b70f9
kamrul17/beganner-code
Problems on Arrays/quickSort.cpp
// select the pivot and // place it at its correct place in the sorted array. // smaller on the left and larger on the right. #include <bits/stdc++.h> using namespace std; int partitionIndex(vector<int> &arr, int low, int high) { int pivot = arr[low]; int i = low; int j = high; while (i < j) { ...
ALGO
0.999997
5.506036
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2024-07-21T17:19: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": "de9409f59be...
bdc98e1a-1b40-4016-a4ec-2ac6954943de
Abrahul-107/DSA_CHALLENGE
fenwickTree/01_buildFenwickTree.cpp
#include <bits/stdc++.h> using namespace std; /** * @brief Retrieves the sum of the first 'index' elements in the Fenwick Tree. * * This function uses a Fenwick Tree (also known as Binary Indexed Tree) * to efficiently calculate prefix sums. * * @param index The position up to which the sum is calculated (1-base...
ALGO
0.999996
6.850705
{ "github_metadata": { "branch": "main", "commit_count": 189, "repo_created_at": "2024-02-12T17:22: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": "9d1822371f...
8d013192-46f8-4da6-9a6a-9a74adac50bb
Ashutosh-rar/temp
22/22a.cpp
#include <iostream.h> #include <conio.h> int square(int x) { return x * x; } float square(float x) { return x * x; } int cube(int x) { return x * x * x; } float cube(float x) { return x * x * x; } void main() { clrscr(); int a = 4; float b = 2.5; cout << "Square of " << a << ": " << squa...
ALGO
0.996709
4.000597
{ "github_metadata": { "branch": "main", "commit_count": 98, "repo_created_at": "2025-04-07T12:12: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": "44f4d6cdd11...
8a29d1dc-c699-4cdf-9597-bed1bf5da651
Zhejian-Chi/LeetCode_Ref_cpp
leetcode/_2119-2120_GrayCode-SetMatrix0.cpp
// // _2119-2120_GrayCode-SetMatrix0.cpp // LeetCode // // Created by chizhejian on 11/23/19. // Copyright © 2019 chizhejian. All rights reserved. // #include <vector> //#include <functional> #include <string> //#include <unordered_map> //#include <algorithm> //#include <cstdlib> //#include <cmath> /* 2.1.19:gray...
ALGO
0.998237
3.982016
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2020-02-14T03:02: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": "a8bceea867...
1468789b-8a18-45aa-84fd-662d8402e853
LabinTech/RobotIK_2024
primjeri/kretanje_svi_smjerovi.cpp
#include <Arduino.h> #include <Servo.h> #include <SPI.h> #define Servo_sl 9 #define Servo_sd 10 #define Servo_pl 11 #define Servo_pd 12 Servo motor_sl; Servo motor_sd; Servo motor_pl; Servo motor_pd; void motor_stop() { motor_pd.write(90); motor_pl.write(90); motor_sl.write(90); motor_sd.write(90); } void m...
TOOL
0.990422
5.232695
{ "github_metadata": { "branch": "main", "commit_count": 9, "repo_created_at": "2024-10-02T15:25:02.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6e8fcab435d19...
e4270c66-6b41-4189-ab25-fdd8694b91b3
KTS-o7/Leetcode_Journey
LeetcodeSolutions/Prob1291_SequentialDigits.cpp
// Brute force code class Solution { public: vector<int> sequentialDigits(int low, int high) { vector<int>v,t; t={12, 23, 34, 45, 56, 67, 78, 89, 123, 234, 345, 456, 567, 678, 789, 1234, 2345, 3456, 4567, 5678, 6789, 12345, 23456, 34567, 45678, 56789, 123456, 234567, 345678, 456789, 1234567...
ALGO
0.999981
6.906717
{ "github_metadata": { "branch": "main", "commit_count": 250, "repo_created_at": "2023-08-07T17:53:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "67a305e854...
eeb22d95-1d7c-47ea-a04a-700e3d5da3c6
professorlineu/PROA3-2019-2
Atividades/Elbert Jean/Lista 3/Exercício 2.cpp
/********************************************************** - Autor: <NAME> - Descrição: Faça um programa que receba duas notas, calcule e mostre a média aritmética e a mensagem que se encontra na tabela a seguir: **********************************************************/ #include <iostream> #include <conio.h> #inclu...
TOOL
0.981411
4.355782
{ "github_metadata": { "branch": "master", "commit_count": 731, "repo_created_at": "2019-07-29T02:58:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 121, "pull_requests": 0 }, "file_meta": { "content_id": "74cd75...
bbe60236-ace8-467a-8888-520ed2ca5907
rym903/atcoder
AOJ/theSmallestWindow1.cpp
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) #define FOR(i,x,n) for(int i=x; i<(n); i++) #define ALL(n) begin(n),end(n) #define MOD (1000000007) #define INF (1e9) #define INFL (1e18) typedef long long ll; typedef unsigned int ui; typedef unsigned long long ull; template<clas...
ALGO
0.999994
4.016287
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2020-04-28T22:38: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": "28687d6c7...
1dea02c4-0f30-4844-9a27-8011b37c0e7d
sjm150/ps
baekjoon/13141/solution.cpp
#include <iostream> #include <algorithm> using namespace std; const int inf = 123456789; int edges[201][201], dst[201][201]; int main() { cin.tie(0); ios_base::sync_with_stdio(0); cout.precision(1); cout << fixed; int n, m; cin >> n >> m; for (int i = 1; i <= n; i++) { fill(dst[i], dst[i] + n +...
ALGO
0.999852
3.95507
{ "github_metadata": { "branch": "main", "commit_count": 800, "repo_created_at": "2023-02-14T08:02: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": "ab15be44b3...
55efaecb-ef73-4f11-941e-16b524c7165f
fsq/leetcode
1202. Smallest String With Swaps.cpp
class Solution { public: vector<int> fa; int find(int x) { return fa[x]==x ? x : fa[x] = find(fa[x]); } string smallestStringWithSwaps(string s, vector<vector<int>>& pr) { int n = s.size(); fa.resize(n); iota(fa.begin(), fa.end(), 0); for (auto& p : pr) ...
ALGO
0.999998
5.721768
{ "github_metadata": { "branch": "master", "commit_count": 1935, "repo_created_at": "2018-01-18T01:31:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 3, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "8797bce...
3670f872-599d-472d-8c17-b81be55d6340
VMammedov/4th-order-Runge-Kutta-Method-in-C-
runge-kutta(1st-derivative).cpp
#include <iostream> using namespace std; double dydx(double x, double y) { return (x * x - 2 * y); // your equation } double rungeKutta(double x0, double y0, double h, int n) { double k1, k2, k3, k4; double y = y0; for (int i = 1; i <= n; i++) { k1 = h * dydx(x0, y); k2 = h * dydx...
ALGO
0.999999
5.086496
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2021-04-21T23:24:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9d947569d03f...
66613ace-668a-4062-b5fc-a0644e766dab
blender/blender
source/blender/freestyle/intern/geometry/GeomCleaner.h
/* SPDX-FileCopyrightText: 2023 Blender Authors * * SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once /** \file * \ingroup freestyle * \brief Class to define a cleaner of geometry providing a set of useful tools */ #include "Geom.h" #include "../system/FreestyleConfig.h" #include "MEM_guardedalloc.h" ...
TOOL
0.918159
7.190757
{ "github_metadata": { "branch": "main", "commit_count": 152123, "repo_created_at": "2019-10-09T12:47:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 15670, "forks": 2395, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5...
5a52efd4-75fa-4c37-ae4c-d0d82a28687e
YashP16/Competitive-Programming
Infero Assignments/ASS3/BFS.cpp
#include <bits/stdc++.h> #define Pi 3.141592653589793 #define eps 1e-9 #define MAX int(1e9) #define MIN int(-1e9) #define REP(i,n) for(ll i=0;i<(n);i++) #define FOR(i,a,b,c) for(int i=a;i<b;i += c) #define FORd(i,a,b,c) for(int i=a;i>=b;i -=c) #define all(v) ((v).begin(),(v).end()) #define vi vector<int> #define vii v...
ALGO
0.99981
3.292377
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2017-02-24T20:48: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": "6129b9fad...
e4c790be-4fd2-46be-aa01-68e99a01d4a3
ishandutta2007/codeforces-u
unused/normal/855/C.cpp
#include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <algorithm> #include <bitset> #include <complex> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #includ...
ALGO
0.999985
4.558047
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:31: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": "aab666b9527f...
86d8eb9d-0599-4e0d-8b97-a2b7b8ecc75a
isnow4ever/xCLib
src/xccore/xc/math/robotics/trajectory_planning_temporal.h
/* * License:The MIT License (MIT) * * Copyright (c) 2013,2014 <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.999601
6.681747
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2016-12-02T13:39:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8ec5025210...
892b96a1-03e7-4f7a-91a5-bb1f8c130b06
TonyLiu2004/CPP-CS135
lab12/pairwise.cpp
//Author: <NAME> //Course: CSCI-135 //Instructor: <NAME> //Assignment: Lab12 D // //vector<int> sumPairWise(const vector<int> &v1, const vector<int> &v2) //returns a vector of integers whose elements are the pairwise //sum of the elements from the two vectors passed as arguments. // #include <iostream> #include <vec...
ALGO
0.999542
5.708015
{ "github_metadata": { "branch": "main", "commit_count": 226, "repo_created_at": "2023-01-25T18:23: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": "0fd5f83154...
7e2bab69-9b71-4273-8862-4d9d606c74b4
ishandutta2007/codeforces-r
rfpermen/normal/364/C.cpp
#include<bits/stdc++.h> #pragma GCC optimize("O3") #pragma GCC target("tune=native") #pragma GCC optimize("unroll-loops") using namespace std; template<class A, class B> ostream& operator<<(ostream& os, const pair<A, B> &p) { os << '(' << p.first << ',' << p.second << ')'; return os; } template<class T> ostream...
ALGO
0.999955
3.687764
{ "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": "689488d271a9...