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
585fcc8a-eaba-4c7f-a81d-c246b2c8f018
AmmarKothari/ControlsLearning
LearningCpp/Codility Test/AeolusTest/Problem1/Problem1_test.cc
#include <algorithm> #include <vector> #include <ios> #include <iomanip> #include <iostream> #include <string> #include <sstream> #include "Problem1.h" using std::cin; using std::cout; using std::vector; using std::endl; using std::string; using std::getline; using std::stringstream; int main() { string A; string ...
TEST
0.944559
3.787868
{ "github_metadata": { "branch": "master", "commit_count": 75, "repo_created_at": "2017-12-03T19:19: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": "745379919...
65738969-99c1-471c-aeaf-fcfb3fa3302a
Arifulhaque-02128/DSA
Module7.5(SingleLinkedList_Practice)/printReverseLinkedList.cpp
#include<bits/stdc++.h> using namespace std; class Node { public : int val; Node * next; Node (int val){ this->val = val; this->next = NULL; } }; void insertAtTail(Node *&head, Node *&tail, int val){ Node *newNode = new Node(val); if (head == NULL) { he...
ALGO
0.999958
4.64644
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2023-07-04T07:54: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": "c4a349759fa...
914be4c8-39fa-491b-be21-68da91c6182b
abhishek9212/CPP_and_DSA
DSA questions and topics/Heaps/find_median_from_data_stream.cpp
#include<bits/stdc++.h> using namespace std; class MedianFinder { public: int arr[1000000]; int size; MedianFinder() { size = 0; arr[0] = -1; } void addNum(int num) { size++; int index = size; arr[index] = n...
ALGO
0.999982
4.868571
{ "github_metadata": { "branch": "master", "commit_count": 25, "repo_created_at": "2022-11-29T16:09: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": "bb8f5a723...
b8526614-7849-41aa-8ecd-b93ae1c9b0bf
chenxiangw/program
numerical-calculation/code/core/special_functions_source.cpp
#include<iostream> #include <cmath> #include<vector> #include<algorithm> #include"Evaluation_function.h" #define PI 3.141592653589793 #define EPS 1.0e-10 using namespace std; bool Chebyshev_solve_factors(const double a, const double b, vector<double> &c, Evaluation_function &func) { /* 计算切比雪夫多项式的系数 参数: a:区间下界 b:区...
ALGO
0.999918
3.75522
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2018-04-26T12:09: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": "de57803ef...
1e556699-f462-493c-ac4f-6e924d67090e
ferminMZT/demiurgo
Arbol.cpp
/* Arbol.cpp Implementacion de las fmc de la clase Arbol */ #include "Arbol.h" #include "Constante.h" #include "Utiles.h" #include "Variable.h" // Constructor complejo casi COMPLETO Arbol::Arbol(int prof, Conjunto<ptrNodo> &cVar, Conjunto<Flt> &tCte, Conjunto<ptrNodo> &cOpe) { if(prof == 1) // Caso basico: alc...
ALGO
0.996079
4.514406
{ "github_metadata": { "branch": "main", "commit_count": 10, "repo_created_at": "2023-09-27T13:20: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": "4c308f2c07b...
6b72ce6b-661b-4e29-97d9-d1617d527a2d
F-Stack/f-stack
freebsd/contrib/octeon-sdk/cvmx-malloc/thread-m.h
/* Copyright (c) 2001 <NAME> Copyright (c) 2006 Cavium networks Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that (i) the above copyright notices and this permission notice appear in all copies of the software and rela...
TOOL
0.916575
6.191339
{ "github_metadata": { "branch": "dev", "commit_count": 1274, "repo_created_at": "2017-04-14T02:25:12.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4032, "forks": 932, "issues": 281, "pull_requests": 0 }, "file_meta": { "content_id": "dde7...
c17f5443-f11c-4b30-b170-a1a020fe8219
Salil1212/30-Days-Of-Code
Day9.1.cpp
// 200. Number of Islands // Medium // Topics // Companies // Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. // An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges...
ALGO
0.999992
6.073127
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2024-04-11T13:03:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "489f3c81f...
e28b3e7e-c220-4b4f-a876-13043db68f32
SDP-Group2-2023/SDP-Project-Q2
src/parallel_coarsening.cpp
#include "Graph.h" #include <barrier> #include <mutex> #include <thread> #include <vector> /** * Compares two nodes based on their random value. * If the random value is the same, the node with the smaller id is chosen. * @param n1 * @param n2 * @param randVal * @return true if n1 is bigger than n2, false otherw...
ALGO
0.999898
5.966917
{ "github_metadata": { "branch": "main", "commit_count": 202, "repo_created_at": "2023-05-17T11:56:02.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "2840f691412...
658e3c53-e04c-4d8b-bcf3-5896dc47c10f
openscenegraph/OpenSceneGraph
src/osg/ComputeBoundsVisitor.cpp
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 <NAME> * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distrib...
TOOL
0.948492
6.14908
{ "github_metadata": { "branch": "master", "commit_count": 16331, "repo_created_at": "2010-03-01T12:11:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3417, "forks": 1456, "issues": 106, "pull_requests": 65 }, "file_meta": { "content_id"...
9cdf0400-7bfc-416e-a195-a96ac1bc86b5
amanjaiswl/algopractice
practice/dpprobs/lis.cpp
#include <bits/stdc++.h> using namespace std; #define ll long long void solve() { vector<int> v = {1, 3, 5, 8, 100, 121, 1, 2, 3, 4, 9, 5, 6, 7, 8}; vector<int> dp(v.size(), 1); vector<int> parent(v.size(), -1); for (int i = 1; i < v.size(); i++) { for (int j = 0; j < i; j++) { if (v[j] < v[i] &&...
ALGO
0.999973
4.354886
{ "github_metadata": { "branch": "main", "commit_count": 12, "repo_created_at": "2025-01-30T16:15: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": "353089b0463...
b4b2ebe3-2bf8-4759-aa67-a2723f84f15c
Yirululu/CS330
Selection.cpp
#include <iostream> using namespace std; int main() { // One-condition if/else int x = 10; if (x == 10) { cout << "x is 10\n"; } else { cout << "x is not 10\n"; } // Multi-condition if/else int y = 20; if (x > 0 && y < 50) { cout << "x is positive and y is ...
TOOL
0.958513
3.689764
{ "github_metadata": { "branch": "main", "commit_count": 29, "repo_created_at": "2024-09-15T20:37: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": "4d673a85d95...
f81bb320-f42c-4fce-b132-55193e7d8c18
BaiChunhui-9803/ofec_code
instance/algorithm/continuous/multi_objective/spmoea/spmoea1_0.cpp
#include "SPMOEA1_0.h" #include "../../../../../utility/linear_algebra/matrix.h" #ifdef OFEC_DEMO #include <core/global_ui.h> #endif namespace ofec { void SPMOEA1_0::initialize_() { SPMOEA::initialize_(); size_t num_space = getMO_HLC().numSubspace(); std::vector<Real> temp_ratio; Real total_volume = getVarS...
ALGO
0.999992
4.935127
{ "github_metadata": { "branch": "baichunhui", "commit_count": 20, "repo_created_at": "2025-02-19T01:49: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": "b2e8c...
46db97cf-364a-4818-a19c-9e05114763ef
CodeSorting/Programmers_algo
그래프/배달(12978다익스트라) lv2.cpp
#include <queue> #include <algorithm> #include <vector> using namespace std; typedef pair<int,int> pii; const int INF = 1e9 + 7; int solution(int n, vector<vector<int>> road, int k) { vector<pii> graph[n+1]; vector<int> distances(n+1,INF); vector<bool> visited(n+1,0); distances[1] = 0; for (const ...
ALGO
0.999844
5.111622
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2025-03-03T11:42: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": "17603ccbec...
476c2e01-01cd-4106-bf10-e065074c88fd
ishandutta2007/codeforces-m
marckess/normal/674/F.cpp
#include <bits/stdc++.h> #define endl '\n' #define fi first #define se second #define MOD(n,k) ( ( ((n) % (k)) + (k) ) % (k)) #define forn(i,n) for (int i = 0; i < n; i++) #define forr(i,a,b) for (int i = a; i <= b; i++) #define all(v) v.begin(), v.end() #define pb(x) push_back(x) using namespace std; typedef lon...
ALGO
0.999923
4.219212
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-06-06T01:03:30.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "21998f81450d...
c6c243fa-5951-4e21-926f-fb5aae8587b0
aditya-goyal3302/cpp
multi_array.cpp
#include <iostream> #include<iostream> using namespace std; class multiarray{ int s; int a[10][10]; int b[10][10]; int add[10][10]; int mul[10][10]={0}; public: void show(){ cout<<"Addition Matrix:"<<endl; for(int i=0; i<s; i++){ for(int j=0; j<s; j++){ ...
ALGO
0.998186
4.138177
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2023-03-30T05:22:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5178fc5d9616...
57520e18-277e-4f61-8bb9-dad2d9a09720
haiku/haiku
src/bin/debug/time_stats/timing_analysis.cpp
/* * Copyright 2008-2009, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <algorithm> #include <OS.h> #include "time_stats.h" #define MAX_THREADS 4096 struct UsageInfoThreadCompa...
TOOL
0.935472
5.736491
{ "github_metadata": { "branch": "master", "commit_count": 67939, "repo_created_at": "2011-06-16T05:35:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2042, "forks": 378, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3d...
e3e05959-a377-4e37-a75f-d3ba080376fd
bwynneHEP/DUNE-light-sim
fit/src/main.cpp
// This macro calculates the corrections needed in the Semi-analytic // scintillation light model. These corrections are parametrised as // Gaisser-Hillas functions. These functions depend on: 1) distance, // 2) offset-angle, and 3) distance to the center (border) of the // LArTPC active volume. It allows to correct fo...
ALGO
0.944223
3.333967
{ "github_metadata": { "branch": "main", "commit_count": 15, "repo_created_at": "2024-05-01T16:31:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "e2440f3d4f8...
c074b23e-4ce3-44a4-b73c-6d2b587198d2
ethz-asl/kalibr
aslam_nonparametric_estimation/bsplines/src/BSpline.cpp
#include <sparse_block_matrix/sparse_block_matrix.h> #include <sparse_block_matrix/linear_solver_cholmod.h> #include <bsplines/BSpline.hpp> #include <sm/assert_macros.hpp> #include <Eigen/Cholesky> #include <Eigen/LU> #include <Eigen/QR> //#include <asrl/string_routines.hpp> // boost::tie() #include <boost/tuple/tuple....
ALGO
0.998668
5.429958
{ "github_metadata": { "branch": "master", "commit_count": 359, "repo_created_at": "2014-05-29T12:31:48.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4839, "forks": 1450, "issues": 101, "pull_requests": 17 }, "file_meta": { "content_id": "...
0e545679-bd9e-476d-b77d-ce9cd8299954
PingYangChen/DiscrimOD
src/RcppExports.cpp
// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 1<PASSWORD>-1<PASSWORD> #include <RcppArmadillo.h> #include <Rcpp.h> using namespace Rcpp; #ifdef RCPP_USE_GLOBAL_ROSTREAM Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::...
ALGO
0.953928
4.485518
{ "github_metadata": { "branch": "master", "commit_count": 78, "repo_created_at": "2017-05-22T04:10:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "a04433f7a...
97821848-5d34-4486-82ac-a79fa032ff8e
Manish-kasera/Coding-Ninja-Introduction-To-CPP
10. Character Arrays/Remove Character.cpp
/* Remove character For a given a string(str) and a character X, write a function to remove all the occurrences of X from the given string. The input string will remain unchanged if the given character(X) doesn't exist in the input string. Input Format: The first line of input contains a string without any leading ...
ALGO
0.999955
4.557472
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2023-01-22T08:59: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": "16c7d7be043...
9fee3f3e-0060-4d54-bbe5-596b7d37f5f9
GTGAMESTUDIO/-1
all.cpp
5. std::accumulate — сумма/произведение элементов Зачем: Вычисление суммы, произведения или свёртки. cpp int sum = std::accumulate(v.begin(), v.end(), 0); // 15 int product = std::accumulate(v.begin(), v.end(), 1, [](int a, int b) { return a * b; }); // 120 6. std::remove + erase — удаление элементов Зачем: Удаление в...
TOOL
0.992009
4.437652
{ "github_metadata": { "branch": "main", "commit_count": 21, "repo_created_at": "2025-04-24T11:11: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": "40f9b439ca9...
a4a429c0-8f21-469c-b45a-7998700f1059
shovere/CompetitiveProgramming
MiddleClassSolution.cpp
//problem: https://vjudge.net/problem/CodeForces-1334B //solution #include <iostream> #include <algorithm> using namespace std; int main() { int numLines; cin >> numLines; for (int i = 0; i < numLines; i++) { int n; int x; cin >> n; cin >> x; int* arr = new int[n]; for (int i =0; i <...
ALGO
0.999692
3.822664
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2020-09-28T16:06: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": "3cf2c12d1...
ee7ec8b4-ca4c-44a1-8feb-c4673f9f5790
mireskandari/Competitive-Programming
codeforces/30/A.cpp
#include <bits/stdc++.h> using namespace std; using ll = long long; const auto IO_ = [] { return ios::sync_with_stdio(false), cin.tie(nullptr); }(); signed main() { ll A, B, n; cin >> A >> B >> n; if (B == 0) { cout << 0; exit(0); } if (A == 0) { cout << "No solution"; ...
ALGO
0.999993
4.233368
{ "github_metadata": { "branch": "main", "commit_count": 1141, "repo_created_at": "2024-03-06T03:13: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": "0c60b247d...
04f4f357-3866-4fc2-a6e1-40bba34eb300
kaldi-asr/kaldi
src/nnet2/nnet-limit-rank.cc
// nnet2/nnet-limit-rank.cc // Copyright 2012 Johns Hopkins University (author: <NAME>) // See ../../COPYING for clarification regarding multiple 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...
ALGO
0.99972
6.972706
{ "github_metadata": { "branch": "master", "commit_count": 9405, "repo_created_at": "2015-04-20T17:23:16.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 14986, "forks": 5368, "issues": 189, "pull_requests": 63 }, "file_meta": { "content_id":...
dc2640dd-b994-472e-a2fb-4a6d85974c49
sjtu-imperishable-night/code-library
Template/Template of Other Teams/Spear-of-Longinus/acm/2016-10-17(CCPC-2016-HEFEI)/G.cpp
#include <cstdio> #include <cstring> #include <algorithm> #include <iostream> #include <vector> using namespace std; const int N = 400005; int n, m; vector<int> G[N]; int a[N], Par[N]; struct node{ bool Rev; int c[2], fa; }T[N]; inline void Rev(int x){ if (!x) return; swap(T[x].c[0], T[x].c[1]); T[x].Rev ^= ...
ALGO
0.999979
4.065198
{ "github_metadata": { "branch": "master", "commit_count": 47, "repo_created_at": "2019-07-26T11:23:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "0e31ad3bc4...
f81ef24a-97c3-4bad-98fb-bbfa035ddf96
Hausdorffcode/leetcode_cpp
AddTwoNumbers.cpp
/**Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers do not contain any leading zero, except the numbe...
ALGO
0.99995
6.045884
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2017-04-07T10:05: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": "cfa0a29c7...
5907374b-e97a-4541-8956-d21c08acdb08
hossam7amdy/competitive-programming
leetcode-medium/search-a-2d-matrix.cpp
#include<bits/stdc++.h> using namespace std; /* # Approach 1 - flatten matrix + Binary Search # Approach 2: Binary Search - BS in rows then in cols # Complexity - Time: O(logn * logm) - Space: O(1) */ bool searchMatrix_(vector<vector<int>>& matrix, int target) { // flatten matrix int st = 0...
ALGO
0.999958
5.745175
{ "github_metadata": { "branch": "main", "commit_count": 69, "repo_created_at": "2022-10-14T23:18:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "ba4c22d7b31...
689f7dfd-d3be-4b1c-a561-5b9204595b23
ishandutta2007/codeforces-i
i_love_tanya_romanova/normal/159/A.cpp
/* Beams of fire sweep through my head Thrusts of pain increasingly engaged Sensory receptors succumb I'm no one now, only agony My crimson liquid so frantically spilled The ruby fluid of life unleashed Ripples ascend to the surface of my eyes Their red pens drawing at random, at will A myriad pains begotten in their...
ALGO
0.999664
3.212934
{ "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": "d58e6be9ac82...
27f2691d-8269-401d-a4f7-a5f3f32f5b8a
wywwwwei/Data-Structures-And-Algorithms
Leetcode/85.cpp
/** * 85. 最大矩形 * link:https://leetcode-cn.com/problems/maximal-rectangle/ */ /** * reference: * https://leetcode-cn.com/problems/largest-rectangle-in-histogram/ */ class Solution { public: int maximalRectangle(vector<vector<char>> &matrix) { int m = matrix.size(); if (m <= 0) ...
ALGO
0.999967
6.17191
{ "github_metadata": { "branch": "master", "commit_count": 641, "repo_created_at": "2019-08-07T14:54: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": "0aa940f1...
eea8db96-ef7d-401a-b3b1-800c61ee0ad4
Darkuss-ai/Comp_Math
Lab2/main.cpp
#include <iostream> #include <string> #include <utility> const double eps = 1E-7; using namespace std; struct Elem{ double i; Elem* next; Elem(){ next = nullptr; } explicit Elem(double i){ this -> i = i; next = nullptr; } }; class Stack{ public: Elem* head; ...
ALGO
0.999745
3.63595
{ "github_metadata": { "branch": "main", "commit_count": 20, "repo_created_at": "2021-03-11T18:00: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": "8bf555aea49...
dc204fd8-0832-4658-b103-da609cbbc5bd
turanszkij/WickedEngine
WickedEngine/Utility/DirectXMath/DirectXMathMisc.inl
//------------------------------------------------------------------------------------- // DirectXMathMisc.inl -- SIMD C++ Math library // // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // // http://go.microsoft.com/fwlink/?LinkID=615560 //-------------------------------...
ALGO
0.990391
7.379667
{ "github_metadata": { "branch": "master", "commit_count": 4629, "repo_created_at": "2015-06-20T13:35:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6359, "forks": 667, "issues": 25, "pull_requests": 6 }, "file_meta": { "content_id": "e...
d8a26739-ed99-4803-97ae-52297361920b
JuanSlaterT/A2
JuanArevalo/cuenta-moneda/cuenta_moneda.cpp
#include <iostream> // Es la biblioteca estándar en C++ para poder tener acceso a los dispositivos estándar de entrada y/o salida. using namespace std; //sirve como punto de partida para la ejecución del programa int main() // sirve como punto de partida para la ejecución del programa { float JDAB_x,JDAB_s=0,JDAB_s1=0...
ALGO
0.980898
3.003325
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2022-11-29T06:25: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": "301aee92f503...
9d832ef0-7653-4b05-b03f-e97072da7db0
antbenar/Bioinformatica
SegundaParte/Parsimonia/Parsimonia.cpp
#include <iostream> #include <vector> #include <stack> #include <algorithm> #include <iomanip> #include <queue> #include "tree.hpp" #define MAX 10000000 using namespace std; class Parsimonia{ private: template <typename T> void print(vector<vector<T>>& matrix){ std::cout << std::fixed; std::cout << std::set...
ALGO
0.999876
4.118412
{ "github_metadata": { "branch": "master", "commit_count": 9, "repo_created_at": "2019-09-19T06:13:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "105e55454e...
03bc0324-f132-489f-8a7e-4c7a8588d94d
CoolProp/IF97
wrapper/Mathcad/includes/prg.h
// if97_prg stub - Interfaces CoolProp IF97 function to Mathcad // // this code executes the user function if97_prg(P), which is a wrapper for // the CoolProp-IF97 function, viscvap_p(p), used to calculate the saturated // vapor viscosity along the saturation curve in terms of pressure LRESULT if97_PRG( LPCOMPLEX...
ALGO
0.929113
4.241116
{ "github_metadata": { "branch": "master", "commit_count": 102, "repo_created_at": "2015-03-28T05:38:51.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 90, "forks": 32, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "5aad25f...
49499694-f96e-41cc-be8a-def247bdd643
royappa/contests
CodeChef/k1dec01.cpp
// SEE COMMENTS FOR CODE ATTRIBUTIONS (IF ANY) // CAN'T FIND RULES ABOUT USING CODE FOUND ON WEB #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #includ...
ALGO
0.999818
4.24172
{ "github_metadata": { "branch": "main", "commit_count": 76, "repo_created_at": "2024-12-29T21: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": "818d42b7bc0...
85f1dd92-c286-4a10-9e94-a6652b2887bf
threeal/leetspace
old-problems/0241/solution.cpp
#include <string> #include <vector> class Solution { public: std::vector<int> diffWaysToCompute(std::string expression) { std::vector<int> operands{}; std::vector<char> operators{}; int num{0}; for (auto c = expression.data(); *c != 0; ++c) { if (*c >= '0') { num = num * 10 + *c - '0'...
ALGO
0.999981
6.449425
{ "github_metadata": { "branch": "main", "commit_count": 2163, "repo_created_at": "2023-09-13T10:41:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 235, "pull_requests": 174 }, "file_meta": { "content_id": "9c701...
4761c0c8-8925-498e-8ab0-515a3ee65efe
acordobav/histogram_equalization
systemc/Proyecto4/equalization.cpp
//----------------------------------------------------- #include <systemc.h> #define H_LENGTH 256 SC_MODULE (hist_equalizer) { //-----------Internal variables------------------- uint16_t img_rows, img_cols; uint8_t** original_img; uint8_t** filtered_img; sc_event start_t; // Constructor SC_CTOR(hist_...
ALGO
0.954911
5.118451
{ "github_metadata": { "branch": "main", "commit_count": 121, "repo_created_at": "2024-06-06T05:06: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": "3a4cc5dc9b...
6e697316-83b3-448d-966e-b7cf0463071b
Asgard7/Tree
main.cpp
#include <iostream> #include<stdio.h> #include<ctime> #include<cstring> #include<string> using namespace std; template<class T> struct Node { T key; Node<T>* p; Node<T>* l; Node<T>* r; Node() { key=T(); p=l=r=NULL; } }; template<class T> class Container { public: // Вирт...
ALGO
0.999712
3.544859
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-05-15T07:11:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 2, "pull_requests": 0 }, "file_meta": { "content_id": "b753e04ba0...
0992e482-292e-4f19-9316-6555a22609d6
AlessandroConti11/Binary_Search
monobound_interpolated_binary_search/monobound_interpolated_binary_search.cpp
#include "monobound_interpolated_binary_search.h" /** * Monobound interpolated binary search. * * @warning the array must be sorted. * * @param array the sorted array. * @param key the target value to find in the array. * @return the index of the target value, -1 if it is not present. */ int Monobound_Interpo...
ALGO
0.999873
5.348362
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2025-04-02T14:03: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": "1ca64e09b...
16990e11-c8b7-4e98-8ed2-39968707b4ec
meixiansen/leetcode_solution
leetcode/2/listNode_test/main.cpp
#include<malloc.h> #include<iostream> using namespace std; // Definition for singly-linked list. struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; ListNode *addTwoNumbers() { ListNode first_node(0); ListNode node1(1); ListNode node2(2); ...
ALGO
0.99967
4.996405
{ "github_metadata": { "branch": "master", "commit_count": 11, "repo_created_at": "2017-08-04T06:29:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "767370997...
b2498a84-04bb-4fb3-bdd2-58e2317dec93
chlqudco/BaekJoon-Algorithm
백준/Silver/2870. 수학숙제/수학숙제.cc
#include <iostream> #include <queue> #include <string> using namespace std; struct compare { bool operator()(string a, string b) { if (a.length() != b.length()) return a.length() > b.length(); return a > b; } }; int N; string str[101]; priority_queue<string, vector<string>, compare> pq; void Insert_And_Init() ...
ALGO
0.999706
5.041653
{ "github_metadata": { "branch": "main", "commit_count": 321, "repo_created_at": "2022-02-17T14:41: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": "7daa5fbfd5...
0162d3a9-2416-4456-8f7f-401d89f419ef
glennlopez/Cpp.Playground
zyBooks/4 - Loops/4.8 - Break and continue/4.8.1.cpp
#include <iostream> #include <string> using namespace std; /* "<NAME>" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the user must repeat the sequence. Create a for loop that compares the two strings starting from index 0. For each match, add one point to userScore. Upon a mismat...
ALGO
0.985518
3.549514
{ "github_metadata": { "branch": "master", "commit_count": 1869, "repo_created_at": "2015-11-10T16:22:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 21, "forks": 8, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "90d59c...
13bcb3b0-44bb-4f54-9320-ce1a5f8dc5db
Huynnee/bai-tap-trr
Graph.cpp
#include <bits/stdc++.h> using namespace std; //undirected graph class graph { vector<int>*adjacency_list; //array of vectors to store adjacency list int Vertices; public: //constructor graph(int n) { Vertices=n; adjacency_list=new vector<int>[Vertices]; //dynamic allocation } ...
ALGO
0.999771
4.74646
{ "github_metadata": { "branch": "main", "commit_count": 2, "repo_created_at": "2022-10-17T00:18: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": "e8b7b2d9ebed...
58919c40-adac-4c92-9123-5a4752830be3
MUNAKATA-EPC/Artemis_2023
Program/main/Teeensy/Line_Mega2560/src/main.cpp
#include <Arduino.h> int LINE_Theta[] = {360, 90, 90, 180, 180, 270, 270}; int LINE_Pin[] = {0, 1, 2, 3, 4, 5, 6}; // 0 : none / 1 : through int LINE_State[7]; int First_Pos; int First_deg; int Now_Line_Deg; int Line_Deg; void setup() { Serial2.begin(115200); } void loop() { if(CheckAllLine() == false) { ...
ALGO
0.976311
4.416569
{ "github_metadata": { "branch": "main", "commit_count": 146, "repo_created_at": "2022-04-20T12:46:02.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1597cc3a64f...
88e123ba-a5a5-4af9-a9cb-6b8291685db7
StefanShivarov/object-oriented-programming-fmi-2024-25
Week 01/Practicum 01/N Triangles/NTriangles.cpp
#define _CRT_SECURE_NO_WARNINGS #include <iostream> using std::cout; using std::cin; using std::endl; namespace Points { struct Point { int x; int y; }; void readPoint(Point& p) { cin >> p.x >> p.y; } void printPoint(const Point& p) { cout <<"(" << p.x<<", " << p.y<< ") "; } double getDist(const Point& ...
ALGO
0.998952
4.960146
{ "github_metadata": { "branch": "main", "commit_count": 315, "repo_created_at": "2025-02-16T13:38:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 31, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7c6de22e3...
c03df17c-2de6-4627-b40a-7644f2857908
Shaikh1828/Semester_4
OS/Lab5/fcfs.cpp
#include<bits/stdc++.h> using namespace std ; int main() { freopen("input.txt", "r", stdin) ; int processNumber , i, value, turn_time_sum = 0, wait_time_sum = 0 ; vector<int> burstTime, priority, waitingTime, turnaroundTime ; burstTime.push_back(0) ; turnaroundTime.push_back(0) ; waitingTime...
ALGO
0.999781
4.200396
{ "github_metadata": { "branch": "main", "commit_count": 18, "repo_created_at": "2024-02-22T13:58:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "1e8fb1788c2...
9c563d30-eb60-4935-bec3-89c3fa523185
hitonanode/cplib-cpp
convolution/ntt.hpp
#pragma once #include "../modint.hpp" #include <algorithm> #include <array> #include <cassert> #include <tuple> #include <vector> // CUT begin // Integer convolution for arbitrary mod // with NTT (and Garner's algorithm) for ModInt / ModIntRuntime class. // We skip Garner's algorithm if `skip_garner` is true or mod i...
ALGO
0.999296
5.895193
{ "github_metadata": { "branch": "master", "commit_count": 1134, "repo_created_at": "2019-08-10T00:24:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 81, "forks": 11, "issues": 62, "pull_requests": 7 }, "file_meta": { "content_id": "34d2...
30877db2-42c8-43cc-aac8-52e9c5c09952
jeffry1829/ojcode
545C.cpp
#include <bits/stdc++.h> using namespace std; const int _n = 1e5 + 10; int n, fell[_n], cnt = 1; pair<int, int> a[_n]; main(void) { cin.tie(0); ios_base::sync_with_stdio(0); cin >> n; for (int i = 0; i < n; i++) cin >> a[i].first >> a[i].second; fell[0] = -1, a[n] = {INT_MAX, 1}; for (int i = 1; i < n; i++)...
ALGO
0.999884
3.715707
{ "github_metadata": { "branch": "master", "commit_count": 54, "repo_created_at": "2020-08-09T08:41: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": "7e52ea362...
d600e51b-d58a-48fa-9077-ec670d2b1393
IllinoisRocstar/Rocstar
Rocmop/External/mesquite_0_9_5/src/QualityImprover/VertexMover/Randomize/Randomize.cpp
/* ***************************************************************** MESQUITE -- The Mesh Quality Improvement Toolkit Copyright 2004 Sandia Corporation and Argonne National Laboratory. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rig...
ALGO
0.98164
4.286725
{ "github_metadata": { "branch": "master", "commit_count": 47, "repo_created_at": "2019-03-26T13:38:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 29, "forks": 26, "issues": 6, "pull_requests": 0 }, "file_meta": { "content_id": "a60e2bc7...
10a5ee4e-56b1-4e13-ad74-628fd45f4bd5
the-stranded-alien/LeetCode
1501_1600/1512_Number_of_Good_Pairs.cpp
#include<iostream> #include<vector> #include<unordered_set> #include<queue> #include<list> using namespace std; // Given an array of integers nums, return the number of good pairs. // A pair (i, j) is called good if nums[i] == nums[j] and i < j. class Solution { public: int numIdenticalPairs(vector<int>& nums) {...
ALGO
0.999929
5.505178
{ "github_metadata": { "branch": "main", "commit_count": 421, "repo_created_at": "2022-01-01T17:46:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3825de8b43...
4707f79d-5c37-4484-803d-c2cc47edf62a
veeresh-desai/OBJECT-ORIENTED-PROGRAMMING
unit 1-Concepts and Basics of C++ Programming& functions/lecture 3/calucaltor.cpp
#include<iostream> using namespace std; class calculator{ public: int add(int a,int b){ return a+b; } int sub(int a,int b){ return a-b; } int product(int a, int b){ return a*b; } void division(int a, int b){ if(b==0){ co...
ALGO
0.971053
3.985689
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2024-09-26T19:32: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": "d4a0083b5375...
19846642-57ac-4832-be26-662496f1ea75
XjtrX/MyLeetcode
distinctSubsequences.cpp
/* author: jtr<EMAIL> date: 14.9.3 problem: Distinct Subsequences Total Accepted: 14462 Total Submissions: 58417 My Submissions Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string by deleting some (can ...
ALGO
0.999975
5.216565
{ "github_metadata": { "branch": "master", "commit_count": 141, "repo_created_at": "2014-07-30T05:32: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": "159c625d...
56e64ede-602d-48f5-8042-bd039bd962d4
yubinbai/pcuva-problems
UVa 1521 gcd guessing game/sol.cpp
#include<cstdio> #include<cstring> #include<algorithm> #include<functional> #include<iostream> #include<cstdlib> #include<cmath> using namespace std; #define MAXN (10000) #define eps (1e-9) #define For(i,n) for(int i=1;i<=n;i++) #define ForD(i,n) for(int i=n;i;i--) #define Fork(i,k,n) for(int i=k;i<=n;i++) int n, a[MAX...
ALGO
0.999986
3.410512
{ "github_metadata": { "branch": "master", "commit_count": 21, "repo_created_at": "2013-05-08T15:36:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 50, "forks": 40, "issues": 1, "pull_requests": 0 }, "file_meta": { "content_id": "359bdcd...
18886e63-36ed-412c-93eb-35299c744c83
Mehulcoder/Codeforces
Random_Problems/BNY.cpp
/* Author: <NAME> */ #include <bits/stdc++.h> using namespace std; using ll = long long; ll findMinimumAdjacentSwaps(vector<ll> &arr, ll N) { bool visited[N + 1]; ll minimumSwaps = 0; memset(visited, false, sizeof(visited)); for (int i = 0; i < N; i++) { if (visited[i]) continue; visited[i] = 1; ll count...
ALGO
0.999923
3.951212
{ "github_metadata": { "branch": "master", "commit_count": 225, "repo_created_at": "2019-08-11T15:29:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "752e8824...
f580dbdf-eac3-4709-8509-d6aa341dc927
Edu175/Competitive_Programming
ioi/2021/2/dungeons/files/full_nomem.cpp
#include <bits/stdc++.h> #define pb push_back #define fst first #define snd second #define fore(i,a,b) for(ll i=a,ioi=b; i<ioi; i++) #define SZ(x) ((int)x.size()) #define ALL(x) x.begin(),x.end() #define mset(a,v) memset((a),(v),sizeof(a)) #define imp(v) {for(auto kdfhg:v)cout<<kdfhg<<" ";cout<<"\n";} using namespace s...
ALGO
0.99982
3.61151
{ "github_metadata": { "branch": "master", "commit_count": 66, "repo_created_at": "2022-09-14T03:09:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4b02170b8...
2f8db7dc-adf6-4f8a-86de-8564a924a28a
cctbx/cctbx_project
scitbx/matrix/special_matrices.h
#ifndef SCITBX_MATRIX_SPECIAL_MATRICES_H #define SCITBX_MATRIX_SPECIAL_MATRICES_H #include <scitbx/array_family/versa.h> #include <scitbx/array_family/versa_matrix.h> namespace scitbx { namespace matrix { template <typename NumType> af::versa<NumType, af::c_grid<2> > identity(int n) { af::versa<NumType, af::...
ALGO
0.971093
6.984239
{ "github_metadata": { "branch": "master", "commit_count": 38660, "repo_created_at": "2015-07-22T13:36:27.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 256, "forks": 121, "issues": 120, "pull_requests": 31 }, "file_meta": { "content_id": "...
dcfabfe9-a7be-440f-81ab-7086ff711caa
M3093/n-meros-a-letras-
main.cpp
// Programa de pasar de numeros a letas, tiene la función de introducir un número de 0-999 y dar la función de nombre de dicho número// #include <string> #include <iostream> using namespace std; int main() { string unidades[] = {"cero", "uno", "dos" ,"tres" ,"cuatro" ,"cinco" , "seis" ,"siete" ...
TOOL
0.973868
3.009754
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2021-04-29T16:13: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": "1b7d038777...
c5f345f0-0718-42fb-b730-825125e68cff
Wizmann/ACM-ICPC
Leetcode/Algorithm/cpp/03578-Count Partitions With Max-Min Difference at Most K.cc
const int MOD = 1e9 + 7; int quickpow(int a, int b) { int res = 1; while (b) { if (b & 1) { res = (1LL * res * a) % MOD; } a = (1LL * a * a) % MOD; b /= 2; } return res; } class Solution { public: int countPartitions(vector<int>& nums, int k) { m...
ALGO
0.999941
5.324005
{ "github_metadata": { "branch": "master", "commit_count": 3480, "repo_created_at": "2011-12-19T02:04:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 63, "forks": 29, "issues": 97, "pull_requests": 0 }, "file_meta": { "content_id": "b407...
20d63d7c-b8fd-44d0-b4a0-8e3da44ad363
takoyaki65/kyopro-code
atcoder/abc236/d.cpp
#include <bits/stdc++.h> using namespace std; int n; int a[17][17]; bool used[17]; int arr[17]; int bfs(int count) { if (count == n) { int val = 0; for (int i = 0; i < n; i += 2) val ^= a[arr[i]][arr[i + 1]]; return val; } int ret = 0; int i = 0; while (used[i]) i += 1; for (int j =...
ALGO
0.999979
4.022205
{ "github_metadata": { "branch": "master", "commit_count": 153, "repo_created_at": "2020-08-16T07:54: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": "64357392...
09194e2e-e19f-4b1e-a6b0-cad4590c0aeb
fragosoa/interview-prep
ae-validate-subsequence.cpp
// // main.cpp // interviewprep // // Created by <NAME> on 30/06/25. // #include <iostream> using namespace std; int dp[1000][1000]; void printm(int n, int m){ } bool isValidSubsequence(vector<int> A, vector<int> B) { // Write your code here. int rows = A.size(); int cols = B.size(); for(int i=0;i<...
ALGO
0.999716
5.354123
{ "github_metadata": { "branch": "main", "commit_count": 48, "repo_created_at": "2025-07-01T05:11: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": "6293b0351ab...
6023481c-8178-42e5-95f7-741b2ce32177
mitkonikov/competitive
AtCoder/B_Rotate.cpp
#include <bits/stdc++.h> #define ll long long #define endl '\n' using namespace std; int main() { int N; cin >> N; vector<string> A(N); for (int i = 0; i < N; i++) { cin >> A[i]; } string S = ""; for (int i = 0; i < N; i++) S += A[0][i]; for (int i = 1; i < N; i++) S += A[i][N-...
ALGO
0.999995
4.077887
{ "github_metadata": { "branch": "main", "commit_count": 229, "repo_created_at": "2021-09-13T12:20:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 12, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "798cbeb68...
41283e50-53cb-4a2e-bd81-1f988943f018
qqiamg/all_bace_model
临时模块/taichi/taichi-master/examples/cpp/mpm_benchmark.cpp
#include <random> #include <algorithm> #include <taichi/lang.h> #include <taichi/util.h> #include <taichi/visual/gui.h> #include <taichi/common/bit.h> #include <taichi/system/profiler.h> TC_NAMESPACE_BEGIN using namespace Tlang; auto mpm_benchmark = [](std::vector<std::string> cli_param) { Program prog(Arch::gpu);...
ALGO
0.983021
5.652387
{ "github_metadata": { "branch": "master", "commit_count": 23, "repo_created_at": "2020-01-03T08:42:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "5daef7bd1...
0fdefa0d-9fc0-4d8c-963b-13a98d3b0280
Shreya-Kesharwani/C-plus-plus-STL
iterators02.cpp
#include<iostream> #include<vector> using namespace std; //iterators c++ stl ka ek bahut hi crucial hissa hai jo hame containers ki value ko access karne me help karte hai unko change karne me help karte hai basically unko uper jobhi operations hai unko perform karne me help karte hai containers ki values ke uper //it...
TOOL
0.984232
4.511796
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2023-12-22T12:57: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": "9759884e2a79...
a69a027a-ed6e-4dd5-b2bb-0ebf9bd0234a
bsarvan/algorithms
duplicateArray/main.cpp
// // main.cpp // duplicateArray // // Created by bsarvan on 14/01/18. // Copyright © 2018 bsarvan. All rights reserved. // #include <iostream> #include <vector> using namespace std; void printArray(vector<int> a){ for(int i=0;i<a.size();i++){ cout<<a[i]<<" "; } cout<<endl; return; } int ...
ALGO
0.998193
4.938151
{ "github_metadata": { "branch": "master", "commit_count": 6, "repo_created_at": "2020-12-30T08:33: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": "1f3fc3b8ea...
c3712b67-5a01-44b9-9915-61f12b87e60a
sanketdisale871/DSA
3496-minimum-number-of-seconds-to-make-mountain-height-zero/minimum-number-of-seconds-to-make-mountain-height-zero.cpp
class Solution { private: typedef long long int ll; ll findMaxiRed(ll md,ll t){ ll low = 0; ll high = 1e6; ll ans = low; while(low<=high){ ll mid = low + (high-low)/2; ll res = t*(mid*(mid+1)/2); if(res<=md){ ans = mid; ...
ALGO
0.999987
5.627637
{ "github_metadata": { "branch": "main", "commit_count": 2750, "repo_created_at": "2022-10-10T12:49:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "3323c93aa...
aa67cc51-43be-4ec2-a28b-d9044229e841
nskywalker/cpp-search-server
search-server/search_server.cpp
#include "search_server.h" SearchServer::SearchServer(const string& stop_words_text) : SearchServer( SplitIntoWords(stop_words_text)) // Invoke delegating constructor from string container { } SearchServer::SearchServer(std::string_view stop_text) : SearchServer(SplitIntoWords(stop_text)) {} void Se...
WEB
0.989431
6.329174
{ "github_metadata": { "branch": "main", "commit_count": 32, "repo_created_at": "2023-05-02T07:33: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": "c5f6308b9f0...
eb3c94b7-3d34-4c8c-b878-99a27677715c
jsq1234/DSAProblems
strings/make_number_of_distinct_character_equal.cpp
#include <bits/stdc++.h> using namespace std; class Solution { public: bool isItPossible(string& word1, string& word2) { int f1[26] = {0}; int f2[26] = {0}; int n1 = word1.length(), n2 = word2.length(); int dis_count1 = 0, dis_count2 = 0; for(int i=0; i<n1; i++){ ...
ALGO
0.999988
5.352796
{ "github_metadata": { "branch": "main", "commit_count": 155, "repo_created_at": "2023-05-10T18:05: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": "808ecdd0ce...
f0d7680d-82da-4844-8d73-d8faf006c726
adobe-flash/crossbridge
cmake-2.8.10.1/Source/cmFindBase.cxx
/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2000-2009 Kitware, Inc., Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This softwa...
TOOL
0.958038
5.645731
{ "github_metadata": { "branch": "master", "commit_count": 58, "repo_created_at": "2013-06-21T20:16:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 550, "forks": 198, "issues": 31, "pull_requests": 1 }, "file_meta": { "content_id": "c482d...
31ff5c59-069c-4d6d-bcbf-abbe2c40a198
bhavya-107/mini-projects-basic
snakeGame.cpp
#include <iostream> #include <vector> #include <conio.h> #include <windows.h> #include <cstdlib> #include <ctime> using namespace std; class snakeGame { private: int width, height; int x, y; int fruitX, fruitY; int score; vector<pair<int, int>> tail; enum direction { STOP = 0, ...
TOOL
0.969788
4.865321
{ "github_metadata": { "branch": "main", "commit_count": 16, "repo_created_at": "2025-06-13T08:30: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": "caed7524555...
1295c6fa-75ce-4e2d-85f3-887da226946f
DatouNie/cworkspace
8.cpp
/************************************************************************* > File Name: 8.cpp > Author: Datou_Nie > Mail: <EMAIL> > Created Time: 2017年07月23日 星期日 19时10分21秒 ************************************************************************/ #include<iostream> #include<cstring> using namespace std; void eig...
ALGO
0.99986
3.913466
{ "github_metadata": { "branch": "master", "commit_count": 28, "repo_created_at": "2017-05-19T13:29: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": "22e9af7f8...
6b8952cf-6b83-4278-8f0f-a22e137b065b
rheit/zdoom
src/b_func.cpp
/******************************* * B_spawn.c * * Description: * * various procedures that the * * bot need to work * *******************************/ #include <stdlib.h> #include "doomtype.h" #include "doomdef.h" #include "doomstat.h" #include "p_local.h" #include "p_ma...
TOOL
0.986716
4.280694
{ "github_metadata": { "branch": "master", "commit_count": 8410, "repo_created_at": "2013-06-14T01:08:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 364, "forks": 96, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4135...
c5720aba-98c4-4ad5-9305-f9e55c2b8b55
cppnuts-yt/CppNuts
Design Pattern/Observer Design Pattern/ObserverDesignPattern.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; // -1 0 1 class Car { int position; int tmp; std::vector<class Observer*> observerList; std::vector<class Observer*> observerTmpList; public: int getPosition() { return position; } void setPosition(int newPosition) { ...
ALGO
0.997416
3.608913
{ "github_metadata": { "branch": "master", "commit_count": 39, "repo_created_at": "2020-07-01T14:03:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 65, "forks": 40, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "b24c5dc...
65dacda9-f42a-4d5e-ba2a-12cd58f14cd9
Noamaan6688/Daily-Coding-Problems
CodeForces/GNU C++17/1613C | Poisoned Dagger/170095461.cpp
// Hi #include <bits/stdc++.h> #define f(i, n) for (ll i = 0; i < n; i++) #define f1(i, n) for (ll i = 1; i <= n; i++) #define fn(i, j, k) for (ll i = j; i <= k; i++) #define flash ios_base::sync_with_stdio(0); cin.tie(0); #define ll long long #define MOD 1000000007 using namespace std; // bool fa(ll p,ll q,ll b[...
ALGO
0.999903
3.455001
{ "github_metadata": { "branch": "main", "commit_count": 2372, "repo_created_at": "2022-04-02T13:53:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "4706fb8d1...
43af7ff7-67b1-435b-9fa8-aeb212c0dcb8
Uk2607/AOC24
code/09.cpp
#include "file_name.h" #include<iostream> #include<fstream> #include<sstream> #include<string> #include<vector> #include<map> #include<set> #define ll long long int #define ull unsigned long long int using namespace std; using Block = tuple<int, int, int>; // {id, block_size, pos} string get_input(string file_path...
ALGO
0.999148
4.49086
{ "github_metadata": { "branch": "main", "commit_count": 155, "repo_created_at": "2024-12-01T02:12: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": "a17b32a66c...
873fe84f-d441-4b5e-83e2-c41bbb9a3e3a
TechnicalAmanjeet/Data-Structure-and-Agorithm-in-Cpp
linklist/Linkedlist.cpp
#include<bits/stdc++.h> using namespace std; class Node{ public: int Data; Node* Next; }; class Linkedlist { private: Node* front =NULL; int cont = 0; public: Node* head=NULL; Linkedlist(/* args */); bool isempty(); void display(); void push(); // adding element at end void ...
ALGO
0.998421
4.156847
{ "github_metadata": { "branch": "master", "commit_count": 19, "repo_created_at": "2021-07-11T16:51: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": "851227e7c...
b84f8e6d-8ed1-4aaf-96e1-12e98a3aef04
WeAreChampion/notes
c/template/Template_N个数的最大最小值.cpp
#include<iostream> using namespace std; template<class Type> Type getMax(Type a, Type b) { return (a > b ? a : b); } template<class Type> Type getMin(Type a, Type b) { return (a < b ? a : b); } void TestInt() { int n; cin>>n; int a; cin>>a; int b, min = a, max = a; for(int i = 1; i < n; i++) { cin>>b; min ...
ALGO
0.999928
3.864942
{ "github_metadata": { "branch": "master", "commit_count": 5, "repo_created_at": "2016-12-04T05:53:27.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "dea930f0492...
221c23fa-9e10-480f-a58c-c76193eeae0a
anpoli99/NyuProgTeamMeetings2022-23
Spring Week 3/templates/B/B_rectangularspiral.cpp
#include <bits/stdc++.h> using namespace std; // Input format: x,y = queried point // Return: vector of ints of the shortest path from (0,0) to (x,y) // return empty vector if no path exists vector<int> solve(int x, int y){ return {}; // This is a placeholder } int main(){ int qr; cin >> qr; f...
ALGO
0.999672
3.874995
{ "github_metadata": { "branch": "main", "commit_count": 80, "repo_created_at": "2022-10-28T14:44:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 8, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "341d9cc8ab3...
3df0d668-21db-4072-866b-682b9ad52916
JH-LEE-Dev/Problem-Solving
graph/1865.cpp
#include <iostream> #include <vector> #include <queue> #include <stack> #include <unordered_set> #include <unordered_map> #include <set> #include <map> #include <algorithm> #include <limits> #include <tuple> #include <string> #define endl '\n' #define INF numeric_limits<long long>::max()/2 using namespace std; #define...
ALGO
0.999853
4.426616
{ "github_metadata": { "branch": "master", "commit_count": 431, "repo_created_at": "2024-09-05T08:12:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "8317c4e4...
d2a87ed8-9cbc-47e5-916e-73bd32153263
VarunVeginati/leetcode
741-cherry-pickup/741-cherry-pickup.cpp
class Solution { public: vector<vector<int>> vec; vector<vector<vector<int>>> memo; int r; int c; vector<pair<int,int>> directions = { make_pair(0,1), make_pair(1,0) }; bool is_invalid(int r1, int c1, int r2, int c2) { return (r1<0 || r2<0 || c1<0 || c2<0 ||...
ALGO
0.999983
5.760806
{ "github_metadata": { "branch": "main", "commit_count": 1377, "repo_created_at": "2021-08-14T20:47: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": "f93ac6e2e...
64c86c0c-356f-4188-8846-027d4027fc82
Ph0en1xGSeek/ACM
Codeforces/Jury_Marks.cpp
#include <iostream> #include <stdio.h> #include <algorithm> #include <string.h> #include <map> using namespace std; int arr[2017]; int result[2017]; map<int , int> isExist; int main() { int cnt = 0; int k, n; scanf("%d%d", &k, &n); scanf("%d", &arr[0]); isExist[arr[0]+2000] = 2; for(int i =...
ALGO
0.999306
3.420492
{ "github_metadata": { "branch": "master", "commit_count": 558, "repo_created_at": "2016-07-22T08:18:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "f206086f...
db1ad159-7667-49cb-9795-eaa91ee1759e
abuasifkhan/LightOJ
1161-Extreme-GCD/1161.cpp
//! Bismillahi-Rahamanirahim. /// /** ========================================** ** @Author: <NAME> /** ========================================**/ /**................ Headers ................**/ #include <bits/stdc++.h> using namespace std; /**................ Macros ................**/ #define Set(N, j) (N|(1<<...
ALGO
0.99983
3.702978
{ "github_metadata": { "branch": "master", "commit_count": 156, "repo_created_at": "2015-03-26T08:02:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "79cf79e4...
517243d3-db33-406b-83c6-35db22f24e5b
huhumeng/dvo-cpp
include/core/optimizer.h
#pragma once #include <Eigen/Core> #include "core/param_config.h" namespace dvo { namespace core { enum class TerminationCriteria { IterationsExceeded, IncrementTooSmall, LogLikelihoodDecreased, TooFewConstraints, NumCriteria }; struct IterationStats { EIGEN_MAKE_ALIGNED_OPERATOR_NEW; ...
ALGO
0.973935
6.753094
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2019-11-19T01:15: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": "40e156529a...
c3f8691a-86d0-41d1-b0b5-b5aaaab47f41
anhntb/UIT
IT002_OOP/TH/Bai1_TH/Bai04_NgayKeTiep.cpp
#include <iostream> using namespace std; /* Bài 4: Viết chương trình nhập vào một ngày. Tìm ngày kế tiếp và xuất kết quả. +Input: 1 ngày (Ngày / tháng / năm) +Output: ngày kế tiếp */ struct Date { int iDay; int iMonth; int iYear; Date(int d=1, int m=1, int y=1) : iDay(d), iMonth(m), iYear(y) { ...
TOOL
0.938984
3.436592
{ "github_metadata": { "branch": "main", "commit_count": 156, "repo_created_at": "2024-09-20T17:46:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "83cf05fd59...
9c1424ad-1efb-4c8e-8069-c7f4c7e21547
E3SM-Project/HOMMEXX
src/share/cxx/prim_advance_exp.cpp
/******************************************************************************** * HOMMEXX 1.0: Copyright of Sandia Corporation * This software is released under the BSD license * See the file 'COPYRIGHT' in the HOMMEXX/src/share/cxx directory ***********************************************************************...
ALGO
0.99934
5.791198
{ "github_metadata": { "branch": "master", "commit_count": 2045, "repo_created_at": "2016-09-27T05:55:08.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 11, "forks": 0, "issues": 55, "pull_requests": 1 }, "file_meta": { "content_id": "65cb39...
a7b8c1bc-ebf6-42b7-baed-ee2a5ac7a7ee
mrreda1/problem-solving
csacademy/MatrixExploration.cpp
#include <bits/stdc++.h> #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define make_unique(x) sort(all(x)), x.erase(unique(all(x)), x.end()) using namespace std; template <typename T> T nxt(); template <typename T> class is_iterable { public: template <typename U> static auto test(U...
ALGO
0.999981
3.786866
{ "github_metadata": { "branch": "main", "commit_count": 19, "repo_created_at": "2025-01-27T18:28: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": "3f716d3d998...
b402aefd-8f52-4bba-98ce-5932fc912098
MichaelKim/15puzzle
include/BoardRect.h
#ifndef BOARDRECT_H #define BOARDRECT_H #include <array> #include <ostream> #include <vector> #include "Direction.h" #include "DisjointDatabase.h" /* Rectangular board - No mirror - No walking distance */ class BoardRect { const int WIDTH; const int HEIGHT; // {0, -1}, {1, 0}, {0, 1}, {-1, ...
ALGO
0.900985
7.576406
{ "github_metadata": { "branch": "master", "commit_count": 108, "repo_created_at": "2017-10-16T13:43:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 1, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "9593f8db...
a6a1e9c7-afc3-479a-a3ff-4e46a30f648b
yuanmaoxun/acm_code
hdu程序/5703.cc
// 5703.cpp #include <ios> #include <map> #include <set> #include <list> #include <cmath> #include <ctime> #include <deque> #include <queue> #include <stack> #include <bitset> #include <cctype> #include <cerrno> #include <cfloat> #include <cstdio> #include <cwchar> #include <iosfwd> #include <limits> #include <locale> ...
ALGO
0.998168
3.159616
{ "github_metadata": { "branch": "master", "commit_count": 1, "repo_created_at": "2018-04-04T02:39:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "21ce49ea6d...
4146f6cf-8c5c-4e45-ae1c-668d7f196a77
jcarlosadm/basketball-court
basketball-court/circleequation.cpp
#include "circleequation.h" void draw(int centerx, int centery, int radius, float color[], Point plotter, int x_init, int x_end) { if (x_init > x_end) { int temp = x_init; x_init = x_end; x_end = temp; } if (x_init < - radius) x_init = - radius; if (x_init > radius) ...
ALGO
0.979089
5.144063
{ "github_metadata": { "branch": "master", "commit_count": 25, "repo_created_at": "2018-03-12T18:09: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": "e02c02d1f...
1211b0e9-9c45-4b1e-9e73-8a1f291977e8
psi4/psi4attic
psi3_attic/libyeti/sort.h
/* *@BEGIN LICENSE * * PSI4: an ab initio quantum chemistry software package * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any ...
ALGO
0.993494
6.4487
{ "github_metadata": { "branch": "master", "commit_count": 26, "repo_created_at": "2016-01-19T18:33:34.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 1 }, "file_meta": { "content_id": "46ddc12ec7...
f2a27533-f069-43c3-a4bd-e5ba79be79e1
Tquynguyen/contro
mainrenluyencontro3.cpp
#include <iostream> #include <time.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ /* Nhap vao 1 ma tran bat ky [-50;100] voi so hang, cot cho truoc, tim so lon nhat va nho nhat cua ma tran */ using namespace std; void Nhapmatran(int **&M, int ...
ALGO
0.996852
3.230254
{ "github_metadata": { "branch": "main", "commit_count": 5, "repo_created_at": "2023-06-17T08:32: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": "6c7a23c81591...
bd982263-b363-4b13-af81-233c5c2a1ab0
kmjp/procon
srm/501-520/505/SentenceCapitalizerInator.cpp
#include <cstdlib> #include <cstring> #include <memory> #include <cstdio> #include <fstream> #include <iostream> #include <cmath> #include <string> #include <sstream> #include <stack> #include <queue> #include <vector> #include <set> #include <map> #include <algorithm> #include <numeric> using namespace std; #include ...
ALGO
0.977207
4.009926
{ "github_metadata": { "branch": "master", "commit_count": 3966, "repo_created_at": "2015-02-15T11:25:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 12, "forks": 2, "issues": 0, "pull_requests": 2 }, "file_meta": { "content_id": "dbab40...
cf18add9-0ac5-4900-8d13-7cf8c0889f7c
microsoft/onnxruntime-openenclave
onnxruntime/core/providers/cpu/math/clip.cc
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/providers/cpu/math/clip.h" #include "core/framework/data_types_internal.h" #include "core/util/math_cpuonly.h" namespace onnxruntime { ONNX_CPU_OPERATOR_VERSIONED_KERNEL( Clip, 6, 10, Kernel...
ALGO
0.920501
7.515605
{ "github_metadata": { "branch": "openenclave-public", "commit_count": 2864, "repo_created_at": "2020-08-25T16:58:14.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 36, "forks": 18, "issues": 1, "pull_requests": 13 }, "file_meta": { "content...
16c4d92c-bc67-40c0-be03-f8ea4683f204
cessen/psychopath_cpp
utils/simd.hpp
#ifndef SIMD_HPP #define SIMD_HPP #include <x86intrin.h> namespace SIMD { struct float4 { __m128 data; float4(): data() {}; float4(const float f): data(_mm_set_ps1(f)) {} float4(const float f1, const float f2, const float f3, const float f4): data(_mm_set_ps(f4, f3, f2, f1)) {} float4(const float* const fs): d...
ALGO
0.97966
5.938338
{ "github_metadata": { "branch": "master", "commit_count": 446, "repo_created_at": "2012-03-27T08:39:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 57, "forks": 5, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7331cb7...
70e31153-ca71-4fd2-a982-a1928b247ef2
animeshjajoo/Leetcode-Solutions
Shortest Distance in a Binary Maze - GFG/shortest-distance-in-a-binary-maze.cpp
//{ Driver Code Starts // Initial Template for C++ #include <bits/stdc++.h> using namespace std; // } Driver Code Ends // User function Template for C++ class Solution { public: bool inside(int nx, int ny, int n, int m){ return (nx>=0 && ny>=0 && nx<n && ny<m); } int shortestPath(vector<v...
ALGO
0.999951
5.734197
{ "github_metadata": { "branch": "main", "commit_count": 109, "repo_created_at": "2023-06-26T20:02: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": "22ae38d625...
d34e9e29-5f49-4b24-8d89-63ee188c989a
kimwiseong/Algorithm
baekjoon/step/25305.cpp
//merge sort #include <iostream> #include <ctime> using namespace std; int n, k; void merge(int *list, int left, int mid, int right) { int i = left, j = mid+1, k = left, l; int tmp[1000]; while (i<=mid && j<=right) { if (list[i] < list[j]) tmp[k++] = list[i++]; else tmp[k++] = list[j++]...
ALGO
0.999994
3.956596
{ "github_metadata": { "branch": "main", "commit_count": 320, "repo_created_at": "2022-04-05T04:32: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": "34d295763c...
a72ebd1f-6eb1-4229-828a-2efe62c3a027
daneqdrain/homework6
homework6/Source.cpp
#include <iostream> #include <Windows.h> template <typename T> T MediumNumber(T arr[], int size); template <typename T> void determinant(T arr[], int size); int main() { setlocale(LC_ALL, "ru"); std::cout << "----- Задание 2 -----\n"; const int size = 5; double arr[size]{ 1.5,1.7,1.2,17.1,14 }; std::cout ...
ALGO
0.999793
4.130994
{ "github_metadata": { "branch": "master", "commit_count": 2, "repo_created_at": "2025-03-02T07:12: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": "0574ba9dc9...
57b62ad7-d7cd-44f1-b5ba-4dc46dc4e1a6
ishandutta2007/codeforces-nonalphabetic
353cerega/normal/528/C.cpp
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define X first #define Y second const ll mod = 998244353; ll gcd(ll a, ll b) { if (a==0 or b==0) return a+b; return gcd(b,a%b); } ll sum(ll a, ll b) { a += b; a %= mod; re...
ALGO
0.999979
4.100193
{ "github_metadata": { "branch": "main", "commit_count": 1, "repo_created_at": "2024-10-30T16:49:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "c432ca7804fc...
24912fd1-e43e-4805-9ed4-fa69578ff7c2
lscatfish/LiuStudy-common
05_ArmorRecognition/src/recognition.cpp
#include <opencv2/opencv.hpp> #include <vector> #include <string> #include <stdlib.h> #include "recognition.h" #include <cmath> // 先将图片转化为hsv,inRang控制 // 转化为RGB,二值化 //###################################################################################### recognition::recognition(const cv::Mat &input, const std::stri...
TOOL
0.977814
3.993734
{ "github_metadata": { "branch": "main", "commit_count": 23, "repo_created_at": "2025-03-22T03:10: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": "f939b1738f5...
5100f3bf-bf6d-47a5-813c-91b7b2b1bb9e
OmarKh2000/AI-lab-
Assigment 4/SectionB/Code/knapSackParallel.cpp
// knapSack.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> // for cout etc. #include <vector> // for vector class #include <string> // for string class #include <algorithm> // for sort algorithm #include <algorithm> // std::copy #include...
ALGO
0.999928
4.239974
{ "github_metadata": { "branch": "main", "commit_count": 3, "repo_created_at": "2020-11-09T09:40: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": "1e3848be617c...
ca1a9b72-ca5f-4f37-83c7-40a0c4bb3ae5
LuizH-Queiroz/Competitive_Programming
LeetCode/143. Reorder List.cpp
/* You are given the head of a singly linked-list. The list can be represented as: L0 → L1 → … → Ln - 1 → Ln Reorder the list to be on the following form: L0 → Ln → L1 → Ln - 1 → L2 → Ln - 2 → … You may not modify the values in the list's nodes. Only nodes themselves may be changed. */ /** * Definition for singl...
ALGO
0.99999
6.093437
{ "github_metadata": { "branch": "master", "commit_count": 341, "repo_created_at": "2023-02-06T02:19:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0 }, "file_meta": { "content_id": "7ccee011...