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
b62e89ae-19e6-4840-8b54-63b15ee016ee
cthornsb/OtterGB
core/source/Support.cpp
#include <sstream> #include "Support.hpp" const char LOWERCASE_LOW = 97; const char LOWERCASE_HIGH = 122; const char UPPERCASE_LOW = 65; const char UPPERCASE_HIGH = 90; bool isNumeric(const std::string& str) { for (size_t i = 0; i < str.length(); i++) if ((str[i] < '0' || str[i] > '9') && str[i] != '.') re...
TOOL
0.911979
4.926616
{ "github_metadata": { "branch": "master", "commit_count": 169, "repo_created_at": "2020-10-12T01:02: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": "a55b8514...
4e2106f0-570d-4fda-9283-e1edb809d4de
gezilinll/tiles-image-encoder
src/jpeg/Jpeg.inl
#include <stdlib.h> // quantization tables from JPEG Standard, Annex K // there are a few experts proposing slightly more efficient values, // e.g. https://www.imagemagick.org/discourse-server/viewtopic.php?t=20333 // btw: Google's Guetzli project optimizes the quantization tables per image const uint8_t DefaultQuanti...
ALGO
0.997737
5.74979
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2023-03-18T01:26: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": "ee78ee3116c...
a478a11f-13af-462a-b977-d65a23e483e6
Atharv-k-4898/DSA-CPP-PVT
12.Char Array & Strings/Leetcode/1910_Remove_all_occ.cpp
#include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <numeric> #include <string> #include <map> #include <set> #include <limits.h> using namespace std; //Question :Remove all occurences of a substring //Link : https://leetcode.com/problems/remove-all-occurrences-of-a-substring/descripti...
ALGO
0.999757
5.709237
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2025-07-08T17:00: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": "3a07ac8fb5b...
9d4b236c-f7d6-4932-8bdb-6043e2617852
zhejianguk/Toy_Systolic_Array
include/compute/SystolicArray/SystolicArray.h
#ifndef SYSTOLICARRAY_H #define SYSTOLICARRAY_H #include <stdexcept> // for std::invalid_argument #include <iostream> using namespace std; // Forward-declare Matrix if you haven't included "Matrix.h" yet, // but here we assume we actually need the full definition of Matrix. #include "Matrix.h" // Mode tag definiti...
TOOL
0.911479
5.718443
{ "github_metadata": { "branch": "master", "commit_count": 17, "repo_created_at": "2025-04-10T08:18:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2cd042882...
416e180e-f428-4a12-9f83-c810e8990c0d
AndrewGraus/ats
src/pks/flow/constitutive_relations/overland_conductivity/unfrozen_effective_depth_evaluator.hh
/* Copyright 2010-202x held jointly by participating institutions. ATS is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Authors: <NAME> (<EMAIL>) */ //! Evaluates the unfrozen mobile depth. /*! In freezing...
ALGO
0.996413
7.401744
{ "github_metadata": { "branch": "master", "commit_count": 4767, "repo_created_at": "2022-10-11T18:46:04.000Z", "is_fork": true, "is_org_owned": false, "forked_from": "amanzi/ats", "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "...
1c3e9e4a-1573-413c-93d7-054065160e76
noel7781/Algorithm
JM/MFRQ.cpp
#include <iostream> using namespace std; struct RangeResult { int size; // 구간의 크기 int mostFrequent; // 가장 자주 등장하는 숫자의 출현 횟수 int leftNumber, leftFreq; // 왼쪽 끝 숫자와 왼쪽 끝 숫자의 출현 횟수 int rightNumber, rightFreq; // 오른쪽 끝 숫자와 오른쪽 끝 숫자의 출현 횟수 }; RangeResult merge(const RangeResult& a, const RangeResult& b) { ...
ALGO
0.999771
3.597008
{ "github_metadata": { "branch": "master", "commit_count": 91, "repo_created_at": "2021-07-20T12:36:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "126b49a0f...
d95b427c-ced2-48ce-bc61-fccf9ab589cd
Penacillin/benchmark-games
src/binarytrees/arena.h
#include <vector> #include <cmath> #include <ranges> #include <iterator> template <typename T> class Arena { static constexpr size_t INITIAL_SIZE = 1024; public: Arena(size_t n) { mCurrent.reserve(n); } Arena() : Arena(INITIAL_SIZE / (std::max(1lu, sizeof(T)))){}; size_t len(...
TOOL
0.937007
5.566283
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2022-09-30T22:43: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": "3b69f8117c...
8244106e-cef0-4786-8d65-055a5950e52b
Garyxud/melodic-all
src/mpc_local_planner/mpc_local_planner/include/mpc_local_planner/optimal_control/min_time_via_points_cost.h
/********************************************************************* * * Software License Agreement * * Copyright (c) 2020, <NAME>, All rights reserved. * * 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 Fr...
ALGO
0.964373
6.157123
{ "github_metadata": { "branch": "melodic-all", "commit_count": 1, "repo_created_at": "2020-09-14T02:37:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 9, "forks": 8, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "4b5a2...
60ab3973-6778-4571-a186-e377c68fc5b3
DLARlab/MuscleMemory_for_HighPrecisionLocomotion
src/unitree_ros_to_real/unitree_legged_real/src/utils/GaitGovernor.cpp
#include <algorithm> #include <math.h> #include "GaitGovernor.h" float velocity_regulation(float& fly_sel_velocity, float& transition_rate_temp, float (&desired_velocity_trunk)[3], float (&trunk_Vel_strongfil)[3], long motiontime) { float difference_sel_vel, difference_vel_realtime, difference_selv_integral, hd_F...
ALGO
0.998719
4.183595
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-07-02T18:20:10.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2d5a1c2c7b77c...
eab9c6da-a65c-4528-8b52-222abaf2fccc
inhyuk15/Algorithm
shortestPath/bfs/1238/bfs.cpp
#include<string> #include<sstream> #include<fstream> #include<iostream> #include<vector> #include<map> #include<algorithm> #include<regex> #include<queue> #include<set> #include <cmath> #define endl '\n' typedef long long ll; using namespace std; const int INF = 0x3f3f3f3f; int n, m, x; int adj[1111][1111]; int adj2[...
ALGO
0.999931
4.405994
{ "github_metadata": { "branch": "main", "commit_count": 69, "repo_created_at": "2022-09-21T00:35: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": "b90d3028730...
6607a548-8670-4343-8fb8-aec6e1dc49f9
artpixls/ART
rtengine/ipdehaze.cc
/* -*- C++ -*- * * This file is part of RawTherapee. * * Copyright (c) 2018 <NAME> <<EMAIL>> * * RawTherapee 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 3 of the License, or * ...
ALGO
0.986013
4.847061
{ "github_metadata": { "branch": "master", "commit_count": 10784, "repo_created_at": "2024-11-28T19:37:11.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 121, "forks": 5, "issues": 76, "pull_requests": 0 }, "file_meta": { "content_id": "b5c3...
c3339832-e2d6-44bb-a438-6de09b44a9f5
kowshikRoy/code
codeforces/contest/1326/D2.cpp
#include <bits/stdc++.h> using namespace std; int B = 31; int B2 = 37; const int MOD = 1e9 + 9; const int mod = 1e9 + 7; string findMax(string &s) { long long h1 = 0, h2 = 0; long long h3 = 0, h4 = 0; long long M = 1; long long M2 = 1; int pivot = 0; for (int i = 0; i < s.siz...
ALGO
0.999988
4.299954
{ "github_metadata": { "branch": "master", "commit_count": 133, "repo_created_at": "2019-10-19T15:54: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": "5796b0ab...
7135613e-ed82-4432-aeeb-aa4b17a49964
BioMedIA/MIRTK
Modules/Numerics/include/mirtk/GradientDescent.h
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 <NAME> * * 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.965315
7.468136
{ "github_metadata": { "branch": "master", "commit_count": 2061, "repo_created_at": "2016-01-03T22:25:55.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 197, "forks": 71, "issues": 64, "pull_requests": 3 }, "file_meta": { "content_id": "7884...
f1ebe156-e70a-4f02-9d6c-b9f5b272f092
mihirb-6/frequency-detect
FINAL_OPAMP_MUSICAL_NOTE_DETECTION_copy.ino
#include <arduinoFFT.h> // Include the ArduinoFFT library for performing Fast Fourier Transforms (FFT) // === CONFIGURATION === // SAMPLES: number of time-domain samples per FFT (must be a power of two for the algorithm) #define SAMPLES 128 // SAMPLING_FREQUENCY: rate at which we sample the analog input (in Hz) #defi...
ALGO
0.988432
6.38887
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2025-06-09T19:38: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": "4511d680144e...
c3cea227-eeb7-46a0-a3c2-a915be9dec86
daniel0412/coding
leetcode/code/LicenseKeyFormatting.h
/* 482. License Key Formatting * Now you are given a string S, which represents a software license key which *we would like to format. The string S is composed of alphanumerical *characters and dashes. The dashes split the alphanumerical characters within *the string into groups. (i.e. if there are M dashes, the st...
ALGO
0.998645
5.750438
{ "github_metadata": { "branch": "master", "commit_count": 352, "repo_created_at": "2017-03-19T21:37:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "35d8a7c4...
17031948-cb9c-4e26-8803-93eb1c1158ea
hellowcoder/cpcode
I_Prefix_Permutation_Sums.cpp
//Author: sandeep172918 //Date: 2025-03-05 13:21 #include <bits/stdc++.h> #define lli long long int #define fr(i,n) for(lli i=0;i<(n);i++) #define frs(i,s,n) for(lli i=s;i<(n);i++) #define fr1(i,n) for(lli i=1;i<=(n);i++) #define uint unsigned long long int #define srt(v) sort(v.begin(),v.end()) #define rsrt(v) sort(v....
ALGO
0.999521
3.68662
{ "github_metadata": { "branch": "master", "commit_count": 74, "repo_created_at": "2024-11-17T14:05: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": "dcdf26e21...
3957a61e-fb33-4063-96bf-48e20739647f
toporing/Toporing
include/wt_range_iterator.hpp
/*** BSD 2-Clause License Copyright (c) 2018, Adrián All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions a...
ALGO
0.951427
6.477172
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2024-04-12T18:58:11.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4a01f40652fd...
7dbc30a5-9bb0-4994-b959-c653601ccfb7
KaenChan/rank-kernel-appr
rank-svm/fenchel-rank/fenchel_dual_svm.h
#include <string> #include <vector> #include <math.h> #include <algorithm> #include <map> #include <iostream> #include <limits> #include <fstream> #include <sstream> #include <ctime> // #include <mex.h> using namespace std; #define BIAS 0 class pairwise_fenchel_dual_svm { public: pairwise_fenchel_dual_svm(string ...
DATA
0.952406
3.955767
{ "github_metadata": { "branch": "master", "commit_count": 8, "repo_created_at": "2016-05-25T07:35:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 8, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c39b59cfd1...
514573d8-46e3-4b2a-96b1-b01796adfb1f
ChristianTaborda/OOP-Work-1
matrices.cpp
/*************************************************************************************************** * Autores: <NAME> - 1632081-3743 * * <NAME> - 1628790-3743 * ...
ALGO
0.982621
4.762219
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2020-12-29T01:11:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6dbf67daf835...
d8772c8e-b7cc-4e36-8788-e0663cbe9425
gzy7/National-Crypto-math-Challenge
Task2.cpp
#include <iostream> #include <fstream> #include <string> using namespace std; #define MAXSIZE 1000 //定义表达式结构体 typedef struct _bds { string ys[8]; //存储8个字符串 }StBds; //定义情况结构体 typedef struct _datainfo { string gs[4]; //提取公因式后的表达式 }StDataInfo; //16种可能的情况 StDataInfo g_qk[] = { {"E","F","G","H"}, //1 {"E","F","G","(H+1...
ALGO
0.999304
3.257396
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2025-05-03T09:37: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": "9cc1a79048d4...
4529ad22-d735-480c-b94c-41ab8fbcda44
YuxinTao930/cpp
容器/deque/4.案例.cpp
#include<iostream> #include<vector> #include<deque> #include<algorithm> #include<ctime> //用随机数所需的ctime头文件 using namespace std; class Person { public: Person(string name, int score) { m_Name = name; m_Score = score; } string m_Name; int m_Score; }; void CreatPerson(vector<Pe...
TOOL
0.968548
3.506479
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-05-18T12:58: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": "920c4c210fc4...
9b1bfb26-5166-4f50-8ec7-6fc233cae1fe
lgeorget/adventofcode2022
03/1.cpp
#include <iostream> #include <algorithm> #include <string> #include <sstream> #include <iterator> #include <set> #include <vector> int total = 0; class Summer { private: bool done = false; public: Summer& operator*() { return *this; }; Summer& operator++() { return *this; }; const Summer& operator++(int) { retur...
ALGO
0.999895
4.031049
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2022-12-02T08:41: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": "9754a59343d...
171aadd6-f5cd-4d3f-9115-6867ba870685
ValterYudi/competitive-programming
Codeforces/div2/919/a.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<bool> vb; typedef pair<int, int> ii; #define MIN -1000000000 #define F first #define S second int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int t = 1; cin >> t; while(...
ALGO
0.999816
4.151876
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-04-08T17:25: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": "e3dbec12a6b7...
c2355945-73a6-4698-882f-c83261b19411
yagamilightkira/DSA
Array/moveNegNumtoLeft.cpp
#include <bits/stdc++.h> using namespace std; void printTheArr( vector<int> v, int n ) { for ( int i = 0; i < n; i++ ) { cout << v[i] << " "; } cout << endl; } // failing in case of 0s void moveNegNumtoLeft( vector<int> v, int n ) { int left = 0, right = n - 1; while ( left <= right ) { if ( v[left]...
ALGO
0.999985
4.653298
{ "github_metadata": { "branch": "master", "commit_count": 25, "repo_created_at": "2022-06-25T22:18: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": "4930cfd74...
08d45260-f02e-4517-bd8f-f6ee0caabaf9
PawelW91/Podstawy_CPP_Praktyka
Polski_SPOJ/CHAOS - Godzina chaosu (2)/main.cpp
//WERSJA 2 - PO ŚWIEZYM PODEJŚCIU DO ZADANIA. #include <iostream> #include <string> using namespace std; int odwracanie_liczby (int X){int X1=0;while (X!=0) {X1=X1*10+X%10;X/=10;} return X1;} //odwracanie liczby - do sprawdzenia czy jest palindromem. string czas(int h, int m) //zamiana inta na czas w formacie HH:M...
ALGO
0.997525
4.773921
{ "github_metadata": { "branch": "main", "commit_count": 108, "repo_created_at": "2023-06-12T21:02: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": "02baddff92...
b7617bf9-97f1-4f42-a1ef-bc9a7b6257b4
DESC-ALGORITHM/DESC-Yeseul
BaekJoon/C++/14500.cpp
#include <iostream> #include <vector> #include <cmath> #include <queue> using namespace std; int N, M, result = 0; typedef pair<int, int> x_y; queue<x_y> q; int map[501][501]; int visited[501][501]; int rowTemp[] = {-1,1,0,0}; int colTemp[] = {0,0,1,-1}; bool isValid(int x, int y) { if (x >= 0 && x < M && y >= ...
ALGO
0.999975
4.236588
{ "github_metadata": { "branch": "main", "commit_count": 34, "repo_created_at": "2023-03-24T00:31:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 3, "pull_requests": 3 }, "file_meta": { "content_id": "0d8e65bf9863...
138b196f-aeaf-428e-aa98-11ed38e7e212
darzo28/PP
Lab1/Lab1.cpp
#include <windows.h> #include <string> #include <iostream> #include <optional> #include <vector> using namespace std; HANDLE mutex; optional<int> ParseArgs(int argc, char* argv[]) { if (argc != 2) { cerr << "Неверное количество аргументов" << endl; cerr << "Пример: Lab1.exe <количество потоков>" << endl; ret...
TOOL
0.965361
4.26187
{ "github_metadata": { "branch": "master", "commit_count": 15, "repo_created_at": "2024-09-20T08:33: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": "c1b497825...
8eb71fb1-7779-412a-9940-ed0cfcb3f0ac
dosvidos/cpp-snippets
stl_stall.cpp
#include <vector> #include <iostream> #include <algorithm> #include <windows.h> // Класс Abc нам нужен для того, чтобы сделать у него функцию, // которая бы никогда не заинлайнилась. Благодаря этому, не // инлайнятся вызовы lower_bound в main. class Abc { public: virtual ~Abc() {} virtual int compare(int a, in...
TEST
0.995818
5.252262
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2015-05-09T23:01: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": "619f004f63...
1a430026-5718-47a1-a001-5c4d0920e2ac
rikuTanide/atcoder_endeavor
abc141/abc141_f.cpp
#include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> //namespace mp = boost::multiprecision; using namespace std; const double PI = 3.14159265358979323846; typedef long long ll; const double EPS = 1e-9; #define rep(i, n) for (int i = 0; i < (n); ++i) //#define rep(i, n) for (ll i = 0; i < (n); ++i) ...
ALGO
0.999994
3.904223
{ "github_metadata": { "branch": "master", "commit_count": 4423, "repo_created_at": "2020-12-05T04:36: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": "d7550f7...
75eda639-31ab-4e6b-b458-bac128f05111
MrBirdatGit/Decathletes
Grunt/fft/hdu4609.cc
//注意这里fft要开四倍 //求和翻一倍,fft补到2的幂次翻一倍 #include <stdio.h> #include <string.h> #include <iostream> #include <algorithm> #include <math.h> using namespace std; typedef long long ll; const double PI = acos(-1.0); //复数结构体 struct complex { double r,i; complex(double _r = 0.0,double _i = 0.0) { r = _r; i = ...
ALGO
0.999883
3.684895
{ "github_metadata": { "branch": "master", "commit_count": 103, "repo_created_at": "2017-07-01T10:01:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "741a3eab...
a3b07d03-c689-4fe8-a542-0ced97924a49
scylladb/scylladb
column_computation.hh
/* * Copyright (C) 2019-present ScyllaDB */ /* * SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0 */ #pragma once #include "bytes.hh" #include <memory> class schema; class partition_key; struct atomic_cell_view; struct tombstone; namespace db::view { struct clustering_or_static_row; struct vie...
TOOL
0.934409
7.676994
{ "github_metadata": { "branch": "master", "commit_count": 48526, "repo_created_at": "2014-12-24T13:16:33.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 14677, "forks": 1388, "issues": 3257, "pull_requests": 335 }, "file_meta": { "content_i...
0ec87f38-6981-4d03-b40c-f8f9664bfaa2
ChaHyeongChang/study
Object-basic-Programming-main/Lecture10/10-4.cpp
#include <iostream> #include <string> using namespace std; class Book { string title; int price; int pages; public: Book(string title = "", int price = 0, int pages = 0) { this->title = title; this->price = price; this->pages = pages; } void show() { cout << ti...
TOOL
0.933652
4.245324
{ "github_metadata": { "branch": "2025_spring", "commit_count": 89, "repo_created_at": "2025-03-21T10:14: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": "9f44...
3d8fd54d-64ed-4616-867f-f5cbcbbf06a3
grandmasterb80/udacity
SFND_Lidar_Obstacle_Detection/src/quiz/cluster/cluster_lib.cpp
/* \author <NAME> */ // Quiz on implementing simple RANSAC line fitting #include "../../render/render.h" #include "../../render/box.h" #include <chrono> #include <string> #include <unordered_set> #include "kdtree.h" #include "cluster_lib.h" //#define PRINT_DEBUG std::vector< std::vector < int > > euclideanCluster(co...
ALGO
0.996384
5.801794
{ "github_metadata": { "branch": "main", "commit_count": 269, "repo_created_at": "2020-10-04T10:13: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": "5f32a4c91b...
5b2311b8-3c8e-45a6-b168-5fb563a273da
jash459/Today
Striver/15. String/6. Print all interleavings of given two strings.cpp
// Link: https://www.geeksforgeeks.org/print-all-interleavings-of-given-two-strings/ /* 1. Brute #include <iostream> #include <string> #include <vector> using namespace std; void printIlsRecur(string str1, string str2, string interleaving, vector<string>& results) { // Base case: If both strings are empty, add th...
ALGO
0.999736
6.989686
{ "github_metadata": { "branch": "main", "commit_count": 11, "repo_created_at": "2024-10-04T06:35: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": "3ed7987fb5b...
5cd826e7-7637-44f2-a88c-942a35ea0d27
sagarpant1/CRYENGINE
Code/CryEngine/RenderDll/Common/Textures/PlanningTextureStreamer_Jobs.cpp
// Copyright 2001-2019 Crytek GmbH / Crytek Group. All rights reserved. #include "StdAfx.h" #include "PlanningTextureStreamer.h" #include <CryThreading/IJobManager_JobDelegator.h> DECLARE_JOB("TexStrmUpdate", TTexStrmUpdateJob, CPlanningTextureStreamer::Job_UpdateEntry) //#define PLAN_TEXSTRM_DEBUG #if defined(PLAN...
ALGO
0.994274
5.415432
{ "github_metadata": { "branch": "release_candidate", "commit_count": 9261, "repo_created_at": "2020-07-24T15:23:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id...
809bcae7-dee2-478b-b411-c2c924ccf423
ishandutta2007/codeforces-n
nfssdq/normal/566/D.cpp
/*********************************************************************\ |--\ --- /\ |-----------| ----- /-------| | | \ | / \ | | / | | \ | / \ | | | | | \ | / \ ...
ALGO
0.999925
4.384099
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:35:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c46946e37b01...
b4d7758d-57ba-4862-998a-8e4ab1651a89
MrityunjayNPandey/vscode
CP/A_Matching.cpp
/** * codeforces: _joKer_0 * codechef: joker_0000 * created: 20-04-2023 20:06:46 **/ // clang-format off #ifdef ONLINE_JUDGE #pragma GCC optimize("Ofast", "unroll-loops") #pragma GCC target("avx,avx2,fma") #endif #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace std; ...
ALGO
0.999978
4.242893
{ "github_metadata": { "branch": "master", "commit_count": 172, "repo_created_at": "2022-01-11T10:38: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": "00bcee34...
044b4267-f543-4b09-8799-1150556cafa6
WoneBone/CSPH
lab1_classwork_g21/problem2/problem2.cpp
#include <stdio.h> #include <iostream> #include <algorithm> #include <time.h> #include <fstream> #include <getopt.h> #include "CycleTimer.h" extern void evalSerial(int width, int height, int startRow, int totalRows, int* data, int output[]); extern void evalThread(int numThreads, int width, int height, int* data, in...
TOOL
0.944993
4.473927
{ "github_metadata": { "branch": "main", "commit_count": 188, "repo_created_at": "2024-09-16T16:01: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": "094942048d...
640ce18c-c5bf-4fd9-be00-7a3b789df21a
M-Berkaliyeva/L-System_Plants
src/math/vec3.h
//////////////////////////////////////////////////////////////////////////////// // // (C) <NAME> 2012, 2013 // // Modular Framework for OpenGLES2 rendering on multiple platforms. // // Vector class // namespace octet { class mat4t; class vec4; class vec3 { static const char *Copyright() { return "Copyright...
TOOL
0.916629
6.571067
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2014-01-28T21:40:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ba06b77c3c...
adcf7166-9600-4e2d-9fd3-a4aff0a5fd90
kirtan18/leetcode
Tree/Binary Search Tree Iterator.cpp
https://leetcode.com/problems/binary-search-tree-iterator/ // To do so, I declare 3 class variables: // curr is a pointer to which value we will "pop" next; // pos will keep track of what position in store we will push into next and, at the end of the caching part, // it will also tell us how big is our store (so ba...
ALGO
0.999973
6.68961
{ "github_metadata": { "branch": "main", "commit_count": 675, "repo_created_at": "2021-01-09T19:18:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "59e720976c...
4d7b3848-6dc8-4e80-a7c2-daafecf03f4d
ktthross/quetzalcoatl
old_main.cpp
/* Primary routine for Quetzalcoatl */ #include "basis.h" #include "constants.h" #include <complex> #include <math.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include <Eigen/Dense> #include <Eigen/CXX11/Tensor> #include <sstream> #include "binio.h" #include "common.h" #include "evalm....
ALGO
0.984468
3.840517
{ "github_metadata": { "branch": "master", "commit_count": 99, "repo_created_at": "2018-02-10T22:54:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "731e72613...
21296ffd-cfc8-4296-a229-303b56c64a2c
ShivamYadav-Coding/hacktoberfest-2021
cpp/dijkstraAlgo.cpp
#include <bits/stdc++.h> using namespace std; vector<pair<int, int>> graph[100005]; int dist[100005]; void djikstra(int src, int n) { for (int i = 1; i <= n; i++) dist[i] = INT_MAX; priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq; pq.push({0, src}); dist[src] ...
ALGO
0.999991
4.375971
{ "github_metadata": { "branch": "main", "commit_count": 225, "repo_created_at": "2021-10-03T09:19:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 20, "forks": 57, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ec988102...
7b01710d-a9d3-442a-bf14-900cf188543f
vibhubhatia007/FINAL450
Dynamic Programming/Q.1 Coin Change.cpp
#include<bits/stdc++.h> using namespace std; class Solution { public: long long int count( int s[], int m, int n ) { long long int dp[n+1][m]; for(int i=0;i<m;i++) dp[0][i]=1; for(int i=1;i<=n;i++) { for(int j=0;j<m;j++) { ...
ALGO
0.99998
4.679091
{ "github_metadata": { "branch": "main", "commit_count": 102, "repo_created_at": "2020-11-11T11:35: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": "426cf242e1...
1ce45902-add4-4277-bfda-e89238bea2be
Asem758/csc101-c-plus-plus-course-problem-
another_practice/Multiply_Two_Matrix_Array.cpp
#include <iostream> using namespace std; int main() { int a[10][10], b[10][10], multy[10][10], r1, c1, r2, c2; cout << "Enter Rows and Columns for first matrix: "; cin >> r1 >> c1; cout << "Enter Rows and Columns for Second matrix: "; cin >> r2 >> c2; while (c1 != r2) { cout <<en...
ALGO
0.998938
3.75019
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2024-06-22T19:25:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6ed3c8621d54...
43e825b6-956b-469d-9507-e73ff2d86eaa
1m188/algorithm
NJUST_OJ/类和对象.cpp
/* Description 设计一个类Person表示人,类的定义为: class Person{ private: char name[20],sex,Id[20]; public: void setPerson(char *p,char s,char *d){ } char* getName(){ } char getSex(){ } char* getId(){ } }; 然后将人的信息按照格式输出。 PS: 字符串之间的copy,比如要将字符串a的值赋值给字符串b使用 strcpy(b,a) Input 第一行输入一个t,代表t组数据,然后输入name...
ALGO
0.993999
3.535947
{ "github_metadata": { "branch": "master", "commit_count": 2060, "repo_created_at": "2019-07-03T03:19:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6b35731...
0a72fb7b-5365-4d2f-8231-0c35962d99ad
CrJyyy/gulugulu-Encrypted-transmission-and-privacy-protection-of-videos
core/security/crypto/sm3.cpp
#include "sm3.h" #include <vector> using namespace std; //------------------- 工具函数 ------------------- static inline uint32_t rotl32(uint32_t x, int n) { return (x << n) | (x >> (32 - n)); } static inline uint32_t P0(uint32_t x) { return x ^ rotl32(x, 9) ^ rotl32(x, 17); } static inline uint32_t P1(uint32...
ALGO
0.994092
5.298247
{ "github_metadata": { "branch": "main", "commit_count": 6, "repo_created_at": "2025-04-11T14:36: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": "ca79c504b62a...
31443229-9a16-4c85-a305-c146aaa2a38c
yewl1110/Study-Algorithm
BACKJOON/14889.cpp
#include <iostream> using namespace std; int N, result = 19000, score[2]; int arr[21][21], check[21]; int scorecheck() { for (int i = 1; i <= N; i++) { for (int j = i + 1; j <= N; j++) { if (check[i] == check[j]) { score[check[i]] += (arr[i][j] + arr[j][i]); } } } return abs(score[1] - score[0]); } ...
ALGO
0.999964
3.698028
{ "github_metadata": { "branch": "master", "commit_count": 35, "repo_created_at": "2019-05-17T06:58:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ec33ee60c...
cbeacfbd-78a1-4cf3-ba11-47eb542ab19e
olamaa/Fys4150
Problem_set_4/working_para.cpp
#include<armadillo> #include<iostream> #include<vector> #include<cstdlib> #include<iomanip> #include "omp.h" #include<chrono> //get boundary value inline int periodic(int i, int limit, int add) { return (i+limit+add) % (limit); } arma::mat initialize(int N, double temp,arma::vec& w,double& beta,double&E_tot,double...
ALGO
0.999574
6.066812
{ "github_metadata": { "branch": "main", "commit_count": 68, "repo_created_at": "2022-08-29T07:57: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": "641fe4b5a98...
c2a60e3d-ae71-4e83-a32a-c2ff2f4a9222
adikeshn/USACO-Practice
Usaco/Silver/Convoluted.cpp
#include <iostream> #include <fstream> #include <algorithm> #include <unordered_map> using namespace std; int N, M, line[10010] = {0}; bool containStarts[5001] = {false}, containEnds[5001] = {false}; unordered_map<int, int> starts, ending; int main() { cin >> N >> M; for (int x = 0; x < N; x++) { ...
ALGO
0.999975
3.737627
{ "github_metadata": { "branch": "main", "commit_count": 108, "repo_created_at": "2022-02-04T02:42: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": "7ab510c7a5...
0e8776ca-d10f-43ab-b043-2b93e5f9cf53
vvhitedog/spectavi
src/CascadingHashNn.h
#ifndef CASCADINGHASHNN_H #define CASCADINGHASHNN_H #include "BruteForceNnL1K2.h" #include "EigenDefinitions.h" #include <iostream> #include <list> #include <queue> #include <random> #include <unordered_map> #include <unordered_set> #include <vector> /* compute nearest neighbours using a cascade of hash tables: ht...
ALGO
0.999037
5.708593
{ "github_metadata": { "branch": "master", "commit_count": 119, "repo_created_at": "2020-01-29T09:05:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7b3f0b05...
08bfb894-15c5-4170-ba4d-7478033f4c02
makerdark98/ProgrammingContest
cf/547/e.cpp
#include <iostream> #include <vector> #define sci(n) scanf("%d",&(n)) #define scl(n) scanf("%I64d",&(n)) using namespace std; using lld = long long; using vi = vector<lld>; lld H, n; vi d; lld solve(); int main(){ scl(H), scl(n); d.resize(n); for(lld i=0;i<n;i++){ scl(d[i]); } printf("%I64d...
ALGO
0.999979
3.608208
{ "github_metadata": { "branch": "master", "commit_count": 96, "repo_created_at": "2017-07-23T06:45:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d395969fa...
1d3ace31-f388-48cb-8ad8-0c8ba2e38344
HimanshuShekhar18/LeetCode-Solutions
TRIE/421_Maximum_XOR_of_Two_Numbers_in_an_Array.cpp
class Solution { public: // TRIE IMPLEMENTATION // TC: O(n*32)+O(n*32) // SC: O(n*32)+O(n*32) struct Node { Node* links[2]; bool containsKey(int bit){ return (links[bit]!=NULL); } Node* get(int bit){ return links[bit]; } void create(int bit, Node* node){ links[bi...
ALGO
0.999912
5.611877
{ "github_metadata": { "branch": "main", "commit_count": 365, "repo_created_at": "2023-08-24T18:53: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": "07130aba31...
af6e8797-5ed0-44bd-bee0-35d987a51376
neerajsarna/DG_moments_deal
include_new_m_adaptive/MeshGenerator_Square.h
// generate a ring shaped mesh internally template<int dim> void Base_MeshGenerator<dim>::mesh_internal_square(const unsigned int parts_x,const unsigned int parts_y) { triangulation.clear(); Point<dim> p1; Point<dim> p2; std::vector<unsigned int > repetitions(dim); ...
ALGO
0.980506
4.467183
{ "github_metadata": { "branch": "master", "commit_count": 222, "repo_created_at": "2016-04-12T09:46: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": "22ee8e83...
8ca2b6b0-389b-4c51-9be6-9f7dc0fd85b3
igatoolsProject/igatools
source/linear_algebra/epetra_solver.cpp
//-+-------------------------------------------------------------------- // Igatools a general purpose Isogeometric analysis library. // Copyright (C) 2012-2016 by the igatools authors (see authors.txt). // // This file is part of the igatools library. // // The igatools library is free software: you can use it, redis...
ALGO
0.912324
6.57742
{ "github_metadata": { "branch": "master", "commit_count": 3340, "repo_created_at": "2015-03-21T01:30:31.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 31, "forks": 14, "issues": 5, "pull_requests": 0 }, "file_meta": { "content_id": "9a3bea...
a5ad8faf-c581-433e-97bd-63e0ae2ac054
BexelOJ/Cpp_Programming
C++_03_2025/20250329_DP_iterator.cpp
// Step 1: Define the Iterator Interface #include <iostream> #include <vector> // Iterator Interface template <typename T> class Iterator { public: virtual bool hasNext() const = 0; virtual T next() = 0; virtual T current() const = 0; virtual void reset() = 0; virtual ~Iterator() = default; }; //...
ALGO
0.999268
7.688915
{ "github_metadata": { "branch": "master", "commit_count": 77, "repo_created_at": "2025-02-11T11:13: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": "d80e39630...
cc7aa242-dc19-45a8-9d66-f8b682db444f
ffs97/iitk-courses
sem5/cs345/assignments/special-assign/leda/test/core/dict/seq.cpp
/******************************************************************************* + + LEDA 6.3 + + + seq.c + + + Copyright (c) 1995-2010 + by Algorithmic Solutions Software GmbH + All rights reserved. + *******************************************************************************/ #include <LEDA/core/sortseq...
ALGO
0.998441
3.277088
{ "github_metadata": { "branch": "master", "commit_count": 86, "repo_created_at": "2017-09-12T18:48:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 91, "forks": 88, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "d0df81f...
628dde85-905b-4508-854e-39aba84f463a
ompl/ompl
src/ompl/base/src/PrecomputedStateSampler.cpp
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2012, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
ALGO
0.92117
6.988775
{ "github_metadata": { "branch": "main", "commit_count": 4948, "repo_created_at": "2014-05-20T14:22:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1776, "forks": 636, "issues": 80, "pull_requests": 28 }, "file_meta": { "content_id": "dca...
69b6f20e-1747-491b-93a6-9adf6ec0c2f4
divanburger/ratcl-voxel
src/Noise.cpp
#include "Noise.h" float noise(int x, int seed) { int n = x * 1619 + seed * 6971; n = (n>>8)^n; return ((n * (n * n * 60493 + 19990303) + 1376312589) & 0x7fffffff) / 2147483647.0f; } float noise(int x, int y, int seed) { int n = x * 1619 + y * 31337 + seed * 6971; n = (n>>8)^n; return ((n * (n * n * 60493 + 19...
ALGO
0.998754
6.310878
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2013-03-11T20:25:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "602bddf19f...
c4dc8eed-6acc-4f8d-a97b-2dd8d5504eb2
ShengyeQiao/compiler
Compiler2021/pass/transform/LoopUnrollingPass.cpp
// // Created by hujin on 2021/8/12. // #include <cassert> #include "LoopUnrollingPass.h" #include "../../utils/IRUtils.h" #include "../../utils/BasicBlockUtils.h" const int MAX_LOOP_UNROLLING_SIZE = 1000; void replacePhiBlocks(BasicBlock *fromOld, BasicBlock *fromNew, BasicBlock *to) { for (auto &mir : to->mirT...
ALGO
0.986397
5.777586
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2021-10-18T07: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": "06c3503dd9...
72bfc3c9-ee30-4c59-8960-3af889f47033
samitmohan/DSA-in-C-
C++/Sorting/missingNumber.cpp
#include <iostream> #include <vector> using namespace std; typedef long long ll; // https://leetcode.com/problems/missing-number/ // Amazon Question // Approach 1 : Math int missingNumber(vector<int> &nums) { int sum = 0; for (int i = 0; i < nums.size(); i++) { sum += nums[i]; } int x = n...
ALGO
0.999906
5.212686
{ "github_metadata": { "branch": "master", "commit_count": 67, "repo_created_at": "2022-04-02T18:20:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bdecba598...
b86d4776-b722-4866-a5c1-90f2a7f19e82
wubaoyuan/Lpbox-ADMM
matlab/demo/matching/src/asg/smac/graph_matching_SMAC/cpp/mex_matchingW2.cpp
//function [W,indi1i2j1j2,indiW_indjW] = mex_matchingW2(G1,W1,G2,W2,F12,I12,W12,f,options); // <NAME>, 21-Apr-2008 17:31:23 // This software is made publicly for research use only. // It may be modified and redistributed under the terms of the GNU General Public License. # undef NDEBUG # include "GraphMatching.cpp" v...
ALGO
0.996767
3.942221
{ "github_metadata": { "branch": "master", "commit_count": 99, "repo_created_at": "2018-07-10T07:15:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 92, "forks": 19, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "e25a4d7...
938cf0fc-dc8c-4b03-bc9b-21a8c08813a9
nicholasbl/MakeOpenVDB
src/main.cpp
#include "common.h" #ifdef ENABLE_VTK # include "vtkplugin.h" #endif #include "binaryplugin.h" #include <cxxopts.hpp> #include <openvdb/openvdb.h> #include <openvdb/tools/Composite.h> #include <openvdb/tools/Prune.h> #include <array> #include <cxxabi.h> #include <iostream> #include <queue> #include <string_view...
TOOL
0.940055
6.257422
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2020-09-16T15:26: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": "a2e66b580...
206090f4-0f48-44f2-80e6-2e49a85b4507
sequix/algorithm
questions/hdu/1245.cpp
// HDU No.1245 Saving James Bond (Dijkstra) (998MS 1796K) #include <queue> #include <cmath> #include <cstdio> #include <iostream> using namespace std; const int MAX_V = 100; const double INF = 1e13; typedef pair<double, int> P; int V, pre[MAX_V+5]; double D, G[MAX_V+5][MAX_V+5]; double x[MAX_V+5], y[MAX_V+5], d[MAX_V+...
ALGO
0.999805
3.864603
{ "github_metadata": { "branch": "master", "commit_count": 16, "repo_created_at": "2016-12-17T10:46: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": "05a123b1a...
2ed552fd-ada4-4d58-a30d-20a9878c88d7
bryce-wan/Course-Resources-of-ZJU-Automation
数据结构基础/hw/Univerasl Travel Sites.cpp
#include <iostream> #include <cstring> #include <queue> #include <vector> #include <map> #include <string> using namespace std; #define size 1000 #define inf 0x3f3f3f3f #define ll unsigned long long ll res[size] = {0}; ll pre[size] = {0}; ll flow[size][size] = {0}; ll edge[size][size] = {0}; int cnt = 1; map<string...
ALGO
0.999847
4.062035
{ "github_metadata": { "branch": "main", "commit_count": 20, "repo_created_at": "2023-06-30T10:46:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "860e9857d5...
77705b13-a840-4c32-a3a4-208d711c211c
ishandutta2007/codeforces-s
shoemakerjo/normal/901/A.cpp
#include <bits/stdc++.h> using namespace std; int main() { int h; cin >> h; int vals[h+2]; for (int i = 0; i <= h; i++) { cin >> vals[i+1]; } int nh[h+2]; int sec[h+2]; nh[0] = 0; sec[0] = -1; for (int i = 1; i <= h+1; i++) { nh[i] = -1; sec[i] = -1; } bool change = false; vector<int> o1; vector<i...
ALGO
0.999786
3.179818
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:07:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "278118144373...
d42872c1-0224-4190-a1c7-6be943ff3422
queuedq/ps
BOJ/14778/main.cc
#include <bits/stdc++.h> #define endl "\n" #define all(x) (x).begin(), (x).end() using namespace std; using lld = long long; using pii = pair<int, int>; using pll = pair<lld, lld>; //////////////////////////////////////////////////////////////// const int MN = 25005; int N, B; struct Cow { int a, b; }; vector<Cow> P, ...
ALGO
0.999905
3.799611
{ "github_metadata": { "branch": "master", "commit_count": 824, "repo_created_at": "2018-05-26T14:07:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8eef8da7...
1c96a88d-0a45-4f1d-bd59-a71e5cfa2059
haja-fgabriel/ppd
Laborator/Lab 4/PolynomeAdder/PolynomeAdder/PolynomeAdder.cpp
#include <iostream> #include <cstring> #include <ctime> #include <queue> #include <thread> #include <condition_variable> #include "FileUtils.h" #include "Lista.h" #include "Logging.h" #include "Worker.h" using namespace std; int numThreads; queue<Monome> monomes; bool done; bool producerNotStarted; Lista l; std::con...
DATA
0.911723
4.21378
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-09-28T12:14: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": "7621662694...
cf7fbb75-c165-426a-8871-e6f2d4d881f9
dotnet/wpf
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/Waffler.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //----------------------------------------------------------------------------- // // // Description: // Con...
ALGO
0.913585
5.303962
{ "github_metadata": { "branch": "main", "commit_count": 6436, "repo_created_at": "2018-10-19T01:55:23.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 7391, "forks": 1216, "issues": 1307, "pull_requests": 190 }, "file_meta": { "content_id": ...
18a3ec58-41f4-4556-bc2e-a41219bd3558
ishandutta2007/codeforces-i
ilya_msu/normal/406/A.cpp
#define _CRT_SECURE_NO_WARNINGS #pragma comment(linker, "/STACK:128000000") #define _USE_MATH_DEFINES #include<iostream> #include<vector> #include<string> #include<stack> #include<algorithm> #include<cmath> #include<set> #include<queue> #include<sstream> #include<utility> #include<map> #include<ctime> #include<cstdio> ...
ALGO
0.999477
3.653802
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T05:39: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": "8b033d1625a8...
1deb2f3b-8723-4f3d-92af-4a4a668d0e73
schdub/FreakCode
stl_magic.cpp
#include <algorithm> #include <vector> // Напишите алгоритм remove_nth, который удаляет элемент из // последовательности по номеру этого элемента. template<class FwdIt> FwdIt remove_nth(FwdIt p, FwdIt q, size_t n) { for (size_t current = 0; current < n && p != q; ++p, ++current); if (p == q) { return ...
TOOL
0.930915
6.555266
{ "github_metadata": { "branch": "master", "commit_count": 18, "repo_created_at": "2014-09-13T18:50:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9a97c2245...
0822e91d-fc07-4342-8a55-a6ef9207a6bd
anjhergustavo/Aprendiendo-C-plus-plus
33.1 Determinar si un elemento del array es la suma de todos los demas elementos del array.cpp
/* Descripción: Escribe un programa que defina un vector de números y calcule si existe algún número en el vector cuyo valor equivale a la suma del resto de números del vector.*/ #include <iostream> #include <conio.h> //#include <stdlib.h> //Librería de system("pause"); using namespace std; int main(){ int...
ALGO
0.998393
3.847281
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2018-09-05T08:48: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": "78710ff348...
118b1e74-34bf-44f7-9085-b90233f8fc8f
DTPMH/motion-plan-stduy
litcar_exp/learning_control_car/src/circle_car.cpp
#include "ros/ros.h" #include <iostream> #include <math.h> #include<geometry_msgs/Twist.h> //运动速度结构体类型 geometry_msgs::Twist的定义文件 #include<geometry_msgs/PoseStamped.h> #include<nav_msgs/Odometry.h> #include <nav_msgs/Path.h> #include <vector> #include <Eigen/Eigen> using std::vector; nav_msgs::Odometry pot_really;/...
TOOL
0.936575
3.347945
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2021-12-23T06:41: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": "23b1abd9df6a...
6e1ecdff-34d4-4d1d-8611-b2ebc81a030d
sxs-collaboration/spectre
src/Evolution/Systems/GrMhd/ValenciaDivClean/NewmanHamlin.hpp
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <cstddef> #include <optional> #include <string> #include "Evolution/Systems/GrMhd/ValenciaDivClean/PrimitiveRecoveryData.hpp" /// \cond namespace EquationsOfState { template <bool, size_t> class EquationOfState; } // namesp...
ALGO
0.999092
6.555538
{ "github_metadata": { "branch": "develop", "commit_count": 17103, "repo_created_at": "2017-04-07T17:28:20.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 168, "forks": 202, "issues": 530, "pull_requests": 57 }, "file_meta": { "content_id": ...
80b82569-297a-426e-82b2-66d4114b0423
Chandan1707/Algorithms
C++/Graph Algorithms/Djkatra_Algorithm_Adjacency_list.cpp
#include<iostream> #include<string> using namespace std; #define INF 999999; template <class Name> class Visited_and_Distance{ public: Name info; bool viseted; int distance; // Visited_and_Distance(Name name, int distance = INF){ // info = name; // viseted ...
ALGO
0.998523
4.394608
{ "github_metadata": { "branch": "master", "commit_count": 29, "repo_created_at": "2022-04-18T16:39:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2ff8a9d01...
ad0bf8f2-cd77-4aea-873a-dfb6ee467d03
Koyingtw/CP
Codebook-master/Math/ModInv.cpp
// 解 (ax == 1) mod p 。p 必須是質數,a 是正整數。 ll modinv(ll a, ll p) { if (p == 1) return 0; ll pp = p, y = 0, x = 1; while (a > 1) { ll q = a / p, t = p; p = a % p, a = t, t = y, y = x - q * y, x = t; } if (x < 0) x += pp; return x; } // 解 (ax == b) mod p 。p 必須是質數,a 和 b 是正整數。 ll modinv(l...
ALGO
0.99802
3.385514
{ "github_metadata": { "branch": "main", "commit_count": 79, "repo_created_at": "2021-07-10T12:46:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "40895eeca13...
cf63c552-2022-42fe-b0b8-284589c60b02
prasanna86/PHD_Shape
deformetrica/src/algo/energy_minimization/BayesianAtlasEstimator.txx
/*************************************************************************************** * * * Deformetrica * * ...
ALGO
0.997993
5.46583
{ "github_metadata": { "branch": "master", "commit_count": 78, "repo_created_at": "2016-08-17T23:20: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": "3ac09fd34...
0ed700dd-1d5f-4468-88a4-906ce68bb46a
Baptiste-98/Projet_ordonnacement_machine_parallele
main.cpp
#include <iostream> #include "utilities.h" #include <vector> #include <algorithm> #include <chrono> #include <random> #include <typeinfo> #include <thread> using namespace std; // Donnée du pb int const J = 20; //nombre de jobs int const M = 7; // nombre de machine int const H = 1000; // Horizon int const BigM=100...
ALGO
0.999982
3.883374
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2021-03-25T16:24: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": "7fd066e78e60...
af372559-03c5-4421-8a80-c823445b19a4
M-E-U-E/Current
A. Doremy's Paint 3.cpp
#include<bits/stdc++.h> #define ll long long #define endl "\n" using namespace std; bool cmp(pair<int,int>a,pair<int,int> b) { if(a.first > b.first) return true; else if(a.first == b.first and a.second<b.second) return true; return false; } void solve() { ll n; cin >> n; map<ll,...
ALGO
0.99997
4.09294
{ "github_metadata": { "branch": "main", "commit_count": 551, "repo_created_at": "2023-06-27T21:59: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": "75b940a71b...
518711b0-8b5b-4758-bc99-970ae6a048b3
matheusAFONSECA/C204
TEORIA/PROVA/TREINO/arvores_10.cpp
#include <iostream> #include <iomanip> #include <list> using namespace std; struct treenode { float info; treenode *esq; treenode *dir; }; typedef treenode* treenodeptr; // redefinindo treenode como um ponteiro void tInsere(treenodeptr &p, float x) // funcao que insere um valor na arvore { if(p == NULL) { p...
ALGO
0.999603
4.274104
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2023-03-06T03:02: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": "85e42b3be8c5...
6102c8c8-9cd0-42e5-ad83-d52a3b021911
Jiy-park/test
clear_baekjoon/1167_트리의_지름.cpp
//1167_트리의 지름 :: 2022_09_23__00:24 //https://www.acmicpc.net/problem/1167 #include<iostream> #include<vector> #include<stack> using namespace std; vector<pair<int,int>> tree[100001]; bool visit[100001]; void print(int N){ for(int i = 1; i <= N; i++){ cout<<i<<"\n"; for(int j = 0; j < tree[i]...
ALGO
0.999845
3.917095
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2022-10-05T14:36:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4d48d07154...
7bd4f00d-242b-4270-bd1f-51fb7e664582
Mooliecool/windows
shared source/sscli20/clr/src/vm/comarrayhelpers.cpp
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to ...
TOOL
0.996935
4.79762
{ "github_metadata": { "branch": "master", "commit_count": 13, "repo_created_at": "2018-01-06T16:45:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 49, "forks": 34, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "60473e1...
830d5c10-a6d6-4362-99da-5bda2523e1da
Wikzo/PP-Medialogy-exercises-2012
Exercises/RecursionCounting/RecursingCounting/Main.cpp
#include <iostream> #include <cstdlib> using namespace std; void write_vertical(int n) { // Base/stopping case if (n < 10) cout << n << endl; else { write_vertical(n / 10); // the number n where the last digit is removed write_vertical(n % 10); // the last digit in n } } // This recursive way is more expen...
ALGO
0.99985
5.622528
{ "github_metadata": { "branch": "master", "commit_count": 32, "repo_created_at": "2012-10-05T23:31: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": "b771822f2...
bd3707c1-7b63-41fb-9fb7-416bd2f371f7
amish0301/DSA-Codes
1657 - Determine if Two Strings Are Close.cpp
class Solution { public: bool closeStrings(string word1, string word2) { vector<int> w1(26,0) , w2(26,0); vector<int> charCheck1(26,0) , charCheck2(26,0); for(char c: word1) { w1[c-'a']++; charCheck1[c-'a'] = 1; } for(char c: word2) { w2[...
ALGO
0.999994
6.217741
{ "github_metadata": { "branch": "main", "commit_count": 121, "repo_created_at": "2022-04-30T09:25:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "22de690935...
f3b4c1ca-fd2f-42e2-8ee1-c621ce853947
pip010/scirun4plus
src/Packages/Teem/Dataflow/Modules/Tend/TendNorm.cc
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2009 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
TOOL
0.912
4.598117
{ "github_metadata": { "branch": "master", "commit_count": 88, "repo_created_at": "2014-01-08T19:18:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "9c95cd13e...
c6e97d24-450c-49d4-ae32-cb0649549afb
mnishiguchi/cpp_notebook
data_structures/task_circular_linked_list_3/task_circular_linked_list_3/main.cpp
// // main.cpp // task_circular_linked_list_3 // // Created by <NAME> on 10/9/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #include <iostream> #include <iomanip> using namespace std; /** * Class that represents a node */ class Task { public: // Functions bool isCompleted(); void perfor...
TOOL
0.926019
5.837214
{ "github_metadata": { "branch": "master", "commit_count": 149, "repo_created_at": "2015-09-04T15:02:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "98852888...
778dcc43-ee1b-482b-a614-6f25081f7a2a
dstbstr/AdventOfCode
AdventOfCode/src/2022/d6_TuningTrouble.cpp
#include "Common.h" SOLUTION(2022, 6) { enum struct MessageType { Signal = 4, Message = 14}; constexpr size_t FindUnique(std::string_view input, MessageType messageType) { std::vector<char> allChars; size_t runLength = static_cast<size_t>(messageType); for (size_t i = 0; i < input.size...
ALGO
0.9975
5.339089
{ "github_metadata": { "branch": "main", "commit_count": 51, "repo_created_at": "2024-10-10T23:08: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": "e7d0619fa64...
291b2a7f-25f0-4940-93b5-bc27f103d5f0
carlosgspsp/FP_UGR
Practicas/EjercicioClase1/pascua.cpp
/** * @file pascua.cpp * @brief Calcula la fecha del domingo de Pascua de un año * * @author <NAME> * @date Noviembre-2020 * * La fecha del domingo de Pascua corresponde al primer domingo después de la primera * luna llena que sigue al equinoccio de primavera. El algoritmo que se presenta a * continu...
ALGO
0.999308
4.660455
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-04-06T11:00: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": "c33fc896e435...
96e52170-6465-4b07-9c30-b69c04508eef
pravin130794/DSA
maxSumInSubArray.cpp
#include <iostream> using namespace std; int solve(int arr[]){ int maxSum = 0; int curSum = 0; int start =0, end = 0, s=0; int len = sizeof(arr); for (int i = 0; i < len; i++) { curSum = curSum + arr[i]; if(curSum > maxSum){ maxSum = curSum; start = s; end = i; } ...
ALGO
0.999919
4.485421
{ "github_metadata": { "branch": "main", "commit_count": 17, "repo_created_at": "2022-04-21T15:06:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "4571c09c57f...
d059ca9d-19fa-4987-9634-1646753af0f9
davisking/dlib
dlib/statistics/dpca_abstract.h
// Copyright (C) 2009 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #undef DLIB_DPCA_ABSTRaCT_ #ifdef DLIB_DPCA_ABSTRaCT_ #include <limits> #include <cmath> #include "../matrix/matrix_abstract.h" namespace dlib { // ------------------------------------------------------...
ALGO
0.924882
7.38988
{ "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": ...
78287743-a49d-4b20-a82a-364f90933ba0
gjha133/Leetcode
1318-minimum-flips-to-make-a-or-b-equal-to-c/1318-minimum-flips-to-make-a-or-b-equal-to-c.cpp
class Solution { public: int minFlips(int a, int b, int c) { int ans = 0; while(c or a or b) { if(c&1) // If c's LSB is 1 { if( (a&1) == 0 and (b&1) == 0) ans++; // If a's and b's LSB is 0, we need to change any one of them. So ans + ...
ALGO
0.999921
5.674431
{ "github_metadata": { "branch": "main", "commit_count": 2428, "repo_created_at": "2022-03-18T06:40: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": "0eb34fb96...
607acde3-091d-4b4d-b781-0e8e95340ca6
maxim1317/MatMod
Fluid/src/headers/Logic.cpp
#include "fluid.h" void init(double deltaT, double deltaX, double maxT, double maxX, bool flag) { Field fluid(deltaT, deltaX, maxT, maxX, flag); Field diff = fluid; // printf("!"); for (int i = 1; i <= fluid.numT/2; ++i) { for (int j = 1; j < fluid.numX-1; ++j) { ...
ALGO
0.997927
4.168952
{ "github_metadata": { "branch": "master", "commit_count": 62, "repo_created_at": "2017-11-20T10:37:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9589a1e03...
5e6f8cc8-5e1b-4ecf-850b-d948ada1bd45
ehnryx/acm
codeforces/1109/c.cpp
#include <bits/stdc++.h> using namespace std; #define _USE_MATH_DEFINES typedef long long ll; typedef long double ld; typedef pair<int,int> pii; typedef complex<ld> pt; typedef vector<pt> pol; const char nl = '\n'; const int INF = 0x3f3f3f3f; const ll INFLL = 0x3f3f3f3f3f3f3f3f; const ll MOD = 1e9+7; const ld EPS = 1...
ALGO
0.999942
4.530943
{ "github_metadata": { "branch": "master", "commit_count": 79, "repo_created_at": "2018-05-03T04:18:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4e9c096c9...
be393251-3542-4ce4-be6b-8f4185099890
videosegmentation/video_segment
segmentation/segmentation_graph.h
// Copyright (c) 2010-2014, The Video Segmentation Project // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // notice...
ALGO
0.995777
3.798935
{ "github_metadata": { "branch": "master", "commit_count": 42, "repo_created_at": "2014-06-14T06:10:54.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 168, "forks": 80, "issues": 17, "pull_requests": 1 }, "file_meta": { "content_id": "ba0d73...
5d4182e5-a426-401b-9ea6-95c3f1b00734
kimwalisch/primesum
lib/primesieve/include/primesieve/iterator.hpp
/// /// @file iterator.hpp /// @brief The iterator class allows to easily iterate (forwards /// and backwards) over prime numbers. /// /// Copyright (C) 2019 <NAME>, <<EMAIL>> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PRIMESIEVE_...
ALGO
0.986187
6.370489
{ "github_metadata": { "branch": "master", "commit_count": 375, "repo_created_at": "2016-05-16T10:42:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 38, "forks": 3, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3038069...
8e630e48-4af0-4fa6-a011-c27e3176dbd2
ashnove/cp-submissions
codeforces/949/A.cpp
/* * @author : ashnove */ #include <bits/stdc++.h> using namespace std; #define pb push_back #define all(x) (x).begin(),(x).end() #define F first #define S second #define Th third #define nl cout << endl; #define pb push_back #define f(i, a, b) for (ll i = a; i < b; i++) #define what_is(x) cerr << #x << " is " << x <<...
ALGO
0.997963
3.68343
{ "github_metadata": { "branch": "master", "commit_count": 569, "repo_created_at": "2022-06-02T17:22: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": "ecd9a966...
38045aec-a60d-41ca-969a-219ce23dd1b3
geometryprocessing/GCP-toolkit
src/ipc/smooth_contact/distance/edge_edge.hpp
#pragma once #include "point_edge.hpp" namespace ipc { template <typename scalar> scalar line_line_sqr_distance( const Eigen::Ref<const Vector3<scalar>>& ea0, const Eigen::Ref<const Vector3<scalar>>& ea1, const Eigen::Ref<const Vector3<scalar>>& eb0, const Eigen::Ref<const Vector3<scalar>>& eb1); te...
ALGO
0.999231
6.821662
{ "github_metadata": { "branch": "main", "commit_count": 934, "repo_created_at": "2023-12-12T02:15:21.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "2bd16c5741d...
cc8e0b52-02c0-4e2d-a6ad-a3530d476c8c
YourName0729/competitive-programming
Kattis/egypt.cpp
// https://open.kattis.com/problems/egypt #include <bits/stdc++.h> #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_ds/assoc_container.hpp> #define For(i, n) for (int i = 0; i < n; ++i) #define Forcase int __t = 0; cin >> __t; while (__t--) #define ll long long #define ull unsigned long long #define ar array usi...
ALGO
0.999949
3.831994
{ "github_metadata": { "branch": "main", "commit_count": 59, "repo_created_at": "2021-02-19T08:35:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e87b096a9c8...
0e3473bf-73c9-4b7b-a524-6365c29f3edf
ishandutta2007/codeforces-x
xuanquang1999/normal/848/B.cpp
//84104971101048411497 - Can you guess what does this mean? #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef complex<double> point; #define mapii map<int, int> #define debug(a) cout << #a << ": " << a << endl #define debuga1(a, l, r) fto(i, l, r) cout << a[i] << " "; cout << endl #define fd...
ALGO
0.999952
3.32594
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:38: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": "9804b1541e55...
1f15a8cd-a89f-451a-be40-b3cc46a3a430
Lakshay-git/Cpp_self
sumoffactors.cpp
// #include <iostream> // using namespace std; // int sumOfFactors(int num) { // int sum = 0; // for (int i = 1; i <= num; ++i) { // if (num % i == 0) { // sum += i; // } // } // return sum; // } // int main() { // int number; // cout << "Enter a number: "; // ...
ALGO
0.999219
5.492198
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2023-08-08T17:08:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "50572f7540...
4ba9199d-fb1c-4a41-85fe-2ca436f2c506
Mayank242002/Data-Structures-and-Algorithms
Array ADT/counting_duplicates_using_hash_table.cpp
#include <iostream> #include <limits.h> using namespace std; struct Array { int *A; int size; int length; }; int Min(struct Array *arr) { int min = INT_MAX; for (int i = 0; i < arr->length; i++) { if (arr->A[i] < min) min = arr->A[i]; } return min; } int Max(struct ...
ALGO
0.99808
3.422232
{ "github_metadata": { "branch": "main", "commit_count": 35, "repo_created_at": "2021-08-30T05:28: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": "6c18e1ed5f2...