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 |
|---|---|---|---|---|---|---|---|
872e1256-70da-4fa6-bb5c-7d8c3e3f4f48 | YashSaroha/DSA---Love-Babbar | Phase 2/Trees/4_preOrderTraversal.cpp | #include<iostream>
#include<queue>
using namespace std;
class node{
public:
int data;
node *left;
node *right;
// constructor
node(int d){
this -> data = d;
this -> left = NULL;
this -> right = NULL;
}
};
node* buildTree(node* root){
cout << "Enter... | ALGO | 0.999959 | 4.63564 | {
"github_metadata": {
"branch": "main",
"commit_count": 4,
"repo_created_at": "2023-08-17T04:48: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": "03c49b60a268... |
6135d36a-cdb9-4c71-adfb-8d250dfd7d43 | illlilililiililll/2025-DataStructure-Algorithm | Linear DataStructures/Queue/Queue.cpp | #include <stdio.h>
#include <stdlib.h>
#include "Queue.h"
// ArrayQueue
void init(arrayQueue *q, int max) {
q->max = max;
q->ptr = 0;
q->data = (int*)calloc(max, sizeof(int));
}
bool empty(const arrayQueue *q) {
return q->ptr == 0;
}
void enqueue(arrayQueue *q, int x) {
q->data[q->ptr++] = x;
}
... | TOOL | 0.994488 | 4.060962 | {
"github_metadata": {
"branch": "main",
"commit_count": 15,
"repo_created_at": "2025-05-27T10:49: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": "89459fb5013... |
57b33f8e-924d-4365-84db-c0efa4b336e8 | KasperskyLab/grpc-kos | src/core/lib/service_config/service_config_parser.cc | //
// Copyright 2015 gRPC 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 t... | TOOL | 0.965832 | 6.808795 | {
"github_metadata": {
"branch": "master",
"commit_count": 51243,
"repo_created_at": "2023-01-18T14:56:41.000Z",
"is_fork": false,
"is_org_owned": true,
"forked_from": null,
"stars": 5,
"forks": 1,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "217032d... |
67ea9a40-ff5c-43f9-8871-734c118523c7 | thhuang/algo4fun | solutions/leetcode/find-the-original-array-of-prefix-xor/main.cpp | class Solution {
public:
vector<int> findArray(vector<int>& pref) {
vector<int> result = {0};
for (int i = 0, v = 0; i < pref.size(); ++i) {
v ^= result.back();
result.push_back(v ^ pref[i]);
}
return {result.begin() + 1, result.end()};
}
};
class Solu... | ALGO | 0.999977 | 5.92841 | {
"github_metadata": {
"branch": "main",
"commit_count": 3321,
"repo_created_at": "2022-01-28T00:13:56.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 10,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "7d7b4ab6... |
179eba55-4a46-4b67-b171-15e00b5ef2c5 | amjad-altarefe/Existential_Forgery-algorithm- | Existential_Forgery.cpp | /******************************************************************************
• Existential Forgery algorithm in c++.
An El-Gamal attack algorithm using Existential Forgery in C++,
designed to break the system by forging valid signatures
... | ALGO | 0.998578 | 4.089866 | {
"github_metadata": {
"branch": "main",
"commit_count": 3,
"repo_created_at": "2025-02-01T19: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": "7b5bc7e10a05... |
f39bba28-11fd-4bd3-af35-039089732583 | ANTL-KJH/BOJ-Cpp | Problem-2444/Problem-2444/main.cpp | /*
* Project Name : Problem-2444
* Program's purpose and basic function :
* - BAEKJOON Online Judge Problem-2444
* Program First Author : <NAME>
* Date of First Write : 2023.02.22
* ======================================================================================
* Source Code Modification History
* ==============... | ALGO | 0.999961 | 4.098423 | {
"github_metadata": {
"branch": "main",
"commit_count": 68,
"repo_created_at": "2022-12-22T11:32: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": "721c1b775d4... |
ac0104d9-4aae-4bf2-adf1-c08b1073952f | jithin-j/CPP-DSA | Algorithms/Plus-Minus.cpp | /*Given an array of integers, calculate the ratios of its elements that are positive, negative, and zero.
Print the decimal value of each fraction on a new line with places after the decimal.*/
/*Here we will see how to print some floating point numbers up to some pre-defined decimal places.
In C++, we can use setp... | ALGO | 0.994671 | 4.324619 | {
"github_metadata": {
"branch": "main",
"commit_count": 2,
"repo_created_at": "2022-02-03T16:08: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": "426387b58902... |
d1f6b681-0583-4696-9c36-becd55a48703 | chmnchiang/bcw_codebook | Contest/ASC43/pI.cpp | //bcw0x1bd2 {{{
#include<bits/stdc++.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define MC(n,m) memcpy((n),(m),sizeof(n))
#define F first
#define S second
#define MP make_pair
#define PB push_back
#define FOR(x,y) for(__typeof(y.begin())x=y.begin();x!=y.end();x... | ALGO | 0.999289 | 3.286376 | {
"github_metadata": {
"branch": "master",
"commit_count": 361,
"repo_created_at": "2014-06-03T11:38:51.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 111,
"forks": 22,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "a6ca7... |
23a37f2a-40b9-4158-ab24-62bbfb4bf9d9 | matthewleffler1/Sudoku | Sudoku/ConsoleApplication1/ConsoleApplication1/Sudoku.cpp | #include "Sudoku.h"
//Initialize Sudoku boards to be empty in constructor
Sudoku::Sudoku()
{
initialBoard = vector<vector<int>>(BOARD_SIZE, vector<int>(BOARD_SIZE, 0));
finalBoard = vector<vector<vector<int>>>();
}
vector<vector<int>> Sudoku::getInitialBoard()
{
return initialBoard;
}
int Sudoku::getNumSolutions... | ALGO | 0.997836 | 5.044 | {
"github_metadata": {
"branch": "main",
"commit_count": 2,
"repo_created_at": "2021-08-20T01:05: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": "3fe6eb1022c7... |
91312a4a-287a-4226-a1ef-ff6f85f43eb1 | 4RG0S/2023-Hamgorithm-Spring | 202302571/1806_심민우.cpp | // 23.07.10
// BOJ 1806
// 투 포인터
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
int arr[100000] = { 0, };
int n, s;
cin >> n >> s;
for (int i = 0; i < n; i++)
cin >> arr[i];
int start = 0, end = 0, partsum = 0; //두 포인터, 부분합
... | ALGO | 0.99999 | 3.359317 | {
"github_metadata": {
"branch": "main",
"commit_count": 1376,
"repo_created_at": "2023-03-21T06:32:03.000Z",
"is_fork": false,
"is_org_owned": true,
"forked_from": null,
"stars": 6,
"forks": 5,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "95db8ecb33... |
07571db3-1e02-4add-a4b8-5b7ca8b6c680 | Nagashi-A-A/ITMO.Practice.Cpp | ITMO.Cpp.Yaroshchuk.Arrays2.cpp | // ITMO.Cpp.Yaroshchuk.Arrays2.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <vector>
#include <array>
using namespace std;
int* max_vect(int, int* arr1, int* arr2);
int main()
{
int a[] = {1, 2, 3, 4, 5, 6, 7, 2};
int b[] = {7, 6, 5, ... | ALGO | 0.99961 | 4.30401 | {
"github_metadata": {
"branch": "main",
"commit_count": 55,
"repo_created_at": "2020-12-19T12:54:12.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "e26b8d97655... |
037e5bdc-71af-45f4-81c7-5aed65698456 | NikitaARF/labsPSTU2022 | LABS/5/lab.cpp | #include <iostream>
#include "stdafx.h"
using namespace std;
//Для стековых и статических матриц.
void min(int m[], unsigned long h, unsigned long w, int** pmin);
//Для динамических матриц.
void min(int* m[], unsigned long h, unsigned long w, int** pmin);
int main() {
const unsigned long H = 3;
const unsigned... | ALGO | 0.999835 | 3.872603 | {
"github_metadata": {
"branch": "main",
"commit_count": 70,
"repo_created_at": "2022-11-02T06:31: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": "a9dad013b5d... |
8b2c220c-3654-4847-add3-71413904b59a | flmch/PokerGame | GameFlow.cpp |
#include "GameFlow.h"
#include <iostream>
bool checkReady(vector<int> playerbet,map<int,int> playerleft,int maxposition){
bool check=true;
if(maxposition!=-1){
for(map<int,int>::iterator it=playerleft.begin();it!=playerleft.end();it++){
if(playerbet[it->first]<playerbet[maxposition]&&it->... | ALGO | 0.919897 | 3.708529 | {
"github_metadata": {
"branch": "master",
"commit_count": 18,
"repo_created_at": "2015-01-28T01:43: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": "53a6654a5... |
57b32634-852f-4f74-bc1d-8dab81852d27 | Mewash1/chess | temp.cpp | #include "./BoardLib/board.h"
#include "./GameLib/game.h"
// #include "./PlayerLib/player.h"
#include <iostream>
#include <fstream>
#include <map>
#include <thread>
#include <chrono>
using std::cin;
using std::cout;
int main()
{
Game game;
game.menu();
std::string print_string = "";
std::string move_l... | TOOL | 0.929206 | 4.011431 | {
"github_metadata": {
"branch": "main",
"commit_count": 114,
"repo_created_at": "2023-03-21T12:25: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": "11ada85d44... |
4188f78f-8ece-4192-9169-2e551397d805 | MemSadePeSade/SimpleVisualOdometry | src/draw.h | #pragma once
#include <vector>
#include "opencv2/opencv.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
namespace {
char text[100];
int fontFace = cv::FONT_HERSHEY_PLAIN;
double fontScale = 1;
int thickness = 1;
cv::Point textOrg(10, 50);
void DrawOpticalFlow(std::vector<cv::... | ALGO | 0.964008 | 4.129059 | {
"github_metadata": {
"branch": "master",
"commit_count": 16,
"repo_created_at": "2018-08-08T08:51:54.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "ffdb3703c... |
1f98db69-9d8f-41f9-abae-a3082bc395b9 | GaussGreen/old-code | JP/code/drlib/market/src/PDFLogNormal.cpp | //----------------------------------------------------------------------------
//
// Group : EDG Derivatives Research
//
// Filename : PDFLogNormal.cpp
//
// Description : generate model pdf for log-normal
//
// Author : <NAME>
//
// Date : 15 June 2004
//
//
//---------------------------... | ALGO | 0.967667 | 6.542141 | {
"github_metadata": {
"branch": "main",
"commit_count": 7,
"repo_created_at": "2022-02-17T09:58:15.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 1,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "98c451d4a43e... |
88f3546e-9b27-49cb-94e9-4b3536ac81af | Snickers97/CS_3610 | project5/dijkstra.cpp | #include <iostream>
#include <queue>
using namespace std;
//Finds the closest city that hasn't been processed yet
int mindistance(int n, int path[], bool found[]){
int min = INT32_MAX;
int min_index;
for(int i = 0; i < n; i++){
if(found[i] == false and path[i] <= min){
min = path[i];
... | ALGO | 0.999872 | 3.958087 | {
"github_metadata": {
"branch": "master",
"commit_count": 16,
"repo_created_at": "2018-09-05T03:02: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": "27eaa701e... |
0f62db71-33eb-47fa-97e9-daa6e70023ed | ishraqfatin7/Online-Judge-Solves | Codeforces/cf809A.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(0);
void solve()
{
int n, m;
cin >> n >> m;
int arr[n + 1];
vector<bool> v(m, 0);
for (int i = 1; i <= n; i... | ALGO | 0.999946 | 3.710441 | {
"github_metadata": {
"branch": "main",
"commit_count": 24,
"repo_created_at": "2022-10-27T10:24:12.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "99fe83d0f83... |
904d91a2-9cb3-4905-9ac7-fce5e022ad66 | Guggen/RyanGuggenbuehl-CSCI20-Fall2016 | lab11/lab11.cpp | //Created by <NAME>
//Created on 9/4/16
//Tax Program
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main(){
string name = "";
string filingStatus = "";
double grossWages = 0;
double taxWithheld = 0;
double taxOwed = 0;
double taxRefund = 0;
double t... | ALGO | 0.979989 | 3.950114 | {
"github_metadata": {
"branch": "master",
"commit_count": 46,
"repo_created_at": "2016-08-23T20:40: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": "700ff6e03... |
e5a6dc14-d801-4b34-afcb-17ecc8f78c05 | NoeDebrois/CPP_APC | Exercises/Exercise Session 04 - 18:10:2024/Gradient Descent/FunctionMin.cpp | #include <algorithm>
#include <cmath> // For std::abs() : absolute value.
#include <random> // For randomly picking an initial point in [inf, sup] at each iteration.
#include "FunctionMin.hpp"
// Gradient descent with x_init as initial point : it solves the minimum of f in [inf, sup].
double FunctionMin::solve (doubl... | ALGO | 0.999995 | 5.871669 | {
"github_metadata": {
"branch": "main",
"commit_count": 226,
"repo_created_at": "2024-09-18T11:06:40.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "28474ed0fd... |
9467c9f6-4d72-4e39-a750-0b9b3104c170 | Suikaba/procon-solved | opencup/opencupXIX/XIX_GP_of_Korea_div1/L.cpp | #include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
int main() {
ios_base::sync_with_stdio(false); cin.tie(0);
int n; cin >> n;
vector<int> a(n);
for(auto& aa : a) cin >> aa;
vector<int> inc(n, 1), deg(n, 1);
for(int i = n - 2; i >= 0; --i) {
if(a[i] <= a[i + 1]... | ALGO | 0.999843 | 3.596909 | {
"github_metadata": {
"branch": "master",
"commit_count": 82,
"repo_created_at": "2018-04-18T08:29:50.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "4ce4c2b83... |
3a400199-021b-49b4-b6db-1672fedecdaa | YooKyubin/algorithm | 선분_교차_2.cpp | #include <iostream>
#include <vector>
using namespace std;
struct Pos
{
int64_t x;
int64_t y;
Pos operator-(Pos input)
{
Pos ret;
ret.x = this->x - input.x;
ret.y = this->y - input.y;
return ret;
}
bool operator>(Pos input)
{
if (this->x == input.x... | ALGO | 0.99999 | 4.194757 | {
"github_metadata": {
"branch": "master",
"commit_count": 324,
"repo_created_at": "2022-09-18T13:11:18.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "1f34b420... |
89baa38c-6730-45d6-a188-1c820705cf5c | dmkz/competitive-programming | acmp.ru/0611.cpp | /*
Задача: Словарные квадраты
Решение: перебор, отсечение, O(n!)
Автор: <NAME>, github: dmkz, e-mail: <EMAIL>
*/
#include <stdio.h>
#include <cstdlib>
int n;
char field1[10][10], field2[10][10], empty1[10], empty2[10], word[20][10];
void input() {
scanf("%d", &n);
for (int i = 0; i < 2 ... | ALGO | 0.999957 | 3.623415 | {
"github_metadata": {
"branch": "master",
"commit_count": 2019,
"repo_created_at": "2018-04-25T11:54:48.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 41,
"forks": 9,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "badaef... |
8376c79e-ed28-45fd-ad8b-a83af738a7a1 | MoemenGaafar/Budgeted-Tree-Search | IDAstar.cpp | #pragma once
#include <iostream>
#include <array>
#include "Node.cpp"
#include "SlidingTilePuzzle.cpp"
#include<map>
#include <limits>
#include <algorithm>
#include "DFS.cpp"
using namespace std;
tuple<long, long, string> IDAstar(SlidingTilePuzzle* puzzle, bool uniform){
foundGoalCost = INF;
string outpu... | ALGO | 0.999594 | 5.385333 | {
"github_metadata": {
"branch": "main",
"commit_count": 9,
"repo_created_at": "2023-02-09T02:56: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": "45ebd9859e47... |
8e9bc313-3d27-4d26-9607-5c481777789b | RosettaCommons/rosetta | source/src/protocols/cluster/calibur/rmsd.hh | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... | ALGO | 0.910216 | 6.73157 | {
"github_metadata": {
"branch": "main",
"commit_count": 11737,
"repo_created_at": "2023-11-17T16:42:18.000Z",
"is_fork": false,
"is_org_owned": true,
"forked_from": null,
"stars": 296,
"forks": 100,
"issues": 27,
"pull_requests": 9
},
"file_meta": {
"content_id": "8053... |
4ed82079-f637-48d6-bc67-30d48db53c29 | ycjuan/kaggle-avazu | base/mark/mark1/src/common.cpp | #include <stdexcept>
#include <cstring>
#include <omp.h>
#include "common.h"
namespace {
int const kMaxLineSize = 1000000;
uint32_t get_nr_line(std::string const &path)
{
FILE *f = open_c_file(path.c_str(), "r");
char line[kMaxLineSize];
uint32_t nr_line = 0;
while(fgets(line, kMaxLineSize, f) != n... | ALGO | 0.998829 | 5.491421 | {
"github_metadata": {
"branch": "master",
"commit_count": 2,
"repo_created_at": "2015-02-25T12:51:53.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 447,
"forks": 210,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "4072bd... |
9e66b499-41e3-42d2-b487-9d8dba696835 | JamesH808/CPSC350_queue_simulation | PQueue.h | #ifndef P_QUEUE_H
#define P_QUEUE_H
#include "dLinkedList.h"
template <typename T>
class PQueue: private LinkedList<T>{ //priority queue to interact with linked list directly altering, not a copy
public:
PQueue(bool isMin); //min queue or not
virtual ~PQueue();
void push(T data);
void push(T data, bo... | TOOL | 0.921777 | 4.507973 | {
"github_metadata": {
"branch": "main",
"commit_count": 7,
"repo_created_at": "2024-05-20T16:21:18.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "d8d3aec52c51... |
f99562a7-0763-4c35-b74c-33b5c22abee0 | meltaway/algorithms | complex data structs/k/hashmap 2 double hashing/hashmap.cpp | #include "hashmap.h"
#include <iostream>
using namespace std;
HashTable::HashTable(int size) {
_loadness = 0;
_size = size;
_table = new Value[size + 1];
}
HashTable::~HashTable() {
delete[] _table;
}
void HashTable::insertEntry(Key &key, Value &value) {
if ((double)_loadness / (double)_size >= 0... | ALGO | 0.984246 | 4.593953 | {
"github_metadata": {
"branch": "master",
"commit_count": 3,
"repo_created_at": "2020-11-28T18:47:56.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "1bfc973a53... |
9746db9a-b6d0-47a6-a48d-3364027cbf77 | vvvv/vvvv-sdk | vvvv45/addonpack/src/nodes/freeframes/ARTK+Tracker/ARToolKitPlus/src/core/arUtil.cxx | /* ========================================================================
* PROJECT: ARToolKitPlus
* ========================================================================
* This work is based on the original ARToolKit developed by
* <NAME>
* <NAME>
* HITLab, University of Washington, Seattle
* http://... | TOOL | 0.955937 | 5.22987 | {
"github_metadata": {
"branch": "develop",
"commit_count": 9429,
"repo_created_at": "2011-10-19T14:20:40.000Z",
"is_fork": false,
"is_org_owned": true,
"forked_from": null,
"stars": 241,
"forks": 190,
"issues": 0,
"pull_requests": 2
},
"file_meta": {
"content_id": "ee5... |
526e8f68-7067-47c0-9e7a-c2444ce7c121 | Phuctran11/Basic_code | THUAT TOAN UNG DUNG/LOP LY THUYET/max_even_subsequence.cpp | // Given a sequence of n integers a=a
// 1, . . ., an. A subsequence of a consists of contiguous elements of a
// (for example, ai, ai+1, . . . ,aj).
// The weight of a subsequence is defined to be the sum of its elements.
// A subsequence is called even-subsequnce if its weight is even.
// Find the even-subsequenc... | ALGO | 0.999903 | 4.252515 | {
"github_metadata": {
"branch": "main",
"commit_count": 137,
"repo_created_at": "2024-04-18T14:21: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": "475990f0bd... |
334353c0-4665-4d5c-8564-7e04f162340f | CalnguinhoS2S2/Faculdade | auys.cpp | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ff first
#define ss second
#define pb push_back
#define endl "\n"
char mt[1001][1001];
int n, m;
bool vis[1001][1001];
int ps[1001][1001];
int maior = INT_MIN;
int di[] = {-1,-1,0,1,1,1,0,-1}, dj[] = {0,1,1,1,0,-1,-1,-1};
map<char, int> alf = ... | ALGO | 0.999978 | 3.672205 | {
"github_metadata": {
"branch": "main",
"commit_count": 75,
"repo_created_at": "2023-09-25T19:34:12.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "06c9abf08b7... |
6397da3d-80ed-4842-8498-b9e90dd3ff0f | msBRF65/AtCoder | Contests/ABC242D.cc | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <stdio.h>
#include <deque>
#include <map>
#include <queue>
#include <cmath>
#include <set>
typedef long long ll;
#define debug(x) cout << #x << '=' << x << endl;
#define debug_arr(a, n) \
for (ll i = 0; i < n; i++) \
... | ALGO | 0.999727 | 3.37725 | {
"github_metadata": {
"branch": "master",
"commit_count": 25,
"repo_created_at": "2020-04-10T14:39: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": "51bdc658c... |
d5f739ac-f4ff-4018-aa38-9c9bea2ce513 | satyajeetkrjha/LeetCode-Solutions | design-tic-tac-toe/Accepted/2-12-2022, 4:55:52 AM/Solution.cpp | // https://leetcode.com/problems/design-tic-tac-toe
class TicTacToe {
public:
vector <vector<int>>board;
int n ;
TicTacToe(int n) {
board.resize(n,vector <int>(n,0));
this->n = n ;
}
int move(int row, int col, int player) {
board[row][col] = player;
if
... | ALGO | 0.999971 | 6.368295 | {
"github_metadata": {
"branch": "master",
"commit_count": 1,
"repo_created_at": "2022-08-26T01:34:40.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "f038a7873f... |
d1371df9-4446-45fe-8039-b017ff545541 | jerebenitez/IFE-simpact-openfoam | src/cont3/projtr.inc | SUBROUTINE projtr(imn,x,lcseg,xita,eta,y)
! project over a triangle
IMPLICIT NONE
! arguments
INTEGER (kind=4), INTENT (IN) :: imn,lcseg(:)
REAL (kind=8), INTENT (IN) :: x(:,:),y(:)
REAL (kind=8), INTENT (OUT) :: xita,eta
! local variables
INTEGER (kind=4) inseg,jnseg,knseg,jmn,kmn
REAL (kind=... | ALGO | 0.999893 | 5.961321 | {
"github_metadata": {
"branch": "master",
"commit_count": 35,
"repo_created_at": "2019-08-29T20:55:37.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "5f8e3f7b2... |
edaccbe2-64c0-41a4-8e03-6bdcc90876c5 | nsniteshsahni/Endavours | Holes/main.cpp | // Holes in the text.cpp : Defines the entry point for the console application.
//
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
char a[100];
int t, i, j, h;
cout << "enter the no of test cases" << endl;
cin >> t;
for (i = 0; i < t; i++)
{
cout << "Enter the string in capital letters... | ALGO | 0.975103 | 3.399093 | {
"github_metadata": {
"branch": "master",
"commit_count": 17,
"repo_created_at": "2016-08-13T07:18: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": "0861beb20... |
5215d252-265e-4129-a088-2aa2756822f4 | lyccrius/OI-Solution | UVa/10635 Prince and Princess.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
const int inf = 1e9 + 10;
const int maxN = 250 * 250 + 10;
int T;
int N, p, q, x;
int main() {
scanf("%d", &T);
for (int kase = 1; kase <= T; kase++) {
int num[maxN];
int S[maxN];
int g[maxN];
int d[maxN];
int n... | ALGO | 0.999833 | 3.495652 | {
"github_metadata": {
"branch": "main",
"commit_count": 653,
"repo_created_at": "2022-09-28T05:47: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": "28358b1415... |
e39063eb-8415-4d08-b34b-cac2868812df | MAZHARMIK/Interview_DS_Algo | Linked List/Reverse Linked List.cpp | /*
MY YOUTUBE VIDEO ON THIS Qn : https://www.youtube.com/watch?v=RreHsOfi14w
Company Tags : Paytm, VMWare, Zoho, Accolite, Amazon, Microsoft, Samsung, Snapdeal, D-E-Shaw, MakeMyTrip, Teradata, Walmart,
Goldman Sachs, Intuit, Adobe, SAP Labs, Tejas Network,... | ALGO | 0.999954 | 5.899368 | {
"github_metadata": {
"branch": "master",
"commit_count": 5946,
"repo_created_at": "2020-07-12T13:13:36.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2586,
"forks": 1357,
"issues": 7,
"pull_requests": 37
},
"file_meta": {
"content_id": "... |
d607438b-6c70-4e57-9e0b-72ee7f1ba0b2 | kommar/IRRG | src/EATester/CommandExecution.cpp | #include "CommandExecution.h"
#include "Decomposition.h"
#include "EnumCommandParam.h"
#include "Evaluation.h"
#include "EvaluationUtils.h"
#include "FloatCommandParam.h"
#include "MathUtils.h"
#include "Problem.h"
#include "RandUtils.h"
#include "RealCoding.h"
#include "RealRandomGeneration.h"
#include "StringCommand... | TOOL | 0.95524 | 5.562535 | {
"github_metadata": {
"branch": "main",
"commit_count": 8,
"repo_created_at": "2022-07-18T18:30:19.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "086346b16c56... |
9dc399fc-b156-4b9a-a979-ee4b6991695a | ishandutta2007/codeforces-b | boook/normal/1322/A.cpp | #include <bits/stdc++.h>
using namespace std;
int main () {
ios::sync_with_stdio(0); cin.tie(0);
int n; cin >> n;
string s; cin >> s;
int ans = 0;
int pre = 0;
int tmp = 0;
int len = 0;
for (char c: s) {
if (c == '(') {
++pre; ++len;
}
else {
... | ALGO | 0.999631 | 3.847792 | {
"github_metadata": {
"branch": "main",
"commit_count": 2,
"repo_created_at": "2024-04-11T01:05:31.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "e13e97dec212... |
280177a4-6ce1-4e17-88e8-9cc3cb983bd6 | Userfrom1995/Codeforces | GiftsOrder.cpp | #include <bits/stdc++.h>
using namespace std;
// Constants
const int INF = 1e9;
// Shortcuts for common data types
using ll = long long;
using vi = vector<int>;
using vll = vector<long long>;
using pii = pair<int, int>;
using pll = pair<long long, long long>;
// Constants
const int MOD = 1e9 + 7;
const int INF = 1e9;... | ALGO | 0.999636 | 5.104176 | {
"github_metadata": {
"branch": "main",
"commit_count": 31,
"repo_created_at": "2024-08-04T18:58: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": "43afc9e7e98... |
5d12b8c8-e163-4575-b1ab-8cb8c316b853 | Aniballopez7/c-- | Uni/Program III/Funciones/metodo hash.cpp | #include<iostream>
using namespace std;
struct Alumno
{
char nombre[40];
int nota;
int estado = 0;
int clave;
};
int insertar(Alumno* A,Alumno* B,int,int);
int buscaHash(Alumno* A,int,int);
int main()
{
int opc = 0,n,clave,x;
do
{
cout<<"Ingresa la cantidad de alumnos: ";cin>>n;
... | TOOL | 0.982419 | 3.721447 | {
"github_metadata": {
"branch": "main",
"commit_count": 9,
"repo_created_at": "2024-01-29T02:57: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": "4f79ed6d1714... |
e785b743-87a1-46c3-83d9-22b6fe507378 | dnfwlq8054/coding_test | baekjoon/gold/Downhill_1520.cpp | #include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
#pragma warning(disable: 4996)
using namespace std;
int dx[4] = { 1, -1, 0, 0 };
int dy[4] = { 0, 0, 1, -1 };
int dp[501][501];
int dfs(vector<vector<int>>& v, int x, int y) {
if (x == v.size() - 1 && y == v[x].size() - 1)
retu... | ALGO | 0.999992 | 3.963307 | {
"github_metadata": {
"branch": "master",
"commit_count": 312,
"repo_created_at": "2020-09-01T14:31: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": "083ac1cb... |
cb7a0cc8-de9a-4f5b-87e9-a3b742ce691f | fantuz/Arduino-Code | BONAPP-IR-ANALYZER/BONAPP-IR-ANALYZER.ino | /* analyze.ino Example sketch for IRLib2
* This sketch is used to analyze unknown protocols. It receives
* repeated values and averages the results. You have to press the
* same key on a remote repeatedly. If you press a different key
* it will reset and compute a new average.
*/
//This includes everything. Not ... | ALGO | 0.945552 | 6.629879 | {
"github_metadata": {
"branch": "master",
"commit_count": 9,
"repo_created_at": "2018-11-15T19:54:45.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "dacaeed478... |
3d46dfa9-6ab2-4245-a508-07da42b2ea1f | lazystring/ctci | 03 Stacks and Queues/3.5-Sort-Stack/sort_stack.cpp | #include <iostream>
#include <stack>
/* Goal: implement a stack which maintains a sorted order.
It's easy to overcomplicate this one. Suppose you already have a
sorted stack and you would like to insert an element. How would
you find where the element belongs in the stack? Well, we could
keep popping off ... | ALGO | 0.999458 | 6.288845 | {
"github_metadata": {
"branch": "master",
"commit_count": 102,
"repo_created_at": "2016-02-27T22:32: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": "c709fea8... |
0f43a806-0bcf-4310-ac09-e436a0f9db73 | pce913/Algorithm | baekjoon/2820.cpp | #include<vector>
#include<iostream>
using namespace std;
const int MAXN = 500001;
vector<int> a[MAXN];
long long money[MAXN];
bool check[MAXN];
int preorder[MAXN];
int postorder[MAXN];
int pre = 0;
void dfs(int node){
check[node] = true;
preorder[node]=++pre;
for (int i = 0; i < a[node].size(); i++){
int next =... | ALGO | 0.999936 | 4.051291 | {
"github_metadata": {
"branch": "master",
"commit_count": 69,
"repo_created_at": "2017-11-11T15:39: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": "1034d3193... |
9e26fcab-958c-4b49-b937-4635c3c142f9 | Y11o/Bellman-Ford | Bellman-Ford/BFList.cpp | #include <iostream>
using namespace std;
template <typename dataType>
class BFList
{
private:
size_t size;
class Node
{
public:
Node *pNext, *pPrevious;
dataType data;
Node(dataType data, Node *pNext = NULL, Node *pPrevious = NULL)
{
this->data = data;
this->pNext = pNext;
this->pPrevious = pPre... | TOOL | 0.994451 | 4.601128 | {
"github_metadata": {
"branch": "main",
"commit_count": 1,
"repo_created_at": "2022-06-02T12:25: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": "4687faa2e7b8... |
a6254822-572e-459a-9abd-9e19a82d0ac8 | adarsh-sgh/leetcode-solutions | kth-ancestor-of-a-tree-node/kth-ancestor-of-a-tree-node.cpp | class TreeAncestor {
public:
vector<vector<int>>up;
TreeAncestor(int n, vector<int>& parent) {
up.resize(n, vector<int>(20, -1));
//2 ^0
for (int i = 0;i < parent.size();i++) {
up[i][0] = parent[i];
}
//2 ^ i
for (int i = 1;i < 20;i++) {
for (int node = 0;node < n;node++) {
... | ALGO | 0.999949 | 5.841115 | {
"github_metadata": {
"branch": "main",
"commit_count": 1697,
"repo_created_at": "2023-01-29T10:41:14.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2,
"forks": 1,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "c1ea43f1c... |
68f7f7c1-4ef6-4ce5-bc79-b914e8e82784 | escapingyouth/cpp-explored | 07 - Pointers and References/pointers.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
int num{10};
cout << "Value of num is: " << num << endl; // 10
cout << "size of num is:" << sizeof num << endl; // 4
cout << "Address of num is: " << &num << endl; // 0x61ff1c
int *p;
cout << "Val... | TOOL | 0.907669 | 3.045393 | {
"github_metadata": {
"branch": "main",
"commit_count": 10,
"repo_created_at": "2023-02-08T02:23: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": "ac75f2e35db... |
8264e348-afa3-4b2a-b10c-021c4fa2baf8 | rollschild/leetcode | GameOfLife.cpp | class Solution {
public:
int livecount;
int countLive(vector< vector<int> >& dup, int row, int col, int row_limit, int col_limit) {
livecount = 0; // initialization
if(row-1 >= 0 && col-1 >= 0) {
if(dup[row-1][col-1]) ++livecount;
}
if(row-1 >= 0) {
if(dup... | ALGO | 0.999962 | 5.961898 | {
"github_metadata": {
"branch": "master",
"commit_count": 64,
"repo_created_at": "2017-09-14T22:04: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": "c93ce5a17... |
4a41e95d-2445-4588-a4bf-53c27534874f | 369713387/Leetcode-Note | leetcode752.cpp | #include<iostream>
#include<unordered_set>
#include<vector>
#include<string>
#include<queue>
#include <algorithm>
using namespace std;
/*
这道题说有一种可滑动的四位数的锁,貌似行李箱上比较常见这种锁。
给了我们一个目标值,还有一些死锁的情况,就是说如果到达这些死锁的位置,就不能再动了,相当于迷宫中的障碍物。
然后问我们最少多少步可以从初始的0000位置滑动到给定的target位置。
如果各位足够老辣的话,应该能发现其实本质就是个迷宫遍历的问题,只不过相邻位置不再是上下左右四个位置,而是四位数字每... | ALGO | 0.999857 | 5.344897 | {
"github_metadata": {
"branch": "master",
"commit_count": 8,
"repo_created_at": "2018-10-09T06:16: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": "7ee9b541fb... |
cedb905f-c132-4e24-b74b-280d15f58fba | rgranger617/BLRCR | src/conditionalBLRCR.cpp | // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
// we only include RcppArmadillo.h which pulls Rcpp.h in for us
#include "RcppArmadillo.h"
// via the depends attribute we tell Rcpp to create hooks for
// RcppArmadillo so that the build process will know what to do
//
// [[Rcpp::depe... | ALGO | 0.999915 | 5.663734 | {
"github_metadata": {
"branch": "main",
"commit_count": 8,
"repo_created_at": "2022-05-18T17:43: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": "e4d38bc27272... |
5316a6ae-0ab1-4638-b5a8-fa9077453c5c | MaxElectron/Algorithms_Course_Archive | 11A.cpp | /*Заданы четыре целых числа a
, b
, c
, d
(1≤|a|,|b|,|c|,|d|≤109
). Вычислите ad+bcbdmod(109+7)
.
Входные данные
Первая строка входного файла содержит четыре целых числа a
, b
, c
и d
.
Выходные данные
Выведите одно целое число — ответ к задаче.*/
#include <iostream>
const long long MOD = 1000000007;
// code for... | ALGO | 0.999989 | 5.664968 | {
"github_metadata": {
"branch": "main",
"commit_count": 51,
"repo_created_at": "2024-01-29T16:37: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": "b6255b7f76f... |
205582d1-5740-4a92-b480-7e4b709f4ee7 | SkqLiao/ICPC-Training | ICPC/2020/Shenyang/i.cpp | #include<bits/stdc++.h>
#define int long long
using namespace std;
#define rep(i,l,r) for(int i=(l),i##end=(r);i<=i##end;i++)
#define dwn(i,l,r) for(int i=(l),i##end=(r);i>=i##end;i--)
#define mkp make_pair
#define pb push_back
int yh() {
int ret = 0, f = 0; char c = getchar();
while (!isdigit(c)) {
if ... | ALGO | 0.999859 | 3.689384 | {
"github_metadata": {
"branch": "main",
"commit_count": 56,
"repo_created_at": "2021-10-09T12: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": "8dfc1be0238... |
f0a3a020-b3ba-4820-8568-010eccec02b2 | k99812/Cpp | BAEKJOON/2024-05-10 14503/2024-05-10 14503/14503.cpp | #include<iostream>
#include<algorithm>
#define MAX_NUM 50 + 4
using namespace std;
struct Info
{
int y,
x,
dir;
};
const int dy[] = { -1, 0, 1, 0 };
const int dx[] = { 0, 1, 0, -1 };
int n, m, a[MAX_NUM][MAX_NUM], visited[MAX_NUM][MAX_NUM], ret;
Info info;
bool bIsDirty(int y, int x)
{
for (int i = 0; i < 4;... | ALGO | 0.999946 | 4.307337 | {
"github_metadata": {
"branch": "main",
"commit_count": 347,
"repo_created_at": "2023-11-21T05:11: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": "36814fe2c3... |
12cd150d-3a5f-4987-8457-59ed1c3aae0e | kanhaiyabaranwal/my-programs-old | CPP_source_programs-Fiserv/anagramEPI.cpp | #include<iostream>
#include<map>
#include<unordered_map>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
void find_anagrams(const vector <string >& dict) {
// Get the sorted string and then insert into hash table.
unordered_map <string , vector <string > > hash;
for (const string& s : dic... | ALGO | 0.999635 | 4.800377 | {
"github_metadata": {
"branch": "master",
"commit_count": 5,
"repo_created_at": "2017-10-26T08: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": "1100d0e0b6... |
679fb891-52eb-4492-ba2d-73c64b5cf1f0 | alternetsoft/AlternetUI | Source/Alternet.UI.Pal/MacOSMenu.h | #pragma once
#include "Common.h"
#include "MainMenu.h"
#include "MenuItem.h"
#include "Menu.h"
#include "Application.h"
#ifdef __WXOSX_COCOA__
namespace Alternet::UI::MacOSMenu
{
namespace
{
namespace RoleNames
{
// These must currespond to the ones defined on the .NET side.
... | TOOL | 0.906022 | 7.421128 | {
"github_metadata": {
"branch": "master",
"commit_count": 10148,
"repo_created_at": "2021-03-29T13:48:50.000Z",
"is_fork": false,
"is_org_owned": true,
"forked_from": null,
"stars": 36,
"forks": 3,
"issues": 32,
"pull_requests": 0
},
"file_meta": {
"content_id": "6b6f7... |
1c2fc461-0302-4753-9898-c67fa0ec8ed6 | olegjo/FYS3150-project-1 | Good/Project-1-task-b-v2.cpp | #include <iostream>
#include <cmath>
#include <fstream>
#include <iomanip>
#include "time.h"
using namespace std;
double f(double x);
double anal_solution(double x);
void forward_substitution(double* &a, double* &b, double* &c, double* &b_tilde, int n);
void backward_substitution(double* &b, double* &c, double* &b_ti... | ALGO | 0.999864 | 3.909214 | {
"github_metadata": {
"branch": "master",
"commit_count": 3,
"repo_created_at": "2015-09-14T10:12: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": "7110790d25... |
c4b08c9f-8ca8-4015-9849-0faf5a4a9b55 | Vinicius999/Data-Structures-II-Laboratory | Unidade I/questao01.cpp | #include <stdio.h>
#include <time.h>
// Questão 01 - Programa para Calcule o tempo (em segundos) necessário para rodar esse algoritmo:
//Algoritmo a ser calculado o tempo de execucao
int algoritmoDemorado (int n) {
int soma = 0;
for (int i = 0; i < n ; i++) {
for (int j = 0; j < n; j++) {
for (int k = 0; k < n... | ALGO | 0.999342 | 4.460408 | {
"github_metadata": {
"branch": "main",
"commit_count": 17,
"repo_created_at": "2022-02-26T23:41:52.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2,
"forks": 2,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "c2ec0c8f0bf... |
8f3105d3-2427-4fb7-b267-91c5945ebc8f | ernur210804/PP1 | Desktop/PP1/L9/L9-N.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int n; cin >> n;
map<int, int> m;
map<int, int> m_s;
int cnt = 0;
for (int i = 1; i < n + 1; ++i) {
int a;
cin >> a;
m[i] = a;
m_s[a] = i;
}
for (int i = 1; i < n; i++) {
for (int j = i+1; j <... | ALGO | 0.999975 | 3.798058 | {
"github_metadata": {
"branch": "master",
"commit_count": 1,
"repo_created_at": "2023-09-28T17: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": "9414c16e67... |
0a5bd8b3-da02-4e8a-a3af-3cfa0fbd0486 | cirqueit/mxp | examples/boards/veek_no_vga/prebuilt_veek_no_vga_v8/bsp/vbxware/src/vbw_vec_add.cpp | /* VECTORBLOX MXP SOFTWARE DEVELOPMENT KIT
*
* Copyright (C) 2012-2015 VectorBlox Computing Inc., Vancouver, British Columbia, Canada.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... | ALGO | 0.998675 | 6.421881 | {
"github_metadata": {
"branch": "master",
"commit_count": 4,
"repo_created_at": "2015-08-29T18:13:59.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2,
"forks": 17,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "7767596dd... |
f5c22628-e0b0-4664-ac02-21cde24de20c | parhan23/Battleship | battle.cpp | #include "main.h"
bool playerTurn(Scores * score, Grids * grids, Ships * shipsOnField)
{
Coords ptr = {MAX_GRID / 2, MAX_GRID / 2}; //Pointer position
Coords notUsedPtr = {-1};
int shipNum;
do
{
//Pointer movements loop
do
{
system("cls");
printMain... | ALGO | 0.991829 | 3.571615 | {
"github_metadata": {
"branch": "dev-test",
"commit_count": 11,
"repo_created_at": "2017-03-22T19: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": "3a43747... |
3adf97d6-c1d4-4ff5-b2c5-3437c70e48a7 | myasir2/School | DSA/Assignment 2/Assignment 2/table.h | #pragma once
#include <iostream>
#include <string>
#include <utility>
#include "dlist.h"
using namespace std;
template <class TYPE>
class Table
{
public:
Table(){}
virtual bool update(const string& key, const TYPE& value)=0;
virtual bool remove(const string& key)=0;
virtual bool find(const string& key, TYPE& v... | TOOL | 0.975058 | 4.901288 | {
"github_metadata": {
"branch": "master",
"commit_count": 1,
"repo_created_at": "2019-05-16T02:13:44.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "8325b22e19... |
eec7cb51-e63a-4713-9545-b2bf4ac1194b | Fakel123/project | Geometria.h | #pragma once
class Ball
{
public:
double radiuse;
double SquareBallRadiuse(double a)
{
return 4 * 3.14 * (a * a);
}
double SquareBallDiameter(double a)
{
return 3.14 * (a * a);
}
double VolumeBallRadiuse(double a)
{
return (4 / 3 * 3.14 * (a * a * a));
}
double VolumeBallDiameter(double a)
{
retur... | TOOL | 0.926784 | 4.151888 | {
"github_metadata": {
"branch": "main",
"commit_count": 1,
"repo_created_at": "2024-07-08T07:13:40.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "e4805e932cde... |
8fed5c0a-1630-444e-914d-6318d061e34f | TaoJianping/DSACPP | Src/String.cpp | //
// Created by taojianping on 2/9/20.
//
#include "String.h"
int String::KMP(char *P, char *T) {
int * next = buildNext(P);
int n = strLen(T);
int m = strLen(P);
int i = 0;
int j = 0;
while (i < n && j < m) {
if (T[i] == P[j] || 0 > j) {
i++;
j++;
} el... | ALGO | 0.992497 | 4.322397 | {
"github_metadata": {
"branch": "master",
"commit_count": 27,
"repo_created_at": "2019-07-22T08:43: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": "d632c3d25... |
c38c16a1-031e-4a28-b36c-c93190819b66 | smwkbgmn/daily_solutions | Programmers/bench/bench_87390.cpp | #include <iostream>
#include <vector>
#include <chrono>
#include <functional>
#include <iomanip>
using namespace std;
// Version 1: Nested loops approach
vector<int> solution1(int n, long long left, long long right) {
vector<int> answer;
int x_l = left % n, x_r = right % n;
int y_l = left / n, y_r = ... | ALGO | 0.999478 | 6.588534 | {
"github_metadata": {
"branch": "main",
"commit_count": 217,
"repo_created_at": "2025-02-15T09:09:37.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "432e78cfba... |
be2e5720-4d48-4397-81c1-4a78ea239b34 | serkanbodur/FuzzyLogicProject | Source.cpp | #include<iostream>
using namespace std;
int main()
{
double yasam, milligelir,gelismemis,ortagelismis,cokgelismis,gelismislikorani;
cout << "Ortalama yasam suresini giriniz ";
cin >> yasam;
cout << endl;
cout << "Ortalama milli geliri giriniz ";
cin >> milligelir;
cout << endl;
double a = yasam;
double b = mil... | ALGO | 0.996463 | 3.152446 | {
"github_metadata": {
"branch": "master",
"commit_count": 4,
"repo_created_at": "2019-10-18T19:11:03.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "9b18a39d24... |
417c879f-d631-4052-8109-137e23c0ec9b | maroon66/library | datastructure/splaytree.cpp | //copy-constructor,使えません
//find は lazy と組み合わせても動く (Petrozavodsk 2020w Day9 C)
//reverse は未知数
//erase,insert は動く
//split_cmp も動く
//max_right も動く
//AOJ DSL2G
template<class N>
struct splaytree{
struct Node{
using np=Node*;
np l,r,p;
bool rev;
N x;
Node():l(0),r(0),p(0),rev(false),x(){}
void clear(){
l=0;... | ALGO | 0.998819 | 3.935078 | {
"github_metadata": {
"branch": "main",
"commit_count": 6,
"repo_created_at": "2024-04-18T07:47: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": "58dd3960ad8f... |
35093f15-8527-46c9-8a8a-d5692e6c88fe | vbystricky/vbystricky_tests | card_games/src/durak_game_decision_less_card.hpp | #pragma once
#include "cards_common.hpp"
#include "durak_game.hpp"
#include "durak_game_decision_base.hpp"
namespace durak_game {
template <size_t HandsCnt>
AttackAction attack_step_opt_less_card(const GameStateConstPtr<HandsCnt>& state) {
cards_common::CardSet valid_cards = state->get_active_hand_cards_valid_fo... | ALGO | 0.996053 | 6.499767 | {
"github_metadata": {
"branch": "master",
"commit_count": 5,
"repo_created_at": "2017-01-31T16:27:52.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "ce72844a3b... |
7b80b92d-1b69-4db3-b6c8-61f0e4feb86f | HITSME-HexLab/min_udp | include/basic_math.hpp | /**
* @file basic_math.hpp
* @brief basic math function
* @author <NAME> (<EMAIL>)
* @date 2022-10-02
*
* @copyright Copyright (C) 2022.
*
*/
#pragma once
/* related header files */
/* c system header files */
/* c++ standard library header files */
#include <cmath>
#include <iostream>
/* external project h... | TOOL | 0.98765 | 6.459622 | {
"github_metadata": {
"branch": "main",
"commit_count": 13,
"repo_created_at": "2025-04-26T07:23:10.000Z",
"is_fork": false,
"is_org_owned": true,
"forked_from": null,
"stars": 0,
"forks": 1,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "1dbf410f50f5... |
0b328edb-30e3-4873-9328-739896f0836b | koide3/hdl_graph_slam | include/g2o/edge_plane_prior.hpp | // g2o - General Graph Optimization
// Copyright (C) 2011 <NAME>, <NAME>, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above... | ALGO | 0.998795 | 3.075845 | {
"github_metadata": {
"branch": "master",
"commit_count": 201,
"repo_created_at": "2018-01-01T07:35:43.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2140,
"forks": 736,
"issues": 126,
"pull_requests": 1
},
"file_meta": {
"content_id": "9... |
a7a20985-732f-42cd-8a56-fb252531556e | timcardenuto/cryptology | lll_lattice_basis_reduction/lll_lattice_basis_reduction.cpp | /*
*/
#include "defs.h"
#include "fplll.h"
#include "nr/matrix.h"
template <class ZT> int lll(fplll::ZZ_mat<ZT> &b)
{
// Stupid initialization of u and u_inv to be not empty.
fplll::ZZ_mat<ZT> u(1, 1), u_inv(1, 1);
int status, flags = 0;
double delta = 0.99;
double eta = 0.51;
fplll::LLLMethod method = ... | ALGO | 0.999791 | 4.148534 | {
"github_metadata": {
"branch": "master",
"commit_count": 11,
"repo_created_at": "2018-02-19T00:41:16.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "6905057e1... |
ef0f66d4-c6f8-44df-a7d8-0111ac8b140e | ahmedelsaie/AlgorithmsProblems | UVA/11691 - Allergy Test.cpp | #include <bits/stdc++.h>
using namespace std;
#define MAX 50009
#define ll long long
//void reset();
int setbit(int mask, int bit, int value);
int getbit(int mask, int bit);
//int fn(int days_left,int mask,int taken);
void merge(int start, int end);
void merge_sort(int start, int last);
void bsort();
#define min(a,b)... | ALGO | 0.999829 | 3.267301 | {
"github_metadata": {
"branch": "master",
"commit_count": 1,
"repo_created_at": "2017-12-26T01:29: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": "f03b46f650... |
ced69666-5a24-4988-8dbc-bbdeca010459 | kthr/fluid-registration | src/utilities/Utilities.hpp | /*
* utilities.hpp
*
* Created on: Jul 11, 2012
* Author: kthierbach
*/
#ifndef UTILITIES_HPP_
#define UTILITIES_HPP_
#include <stdlib.h>
#include "../templates/Point2D.hpp"
template<class T>
inline T Abs(T x)
{
return x > 0 ? x : -x;
}
template<class T>
double computeArea(Point2D<T> *p, int n)
{
doubl... | TOOL | 0.99476 | 6.562106 | {
"github_metadata": {
"branch": "master",
"commit_count": 53,
"repo_created_at": "2019-11-05T17:41: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": "c11b61859... |
0f83446a-8629-4bf7-8e50-e974d88676c7 | ishandutta2007/codeforces-b | bigbag/normal/1490/G.cpp | /**
* created: 16/02/2021, 16:59:54
**/
#include <bits/stdc++.h>
using namespace std;
const int max_n = 200222, inf = 1000111222;
int t, n, m, a[max_n];
long long sum[max_n];
vector<pair<long long, int>> v;
long long solve(long long x) {
if (sum[n - 1] <= 0) {
if (v.back().first < x) {
re... | ALGO | 0.999914 | 4.214795 | {
"github_metadata": {
"branch": "main",
"commit_count": 2,
"repo_created_at": "2024-04-11T01:05:31.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "3f2f52fe292b... |
6931658d-d057-46da-82b1-d3838255a8e9 | livingjigsaw/collegeAI | reinforcement/tictactoe/ttt.h | #include <vector>
class InternalState{ //this represents a game state inside of a bot, with action/probability pairs
private:
std::string boardState; //const?
int* action; // index in array represents the location of the move, the value there represents the probablity
void initAction(); //checks the state, and ... | ALGO | 0.996495 | 4.344033 | {
"github_metadata": {
"branch": "master",
"commit_count": 22,
"repo_created_at": "2015-01-22T22:56:05.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "aad37fe68... |
2a8c694d-1d88-4da0-bab1-291de63956ed | arifakhtar51/TLE-Eliminator-CP-31-sheet | 900/30.cpp | #include<bits/stdc++.h>
#define ll long long
using namespace std;
#define cl cout<<endl;
#define cy cout<<"DA"<<endl;
#define cn cout<<"NET"<<endl;
#define vll vector<ll>
#define sort(x) sort(begin(x),end(x))
#define vi vector<int>
// class Node{
// int data;
// N... | ALGO | 0.9999 | 3.80795 | {
"github_metadata": {
"branch": "main",
"commit_count": 27,
"repo_created_at": "2024-03-02T19:34: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": "25be9d5714e... |
c658653f-4e8c-413e-98df-4afe9ddf415c | AvaLovelace1/competitive-programming | solutions/codeforces/1004C.cpp | /*
Solution to Sonya and Robots by <NAME>
Key concepts: implementation
*/
#include <bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define pb push_back
#define FILL(a, b) memset(a, b, sizeof(a))
typedef long long int ll;
typedef pair<int, int> pii;
typedef pair<pii, int> piii;
typedef vecto... | ALGO | 0.999942 | 3.654887 | {
"github_metadata": {
"branch": "master",
"commit_count": 782,
"repo_created_at": "2018-03-04T18:04:34.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 8,
"forks": 1,
"issues": 1,
"pull_requests": 0
},
"file_meta": {
"content_id": "6b2dd6a2... |
ff778739-c177-46fd-a785-9ca518001044 | weinbe2/quantum-linalg | inverters/generic_cr.h | // Copyright (c) 2017 <NAME>
// CG inverter.
// Solves lhs = A^(-1) rhs with CR.
// Assumes the matrix is Hermitian, not necessarily definite.
// Taken from section 6.8 of Saad, 2nd Edition.
// Should implement the modified version:
// The Modified Conjugate Residual Method for Partial Differential Equations, <NAME>, 1... | ALGO | 0.99961 | 4.966159 | {
"github_metadata": {
"branch": "master",
"commit_count": 75,
"repo_created_at": "2017-01-26T21:32:29.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 1,
"forks": 1,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "60695abe7... |
ff242df7-1316-4f5c-b204-8c07038ffda3 | 701tkdgns/backjoon_python_cpp | 2024/8/29/programmers4.cpp | #include <string>
#include <sstream>
#include <vector>
#include <map>
#include <iostream>
#include <cmath>
using namespace std;
vector<int> solution(vector<int> fees, vector<string> records) {
vector<int> answer;
map<string, vector<string>> parking;
map<string, int> store;
for (string record : records)... | ALGO | 0.999366 | 4.882323 | {
"github_metadata": {
"branch": "master",
"commit_count": 496,
"repo_created_at": "2022-05-16T12:50: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": "ae9fa8ad... |
1cdec1c2-0753-47ea-bc8a-97404d0a4df8 | louisfghbvc/Other-Online-Judge | CodeForces/Codeforces Round #693 (Div. 3)/B - Fair Division.cpp | #include <bits/stdc++.h>
#define Fast cin.tie(0), ios::sync_with_stdio(0)
#define All(x) x.begin(), x.end()
#define louisfghbvc int t; cin >> t; while(t--)
#define sz(x) (int)(x).size()
using namespace std;
typedef long long LL;
typedef pair<LL, LL> ii;
typedef vector<int> vi;
template<typename T> istream& operator>>... | ALGO | 0.999989 | 4.002696 | {
"github_metadata": {
"branch": "master",
"commit_count": 837,
"repo_created_at": "2018-10-29T11:02:47.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 2,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "f53aa65c... |
b5d43eba-4758-4069-9bfd-dbd15ecc0916 | Rudransh24/CP_Solutions | rsgt24/1370/B.cpp | /******
AUTHOR : <NAME>, <NAME>, CCID(rt24) & CFID(rsgt24)
MOTTO : Use criticism as fuel and you will never run out of energy.
AIM : TO BECOME A BETTER CODER
INTROSPECT + COURSE CORRECTIONS = CATALYST FOR SUCCESS
Every moment is an opportunity to better yourself
*******/
#include<bit... | ALGO | 0.99962 | 3.680387 | {
"github_metadata": {
"branch": "main",
"commit_count": 13,
"repo_created_at": "2021-05-20T11:38: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": "6320542e2c8... |
cd3afe2f-bc4b-4ab5-9b16-bcb4ccfb222f | Shaik-Avaies/Algo- | Searching & Sorting(Divide and Conquer/_Painter Problem.cpp | #include<iostream>
#define ll long long int
using namespace std;
bool isValid(ll L[],ll n,ll k,ll mid){
ll painter = 1;
ll time = 0;
for(int i=0;i<n;i++){
if(time + L[i] > mid){
time = L[i];
painter++;
if(painter > k){
return false;
}
... | ALGO | 0.999947 | 4.31211 | {
"github_metadata": {
"branch": "master",
"commit_count": 6,
"repo_created_at": "2019-07-23T16:29:31.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "1cd00d36b0... |
656cb6b6-2579-490f-b8d9-0d6e332ef9e9 | bolverk/fujin | tests/srhd_sim/sedov_taylor/test.cpp | /*
Sedov Taylor explosion
*/
#include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include "srhd_sim.hpp"
#include "ideal_gas.hpp"
//#include "imgrs.hpp"
#include "hll.hpp"
#include "pcm.hpp"
#include "rigid_wall.hpp"
#include "main_loop.hpp"
#include <fenv.h>
#ifdef PARALLEL
#include "paralle... | ALGO | 0.954596 | 3.650989 | {
"github_metadata": {
"branch": "master",
"commit_count": 246,
"repo_created_at": "2017-06-25T11:37:37.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 3,
"forks": 1,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "95818f7c... |
f9ca4a62-7c5b-4325-8df2-0bbf0cdf97a8 | OmegaJak/UMN_CSCI5611_FinalProject | src/ClothManager.cpp | #define GLM_FORCE_RADIANS
#include <SDL_stdinc.h>
#include <algorithm>
#include <ctime>
#include <glm/gtc/type_ptr.hpp>
#include "ClothManager.h"
#include "Constants.h"
#include "Environment.h"
#include "RayTracer.h"
#include "ShaderManager.h"
#include "SoundManager.h"
#include "Timer.h"
#include "Utils.h"
#include ... | TOOL | 0.94908 | 5.099947 | {
"github_metadata": {
"branch": "master",
"commit_count": 55,
"repo_created_at": "2022-04-10T01:28: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": "73ec2f3f5... |
487e9a01-d7ff-442c-9d03-853387f502db | Yawn-Sean/Daily_CF_Problems | daily_problems/2024/03/0313/personal_submission/cf166b_lengli.cpp | /*
lengli_QAQ
Hope there are no bugs!!!
*/
#include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define endl '\n'
#define all(x) x.begin(),x.end()
#define pb push_back
using namespace std;
#ifdef LOCAL
#include "algo/debug.h"
#else
#define debug(...) "lengli"
#endif
const int N=20... | ALGO | 0.999956 | 4.365914 | {
"github_metadata": {
"branch": "main",
"commit_count": 20410,
"repo_created_at": "2024-02-26T01:04:08.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 478,
"forks": 302,
"issues": 0,
"pull_requests": 7
},
"file_meta": {
"content_id": "42ad... |
cb42ac69-81bd-43a6-bab5-75258b807c78 | lunatic-7/Cp | CodeForces/224A.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define PB push_back
#define POB pop_back
#define F first
#define S second
#define wasif() ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
const int M = 1e9+7;
int main()
{
wasif();
int x, y, z;
cin >> x >> y >> z;
// Given ar... | ALGO | 0.999513 | 4.382539 | {
"github_metadata": {
"branch": "main",
"commit_count": 199,
"repo_created_at": "2022-07-19T16:03:54.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "473b48bd18... |
57916912-9118-4c5d-8602-cd818b69d498 | CalmSingularity/ITStep_Lesson_2 | homework_2_13.cpp | #include <iostream>
bool isPrime(int x) {
for (int divisor = 2; divisor < x; ++divisor) {
int residual = x % divisor;
if (residual == 0) {
return false;
}
}
return true;
}
int main(int argc, char** argv) {
int i, count_prime = -1, count_even = -1, count_odd = 0;
do {
std::cin >> i;
... | ALGO | 0.998305 | 4.593078 | {
"github_metadata": {
"branch": "master",
"commit_count": 9,
"repo_created_at": "2016-06-24T20:48: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": "7ee3411121... |
16c2c91a-c596-4d9f-8065-91e7042e0eca | Harsimran-s17/GFG-and-LeetCode-Problems | Boundary Traversal of binary tree - GFG/boundary-traversal-of-binary-tree.cpp | //{ Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
#define MAX_HEIGHT 100000
// Tree Node
struct Node
{
int data;
Node* left;
Node* right;
};
// Utility function to create a new Tree Node
Node* newNode(int val)
{
Node* temp = new Node;
temp->data = val;
temp->left = NULL;
... | ALGO | 0.999721 | 5.624293 | {
"github_metadata": {
"branch": "main",
"commit_count": 333,
"repo_created_at": "2023-06-30T12:31: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": "e5f681f6a9... |
37c7b525-85b2-409c-88a8-d6a1aa9953d5 | margheritapini/LaboratorioSimulazioneNumerica | Esercitazione5/main.cpp | /****************************************************************
*****************************************************************
_/ _/ _/_/_/ _/ Numerical Simulation Laboratory
_/_/ _/ _/ _/ Physics Department - Universita' degli Studi di Milano
_/ _/_/ _/ _/ Exercises 0... | ALGO | 0.999662 | 3.789237 | {
"github_metadata": {
"branch": "master",
"commit_count": 40,
"repo_created_at": "2024-07-04T18:09: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": "3073a59bc... |
8226e2a6-557c-41d9-ade0-7f2fabdca1b5 | ishandutta2007/codeforces-c | crying/normal/526/F.cpp | #include<bits/stdc++.h>
#define rep(i,a,b) for(ll i=(a);i<=(b);i++)
#define per(i,a,b) for(ll i=(a);i>=(b);i--)
#define op(x) ((x&1)?x+1:x-1)
#define odd(x) (x&1)
#define even(x) (!odd(x))
#define lc(x) (x<<1)
#define rc(x) (lc(x)|1)
#define lowbit(x) (x&-x)
#define Max(a,b) (a>b?a:b)
#define Min(a,b) (a<b?a:b)
#define... | ALGO | 0.999603 | 3.144306 | {
"github_metadata": {
"branch": "main",
"commit_count": 1,
"repo_created_at": "2024-04-11T01:17: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": "bea8117584e6... |
c4142685-e531-44a1-8394-c880c57546e0 | KP0823/Cs385 | SQRT/sqrt.cpp | /*******************************************************************************
* Filename: sqrt.cpp
* Author : <NAME>
* Version : 1.0
* Date : September 7, 2022
* Description: Computes the square root of two/one command-line arguments.
* Pledge : I pledge my honor that I have abided by the Stevens Honor Sy... | ALGO | 0.998279 | 5.072707 | {
"github_metadata": {
"branch": "main",
"commit_count": 10,
"repo_created_at": "2022-11-10T05:43:12.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "9397636913c... |
736d1727-e68e-418a-a396-0059cb19d9e1 | openxla/xla | xla/backends/gpu/autotuner/block_level_emitter.cc | /* Copyright 2025 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... | TOOL | 0.960723 | 7.303699 | {
"github_metadata": {
"branch": "main",
"commit_count": 37424,
"repo_created_at": "2022-08-09T15:30:01.000Z",
"is_fork": false,
"is_org_owned": true,
"forked_from": null,
"stars": 3354,
"forks": 600,
"issues": 223,
"pull_requests": 414
},
"file_meta": {
"content_id": "... |
fec81779-a3b6-4336-b40e-3253a195f51a | husong998/algo | library/TSP.cpp | #include<bits/stdc++.h>
#define forn(i, n) for(int i = 0; i < n; i++)
#define for1(i, n) for(int i = 1; i <= n; i++)
#define fornd(i, n) for(int i = n - 1; i >= 0; i--)
#define vi vector<int>
#define pb push_back
#define fi first
#define se second
#define all(x) x.begin(), x.end()
#define lsone(s) (s)&(-s)
#define INF... | ALGO | 0.999875 | 3.915039 | {
"github_metadata": {
"branch": "master",
"commit_count": 42,
"repo_created_at": "2019-06-28T13:03:51.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 0,
"forks": 0,
"issues": 0,
"pull_requests": 0
},
"file_meta": {
"content_id": "e6eef92c5... |
9b5df87c-5977-4670-a3e2-55cd22aa70d6 | PCzhangPC/lc_coding | 463. Island Perimeter/main.cpp | #include <iostream>
#include <vector>
using namespace std;
enum dir{
up = 0,
down,
lef,
righ
};
class Solution {
public:
int islandPerimeter(vector<vector<int>>& grid) {
if (!grid.size() || !grid[0].size())
return 0;
int i = 0;
int j = 0;
bool find_flag... | ALGO | 0.999925 | 5.239187 | {
"github_metadata": {
"branch": "master",
"commit_count": 159,
"repo_created_at": "2017-11-24T13:47: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": "2485f619... |
1be4e3e0-d284-40d2-ba2a-170c0f068549 | gurjotsc/gcheema-cp | USACO/Bronze/Rectangle Geometry/blockedBillboardII.cpp | #include <bits/stdc++.h>
using namespace std;
struct rect {
int x1, y1, x2, y2;
};
bool covered(int x, int y, rect a) {
return x >= a.x1 && y >= a.y1 && x <= a.x2 && y <= a.y2; //return whether the corner is covered by bessie's billboard
//Need to check to make sure the corner is in between the x side and... | ALGO | 0.999069 | 4.027012 | {
"github_metadata": {
"branch": "master",
"commit_count": 795,
"repo_created_at": "2021-07-02T01:37: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": "bc5fe78d... |
d9edd85e-9762-4111-8d14-90c6fa885a06 | pannacotta98/modeling-and-animation | Levelset/LevelSetGrid.h | /*************************************************************************************************
*
* Modeling and animation (TNM079) 2007
* Code base for lab assignments. Copyright:
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
*
*******************... | ALGO | 0.967255 | 6.134503 | {
"github_metadata": {
"branch": "main",
"commit_count": 27,
"repo_created_at": "2021-03-29T16:14: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": "cda8026bbb4... |
6b0c7ddd-a617-4b5f-a55f-d61800122332 | conanGH-coder/haizeix-code | 2.XY/4.循环嵌套/13.XYOJ-1194.cpp | /*************************************************************************
> File Name: 13.XYOJ-1194.cpp
> Author:
> Mail:
> Created Time: 2024/11/16 22:25:33
************************************************************************/
#include <iostream>
#include <cmath>
using namespace std;
int mai... | ALGO | 0.999892 | 5.370566 | {
"github_metadata": {
"branch": "main",
"commit_count": 57,
"repo_created_at": "2024-10-05T07:44: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": "ee354749b63... |
8f981fff-9f7e-4408-83d7-a4ea2bee75f0 | khaleddkassab/My-CPlusPlus-Projects | Class Student and performing Algorithms on it/main.cpp | #include <iostream>
#include <math.h>
#include <fstream>
#include "Student.h"
using namespace std;
int main()
{
cout << "Hello world!" << endl;
int Size;
int c=1,m=0;
string firstName , lastName,id;
double gpa;
ifstream Ain;
ofstream Aout1,Aout2,Aout3;
Ain.open ("Students.txt");
... | ALGO | 0.998943 | 3.779074 | {
"github_metadata": {
"branch": "main",
"commit_count": 1,
"repo_created_at": "2023-10-15T23:11: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": "35854d99abce... |
2394bec7-60bd-44ca-a2f7-30c377452f48 | LutzGross/esys-escript.github.io | trilinos_source16/packages/rol/example/PDE-OPT/poisson-boltzmann/pde_poisson_boltzmann.hpp | // @HEADER
// ************************************************************************
//
// Rapid Optimization Library (ROL) Package
// Copyright (2014) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on be... | ALGO | 0.997731 | 6.311845 | {
"github_metadata": {
"branch": "master",
"commit_count": 5724,
"repo_created_at": "2020-08-10T02:31:18.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 34,
"forks": 15,
"issues": 63,
"pull_requests": 0
},
"file_meta": {
"content_id": "39b2... |
cc6c2e85-4227-4363-bd5c-5748dd56aec3 | strengthen/LeetCode | C++/1040.cpp | __________________________________________________________________________________________________
#include <functional>
#include <algorithm>
#include <stdexcept>
#include <iostream>
#include <sstream>
#include <fstream>
#include <numeric>
#include <iomanip>
#include <cstdlib>
#include <cstring>
#include <utility>
#inc... | ALGO | 0.999713 | 4.344835 | {
"github_metadata": {
"branch": "master",
"commit_count": 518,
"repo_created_at": "2018-11-03T06:47:38.000Z",
"is_fork": false,
"is_org_owned": false,
"forked_from": null,
"stars": 883,
"forks": 297,
"issues": 19,
"pull_requests": 0
},
"file_meta": {
"content_id": "d4d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.