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
b812917a-561f-483a-bda1-7654d7b0d503
wootdylan3/cpeTest
Q10783.cpp
/******************************************/ /* UVa 10783 Odd Sum */ /* Author: WootDylan3 */ /* Date: 2017/04/11 */ /* Time Limit: 3 sec */ /******************************************/ /* Description Given a range [a, b], you are to ...
ALGO
0.999786
5.003557
{ "github_metadata": { "branch": "master", "commit_count": 38, "repo_created_at": "2017-04-09T15:20: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": "fca9124ff...
8a932347-f5d5-422c-b54f-45c77e4478ad
atagcali/Cs_202
hw4/hw4/hw4/Airport.cpp
/* * Title: Graphs * Author: <NAME> * ID: 21801799 * Section: 3 * Assignment: 4 * Description: Airport */ using namespace std; #include <iostream> #include "Airport.h" Airport::Airport() : flight(NULL), flightAmount(0) { } void Airport::setnextflight(int v, int w) { if (flight == NULL) { flight = new Flight; ...
ALGO
0.945194
4.093457
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-01-05T12:05: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": "a46312949165...
1d1e9c26-962c-4835-a8ba-7ea593ed1618
arangodb/arangodb
3rdParty/boost/1.78.0/boost/hana/div.hpp
/*! @file Defines `boost::hana::div`. @copyright <NAME> 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_DIV_HPP #define BOOST_HANA_DIV_HPP #include <boost/hana/fwd/div.hpp> #include <boost/hana...
TOOL
0.92203
7.290927
{ "github_metadata": { "branch": "devel", "commit_count": 51986, "repo_created_at": "2011-10-26T06:42:00.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 13878, "forks": 857, "issues": 743, "pull_requests": 38 }, "file_meta": { "content_id": ...
b0ad061e-b49c-400f-b210-9a514bd800e8
mvancompernolle/ai_project
data/normal_basis.cc
#include "sys.h" #include "debug.h" #include <iostream> #include <cassert> #include <iomanip> #include <libecc/point.h> #include <libecc/fieldmath.h> #include "utils.h" using std::cout; using std::endl; using std::flush; using libecc::bitset_base; using libecc::bitset_digit_t; typedef libecc::bitset<m> bitset; poly_...
ALGO
0.998506
3.609652
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2014-11-25T04:05:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5bd4871055...
4c803ac7-e51f-4482-b99b-e864ea14fc84
JeongHPark/2022-Algorithm-Study
Programmers/Segun/12주차/여행경로.cpp
DFS로 모든 경우의수를 탐색하기로 정하고 티켓의 구조를 인접행렬로 만들어주기위해 map구조를 사용 ex) ICN->SFO,ATL, ATL->ICN,SFO 답을 알파벳 순으로 나오게하기위해서 정렬을 인접행렬을 오름차순으로 정렬 ICN이 항상 시작점이기때문에 ICN을 출발점으로 DFS로 모든 경우 탐색 사용한 티켓을 다시 사용하는 반례 발생해서 map 구조에 bool 변수 추가 #include <string> #include <vector> #include<unordered_map> #include<algorithm> #include<iostream> using n...
ALGO
0.999955
5.491897
{ "github_metadata": { "branch": "main", "commit_count": 582, "repo_created_at": "2022-09-30T15:04:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 3, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "ff137e6cdb...
5a760931-e2bf-4878-b1c3-4426d4da2383
devloop0/raytracer
src/bvh.cpp
#include "bvh.h" #include <iostream> #include <optional> #include <memory> #include <vector> #include <utility> #include <algorithm> #include "ray.h" #include "scene_object.h" #include "bounding_box.h" namespace raytracer { BVH::BVH(const std::vector<std::unique_ptr<SceneObject>>& objects, size_t buckets, bool d) ...
ALGO
0.998212
5.743132
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2020-03-05T03:21:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bcb2e0175...
e0c8f0cc-76d7-4cf5-b870-3cd94b188ff3
csus4uwu/sync2024
template/SparseTable.cpp
template <typename T, class C = less<T>> struct ST { const int n; const int logn; const C cmp; vector<vector<T>> jump; constexpr SparseTable(const std::vector<T> &a) : n{static_cast<int>(a.size())}, logn{__lg(n)}, cmp{}, jump(logn + 1) { jump[0] = a; for (int j = 1; j <= l...
ALGO
0.999947
6.554068
{ "github_metadata": { "branch": "main", "commit_count": 829, "repo_created_at": "2024-03-03T00:44: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": "81224c4b85...
ac67a831-aa70-4b39-9251-88851c7b4f47
CyberBoyAyush/Leetcode-POTD
October-2024/567. Permutation in String.cpp
// Approach 1 -> Sorting and Find // TC - O(nlogn + m-n) // SC - O(1) class Solution { public: bool checkInclusion(string s1, string s2) { int n = s1.length(); int m = s2.length(); // base edge case if(n > m){ return false; } // sort string s1 so...
ALGO
0.999971
6.610919
{ "github_metadata": { "branch": "main", "commit_count": 148, "repo_created_at": "2024-08-01T15:09:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7a9fd84f9d...
ff293659-ddbd-453d-a6cc-b6fea0fa4979
lawinse/AlgorithmExercises
leetcode/solutions/336.palindrome-pairs/palindrome-pairs.cpp
struct Node { int idx; int p[26]; Node() { clear(); } void clear() { idx = -1; memset(p,-1,sizeof(p)); } }N[100000]; class Solution { public: int t = 1; void add(int id, const string &s) { int nxt = 0; ...
ALGO
0.999979
5.822697
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2017-07-29T05:55: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": "363ff5714f...
d62a8748-bf4c-4fc3-9593-7417e05ede74
raincross7/code-similarity
codes/train_code/problem480/problem480_415.cpp
#include <iostream> #include <string> #include <vector> #include <set> #include <queue> #include <stack> #include <map> #include <algorithm> #include <math.h> #include <cassert> #define rep(i,n) for(int i = 0; i < n; ++i ) using namespace std; using ll = long long; using P = pair<ll,ll>; vector<P> g[100005]; int main(...
ALGO
0.999943
3.240156
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-06T05:07:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2fea061ddca6...
a46ac952-ccbf-4334-ac95-ed283fd4ae46
JeongYeonUk/Problem
BOJ/1451.cpp
#include <iostream> #include <cstring> using namespace std; typedef long long ll; const int INF = 987654321; int a[101][101]; long long MAX; int N, M; ll sum(int sx, int sy, int ex, int ey) { ll ret = 0; for (int i = sy; i <= ey; ++i) { for (int j = sx; j <= ex; ++j) { ret += a[i][j]; } } return ret; }...
ALGO
0.99993
3.217927
{ "github_metadata": { "branch": "master", "commit_count": 220, "repo_created_at": "2019-05-25T03:18:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f87a7c97...
7cdc4c3d-098e-4aa2-a2cb-35fabc178943
NafTan1/Codechef
Starter 150/ep.cpp
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while (t--) { int n; cin >> n; vector<int> a(n); vector<int> frq(101); int zero = 0; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] == 0) ...
ALGO
0.999947
4.066417
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2024-09-07T19:22: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": "66366b5741...
03b8e0bb-d4d4-4b1c-85ff-f7ad449eb16b
tensorflow/tensorflow
third_party/xla/xla/service/multi_output_fusion.cc
/* Copyright 2018 The OpenXLA Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
ALGO
0.998721
3.522205
{ "github_metadata": { "branch": "master", "commit_count": 182413, "repo_created_at": "2015-11-07T01:19:20.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 190773, "forks": 74758, "issues": 873, "pull_requests": 553 }, "file_meta": { "content...
6a434c6e-d767-40d5-9eed-09ab9db02cf5
tamal002/code_space
graph/prims.cpp
#include <bits/stdc++.h> using namespace std; // CONTRUC THE GRAPH FIRST. map<int, vector<pair<int, int>>> constructGraph(vector<vector<int>> &input) { if (input.size() == 0) { cout << "invalid input" << endl; return {}; } map<int, vector<pair<int, int>>> graph; for (int i = 0; i < ...
ALGO
0.999944
5.027674
{ "github_metadata": { "branch": "main", "commit_count": 14, "repo_created_at": "2025-02-09T16:05: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": "fb91383f29c...
c67440f3-87cc-4fe0-8d0f-eaf968b187a1
shray-jayn/Data-Structures-and-Algorithms
Arrays and Strings/1415. The k-th Lexicographical String of All Happy Strings of Length n.cpp
#include <bits/stdc++.h> using namespace std; typedef long long int ll; // Using Backtracking vector<char> v = {'a', 'b', 'c'}; void helper(vector<string> &ans, string t, int n, char prev) { if (n == 0) { ans.push_back(t); return; } for (int i = 0; i < v.size(); i++) { if...
ALGO
0.999946
3.986981
{ "github_metadata": { "branch": "master", "commit_count": 51, "repo_created_at": "2022-08-30T17:57:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e865745e0...
955b7e8b-49fc-4c1d-8149-89d925e764cc
dluchaup/rfa
tools/mdfa/src/mm.cc
/*----------------------------------------------------------------------------- * File: mm.c * * Author: <NAME> * Date: 21 October 2008 * * * Copyright 2008 <NAME> <EMAIL> * * This file contains unpublished confidential proprietary * work of <NAME>, Department of Computer Sciences, * Unive...
TOOL
0.98343
3.528785
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2014-06-06T17:20:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3f1d38f958...
5300dfbd-7553-43af-a6e4-ff37df92a50a
TheEmi/POO-project-2
main.cpp
#include <iostream> #include <Lista_circulara.h> using namespace std; int main() { Lista_circulara a; Lista_circulara b; int n,x,y; bool active=1; //for(int i=41;i>0;i--){ // a.add(i,1); //} //cin >> a;//adauga pe poz 1 while(active){ cout << "1 Inserare Nod\n2 Stergere n...
ALGO
0.999492
3.500285
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2021-04-13T19:38: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": "a6d665e72f8c...
3eefa9c1-393c-417d-a72b-2f584649930b
ishandutta2007/codeforces-p
pikel_rik/normal/1203/F1.cpp
#include <bits/stdc++.h> using namespace std; using ull = unsigned long long; using ll = long long; using ld = long double; const int mod = 1e9 + 7; const double pi = acos(-1.0); const int N = 100 + 5; const int R = 30000 + 5; int n, r, a[N], b[N], dp[N][2*R]; vector<pair<int, int>> big, small; int main() { ios...
ALGO
0.99998
4.691685
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T15:49: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": "946118ac62f0...
f186ff9d-6fcf-4e50-b2ff-8f0a868478eb
KennyJLam/Project-Euler
solve_p038.cpp
// // Created by KLam on 9/10/2015. // #include "solve_p038.h" #include <iostream> #include "math_utils.h" typedef unsigned long long ull; typedef unsigned int uint; using namespace std; void euler::SolveP038() { const ull max = 1000000000; ull max_match = 0; for (uint n = 2; n <= 6; ++n) { u...
ALGO
0.999566
4.582648
{ "github_metadata": { "branch": "master", "commit_count": 118, "repo_created_at": "2015-09-04T18:49: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": "96ed5818...
ea8cf0be-9b92-4d04-aa84-3de6a98e3589
mtao/mandoline
src/diffgeo_utils.cpp
#include "diffgeo_utils.hpp" #include <mtao/logging/logger.hpp> namespace mandoline { Eigen::SparseMatrix<double> grid_boundary(int ni, int nj, bool dirichlet_boundary) { int system_size = ni * nj; int usize = (ni + 1) * nj; int vsize = (nj + 1) * ni; auto u_ind = [ni, nj](int i, int j) { re...
ALGO
0.999513
6.009582
{ "github_metadata": { "branch": "master", "commit_count": 302, "repo_created_at": "2019-05-27T22:46:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 82, "forks": 18, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "7aacb8...
846412d0-5530-4a67-b0b1-1477052dd4cd
Elubrazione/pat_ab_levels
Advanced/code/A1013.cpp
#include <bits/stdc++.h> using namespace std; int n, m, k; vector<vector<int>> G, temp; void dfs(int a) { temp[a][a] = INT_MAX; for (int i = 1; i <= n; i++) { if (temp[i][i] == 1 && temp[a][i] != INT_MAX) { dfs(i); } } return; } int main() { cin >> n >> m >> k; G.resize(n + 1, vector<int>(n ...
ALGO
0.999979
3.942654
{ "github_metadata": { "branch": "main", "commit_count": 59, "repo_created_at": "2023-05-25T06:37:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "42742692d15...
ba6afcf3-06a8-4416-94f2-830f5d8ba02b
Najwaeldiaraot/Najwaeldiaraot
PRAK SD SEMESTER 2/JOBSHEET 7/TUGAS/Tugas Jobsheet 7.cpp
//Created by 23343079_<NAME> #include <stdio.h> #include <stdlib.h> #define MAKSIMUM_SIMPUL 100 typedef struct Graf { int jumlahSimpul; int matriksKetetanggaan[MAKSIMUM_SIMPUL][MAKSIMUM_SIMPUL]; int sudahDikunjungi[MAKSIMUM_SIMPUL]; } Graf; typedef struct Antrian { int item[MAKSIMUM_SIMPUL]; int ...
ALGO
0.996003
4.465835
{ "github_metadata": { "branch": "main", "commit_count": 42, "repo_created_at": "2023-12-13T18:34: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": "876920c038a...
2be20c82-ee72-41d6-ad03-659a930bd5ee
Eason20120229/Lougu
1055.cpp
#include <iostream> #include <string> using namespace std; int join(string str) { int re = 0, j = 1; for (int i = 0; i <= 10; i++) { if (str[i] == '-') { continue; } re += int(str[i] - '0') * j; j++; } re = re % 11; return re; } void print(s...
ALGO
0.998956
3.20241
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2024-01-29T09:55: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": "82dc6ad16b4...
97b858cf-5b4a-48b7-a069-204b2d4a3a58
InsightSoftwareConsortium/ITK
Modules/Numerics/FEM/src/itkFEMLinearSystemWrapperDenseVNL.cxx
/*========================================================================= * * Copyright NumFOCUS * * 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 * * https://www.apache.o...
ALGO
0.992022
5.916042
{ "github_metadata": { "branch": "main", "commit_count": 57165, "repo_created_at": "2010-07-27T15:48:04.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1517, "forks": 701, "issues": 268, "pull_requests": 49 }, "file_meta": { "content_id": "6...
a611361c-e19f-437c-8482-aed8967660f1
FedorShabunin/Programming_languages_-in_simulation_modeling_-part_1-
16 sortirovka/16 sortirovka.cpp
#include <iostream> #include <ctime> int a[100]; using namespace std; void obmen_1(int *x, int *y) { swap (*x, *y); } void obmen_2(int *x, int *y) { int k; k = *x; *x = *y; *y = k; } void obmen_3(int *x, int *y) { int k; k = *x - *y; *x = *y; *y = *x + k; } void Puzirek(int N) { int i, j; for ...
ALGO
0.999623
3.962843
{ "github_metadata": { "branch": "main", "commit_count": 74, "repo_created_at": "2021-09-26T11:10: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": "3d3dc37097e...
c725d96b-4a7d-470b-9d70-f55f1b781ebc
raincross7/code-similarity
codes/train_code/problem456/problem456_296.cpp
#include <bits/stdc++.h> using namespace std; #define DBG(x) \ (void)(cout << "L" << __LINE__ \ << ": " << #x << " = " \ << (x) << '\n') #define Lower_bound(v, x) distance(v.begin(), lower_bound(v.begin(), v.end(), x)) #define Upper_bound(v, x) distance(v...
ALGO
0.999972
3.867782
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-03-06T05:07:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "cd21ac90fe07...
a8274823-a782-498c-9c34-65cc8c067752
deepam20050/competitive-programming
solutions/1658D1.cpp
#include "bits/stdc++.h" using namespace std; #ifdef DEBUG #include "../algo/debug.hpp" #else #define debug(...) #endif #define rep(i, a, b) for(int i = a; i < (b); ++i) #define sz(x) int((x).size()) #define all(x) begin(x), end(x) #define eb emplace_back using lli = int64_t; using pii = pair < int, int >; int c...
ALGO
0.999866
4.45541
{ "github_metadata": { "branch": "main", "commit_count": 24, "repo_created_at": "2022-01-05T12:59: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": "eaf44939c72...
d675f9f5-11a3-4524-a334-bba3d57c8c43
skygupta07/cpp
21_linkedList3/12_palindromeLL.cpp
#include <bits/stdc++.h> using namespace std; /* Given the head of a singly linked list, return true if it is a palindrome or false otherwise */ struct ListNode { int val; ListNode *next; ListNode() : val(0), next(nullptr) {} ListNode(int x) : val(x), next(nullptr) {} ListNode(int x, Lis...
ALGO
0.999404
5.618827
{ "github_metadata": { "branch": "main", "commit_count": 52, "repo_created_at": "2024-03-14T11:31: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": "3311dcd1b86...
3c50e8de-0c16-4ee0-99ba-da4f11352c22
IcyWaterDL/datastructure-algorithm-cpp
CODKING_PTIT/day5.cpp
#include <bits/stdc++.h> using namespace std; long long n; // long long b[100000001],dem=0; // chợ 2, trường học3, công viên 4, nha 1 //update // void in(){ // for(long long i=1;i<n;i++){ // if(b[i]==1) cout<<"nha"<<"-"; // if(b[i]==2) cout<<"cho"<<"-"; // if(b[i]==3) cout<<"truong"<<"-"; ...
ALGO
0.999973
3.569026
{ "github_metadata": { "branch": "master", "commit_count": 14, "repo_created_at": "2020-06-04T10:20:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0b8f084d6...
8dac4828-0d80-4526-963b-b2b951063181
Shubhmeet/ImageProcessing
Project1/part3.cpp
#include "opencv2/highgui.hpp" #include <iostream> using namespace cv; using namespace std; void runOnWindow(int W1, int H1, int W2, int H2, Mat inputImage, char *outName) { int rows = inputImage.rows; int cols = inputImage.cols; vector<Mat> i_planes; split(inputImage, i_planes); Mat iB = i_planes[0]; Mat iG = ...
ALGO
0.935466
4.735276
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2017-04-17T04:01:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b0c7c0b1da...
176df3ef-e901-46cc-8566-ec6f6feb593c
Gabriel-Micael/Reposit-rio_faculdade
avl - trabalho 3/main.cpp
/* * BANCO DE DADOS (VEÍCULOS) USANDO LISTA ENCADEADA, ÁRVORES AVLS E BINÁRIAS. * AEDs II * * * * Autores: <NAME> (2022.1.08.035) * <NAME> (2022.1.08.037) * * Esse programa é feito em c++ e tem como objetivo gerenciar um banco * de dados relacionados a ve...
TOOL
0.939043
5.168288
{ "github_metadata": { "branch": "main", "commit_count": 102, "repo_created_at": "2022-10-03T14:57:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5e8a086385...
5fe8665b-1283-43b3-888c-15081791e493
GKNB/CPS-cloned-frontier
cps_pp/production_code/meas/gparity/ktopipi/get_pipi_correlators/correlator.h
struct Correlator{ mom p1src; mom p2src; mom p1snk; mom p2snk; Correlator(){} Correlator(const mom &p1src, const mom &p2src, const mom &p1snk, const mom &p2snk): p1src(p1src), p2src(p2src), p1snk(p1snk), p2snk(p2snk) { } Correlator(const momPair &psrc, const momPair &psnk): p1src(psrc.first), p2src(psr...
ALGO
0.996103
5.375938
{ "github_metadata": { "branch": "tianle_develop", "commit_count": 2914, "repo_created_at": "2024-02-29T16:23: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": ...
508b1a43-7d72-44d6-b76d-95caee560716
adityachintala/Elite-Questions
CPP/D3/d3p2.cpp
// Prabhath is working on words. He used to take out every letter that was repeated // in the word. // A word W is given to Prabhath. His objective is to eliminate every duplicate // letter from W such that the resultant word R contains every unique letter from W // and did not contain any duplicate letters. // An...
ALGO
0.999994
4.303147
{ "github_metadata": { "branch": "main", "commit_count": 147, "repo_created_at": "2022-11-29T05:38:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 16, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f4c840445...
cd3cc065-63ff-4da2-b2c7-7fdd476c5c5b
Mandipbhattarai/crispy-telegram
cpp/loops/totalsalary.cpp
#include <bits/stdc++.h> #include <iostream> #include <cmath> using namespace std; int main() { double totalsalary, hra, da, pf; int basic,allow; char alphabet; cin >> basic; cin >> alphabet; hra = 0.2 * basic; da = 0.5 * basic; pf = 0.11 * basic; if (alphabet == 'A') { ...
ALGO
0.974618
3.366707
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-07-24T14:23:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f0230b2f6192...
3a21cca7-6184-4f57-894e-692ec9342ccf
YessineJallouli/Competitive-Programming
Codeforces Submissions/rounds/1688/E.cpp
#include <bits/stdc++.h> using namespace std; int m; int getL(int id) { string s = ""; for (int i = 0; i < m; i++) { s+= '0'; } s[id] = '1'; cout << "? " << s << endl; int x; cin >> x; return x; } int query(string &s) { cout << "? " << s << endl; int x; cin >> x; retu...
ALGO
0.999978
3.199436
{ "github_metadata": { "branch": "main", "commit_count": 107, "repo_created_at": "2021-05-13T16:32:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "50e5b2d63e...
351aeffc-f803-44c3-b839-c5cd5a7b8cf7
alexandraback/datacollection
solutions_5658282861527040_0/C++/BenZ/B-small.cpp
#include <iostream> #include <string> #include <cstdlib> #include <cstring> #include <cstdio> #include <algorithm> using namespace std; typedef long long int64; #define rep(x, n) for (int x = 1; x <= n; ++x) #define zrp(x, n) for (int x = n; x; --x) #define FOR(x, l, r) for (int x = l; x <= r; ++x) #define foredge(i, x...
ALGO
0.999886
3.79533
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2017-03-08T11:33:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4a8b1ad02...
520fa628-859c-4a25-b7c4-a2b12c45e35e
askbuddie/margdarsak
C_Cpp/Graph/Dijkstra's Algorithm shortest path on weighted graphs.cpp
#include<bits/stdc++.h> using namespace std; template<typename T> class Graph{ unordered_map<T,list<pair<T,int> > > m; public: void addEdge(T u,T v,int dist,bool bidir=true){ m[u].push_back(make_pair(v,dist)); if(bidir){ m[v].push_back(make_pair(u,dist)); } }...
ALGO
0.999887
4.213126
{ "github_metadata": { "branch": "main", "commit_count": 241, "repo_created_at": "2022-10-04T04:29:38.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 31, "forks": 62, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "653e95426...
a869e029-bd66-49d2-b3dc-db636839b508
topdeveloper424/TSPProject
TSP/ExpandableHashMap.h
// ExpandableHashMap.h // Skeleton for the ExpandableHashMap class template. You must implement the first six // member functions. #include <iostrem> #include <functional> #include <list> template<typename KeyType, typename ValueType> class ExpandableHashMap { public: ExpandableHashMap(double maximumLoadFactor = 0....
TOOL
0.954758
6.366364
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-03-11T03:34:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c1605fe115...
fbecc858-cd8c-4a3f-9675-53b546029028
Superm4n97/competetive-programming
Codeforces vol 04/1567D.cpp
#include<bits/stdc++.h> #define ll long long int #define show(x) cout << #x << " : " << x << endl using namespace std; ll sum_of_digits(ll n) { ll cnt = 0; while(n){ cnt+=(n%10); n/=10; } return cnt; } void split(ll n, ll &a , ll &b) { ll pw = 1 , m = n/10; ...
ALGO
0.999779
4.113348
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2021-12-16T18:34: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": "01941b2b62...
ca0a3c71-15e5-4651-88c1-8ffc12ebaad3
xiaoxianrouzhiyou/BBearEditor-2.0
Code/BBearEditor/Engine/Physics/FluidSystem/BBSPHGridContainer.cpp
#include "BBSPHGridContainer.h" #include "BBSPHParticleSystem.h" #include "Utils/BBUtils.h" BBSPHGridContainer::BBSPHGridContainer() { } void BBSPHGridContainer::init(const QVector3D &min, const QVector3D &max, float fUnitScale, float fGridCellSize, unsigned int *pFieldSize) { m_GridMin = min; m_GridMax = m...
ALGO
0.923265
5.254845
{ "github_metadata": { "branch": "master", "commit_count": 688, "repo_created_at": "2021-05-07T11:00:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 52, "forks": 8, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7dfe53e...
eb3c1ceb-b8b8-4e0b-9c10-b5e1dfdbae81
oneapi-src/oneAPI-samples
DirectProgramming/C++/CombinationalLogic/MandelbrotOMP/src/mandelbrot.hpp
//============================================================== // // Copyright 2020 Intel Corporation // // 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 wi...
ALGO
0.992909
5.943896
{ "github_metadata": { "branch": "main", "commit_count": 2599, "repo_created_at": "2020-05-27T04:52:05.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1054, "forks": 727, "issues": 59, "pull_requests": 7 }, "file_meta": { "content_id": "26ac...
61d739d7-a62e-4365-99f0-e349d01b90f8
Hangjun/CPPLeetCode
221. Maximal Square.cpp
/* Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, given the following matrix: 1 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0 Return 4. */ /* Analysis: We want to expand the max square search from some starting point. Canonically we start from ...
ALGO
0.999961
7.099387
{ "github_metadata": { "branch": "master", "commit_count": 852, "repo_created_at": "2013-11-06T14:49:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0c6af047...
77398c51-0593-4acb-ab84-ddf725620746
Ernyoke/Kriptografia
lab6_9/src/lab6_9.cpp
//============================================================================ // Name : lab6_9.cpp // Author : ervin // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #inclu...
ALGO
0.990247
3.91834
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2015-04-20T21:17:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "433e9355ec...
faa4baed-9b68-4034-a06e-47cef3b5c620
harsha007009/problem-solving
2215-finding-3-digit-even-numbers/finding-3-digit-even-numbers.cpp
class Solution { private: unordered_set<int> isUnique; bool isValid(int x) { return (x % 2 == 0); } public: vector<int> findEvenNumbers(vector<int>& digits) { int n = digits.size(); vector<int> res; for (int i = 0; i < n; i++) { if (digits[i] == 0) conti...
ALGO
0.999938
5.681205
{ "github_metadata": { "branch": "main", "commit_count": 867, "repo_created_at": "2025-03-15T04:54:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c84f12416c...
1381dddc-50f5-4a29-9211-92903fc4997a
kloetzl/mugsy
mugsy-seqan/projects/library/seqan/index/index_esa_base.h
/*========================================================================== SeqAn - The Library for Sequence Analysis http://www.seqan.de ============================================================================ Copyright (C) 2007 This library is free software; you ...
ALGO
0.955811
6.775449
{ "github_metadata": { "branch": "master", "commit_count": 57, "repo_created_at": "2020-04-02T09:44:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 1, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "0cf93556f...
3b4fb016-0e99-4412-bb47-86b952393976
KwonSunwon/Y22_S2_CG
CG_proj_03/Prob_18/shaders.cpp
#include "shaders.h" GLuint vertexShader; GLuint fragmentShader; #pragma region "Shader" void makeVertexShaders(char *file) { GLchar *vertexSource; // char fileName[] = "vertex.glsl"; // char *file = fileName; vertexSource = fileToBuf(file); vertexShader = glCreateShader(GL_VERTEX_SHADER); g...
TOOL
0.919496
3.086616
{ "github_metadata": { "branch": "main", "commit_count": 89, "repo_created_at": "2022-09-05T04:25: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": "cea0f07a25e...
21fb67ae-d9bf-40df-8d71-2ef1706d1887
akhikolla/testpackages
fuzzedpackages/Morpho/src/permudistArma.cpp
#include "permudistArma.h" SEXP permudistArma(SEXP data_, SEXP groups_, SEXP rounds_) { try { mat armaData = as<mat>(data_); arma::ivec armaGroups = Rcpp::as<arma::ivec>(groups_); int rounds = Rcpp::as<int>(rounds_); ivec permuvec = armaGroups; int maxlev = armaGroups.max(); int all...
ALGO
0.999229
4.722076
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2021-01-15T17:42:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "169eccc8ce...
b89ca911-33f2-4584-a7c6-270bf1a0b3dc
Mauricio134/AlgGen
ga3.h
#pragma once #include <iostream> #include <vector> #include <utility> #include <cmath> #include <random> using namespace std; bool comp2(const tuple<string,string, string,int,int, int,float>& a, const tuple<string,string, string,int,int, int,float>& b) { return get<6>(a) < get<6>(b); } string get0(tuple<string,...
ALGO
0.999861
4.428242
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2024-04-08T17:51: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": "1006bfba9ea...
bb75dfc9-346d-4572-9b7b-cf37a55753bd
KJunseo/algorithm-practice
programmers/high_score_Kit/sort_H-Index.cpp
/* 문제를 이해하기가 어려웠지 문제 자체는 쉬운편이었다. 논문의 수만큼 반복하면서 H-index를 업데이트 해주면 되는 문제였다. 내림차순 정렬 후, 인덱스 비교를 통해서 풀 수도 있었다. Ex [1, 7, 0, 1, 6, 4] 일 때, index 인용 수 0 7 1 6 2 4 * 3 1 * 4 1 5 0 index 3에서...
ALGO
0.999989
5.360518
{ "github_metadata": { "branch": "master", "commit_count": 673, "repo_created_at": "2020-03-04T07:47:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "12211d09...
a84abc54-1578-411b-8d69-0b1efd42fc53
amanzi/amanzi
src/operators/test/Analytic00b.hh
/* Copyright 2010-202x held jointly by participating institutions. Amanzi 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>) */ /* Operators 3D version of Analytic00. Polynom...
ALGO
0.989168
6.257097
{ "github_metadata": { "branch": "master", "commit_count": 14660, "repo_created_at": "2016-07-22T18:50:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 50, "forks": 38, "issues": 103, "pull_requests": 5 }, "file_meta": { "content_id": "9f1...
9115ae93-b2aa-46d7-a7f5-8e6f992875a1
aliya-rahmani/Projects
C++/Graph/kruskals.cpp
#include<bits/stdc++.h> using namespace std; class Edge { public: int source; int dest; int weight; }; bool compare(Edge e1,Edge e2){ return e1.weight < e2.weight; } int findParent(int v,int* parent) { if(v == parent[v]) { return v; } return findParent(parent[v],parent); } vo...
ALGO
0.999997
4.656392
{ "github_metadata": { "branch": "main", "commit_count": 1228, "repo_created_at": "2020-10-07T03:21:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 41, "forks": 188, "issues": 2, "pull_requests": 7 }, "file_meta": { "content_id": "831143...
0719f7a3-e100-4223-bae4-a7900c53b04e
mvg01/ps
baekjoon cpp/02210(DFS).cpp
#include <iostream> #include <map> using namespace std; map<string, int>m; int mat[6][6]; int dx[4] = { 0,1,-1,0 }; int dy[4] = { 1,0,0,-1 }; void dfs(int y, int x, int cnt, string temp) { if (cnt == 6) { if (m.find(temp) == m.end()) { m.insert({ temp,1 }); //cout << temp << '\n'; } return; } for (int ...
ALGO
0.999196
4.214492
{ "github_metadata": { "branch": "main", "commit_count": 746, "repo_created_at": "2022-12-29T14:10: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": "a7b8e2085e...
b3512436-7e47-4a9f-a943-bfc2d2ff114e
Divyanshi88/DSA
main.cpp
#include <iostream> #include <vector> using namespace std; void insertelement(vector<int> &arr, int position, int val) { if(position < 0 || position > arr.size()) { cout << "Invalid position!" << endl; return; // Exit if the position is invalid } arr.insert(arr.begin() + position, val); /...
ALGO
0.999329
5.523618
{ "github_metadata": { "branch": "main", "commit_count": 74, "repo_created_at": "2024-12-11T02:50: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": "3cf215c6b59...
30eed576-e9be-4665-bbce-5d3d07ea2f25
aman1123721214/Trees
random_72_Vertical_sum.cpp
#include<bits/stdc++.h> using namespace std; struct Node{ int data; Node *left,*right; Node(int x){ data = x; left = right = nullptr; } }; class Solution { public: vector<int> verticalSum(Node *root) { // add code here. map<int, vector<int>> mp; queue<pair...
ALGO
0.999984
4.673051
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2025-07-13T04:06: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": "b6f551846cc6...
e76ddbb5-bca7-4aae-88b1-6936c6929aad
Kuznetsov-Artyom-Education/cuda-2024
3821B1FI2/5_block_gemm_omp/petrov_maksim/block_gemm_omp.cpp
#include <omp.h> #include "block_gemm_omp.h" #include <algorithm> std::vector<float> BlockGemmOMP(const std::vector<float>& a, const std::vector<float>& b, int n) { const int blockSize = 16; std::vector<float> c(n * n, 0.0f); #pragma omp parallel for collapse(2) schedule(dynamic) for (int blockRow = ...
ALGO
0.997475
5.530622
{ "github_metadata": { "branch": "main", "commit_count": 219, "repo_created_at": "2024-09-15T12:12:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 86, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9c0af9ee48...
b88bd5bc-e026-44d9-b250-f6e9a70f0145
VICKY0071/CODING-SOLUTIONS
polygonPerimeter.cpp
// link : https://app.codesignal.com/challenge/BkPXssgpn7ZoDXhmD int squareSolution(vector<vector<bool>> a){ //basic O(n ^ 2) solution int dc[] = {-1, 1, 0, 0}; int dr[] = {0, 0, -1, 1}; int rr, cc; int result = 0; for(int i = 0;i<a.size();i++){ for(int j = 0;j<a[i].size();j++){ ...
ALGO
0.999651
5.504919
{ "github_metadata": { "branch": "master", "commit_count": 12, "repo_created_at": "2020-04-28T07:12:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "fb42b35bb...
ea836267-4e1d-44af-92c6-318b7f71ebf2
ddevilz/Cpp
stl(cpp)/container/02_vectors.cpp
#include<bits/stdc++.h> using namespace std; void vectorLearn() { vector<int> v; v.push_back(1); v.emplace_back(2); vector<pair<int, int>>vec; // v.push_back({1, 2}); v.emplace_back(1, 2); // emplace_back is faster than push_back vector<int> v(5, 100); // 5 is size of vector and 100 ar...
TOOL
0.97665
3.934144
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-09-20T04:43: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": "dea46e8c312d...
0d699fbf-f196-4c0e-8a31-0f88ad36ce58
Amharc-Hash/quadraticPolynomial
quadraticPolynomial/quadraticPolynomial.cpp
#include<stdio.h> #include<math.h> #include<conio.h> int main() { double a, b, c, x1, x2; printf("input coefficient x^2,x,number Respectively (follow this pattern : 1 5 6) : "); scanf("%lf %lf %lf", &a, &b, &c); x1 = ((-1 * b) + (sqrt(pow(b, 2) - (4 * a * c)))) / (2 * a); x2 = ((-1 * b) - (sqrt(pow...
ALGO
0.999934
3.307221
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2020-08-14T09:19:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0d0ef48fda...
00d3d724-c77e-4859-a502-91522182c559
SiddhantAttavar/Competitive-Programming
CSES Problem Set/Graph Algorithms/Game_Routes.cpp
#include <bits/stdc++.h> using namespace std; template<typename T> inline void input(T& inVar) {cin >> inVar;} template<typename T, typename... S> inline void input(T& inVar, S&... args) {cin >> inVar; input(args ...);} template<typename T> inline void print(T outVar) {cout << outVar << '\n';} template<typename T, type...
ALGO
0.999756
4.737184
{ "github_metadata": { "branch": "main", "commit_count": 607, "repo_created_at": "2021-09-16T08:14:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 13, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "491a4c562...
9c1ec4b4-7ca3-4cd5-a532-3f79b2e38e83
errorcodexero/newarch
sim2/wpilib/include/frc/LinearFilter.h
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2015-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
TOOL
0.994443
7.614991
{ "github_metadata": { "branch": "master", "commit_count": 1648, "repo_created_at": "2018-07-04T16:54:36.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4, "forks": 1, "issues": 6, "pull_requests": 0 }, "file_meta": { "content_id": "a8a30e2e...
f29b953c-92c3-4b87-b0cb-668c32f8a118
salvadornm/cerisse
src/main.cpp
#include <AMReX.H> #include <AMReX_Amr.H> #include <AMReX_ParallelDescriptor.H> #include <AMReX_ParmParse.H> #include <CNS.h> #include <prob.h> #if CNS_USE_EB #include <AMReX_EB2.H> #endif using namespace amrex; amrex::LevelBld* getLevelBld(); int main(int argc, char* argv[]) { BL_PROFILE_VAR("main()", pmain); ...
ALGO
0.999353
5.583572
{ "github_metadata": { "branch": "cerisse2", "commit_count": 448, "repo_created_at": "2022-07-18T11:57:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 18, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9161b...
cb5efb85-28fb-41fa-a3af-7bca131d421f
mohamedGamalAbuGalala/Practice
Train/Sheet/Sheet-B/base/40-60/51-60/57.Strings of Power.cpp
#include <bits/stdc++.h> using namespace std; // input handle #define in(n) scanf("%d",&n) #define ins(n) scanf("%s",n) #define inf(n) scanf("%lf",&n) #define inl(n) scanf("%lld",&n) #define ot(x) printf("%d ", x) #define ots(x) printf("%s ", x) #define ln() printf("\n") #define otl(x) printf("%lld ", x) #define otf(x)...
ALGO
0.999911
3.344123
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2017-11-24T03:37:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7c0e85625...
bf2dc57b-3182-4bf2-abfa-52c3c0e968f5
iCore-034/First-semester-college-labs-CPP
lab 6/Lab 6.1.cpp
#include <iostream> #include <vector> #include <time.h> using namespace std; vector<int> sequence; void output() { // Вывод рабочего вектора for (size_t i = 0; i < sequence.size(); i++) cout << sequence[i] << " "; cout << endl; } void replace(){ // Рекурсия при переменной stop == true bool stop = f...
ALGO
0.999838
4.155557
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2020-12-13T10:05:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "49ec91ee8c69...
7207dd06-a3fe-4cd6-aa35-11df80fc6832
dkumykova/fatalError
dragonfly/include/QuadtreeNode.h
// // QuadtreeNode.h - A Quadtree node class. // #ifndef __QUADTREENODE_H__ #define __QUADTREENODE_H__ #include "Object.h" #include "ObjectList.h" namespace df { const int QUADTREE_THRESH_DEFAULT = 1; const int QUADTREE_MAX_DEPTH = 10; class QuadtreeNode { private: int m_depth; ///< Depth of th...
TOOL
0.995219
6.511129
{ "github_metadata": { "branch": "master", "commit_count": 62, "repo_created_at": "2019-12-04T01:31:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1f6a202db...
1293c1b5-8ba1-4228-a121-e26455722640
iriselia/HotReloadTest
3rdParty/reload/reload/solution/solution.cpp
#include "solution.h" #include "rapidjson/prettywriter.h" // for stringify JSON #include "visual_studio.h" #include "source_file.h" #include <iostream> namespace reload { namespace runtime { auto update_file = [](const auto& path, const auto& event) { }; void solution::update_source_tree() ...
TOOL
0.951727
4.512455
{ "github_metadata": { "branch": "master", "commit_count": 10, "repo_created_at": "2019-11-02T01:02: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": "182e26e0f...
53ab076c-bcca-4c62-968f-a0dcbd76486b
AntonV91/study_new
Task27/Task27.cpp
// Задача 4. // В двумерном массиве целых числе посчитать : // - Сумму всех элементов массива; // - Среднее арифметическое всех элементов массива; // - Минимальный элемент; // - Максимальный элемент. #include <iostream> #include <iomanip> // Подключаем библиотеку iomanip, чтобы воспользоваться // функцией setw (исполь...
ALGO
0.99776
4.885259
{ "github_metadata": { "branch": "main", "commit_count": 7, "repo_created_at": "2023-05-25T11:46: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": "be94a05ca3d4...
c8b32443-975b-42e0-9fa9-39e06e6a540d
lacram/study
Baekjoon/save/16168.cpp
#include <iostream> #include <vector> #include <cstring> #include <fstream> #include <algorithm> #include <cmath> #define endl '\n' using namespace std; int n,m; vector<vector<int>> tree; int visited[3001]; void dfs(int now){ visited[now] = 1; for (auto next : tree[now]){ if (visited[next]) continue; df...
ALGO
0.999973
4.493094
{ "github_metadata": { "branch": "master", "commit_count": 54, "repo_created_at": "2022-07-03T15:46: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": "cdf4c93f3...
52ac049a-e814-4821-9f2a-e0845620d8d6
JIA-ss/OpenGL-Render-Engine
src/graphic/Triangle.h
#pragma once #include "GraphicCommonHeader.h" #include "Vertex.h" #include <algorithm> #include <memory> #include <vector> GRAPHIC_NAMESPACE_BEGIN class Ray; struct HitResult; class Triangle { private: glm::vec3 p1,p2,p3; glm::vec3 center; public: Triangle(const glm::vec3& a, const glm::vec3& b, const glm...
ALGO
0.998697
6.470293
{ "github_metadata": { "branch": "master", "commit_count": 103, "repo_created_at": "2022-01-06T05:27:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1034cc0c...
c18e0467-7045-4535-b911-9ed06571e0fb
Phil-Smith1/Pre-Voronoi_Zone_Density_Functions
Crystal_Density/Source Files/2D/Global Functions/Third_Order_Total_Area.cpp
#include "Frame.h" #include "Three_Circle_Intersection_Area_Within_Cell.h" void Third_Order_Total_Area ( Frame& f ) { f.c3c.reserve( f.cell.num_pts * (f.cell.num_pts - 1) * (f.cell.num_pts - 2) / (double)6 ); for (int counter_1 = 0; counter_1 < f.cell.num_pts - 2; ++counter_1) { for (int count...
ALGO
0.965082
4.819868
{ "github_metadata": { "branch": "master", "commit_count": 52, "repo_created_at": "2019-03-27T13:54: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": "49dcfdb35...
b86f5951-a495-4ecb-94f1-1cf7b57a4797
GabrielSMuniz/Codigos_exercicios_faculdade
2023-1/EST_DADOS/EXs_LST_ENCADEADA/lista_encadeada.cpp
/* Nome: .... <NAME> RA: 2475430 Turma: ... C_31 */ #include <stdio.h> #include <stdlib.h> typedef struct lista { int valor; struct lista *prox; } Lista; Lista *insereInicio(Lista *lst, int val) { Lista *aux = (Lista *)malloc(sizeof(Lista)); aux->valor = val; aux->prox = lst; return aux; } ...
ALGO
0.999871
3.730571
{ "github_metadata": { "branch": "master", "commit_count": 45, "repo_created_at": "2022-04-13T02:44: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": "790852650...
f745437a-8644-4169-a3af-df19724b594f
LLNL/TopoMS
msc/include/labeling_to_bounary_labeling.h
/* * Copyright (c) 2017 University of Utah * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of ...
ALGO
0.990317
6.222615
{ "github_metadata": { "branch": "master", "commit_count": 37, "repo_created_at": "2018-01-27T18:16:38.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 17, "forks": 4, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "28890a81a...
5b4385d4-01df-40b1-8e00-e564bc767c9d
TWLK139/DataStructure-sequenceList
顺序表实验/seqList.h
//**********************// //顺序表实验头文件 // //包含:1,依赖头文件 // // 2,结构定义 // // 3,函数声明 // //**********************// #ifndef SEQLIST_H #define SEQLIST_H #include<iostream> using namespace std; #define MAXLEN 100 typedef int elementType; //*********************顺序表结构*******************************// typedef struct ...
ALGO
0.989835
4.155156
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2019-10-30T01:53:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7f846a73dd...
f88229cb-846a-4ded-a33f-0ed05b4654d4
Mayank9mare/Codeforces
763div2/b.cpp
// ,;;;;;;, // ,;;;'""`;;\ // ,;;;/ .'`',;\ // ,;;;;/ | \|_ // /;;;;; \ / .\ // ,;;;;;;| '. \/_/ // /;;;;;;;| ...
ALGO
0.999943
4.249773
{ "github_metadata": { "branch": "master", "commit_count": 28, "repo_created_at": "2021-06-14T15:01:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bcf00875f...
bc81f6f3-ffba-47c6-bc50-b37d6dd2fca8
sagitrs/nvlevelz
nvm_library/l2skiplist.cc
#include "l2skiplist.h" namespace leveldb { UpperSkiplist::UpperSkiplist(MixedSkipList* parent, Arena* arena, byte min_height, nvOffset lower_head) : parent_(static_cast<L2SkipList*>(parent)), arena_(arena), head_(NewNode(nullptr,kMaxHeight)), lower_head_(lower_head), max_height_(1), min_height_(min_height...
TOOL
0.974256
4.721471
{ "github_metadata": { "branch": "master", "commit_count": 7, "repo_created_at": "2020-01-08T06:44:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "45d36b08de...
4a923bc0-d6b5-4d62-8891-5ea67ddec778
kushaLG0D/Data-Structures
LinkedList/LinkedListUsingClass.cpp
#include<iostream> using namespace std; class Node { public: int data; Node *next; }; class LinkedList { private: Node *head; Node *second; Node *third; public: LinkedList(){head=NULL;}; void createF(int A[],int n); //~LinkedList(); void createS(int A[],int n); vo...
ALGO
0.999954
3.959006
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2022-04-09T06:52: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": "a7c976d4fa...
c66097ab-994f-403f-bdb7-fd0b8d991543
jiemojiemo/rubberband_pitch_shift_plugin
rubberband/src/dsp/MovingMedian.h
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Rubber Band Library An audio time-stretching and pitch-shifting library. Copyright 2007-2022 Particular Programs Ltd. This program is free software; you can redistribute it and/or modify it under the terms of the GNU...
ALGO
0.99336
7.311335
{ "github_metadata": { "branch": "master", "commit_count": 4, "repo_created_at": "2022-04-07T12:49:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 17, "forks": 5, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "30e79b9e0...
5935f7d6-b2b6-4613-8341-e09f035aab4d
fixstars/segmentation-sgm
samples/benchmark/main.cpp
/* Copyright 2019 Fixstars Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http ://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
ALGO
0.968431
5.698976
{ "github_metadata": { "branch": "master", "commit_count": 46, "repo_created_at": "2019-03-18T09:50:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 33, "forks": 4, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b6f9dd60e...
e5600ff5-51a1-448a-85e1-9d52f5b6080a
FL-sky/xiaozhaobishi
zaxiang/misc/ten.cpp
#include <bits/stdc++.h> using namespace std; const int mod = 1e6; const int N = 1e3 + 3; int dp[N][N]; int idx = 0; class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @param k int整型 * @return int整型 */ int dfs(int n, int k) { ...
ALGO
0.999959
4.302799
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2022-09-23T01:55: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": "cfcb561eb921...
1fe3b91e-0795-489a-9fd5-befca134bacb
Walker30360/OI-Codes
P_4427_BJOI_2018_求和.cpp
#include<bits/stdc++.h> #define int long long #define rd read() #define maxn 300010 << 2 using namespace std; int n,m; const int mod = 998244353; bool book[maxn]; basic_string<int> tr[maxn]; inline int read(){long long s=0,w=1;char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')w=-1;ch=getchar();} while(ch>='0' && ch<=...
ALGO
0.999972
4.804725
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2021-12-20T10:24:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "34cb2733f5...
b8fbc2e5-6b16-43a6-87fd-e90626b89d46
Defense-Hub/Algorithm-Study
24.10.11/Park_양궁대회.cpp
#include <string> #include <vector> #include <iostream> using namespace std; //11:25 시작 ~ 12:00 종료 int maxDiff = -1; vector<int> answer; vector<int> apInfo; void dfs(int n, int idx, vector<int> vec){ if(idx == 11){ // 점수 계산 if(n > 0) vec[10] += n; int apScore = 0, ryScore = 0; for(in...
ALGO
0.99967
4.318639
{ "github_metadata": { "branch": "main", "commit_count": 367, "repo_created_at": "2024-08-26T01:06:51.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b1538da6779...
db0c2d13-1cc7-41fa-9f4d-2c04844a5199
stan-dev/math
stan/math/prim/err/check_pos_definite.hpp
#ifndef STAN_MATH_PRIM_ERR_CHECK_POS_DEFINITE_HPP #define STAN_MATH_PRIM_ERR_CHECK_POS_DEFINITE_HPP #include <stan/math/prim/fun/Eigen.hpp> #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err/check_not_nan.hpp> #include <stan/math/prim/err/throw_domain_error.hpp> #include <stan/math/prim/err/check_symmetri...
ALGO
0.984202
6.783888
{ "github_metadata": { "branch": "develop", "commit_count": 28933, "repo_created_at": "2015-07-01T18:40:54.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 785, "forks": 195, "issues": 298, "pull_requests": 19 }, "file_meta": { "content_id": ...
bb02e779-86b1-4b8f-8ca2-0c649455aa49
OisinDavey/CodeForcesRounds
Virtual/edu85/C.cpp
#include<bits/stdc++.h> #define MX_N 5001 #define INF 100000000 #define mod7 1000000007 typedef long long int ll; typedef unsigned long long int ull; ll gcd(ull a, ull b){return (a==0)?b:gcd(b%a,a);} ll lcm(ull a, ull b){return a*(b/gcd(a,b));} int kx[8] = {+2,+2,-2,-2,+1,+1,-1,-1}; int ky[8] = {+1,-1,+1,-1,+2,-2,...
ALGO
0.999971
3.658605
{ "github_metadata": { "branch": "master", "commit_count": 51, "repo_created_at": "2020-05-03T11:30:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f96ed27fd...
7fe989e2-77a3-4979-9122-8d50f15b7357
ishandutta2007/codeforces-a
abc864197532/normal/1403/B.cpp
#include <bits/stdc++.h> using namespace std; #define lli long long int #define mp make_pair #define pb push_back #define eb emplace_back #define test(x) cout << "Line(" << __LINE__ << ") " #x << ' ' << x << endl #define printv(x) {\ for (auto i : x) cout << i << ' ';\ cout << endl;\ } #define pii pair <int, int> #de...
ALGO
0.999918
3.575002
{ "github_metadata": { "branch": "main", "commit_count": 4, "repo_created_at": "2024-04-11T00:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ddb0b00ef188...
2541aae1-8c63-4849-a338-1838b56c9280
kefirchk/BSUIR
Semester_1/Basics of Algorithmization and Programming/labs/Lab 8/recurs_slova.cpp
#include "Headers.h" //подключение библиотеки void recursWord(char* new_str, int begin, int end); //функция переворота слова рекурсией void poisk_word(char* new_str, int n); //функция поиска слов в строке void recurs_slova(char* &new_str) ...
ALGO
0.999134
3.905465
{ "github_metadata": { "branch": "main", "commit_count": 22, "repo_created_at": "2025-03-11T20:31: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": "d3eb8d84e83...
7f9275b5-1fcd-4c17-a8a2-48a7e79e7eb8
kyun1016/algorithm
BOJ/30. 이진 탐색 트리/3038 완전 이진 트리.cpp
//# pragma GCC optimize ("O3") //# pragma GCC optimize ("Ofast") //# pragma GCC optimize ("unroll-loops") // //#include <iostream> //#include<vector> // //#pragma warning(disable:4996) //#pragma comment(linker, "/STACK:336777216") //using namespace std; //typedef long long ll; //typedef pair<int, int> pii; //typedef ve...
ALGO
0.999908
3.635288
{ "github_metadata": { "branch": "master", "commit_count": 169, "repo_created_at": "2019-05-01T02:34:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "6c212ee5...
7cc9b7b7-c0a3-4d2c-92db-0626c7d7b8d2
sbi-rostock/nupack-serve
nupack3.2.2/src/design/multistate/symmetry_calc.cc
#include "symmetry_calc.h" #include "symmetry_objective.h" #include "sequence_spec.h" #include "weight_spec.h" #include "design_debug.h" namespace nupack { const DBL_TYPE SingleSymmetrySpec::default_weight = 5; SingleSymmetrySpec::SingleSymmetrySpec(const std::string & name, const std::vector<std::string> & domai...
ALGO
0.995552
5.673168
{ "github_metadata": { "branch": "master", "commit_count": 162, "repo_created_at": "2020-04-22T07:27:45.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7e7046097...
07ede5c3-ecf2-4034-bdd7-853bc5e1ed93
Hilbertmf/competitive-programming-problems
contests/codeforces/round-905(div-3)/C.cpp
// https://codeforces.com/contest/1883/problem/C // accepted #include <bits/stdc++.h> using namespace std; #define DEBUG(x) std::cout << #x << " >>>> " << x << endl #define MID(l, r) (l + (r - l) / 2) #define CEILDIVISION(x, y) ((x + y - 1) / y) #define INF (int)1e9 #define LONGINF (long long)1e18 #define MEM(arr...
ALGO
0.999721
3.820692
{ "github_metadata": { "branch": "main", "commit_count": 217, "repo_created_at": "2021-07-20T20:40:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "bb08b25b55...
fab43c6d-a983-45ce-b561-67daea3bd9b0
Mittal854/III
Object Oriented Programming/linkedlist2.cpp
#include <iostream> using namespace std; struct Node { int data; struct Node *Next; }; struct Node *Head; struct Node *Create() { int data; cout << "Enter Data"; cin >> data; struct Node *newnode = new Node; newnode->data = data; newnode->Next = NULL; return newnode; } struct Node *...
ALGO
0.999431
4.569658
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2024-10-09T11:27:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5486219311...
e3e6ff60-57fc-4074-a70d-4d3846e5eedd
tatsumack/atcoder
abc031/D.cpp
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <set> #include <sstream> #include <s...
ALGO
0.999892
3.71318
{ "github_metadata": { "branch": "master", "commit_count": 527, "repo_created_at": "2018-03-12T23:22:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "64be234b...
79d44c73-9682-4c30-8e12-ad000650c38b
NgaiManChun/MilkyWave
source/hew_year2_base/collision.h
// ======================================================= // collision.h // // 作者:魏文俊(<NAME>) 2024/11/30 // ======================================================= #ifndef _COLLISION_H #define _COLLISION_H #include "MGDataType.h" namespace MG { namespace Collision { class CollisionUnit; enum COLLISION_TYPE ...
TOOL
0.907277
5.998463
{ "github_metadata": { "branch": "main", "commit_count": 8, "repo_created_at": "2025-05-01T03:09:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "69892cefc4a1...
4c815ebc-b05e-4188-a389-8627865ec823
KJaebye/Drone-Swarm-Cooperative-Transport
drone_controller/include/drone_control/attitude_control_loop.h
/* * Copyright 2015 <NAME>, ASL, ETH Zurich, Switzerland * Copyright 2015 <NAME>, ASL, ETH Zurich, Switzerland * Copyright 2015 <NAME>, ASL, ETH Zurich, Switzerland * Copyright 2015 <NAME>, ASL, ETH Zurich, Switzerland * Copyright 2015 <NAME>, ASL, ETH Zurich, Switzerland * * Licensed under the Apache License, V...
TOOL
0.914423
5.994844
{ "github_metadata": { "branch": "main", "commit_count": 58, "repo_created_at": "2021-05-17T13:16:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 13, "forks": 2, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "4691ed9ba8...
0b355923-e133-4fb1-b852-52fe4666295a
DangZhonghua/CodingPractice
LeetCode/MedimumLevel/Construct Binary Search Tree from Preorder Traversal.cpp
/* https://leetcode-cn.com/problems/construct-binary-search-tree-from-preorder-traversal/ Construct Binary Search Tree from Preorder Traversal Return the root node of a binary search tree that matches the given preorder traversal. (Recall that a binary search tree is a binary tree where for every node, any descendant...
ALGO
0.999995
6.404819
{ "github_metadata": { "branch": "master", "commit_count": 774, "repo_created_at": "2018-02-26T08: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": "a1e53219...
e55802b3-e775-431e-9e03-ba60a84f879d
wenhaoy-0428/Leetcode
64/solution.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; /** * @brief Each time, we reduce the problem into subproblems where, m, n indicates * the top left corner of the new subproblem. We find the minimum path sum in the subproblem. * In subproblems, we can find overlaps with the same m, n...
ALGO
0.999995
6.051549
{ "github_metadata": { "branch": "main", "commit_count": 52, "repo_created_at": "2025-05-06T07:24: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": "f84f91bd0f3...
b4aa5569-1435-4d17-9ac9-ab33e7924947
aslamovamir/CppProgramsFromDataStructuresTextbook
P-2.1.cpp
// Write a C++ program that can take a positive integer greater than 2 as input // and write out the number of times one must repeatedly divide this number by // 2 before getting a value less than 2. #include <iostream> using namespace std; int div_num(double input); int main() { double input; cout<<"Ente...
ALGO
0.99913
5.397811
{ "github_metadata": { "branch": "main", "commit_count": 70, "repo_created_at": "2021-09-09T02:27:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "abb2a565dbe...
50c82663-7518-44cb-a519-ffbe8b4d0c8b
notiom/Mystudy
leetcode/代码随想录/动态规划/最长连续递增序列.cpp
// 1.我自己的解 // 连续的最长子序列,动态规划中的每个dp取最大值 class Solution { public: int findLengthOfLCIS(vector<int>& nums) { // 使用动态规划 int n = nums.size(); vector<int> dp(n + 1,1); int res = 1; for(int i = 1;i < n;i++) { if(nums[i] > nums[i - 1]) dp[i +...
ALGO
0.999993
5.120638
{ "github_metadata": { "branch": "main", "commit_count": 465, "repo_created_at": "2024-04-01T08:50: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": "010dd81cf0...
7fc9f1b5-b0d5-48e9-9122-ba87178200a7
camgany/Algoritmica_2
algoritmos/backtracking/ejercicios/eightqueenproblem.cpp
#include <bits/stdc++.h> using namespace std; bool es_valido(int tablero[] [],int fila, int columna){//le damos un tablero y le ponemos en una fila y columna para poner una reina //comprobamos que no existan reinas en la misma fila for(int col =0; col<4;col++){//ninguna columna de la fila que estoy poniendo haya alg...
ALGO
0.999872
4.292612
{ "github_metadata": { "branch": "main", "commit_count": 65, "repo_created_at": "2021-08-08T20:58:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "1afc4650003...
0e715e7f-251e-4b4e-8865-159e2cf129ba
Evene174/HeavenlySword
code/ai/ainavmisc.cpp
#include "ainavtriangulate.h" #include "game/randmanager.h" #include "core/maths.h" static int choose_idx; static int permute[SEGSIZE]; /* Generate a random permutation of the segments 1..n */ int generate_random_ordering( int n) { //struct timeval tval; //struct timezone tzone; register int i; int m, s...
ALGO
0.996124
3.455779
{ "github_metadata": { "branch": "master", "commit_count": 3, "repo_created_at": "2019-10-30T19:15:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 16, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dc305e93e...
2c132a77-ea66-4d51-9701-d3c4bb9bd954
namangoyal10/Android_handsOn
hackerblocksbubblell.cpp
#include<iostream> using namespace std; class node{ private: node* next; int data; public: node(int d){ data=d; next=NULL; } friend class linkedlist; }; class linkedlist{ private: node* head; public: linkedlist(){ head=NULL;} void insertatbegin(int d){ nod...
ALGO
0.999966
4.182082
{ "github_metadata": { "branch": "master", "commit_count": 28, "repo_created_at": "2019-09-10T04:54: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": "e9e0c36b2...
d3058fab-aa6a-4d28-8b7e-413f346e60e4
danielhO9/PS
BOJ/3683.cpp
#include <bits/stdc++.h> using namespace std; int n, m; vector<vector<int>> adj(501); vector<int> aMatch, bMatch; vector<bool> visited; bool dfs(int a) { if (visited[a]) return false; visited[a] = true; for (auto b: adj[a]) { if (bMatch[b] == -1 || dfs(bMatch[b])) { aMatch[a] = b; bMatch[b] = a; return ...
ALGO
0.999899
4.218546
{ "github_metadata": { "branch": "main", "commit_count": 336, "repo_created_at": "2024-02-08T11:38: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": "6fbdfe4889...
7e98122b-ca20-4ba7-8f6e-ee7ac2331829
JJH-Log/2024AlgorithmStudy
week8/B2134.cc
// Subject: Study of Algorithm with SSAFY // ProblemNo: B2134 // Language: C++ // Author: pasta (JungJonghwa) #include <iostream> #include <algorithm> #include <vector> #include <queue> using namespace std; using lld = long long; #define MX 100000 #define MOD 1000000007 #define fastio cin.tie(0)->sync_with_stdio(0) #de...
ALGO
0.99999
3.441248
{ "github_metadata": { "branch": "main", "commit_count": 27, "repo_created_at": "2024-01-20T05:30: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": "f8245613382...