blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c702c591e0d9b28b79cfbb0e53a8ba863d03cd3 | 021f65f3affeffaaff3d981e2e30177256cb988b | /Olympiad Programs/M3/Shaazzz/Contest 1 2013/3.1.cpp | cc4ed784643170960d4ee510126d94db3a8bb295 | [
"MIT"
] | permissive | mirtaba/ACMICPC-INOI_Archive | 2d95bef1efdb26bbaabcf2993210b1562a3cc399 | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | refs/heads/master | 2021-04-09T15:17:47.532859 | 2018-03-16T09:11:48 | 2018-03-16T09:11:48 | 125,491,625 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,464 | cpp | 3.1.cpp | /*
ID: ghoolha1
PROG: greetings
LANG: C++
*/
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include <cmath>
#include <bitset>
#include <utility>
#incl... |
2489df447ca02d084791ef09b80ae58bc356118e | 666b02b7051301ded941f1b4d6df23870d4eb570 | /Source/ToonTanks/Pawns/ProjectileBase.cpp | aa8dc831e9ce3cdbcd33d103a80853a6104e9dc5 | [] | no_license | CS1CAgile5/Agile-3_Project | 91106135caa178d5199227cd60aae6363bd4ad08 | cc7c757b35c3c3fc092d03936b147f4a5da09d34 | refs/heads/master | 2023-01-01T23:51:22.364075 | 2020-10-22T23:29:20 | 2020-10-22T23:29:20 | 290,604,779 | 0 | 0 | null | 2020-10-22T01:30:29 | 2020-08-26T21:07:01 | C++ | UTF-8 | C++ | false | false | 2,538 | cpp | ProjectileBase.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "ProjectileBase.h"
#include "Components/StaticMeshComponent.h"
#include "GameFramework/ProjectileMovementComponent.h"
#include "Kismet/GameplayStatics.h"
#include "Particles/ParticleSystemComponent.h"
#include "Particles/ParticleS... |
d9c68b034fc2d2686f6284002a9b87db93769376 | d071485633d10dcb400bb8973e26444c0d7e4a9a | /piscine/D14M/ex00/.svn/text-base/Citron.cpp.svn-base | bfe614d0d5ac7152089013a7f45c6556e19de7bd | [] | no_license | Adrien-Pasina/dev | 948751fbeb7f23e0eac0442f7631ebd4aaa858ee | 68150a965a1a5d77469d7d53f90726c9fafde0ac | refs/heads/master | 2020-12-13T02:20:06.176233 | 2013-01-05T20:35:01 | 2013-01-05T20:35:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 107 | Citron.cpp.svn-base | /**
*
*
*
*/
#include "Citron.h"
Citron::Citron()
: Fruit("citron", 3) {
}
Citron::~Citron() {
}
| |
5340e8bae58f42d692e19a54605809a08d4a0892 | bee676d8e8614d2a8f5c92b278bb4b02a01f561d | /src/day9/day9.hpp | debe6eff6f44b4a530f28fbfe17e9d77b42909eb | [] | no_license | Egg3141592654/advent_of_code_2020 | 40e6af35fa7614902eb2a24e846d4f2f7abf0251 | 56812ce5b63e2a4748e80d895034605cc4f17064 | refs/heads/main | 2023-02-04T04:10:01.489484 | 2020-12-17T01:17:15 | 2020-12-17T01:17:15 | 317,685,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 150 | hpp | day9.hpp | #pragma once
namespace day9 {
int get_bad_coded_number();
long get_sum_of_highest_and_lowest_numbers_in_contiguous_set_adding_to_part_1();
} |
d5970b63650986bddbd20cc327e4cfd7ff373cfe | cd4587f46b5f1393e46459c7b7959455a847c0db | /source/digits_hits/src/GateReadout.cc | fffaf1858bfca5bfca975061f6b8768d0697d19f | [] | no_license | lynch829/Gate | 8072e7e30d855b15a9152a5884fc1357c07539bc | 02754973dbaeca343a7c3b9402521f45c05e9ccf | refs/heads/develop | 2021-01-24T20:13:11.821931 | 2016-07-12T11:23:15 | 2016-07-12T11:23:15 | 66,326,268 | 1 | 0 | null | 2016-08-23T02:33:29 | 2016-08-23T02:33:29 | null | UTF-8 | C++ | false | false | 14,902 | cc | GateReadout.cc | /*----------------------
Copyright (C): OpenGATE Collaboration
This software is distributed under the terms
of the GNU Lesser General Public Licence (LGPL)
See GATE/LICENSE.txt for further details
----------------------*/
#include "GateReadout.hh"
#include "G4UnitsTable.hh"
#include "GateOutputVolumeID.hh"
#in... |
b9f049b360e7251da2f7ae8c481c00c002237486 | 133f855d21c8c8e7c063a8bc1fad8d22a87d1756 | /AlphaClient/AlphaGraph/CGeometryBufferD3D9.h | 45dd6a7745104a5ad0d1784abfd5b63fc72c25cd | [
"MIT"
] | permissive | xujianming/Alpha | 82510ef4ba867afe5ee3536f7e1b5c4bc2e3ec69 | 641f17b8091deede9869056cd62868c76035c975 | refs/heads/master | 2021-01-10T19:24:27.020806 | 2015-12-20T16:10:20 | 2015-12-20T16:10:20 | 20,998,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 756 | h | CGeometryBufferD3D9.h | #pragma once
#include <d3d9.h>
#include "CGeometryBuffer.h"
class CGeometryBufferD3D9: public CGeometryBuffer
{
public:
CGeometryBufferD3D9(CGraphic* pGraphic, EResourceType eResType);
virtual void OnFreeMemory();
IDirect3DResource9* GetD3DBuffer();
protected:
IDirect3DResource9* m_pD3DBuffer;
};
class CVert... |
5c48ff1deae3f634e5f47a47024488571cb1195f | db2dd87ccd792b7e94b520f178b31f96131fcbca | /UpdateEquation.h | 49929ab4422d4b6256e692da374c6a7846c38981 | [] | no_license | plisdku/trogdor | 84e9daced6476d466370bb70342fef843e59cf35 | 18c57f237bbd1f21a6437eb89083b29512611c05 | refs/heads/master | 2021-01-19T08:15:33.229622 | 2014-01-28T21:00:51 | 2014-01-28T21:00:51 | 16,267,724 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,812 | h | UpdateEquation.h | /*
* Material.h
* TROGDOR
*
* Created by Paul Hansen on 7/18/09.
* Copyright 2009 Stanford University. All rights reserved.
*
*/
#ifndef _UPDATEEQUATION_
#define _UPDATEEQUATION_
#include "Pointer.h"
#include "geometry.h"
#include <string>
#include <iostream>
class VoxelizedPartition;
class CalculationPa... |
bc5bdd3e3a4a0fc982d377743823fc61fb92a063 | 5639f3447de2c12b454461c1524522c3b6c13a52 | /CPU-Scheduling/os_priority.cpp | d505de5cd448a155e91c37d7e830add5ef590614 | [] | no_license | dmhere/operating-systems | 2c0004c067048b29403bede3f9eaaa20da4f1716 | 70162e9120638b5692ea424d78e40fe147f2c6ca | refs/heads/master | 2021-05-08T07:37:44.081905 | 2017-11-24T10:55:54 | 2017-11-24T10:55:54 | 106,785,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,317 | cpp | os_priority.cpp | #include<iostream>
using namespace std;
int main()
{
int n;
cout << "Enter the number of processes --- ";
cin >> n;
int p[n],bt[n],pri[n], wt[n],tat[n],i, k, temp;
float wtavg, tatavg;
for(i=0;i<n;i++)
{
p[i] = i;
cout << "Enter the Burst Time & Priority of Proces... |
7e8b77dd59e09056e2bca79155c84773290c27e8 | a4ea1679e3febc4064946cd0afc980c692f7817e | /Lab6/queue-starter/QueueTester.h | 2254b95a8ca4e0eba66bd7e5377804733fba79a7 | [] | no_license | jdavis37/Labs | a8f3137d3ba07790f45d9248eb0ea98dfba421d4 | efb357f9981d54d736c6cccd1353914f158f38d9 | refs/heads/master | 2020-08-06T09:19:48.437298 | 2019-11-20T09:28:09 | 2019-11-20T09:28:09 | 212,921,394 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 766 | h | QueueTester.h | #ifndef QUEUETESTER_H
#define QUEUETESTER_H
#include "Queue.h"
#include <iostream>
class QueueTester: public Queue
{
private:
Queue MyQueue;
public:
QueueTester();
~QueueTester();
void PrintResult(bool result);
void TestConstructorEmpty();
void TestConstructorPeek();
... |
ff14464aa3b765c44debb75be3908ecd8d3a1b55 | 779af6df217c38a9ad0fd999f8536752d54167a1 | /students/alexeyqu/Stack/Stack_perverted_functions.cpp | bebcbf705917fe7242ef251d7ca901d04a6d5f2f | [] | no_license | MIPT-ILab/programming-course | f55e6fc336dd70faae6b2d2eecb64bc5aebbf67b | 95e991c79813b1c44cb30e8ce588677eb30fc18c | refs/heads/master | 2021-01-19T16:09:30.385336 | 2017-04-14T20:12:05 | 2017-04-14T20:12:05 | 88,251,879 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,856 | cpp | Stack_perverted_functions.cpp | /** ***************************************************************************
* @file Stack_perverted_functions.cpp
******************************************************************************/
#include "Stack.h"
int Stack_Perverted_Push (Stack_t* stack, const double value)
{
STACK_CHECK (stack);
if ... |
5f521961ff7f231f143c172f37f6f528fddf8bf0 | 028e188d85c2cbeb1ff853420664b0e564e0b0ce | /cpp/im/clientgui/clientgui/friendlist.cpp | 2895d377eca7a7c822fb230dd64552ecedc82124 | [] | no_license | passedaway/misc | 55e79083429a6aeb85f703fde389a9914773c9f5 | f97070f698f6c07a9f391a3e3d28e8ec3d8b5d26 | refs/heads/master | 2021-01-02T08:33:55.695610 | 2016-09-22T12:11:19 | 2016-09-22T12:11:19 | 8,695,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,823 | cpp | friendlist.cpp | /******************************************************************************/
/* Filename: friendlist.cpp */
/* Description: have the friend name, every sclientsocket has one firnelist*/
/* ... |
968126e172a137a0c4f053586ec0fe88dc06a3b6 | a812f83ac38858f95725f1f8dd7b6ac1e0da71c0 | /include/catrandomvar.hpp | f7d68aa5f886ce588b2f8654a5b68ed9e96d4028 | [
"MIT"
] | permissive | Viva-Lambda/randomvar | a40d84dcea6116e507343b6d92ce4d71e65689a8 | f5204e4332343e49e89a971b07e676ec8ec793ce | refs/heads/master | 2023-06-16T12:33:11.511165 | 2021-07-09T05:15:06 | 2021-07-09T05:15:06 | 384,274,517 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,283 | hpp | catrandomvar.hpp | #pragma once
// represents random variable
#include <external.hpp>
#include <randomvar.hpp>
using namespace randomvar;
namespace randomvar {
template <class InVal, class OutVal> struct CatRVar {
std::string id;
std::function<OutVal(InVal)> fn;
std::vector<InVal> data;
CatRVar() {}
CatRVar(const std::strin... |
4d3ca4b28e15f1e08ec87cc90ac1273ed62f6d84 | 261f84525af86037f6e32f9234e44f74edefa621 | /Ohjelmointi 3 harjoitustyö/Game/plane.h | ca18c456cf21824aba40a8389b87cb6a8b059fc1 | [] | no_license | kkemppi/TIE-courses | 7cf0232b281e60b70e01e98da0febd6b92dcbe33 | 8a28a71120eb03213cbf1c18d6eed1d8df6fd820 | refs/heads/master | 2022-10-17T00:56:48.542490 | 2022-09-30T17:30:28 | 2022-09-30T17:30:28 | 231,389,998 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,120 | h | plane.h | #ifndef PLANE_H
#define PLANE_H
#include <QObject>
#include <QGraphicsPixmapItem>
/**
*@file
* @brief Defines a class for enemyplanes flying horizontally and vertically in scene
*/
const int X_MIN = 0;
const int X_MAX = 1095;
const int Y_MIN = 0;
const int Y_MAX = 592;
namespace Students {
class Plane : public... |
493ff089802d60db490cac5ffd28b6d675e6d849 | 7a24b458b3211b52707dc87f7108e021f041dea0 | /1356.根据数字二进制下-1-的数目排序.cpp | 9e222a263beade51d267ba3cb839729ec6bdc5d9 | [] | no_license | Zzzode/myLeetCode | 225570b3c635895d3909afa5d994c8f5191f3002 | ecfc3322feab67a0e47a6a2d612ef70c3709fedd | refs/heads/master | 2023-03-02T22:54:05.490320 | 2021-02-05T14:30:19 | 2021-02-05T14:30:19 | 295,231,282 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,028 | cpp | 1356.根据数字二进制下-1-的数目排序.cpp | /*
* @lc app=leetcode.cn id=1356 lang=cpp
*
* [1356] 根据数字二进制下 1 的数目排序
*
* https://leetcode-cn.com/problems/sort-integers-by-the-number-of-1-bits/description/
*
* algorithms
* Easy (67.45%)
* Likes: 34
* Dislikes: 0
* Total Accepted: 10.9K
* Total Submissions: 15.8K
* Testcase Example: '[0,1,2,3,4,5,... |
3ab9acc5e3a5d8f0c80ee0f1ee0acc440d86d6de | 1c3dcf16dc132d5adf4a3358fe62b8d788f65954 | /cdflib/beta_log.cpp | 35a24a36a9e54f585159ab3d13055344d122f56e | [] | no_license | LucDemortier/pValueMethods | 56febfe8e1422ef2717d5f0ab65059e61ecee143 | 7caa8de666574569b136f1998d18929b8626179e | refs/heads/master | 2021-08-28T18:23:06.926067 | 2021-08-08T04:02:20 | 2021-08-08T04:02:20 | 102,071,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,766 | cpp | beta_log.cpp | # include <iomanip>
# include <cmath>
using namespace std;
# include "cdflib.hpp"
//****************************************************************************80
double beta_log ( double *a0, double *b0 )
//****************************************************************************80
//
// Purpose:
//
// BETA_... |
95c354497687fe2e64d6fb37fa770f99e9b2a091 | 67ad3d5a2eebc2bd601da4e08f7a585b2ae3ed92 | /Practica 2/GRASP/grasp.cpp | ddb163226d692d094026ab7834c0e4fb85c9530a | [] | no_license | Espectro123/Metaheuristics_Practices | 7536740c41019dfe0f816b0b15b60caebf2a5f85 | ba254ce3f94518a90b64eeeda42fc5d94dc945a1 | refs/heads/master | 2020-04-09T18:31:15.598997 | 2018-12-05T12:40:30 | 2018-12-05T12:40:30 | 160,514,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,179 | cpp | grasp.cpp | #include <iostream>
#include <utility>
#include <fstream>
#include <vector>
#include <stdlib.h>
#include <time.h>
#include <ctime>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
//Generador de numeros aleatorios
#define MASK 2147483647
#define PRIME 65539
#define SCALE 0.4656612875e-9
#de... |
0f7ee3e41cf2e76ee882486d0e7027359c8d4d00 | a9764640e53fc598cdd565d56108749cc6471e08 | /include/thread_run/mutex.h | 9bee5124984e606afcea6460aa99f0863ee157fb | [] | no_license | nunuNNN/navinfo-vio-msckf | 4a64f2b8181df26d14bbe526811b5929f43bc563 | 8cdc2776599279a21324e49aada8ecd7de3f87a1 | refs/heads/master | 2023-02-25T00:04:13.624296 | 2021-02-01T02:08:38 | 2021-02-01T02:08:38 | 327,519,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | h | mutex.h | /*
* @filename mutex.h
* @brief 互斥量操作类
*/
#ifndef _BASE_MUTEX_H_
#define _BASE_MUTEX_H_
#include <pthread.h>
#include <thread_run/common.h>
class Mutex
{
public:
Mutex()
: _threadId(0)
{
pthread_mutex_init(&_mutex, NULL);
}
~Mutex()
{
pthread... |
c3562fb31dcf9208ca317c16e971dff24e910577 | 31589435071cbff4c5e95b357d8f3fa258f43269 | /PPTVForWin8/ppbox_1.2.0/src/ppbox/peer/PeerModule.h | 0cf37dee8908dce306ce2a43b2eac0f955593860 | [] | no_license | huangyt/MyProjects | 8d94656f41f6fac9ae30f089230f7c4bfb5448ac | cd17f4b0092d19bc752d949737c6ed3a3ef00a86 | refs/heads/master | 2021-01-17T20:19:35.691882 | 2013-05-03T07:19:31 | 2013-05-03T07:19:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,143 | h | PeerModule.h | // PeerModule.h
#ifndef _PPBOX_PEER_PEER_MODULE_H_
#define _PPBOX_PEER_PEER_MODULE_H_
#include <ppbox/common/PortManager.h>
#include <ppbox/peer_worker/ClientStatus.h>
#ifndef PPBOX_DISABLE_DAC
#include <ppbox/dac/DacModule.h>
#endif
#ifndef PPBOX_CONTAIN_PEER_WORKER
#include <framework/process/NamedMutex.h>
names... |
1b34d7dca8bc52875fd4e937fb0e7a543399b3c0 | 476a87d88b881c95aa39eb7a51082d2ac42d2d3e | /Sources/Server/GameEngine/Entities/Ships/ShipGreen/ShipGreen.cpp | 6d951adfbaa1051f7c5fd82d4aacddfd66ef26dc | [] | no_license | K6PIR/Rtype | 7d72f9cbf3e2ac9a5a56db3e3ac09f3cd2d82ff8 | 5b13f23d9e6154283fb3ae82a357571006bddfaf | refs/heads/master | 2022-03-24T15:06:15.995185 | 2019-12-02T16:25:36 | 2019-12-02T16:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | cpp | ShipGreen.cpp | /*
** EPITECH PROJECT, 2021
** CPP_rtype_2018
** File description:
** Created by kellian CIPIERRE,
*/
#include <iostream>
#include <random>
#include "ShipGreen.hpp"
ShipGreen::ShipGreen() : Ship("shipGreen") {
position.x = 50;
position.y = 850;
}
extern "C" {
#ifdef _WIN32
__declspec(dllexport) AEntity *bui... |
5af2008fc9a920b737c9fc2d34682ba0f475cb2f | f15d0accf241744982eb96b2b70453e0bd7a244c | /codes/LoadingScene.h | 5ac2c57e1efc0652483c45b4d6ac7f137fbec00f | [] | no_license | 2329408386/lolita | 124c6fa3f0732710be92adb0b41fc6f8cc8761c9 | 7272b95de85ecbf7669217815b9346e98c47333a | refs/heads/master | 2021-04-05T20:54:55.133204 | 2018-03-14T09:18:32 | 2018-03-14T09:18:32 | 124,523,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | h | LoadingScene.h | #pragma once
#include "cocos2d.h"
#include "Comadata.h"
using namespace cocos2d;
class LoadingScene:public Layer
{
public:
bool init();
static Scene* createScene();
//static LoadingScene* creat();
CREATE_FUNC(LoadingScene);
}; |
a27fb190b8d7c82c21faf78f3bc52254b3f28728 | 1a67b8fb79506d1c3b6518038acec4ec5157f40c | /SAC-V2-Console/DriverIORequests.cpp | cdc465cea270666fb3ae2d9e1bf01ce798af4a0a | [
"MIT"
] | permissive | fengjixuchui/Sagaan-AntiCheat-V2.0 | a014fa63e16ab714eff8a25820c3f35236f209f7 | dcc017aba7cdc735642dc8e2ca09e5ac4cccc5a7 | refs/heads/master | 2020-04-25T08:27:08.423407 | 2019-10-27T09:50:11 | 2019-10-27T09:50:11 | 172,647,607 | 0 | 0 | MIT | 2019-10-27T09:50:12 | 2019-02-26T05:57:30 | C | UTF-8 | C++ | false | false | 5,758 | cpp | DriverIORequests.cpp | #include "DriverIORequests.h"
KERNEL_HEARTBEAT_REQUEST Blank; // For blank return
KERNEL_THREAD_REQUEST BlankThread; // For Blank return
namespace DriverRequest
{
bool SendProcessIDs(ULONG GmaeProcess)
{
if (hDriver == INVALID_HANDLE_VALUE)
return false;
DWORD Return, Bytes;
KERNEL_READ_REQ... |
757293d2e9d6940eccdcd2b987e6b2b2ef9739dd | d01911c430c472e85ad8e9ece26ab008ed1f8160 | /include/signal.H | bd6710793433affcb54a48fe04f887915bdabb5d | [] | no_license | andresarcia/binder | 1de95a95f29a85f0a77d1c7c8431191d398cf862 | 809c726947254da7383fa7b01cc62b8d82d1f069 | refs/heads/master | 2021-01-09T05:42:20.425502 | 2017-02-03T09:40:35 | 2017-02-03T09:40:35 | 80,815,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | h | signal.H |
# ifndef SIGNAL_H
# define SIGNAL_H
#include <signal.h>
#include <aleph.H>
/**
Signal
Signal sets the signal handler for a particular signal when
it's created and restore the old signal handler when it's
destroyed.
@autor Carlos Nava <navac@ula.ve>
*/
class Signal
{
public:
typedef void Sigfunc(int);
pr... |
bf3a43a7b5213d3c9e1ed2ce248d6b1daa93e10d | a0ddd30bd57f0ac4803b80842bb7e583080abf7e | /Lynda_UpAndRunningWithCPP/Ascii.cpp | 0bef6caf64bacbbf327918a3ad174234d77a0704 | [] | no_license | milind1992/CPlusPlus_Practice | 57c5af0a30cfd13b9cdcdf7e0342905029404666 | d7eca189040f877efbbd2208c3997c6fabbb5160 | refs/heads/master | 2021-01-22T03:33:21.691200 | 2017-02-03T07:28:16 | 2017-02-03T07:28:16 | 81,132,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | cpp | Ascii.cpp | #include<iostream>
using namespace std;
int main()
{
char temp;
for (int num = 0; num <= 127; num++)
{
temp = num;
cout << num << " : " << temp << endl;
}
return 0;
} |
df0eb94a201f6e0f269df3a57746e2f3c0266230 | 05a0e3832ff62104382d4b53cf9d9dcf53b523d1 | /hash/map.h | d2c4d9d65e634e4172eb512db0892322821af7c0 | [] | no_license | gfxcc/algorithms | fa7c48579a390ac1ff5fb00575ba29d4b4fb796f | 16aaeb0172828e8bf3c8fb53ce6b683148972f86 | refs/heads/master | 2021-06-27T12:43:46.012228 | 2018-03-16T03:20:07 | 2018-03-16T03:20:07 | 95,735,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | h | map.h |
class Solution {
public:
void f(vector<pair<int, int>>& vec) {
map<int, int> mp;
for (auto& ele : vec) {
mp.insert(map<int, int>::value_type(ele.first, 1));
mp.insert(map<int, int>::value_type(ele.second, -1));
}
vector<pair<int, int>> ret;
int cnt = 0, start = -1;
for (auto& el... |
aae2052a2ddbaa7f90740cc42b1c7dc80e54f425 | d7cef86b64c0aa296621f662da2b14d262f31bec | /task.cpp | 9272bdca5de709a2eb788f4a5c8a0ddc454103c0 | [
"MIT"
] | permissive | yekm/bench | 71409fbf594d5f80c441d99f35faace0f7a7c259 | 00279f7282d8beee64c0bf06a0ea3a4a15a7e4a4 | refs/heads/master | 2021-01-17T11:39:03.156000 | 2018-07-12T13:26:32 | 2018-07-12T13:26:32 | 2,062,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | task.cpp | #include "task.hpp"
Task::Task(const std::string &name, utils::PlotSettings s)
: m_name(name)
, m_plotsettings(s)
{
}
Task::~Task()
{
}
std::string Task::get_name() const
{
return m_name;
}
Task::algs_type & Task::get_algorithms()
{
return m_algs;
}
void Task::add_alg(algs_type::mapped_type a)
{
... |
4805add578147e5d56ea63a2f8e511bc7a08be3b | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-mediastore-data/source/model/PutObjectRequest.cpp | 8f22a3fe79c5853401fd1f2dae3479e8d6adfac8 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 1,385 | cpp | PutObjectRequest.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediastore-data/model/PutObjectRequest.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#i... |
79a084fabdf435e60acd64cb827b07b3265e39b7 | 1dda012fa86de13aba7637e025c6568ed6bba599 | /src/cpp/allocators/uni_allocator/exception.h | 6a2d1934096817dd8d68993c8f36498c28da0351 | [
"Apache-2.0"
] | permissive | typhoonzero/unimem | 82e1f8b2768447671ee5c2a73c3133544fc58cfd | 879d273d4ae0ef8d36a0f4dd39a31a075724abeb | refs/heads/master | 2020-04-24T14:32:37.035877 | 2019-04-15T23:39:36 | 2019-04-15T23:39:36 | 172,024,009 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 364 | h | exception.h | #pragma once
#include <string>
class DebugAssertionFail : public std::exception {
virtual const char* what() const throw() {
// TODO: add stack trace here.
return "Debug mode assertion failed";
}
};
class MemoryCorruptedException : public std::exception {
virtual const char* what() const throw() {
... |
0e448833d61964d9fdc3c920e670646d88c5c50f | 79d11d81ffacf6fad9cf271256eda8ae4b30bdbc | /src/engine/win/atomic.cpp | 4b94ae690c10c33eea480a693fb5a8e91cc1daa4 | [
"MIT"
] | permissive | nem0/LumixEngine | d6c46d8febc54ff41e5bc5e6d71d861410f5b155 | e6314612df50c6f37b34fb0dfcad9683cc506ec7 | refs/heads/master | 2023-09-02T09:14:49.212586 | 2023-08-23T21:01:37 | 2023-08-23T21:01:37 | 14,590,125 | 3,660 | 518 | MIT | 2023-09-14T14:49:32 | 2013-11-21T14:43:55 | C++ | UTF-8 | C++ | false | false | 1,386 | cpp | atomic.cpp | #include "engine/atomic.h"
#include <intrin.h>
namespace Lumix
{
i64 atomicIncrement(i64 volatile* value)
{
return _InterlockedIncrement64((volatile long long*)value);
}
i32 atomicIncrement(i32 volatile* value)
{
return _InterlockedIncrement((volatile long*)value);
}
i32 atomicDecrement(i32 volatile* value)
{
re... |
3b1b8c0630b90845bbbccee1447278700fe3cd34 | 4afa3ea25a438fc8bb88773b3a5cdf0429d3eed2 | /Summer15 SFML Assignments/Pong/Game.h | 884aef85c79a0c7251f77ea33e2776dca5be69e7 | [] | no_license | leaflet757/CPP-SFML-Assignments | 67e05bab7c37050ee426e2b216b496d210de86dc | 4191bac68b4e391ad46134385e6a389f75bd3c20 | refs/heads/master | 2021-01-25T07:39:32.980715 | 2015-07-20T23:13:43 | 2015-07-20T23:13:43 | 38,646,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | h | Game.h | #pragma once
#include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>
#include <cstdio>
#include <thread>
#include <mutex>
#include <iostream>
#include <MathFuncsDll.h> // test
#include "Ball.h"
using namespace std;
namespace OpenSFMLEngine
{
class Game
{
private:
sf::Window* window;
thread* renderingThrea... |
9ac849058f3947d7ef63e79f689784cfefc2b3ff | 92e67b30497ffd29d3400e88aa553bbd12518fe9 | /assignment2/part6/Re=110/43.3/phi | 523f6a427af7a5831574b7dbf315a475686809d3 | [] | no_license | henryrossiter/OpenFOAM | 8b89de8feb4d4c7f9ad4894b2ef550508792ce5c | c54b80dbf0548b34760b4fdc0dc4fb2facfdf657 | refs/heads/master | 2022-11-18T10:05:15.963117 | 2020-06-28T15:24:54 | 2020-06-28T15:24:54 | 241,991,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,990 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
ec7b2147d1668b2c2f8913737f2dca706b5dd45a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/curl/gumtree/curl_repos_function_1161_last_repos.cpp | 8f6c07325c0d9e083a2f87e247f5bb685137bbe9 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | cpp | curl_repos_function_1161_last_repos.cpp | static CURLcode imap_continue_authenticate(struct connectdata *conn,
const char *resp)
{
struct imap_conn *imapc = &conn->proto.imapc;
return Curl_pp_sendf(&imapc->pp, "%s", resp);
} |
19b36817c4ac19331718b726ee68a133ac25c61e | 9c7c58220a546d583e22f8737a59e7cc8bb206e6 | /Project/MyProject/MyProject/Source/MyProject/Private/BaseFrame/Libs/FrameHandle/DaoJiShiTimer.h | bcfc61c2731205d0169361c23ece4d08c09790de | [] | no_license | SiCoYu/UE | 7176f9ece890e226f21cf972e5da4c3c4c4bfe41 | 31722c056d40ad362e5c4a0cba53b05f51a19324 | refs/heads/master | 2021-03-08T05:00:32.137142 | 2019-07-03T12:20:25 | 2019-07-03T12:20:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | h | DaoJiShiTimer.h | #ifndef __DaoJiShiTimer_H
#define __DaoJiShiTimer_H
#include "TimerItemBase.h"
#include "PlatformDefine.h"
MY_BEGIN_NAMESPACE(MyNS)
/**
* @brief 倒计时定时器
*/
class DaoJiShiTimer : public TimerItemBase
{
public:
virtual void OnTimer(float delta) override;
virtual void reset() override;
};
MY_END_NAMESPACE
#endif |
4f1e3c6273eb83758a01e363e28d0db07a28b84c | 37bf77c75be5e4a1e43ae67c195697b5a9c018c0 | /src/api/xui/widgets/sourcesink/XUIGroupEventSource.h | 7ff64e039d588866cdfab293af0eebc26886f7b5 | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mecctro/wasabi | dbaa656ad71f719fa7b227346dc892058212f96d | 49d293042ce17b0d137b2e4c6fc82a52bdb05091 | refs/heads/master | 2020-12-29T01:11:56.251711 | 2013-09-01T20:08:51 | 2013-09-01T20:08:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | h | XUIGroupEventSource.h | // ----------------------------------------------------------------------------
// Generated by SourceSink Factory - DO NOT EDIT
//
// File : ../sourcesink/XUIGroupEventSource.h
// Class : XUIGroup
// class layer : Event Source for XUIGroup
// --------------------------------------------------------------... |
5274a501d83f6f747a48aee8e0435afb9b0c3717 | 31ea1a7466ce98e76c5359d4683723fbc8b39334 | /cpp-opencv-app/tests/Jetson-TK1-main(old)/v3.3.1/opencv-app/include/watchdog_class.cpp | 837a6f099da64a071345685b8990a495500f0282 | [] | no_license | KNR-Selfie/selfie_carolocup2018 | 7f86da87071b9433704f65bdf013c6b07a3ba957 | 28408e3b4d944e7c6c6986ea6656df1690d6d6f7 | refs/heads/master | 2020-04-02T10:10:52.053330 | 2018-10-23T13:03:18 | 2018-10-23T13:03:18 | 154,328,051 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,725 | cpp | watchdog_class.cpp | #include "watchdog_class.hpp"
bool Watchdog::init()
{
mem_id = shmget(key, MEMSIZE, IPC_CREAT | 0666);
if(mem_id < 0)
{
std::cout << "Error getting memmory access at given key" << std::endl;
return 0;
}
shared_variable = (char*) shmat(mem_id, NULL, 0);
if(shared_variable == (c... |
de64ea8cee401cca30001336aae3ec8fa36129f2 | 225d6c61037d82a94285fcb33bc00be6048ca2e6 | /spec/helpers/fake_file.cc | de8333c1b002578568c696ee3715458a53506f31 | [
"MIT"
] | permissive | fweiss/mcu-gif | 927c8fbe8bfc3f102d54b88787054aa3d484febe | 2f8a558b52db009c7c9805a3b080cd3c092748d8 | refs/heads/master | 2022-10-03T11:23:45.416112 | 2022-09-13T17:21:23 | 2022-09-13T17:21:23 | 216,144,197 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,672 | cc | fake_file.cc | #include "fake_file.h"
#include <algorithm>
#include <iostream>
static const uint8_t *f_read_data = 0;
static size_t f_read_data_length = 0;
static size_t f_read_pos = 0;
ssize_t ff_read(void *buf, size_t rep, size_t count, void* fp) {
// printf("read %d %p %ld: %lx\n", fd, buf, count, f_read_pos);
size_t ava... |
c37b8ce024ac5280f2a0107ca8d67252c64e15c3 | fe4de0070b7d7877e9b5712718c6956cc7e2108a | /term_Q2.cpp | 58793bdc947b43ab853dbdcdd4bab06fef5bd17f | [] | no_license | snghx/C_term-project | daed098fb8efbc90469baad6089eb38f3aabb7bb | 856c725e38223294d999a2b6f1c2c861370cdffe | refs/heads/main | 2023-03-22T15:45:23.587485 | 2021-03-11T10:18:03 | 2021-03-11T10:18:03 | 346,660,427 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 933 | cpp | term_Q2.cpp | //// [과제 02번] 소비자경제학과-2학년-1913455-노승혜
//#define _CRT_SECURE_NO_WARNINGS
//#include <stdio.h>
//
//int main(void) {
// int score[5];
// int i;
// for (i = 0; i < 5; i++) { //학생 점수를 입력받아 배열을 생성하기 위한 for문
// printf("%d, 학생 점수(0~100)? ", i + 1);
// scanf("%d", &score[i]);
// }
//
// float avg = (float)((... |
6aa4498906f0b56d74a0977eee4165a7e4a11baf | 5b659a16e5b59f17921dd978192629eae39f1b6b | /vs_2015_project/CPlusPlus_WinodwsProgramming/create_request_value/create.cpp | b5bf4a4d554a55689c4dbacdfa9d71dd1187e283 | [] | no_license | jennyliuuu/program_practice | 34d00d1985a1386948317f88c5865d11f72306cc | 2944bb0e0b37adefd00cec4fb032282c0b67e237 | refs/heads/master | 2021-05-10T21:36:51.885775 | 2019-04-26T09:54:07 | 2019-04-26T09:54:07 | 118,232,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | create.cpp | #include <fstream>
#include <iostream>
using namespace std;
#define size 3000
void main()
{
fstream file;
char *str = new char[size];
memset(str, 'a', size);
file.open("Reader.txt", ios::out | ios::trunc);
file.write(str, size);
file.close();
delete[] str;
} |
f3647c879c129f0bf936b9fadc3b9e3d2dc73746 | e43a8b36acce69fd4dea0443e36c7806a114c00a | /rekayasa saya/anakAyams.cpp | e60aaaea89e4164a5899960892b1e0749b776b32 | [] | no_license | denzveloper/CPPSMK | d0392ca87e2b278f5ec4be8eef70e2e7a2009ff6 | 2d25a7b9ab9636ec4c2698ea7e2d976bde823880 | refs/heads/master | 2020-09-09T18:23:59.207950 | 2019-11-13T18:40:33 | 2019-11-13T18:40:33 | 221,525,285 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cpp | anakAyams.cpp | #include<iostream>
using namespace std;
int main()
{
int i;
cout<< "====================================================================="<<endl;
cout<< "Program Anak Ayam..."<<endl;
cout<< "====================================================================="<<endl;
cout<< "Masukkan Jumlah... |
fbe3317f06c59f46260faa6db78f1c60fdb63285 | ab8316dada0f12a81fd9bb469f44b287240c490d | /deeplearning/ml4pl/graphs/llvm2graph/build_graph.h | f0853001b7252c61bd3d5faa3f2824f7ca5948ce | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | island255/ProGraML | 7680b09526af6e9884770a1667afcfd424e1848a | 6c4ea50639773009e7c287feb62c6994fa4f3445 | refs/heads/master | 2022-10-02T18:03:55.735979 | 2020-06-10T09:26:31 | 2020-06-10T09:26:31 | 271,277,075 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 553 | h | build_graph.h | #include "deeplearning/ml4pl/graphs/programl.pb.h"
#include "labm8/cpp/statusor.h"
#include "labm8/cpp/string.h"
#include "llvm/IR/Module.h"
namespace ml4pl {
// Construct a program graph from the given module.
labm8::StatusOr<ProgramGraph> BuildGraph(llvm::Module& module);
// Construct a program graph from a buffer... |
a643340111811c18773b01fc87bb2a4f3babb948 | f1d0f8140af5ccf5408513719345775e5e5d1a75 | /src/OpenGL/Camera/Camera.cpp | 6cc005f29ced3a9d4f54be7e7cbc75d89219c593 | [] | no_license | annulment/w_vr3 | f08c41f2405c970ca2aa0c826ec1f3f11a3d35f1 | 2d1a265faf8ba38710f7528973cafc5d2541bc5c | refs/heads/master | 2023-03-22T13:20:06.032628 | 2021-03-13T17:56:49 | 2021-03-13T17:56:49 | 345,869,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,508 | cpp | Camera.cpp | #include "Camera.h"
#include <glm/gtc/matrix_transform.hpp>
#include "..//..//Window/Window.h"
#include "..//..//Events/Events.h"
w_vr3::gl::Camera::Camera(w_vr3::Window* window, glm::vec3 position
, glm::vec3 up, float yaw, float pitch) : speed(2.5f), zoom(45.0f), front(glm::vec3(0.0f, 0.0f, -1.0f)),
window(... |
61a0b093c3b0943563afae0d49dc9a38b6fc654c | 2741058082c3e88afff85e9604f3d46b7b90123d | /montecarlo.h | a3cb67fc47dfbd118701b6f94ec534f6efc22b23 | [] | no_license | KineOdegardHanssen/Master | 02acc17b2742bb603933bbfb8675b4fee5fb5b8b | a04a5c76e619e4ecfa63b2e2f8d77ae5b0e863b2 | refs/heads/master | 2021-08-20T05:45:27.480681 | 2017-11-28T09:33:21 | 2017-11-28T09:33:21 | 112,304,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,945 | h | montecarlo.h | #ifndef MONTECARLO_H
#define MONTECARLO_H
#include <fstream>
#include <iostream>
#include <iomanip>
#include <vector>
#include <random>
#include <cmath>
#include <complex>
#include "lattice.h"
#include "site.h"
#include "bond.h"
#include "gaussiandeviate.h"
extern "C"
{
#include "fftw3.h"
}
using namespace std;
usin... |
c27e9da696edd02f424d38e2149f830b25f54ca6 | 206bc173b663425bea338b7eb7bc8efc094167b5 | /atcoder/abc/82/c_sub.cpp | ce4dd7283db37e588692723c503c892895446632 | [] | no_license | rika77/competitive_programming | ac6e7664fe95249a3623c814e6a0c363c5af5f33 | a0f860c801e9197bcdd6b029ca3e46e73dfc4253 | refs/heads/master | 2022-03-01T09:03:01.056933 | 2019-11-07T01:45:28 | 2019-11-07T01:45:28 | 122,687,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | cpp | c_sub.cpp | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<string>
using namespace std;
int main(){
int n;
int a;
cin>>n;
int flag[1000000001] = {};
for (int i=0;i<n;i++) {
cin >> a;
flag[a] += 1;
}
int cnt = 0;
for (int i=1;i<=1000000000;i++) {
if (flag[i]) {
if (flag[i]>i) {
cnt += flag[i] - i;
}... |
eb10a279614bd4e3a2bcf3c5769983e50d457d1f | 9e838485df519302135da697fc7ba816761e8811 | /projects/assigment2/code/triangulation2dapp.cc | 8deb0994914ad83781902d0c1cb88ed30161920b | [
"MIT"
] | permissive | Blinningjr/opengl-lab-env | 80d7e775133ee87ad9c4a1db76ea0d734c44ab7b | dc041a6d502bf543f25271cd47dd7c5698eb33a1 | refs/heads/master | 2020-09-06T16:04:23.711882 | 2020-01-28T21:30:24 | 2020-01-28T21:30:24 | 220,473,458 | 1 | 0 | MIT | 2019-11-20T22:55:37 | 2019-11-08T13:34:19 | C | UTF-8 | C++ | false | false | 16,707 | cc | triangulation2dapp.cc | #include "config.h"
#include "triangulation2dapp.h"
#include <cstring>
#include <glm/glm.hpp>
#include <glm/vec3.hpp> // glm::vec3
#include <glm/vec4.hpp> // glm::vec4
#include <glm/mat4x4.hpp> // glm::mat4
#include <glm/gtc/matrix_transform.hpp> // glm::translate, glm::rotate, glm::scale, glm::perspective
#include <ma... |
77a01e809a0de85b5a150c90eb501746c13f5eb2 | a09a2fb5ab1d038855ff84f38c4f15482d98e885 | /Analysis/HiggsNuNu/LightTreeAna/src/HistPlotter.cc | 06cee311766a56776e49f66469ad4a7ea556e508 | [] | no_license | pmeridian/ICHiggsTauTau | 2a352ab7f67906be8e7b348da00f815160ad3cf3 | 88b15992ad0cb6c97cd06ea786c363612958a9dc | refs/heads/master | 2020-02-26T16:58:47.578354 | 2014-12-16T16:16:38 | 2014-12-16T16:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,312 | cc | HistPlotter.cc | #include "UserCode/ICHiggsTauTau/Analysis/HiggsNuNu/LightTreeAna/interface/HistPlotter.h"
#include <iostream>
#include "TH1F.h"
#include "TF1.h"
#include "THStack.h"
#include "TCanvas.h"
#include "TLegend.h"
#include "TStyle.h"
#include <map>
#include "TVectorD.h"
//#include "CommonTools/Utils/interface/TFileDirectory.... |
3028186042c0cb480edda3dd4fcbbcf8749ca6c4 | ab3760a49c72d1b2b65ed732028bb37141ea8f64 | /soul/src/runtime/runtime.h | 09ed5ad39d4cc73ef4e260de2c7a5d3660b52d79 | [] | no_license | kevyuu/soul | acfb4e177fd2081ee8baa06f125dc09d31bcbf9f | b132c47cf788d37a51c702773bd7e2ee24175bfd | refs/heads/main | 2023-07-21T19:15:07.138275 | 2023-07-17T09:51:24 | 2023-07-17T09:51:24 | 138,812,031 | 7 | 1 | null | 2022-10-04T06:21:32 | 2018-06-27T01:11:36 | C++ | UTF-8 | C++ | false | false | 2,979 | h | runtime.h | #pragma once
#include "core/type_traits.h"
#include "runtime/data.h"
#include "runtime/system.h"
namespace soul::runtime
{
inline auto init(const Config& config) -> void { System::get().init(config); }
inline auto shutdown() -> void { System::get().shutdown(); }
inline auto begin_frame() -> void { System::ge... |
2c0d86433bb5460af8d4ec7ccad80d646b95d1e5 | 0453ffb96e2c233fb04bb78e59ee70d1e66c22a3 | /binary-search/valid-perfect-square.cpp | e360dbd1fcf3013cd9eb297b3dfc5db1c1f17d17 | [] | no_license | rakshith53/LeetCode-Solution | 4f8f08283610c54bf61135d16befad1c264eb054 | bba00e9314b4ad36f1831387a9f9fab802562b8b | refs/heads/main | 2023-02-15T14:13:04.870369 | 2021-01-13T08:15:38 | 2021-01-13T08:15:38 | 325,224,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | valid-perfect-square.cpp | class Solution {
public:
bool isPerfectSquare(int num) {
int l=1,r=num;
int mid,res,rem;
while(l<=r){
mid = (r-l)/2 + l;
if(num/mid==mid && num%mid==0) return true;
else if(mid < num/mid) l = mid+1;
else r = mid-1;
}
return fals... |
eac9397ff76b7cf0622cf99f8ba945dd2ce601be | 76b39f71af6fdddb027a4c8457f76956d5939c67 | /subset_sum_equal_partition.cpp | 04d293beb5fb6f4b311f8ed6ee0d82ef5a83a401 | [] | no_license | piash76/uva-codeforces-lightoj-atcoder-spoj--7 | b2ddbd223663735b1cbb68c49b983b101246fbb4 | b549e64309e14fff8acdf79a07d81e1d36247395 | refs/heads/main | 2023-06-25T12:14:48.618742 | 2021-07-16T07:59:01 | 2021-07-16T07:59:01 | 386,539,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 908 | cpp | subset_sum_equal_partition.cpp |
///Bismillahir Rahmanir Rahim
#include<bits/stdc++.h>
#define ll long long
#define pll pair<ll,ll>
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
#define cy cout<<"YES"<<endl
#define cn cout<<"NO"<<endl
using namespace std;
const ll inf=1e18;
con... |
8fd15bd37dffbc13011a05acf7d0a305d625d9ae | a31349460eda9e0aba3846344048490c1a108c24 | /Qt/Widgets/qSlicerEMSegmentAnatomicalTreeWidget_p.h | 1bcc2bf6bbc0641cb9fc92a89ad3f1e250d68aaf | [] | no_license | jcfr/EMSegment3 | 58ce9f01a3dd86aff67b02226ae8710c6a49d8b1 | 44d4f1d5a3e442d70adc98f0227ceff559c91038 | refs/heads/master | 2021-03-12T23:02:21.886633 | 2011-04-28T21:15:35 | 2011-04-28T21:15:35 | 1,667,722 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,517 | h | qSlicerEMSegmentAnatomicalTreeWidget_p.h | /*==============================================================================
Program: 3D Slicer
Copyright (c) 2010 Kitware Inc.
See Doc/copyright/copyright.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distribute... |
2fdf64ea9118d1014a46e20d792f03ea768847c9 | 8bbd41d72899b193bb134138a6779e1f2b60291b | /system/linux/usb/hello/storage.h | e4e214d3741b234ed16313f86142225ee3502833 | [] | no_license | guofuhua/test | fd86351784cb3ed2ca4d120900fd57c6b8d251b1 | b8632a177cadf9178a5f0cc1dcdbca4a15f57be5 | refs/heads/master | 2021-05-06T07:59:44.824358 | 2018-03-29T07:58:30 | 2018-03-29T07:58:30 | 113,967,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,226 | h | storage.h | #ifndef STORAGE_H
#define STORAGE_H
#define MAX_CHANNEL (32)
#define MAX_STORAGE_DEVICE_NUM (3)
#define RTSP_PATH_LEN (128)
#define SAVE_PATH_LEN (256)
/* 6A board type */
typedef enum
{
BOARD_NONE = 0,
BOARD_AV1 = 1,
BOARD_AV2 = 2,
BOARD_AV3 = 3,
BOARD_AV4 = 4,
BOARD_EXP = 5,
... |
10bd1e52752db552dcab695391977c76c7b97ddb | 0b9fc8d6fa090c9ff23215b4dab16aa28d2c85d0 | /Graphs/IReader.h | 9f485ff8a1cfedc6b6b859a4e0a1684bd67f1079 | [] | no_license | birneAgeev/ShortestPaths | ee9b2a278d82ad097768ab82ba1b6212074432b6 | 5d326db5e4d8ad24e13bd8449fe25c10161c52c5 | refs/heads/master | 2021-01-10T14:14:40.118314 | 2015-10-02T09:19:56 | 2015-10-02T09:21:19 | 43,388,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | h | IReader.h | #pragma once
#include <string>
// TODO : Abstract reader based on NextChar() and HasNext()
class IReader {
public:
virtual ~IReader() {}
virtual bool HasNext() = 0;
virtual char NextChar() = 0;
virtual unsigned int NextUnsignedInt() = 0;
virtual std::string ReadLine() = 0;
};
|
69d0e9302826f3b7fe96f4396060e0cad1e16512 | 793258e0e7827ea2237ff1e128fe8d3f836b900e | /day06/custom-customs.cpp | 8c853633a85be38047328cf6f76d7c07a5d924cb | [] | no_license | tomlankhorst/advent-of-code-2020-cpp | 445f0a9baaff7864d8c7cbd859e064e9a6d7d3da | 6b5304a8639ba7c8748788b6bffe6af7a81edf30 | refs/heads/main | 2023-02-05T02:01:25.173237 | 2020-12-25T07:32:50 | 2020-12-25T11:27:06 | 317,498,205 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,857 | cpp | custom-customs.cpp | #include <algorithm>
#include <numeric>
#include <set>
#include "day05/arg_input.hpp"
#include "day05/tokenize.hpp"
namespace ranges = std::ranges;
auto main(int argc, char* argv[]) -> int {
auto file = get_input(argc, argv);
if (std::holds_alternative<int>(file))
return std::get<int>(file);
auto& input ... |
59279f50d968c793cfa62bf2be1dfb7738f22d84 | db485ccdc0e6a24141622f91e2db8728522aac7c | /include/scanner/probe_set.h | 756a738e880f8b8c2e1048cbac09c6ee23b6b77b | [
"MIT"
] | permissive | ryru/nxscanner | d017bfdcb620e3a2a2c5e43fae90e42ffe3305d1 | ae1d541777042e44fc7747c9f72e9a985e89fcbb | refs/heads/master | 2020-06-03T21:06:09.149367 | 2019-07-03T19:04:31 | 2019-07-03T19:04:31 | 191,731,239 | 1 | 0 | null | 2019-06-13T09:28:06 | 2019-06-13T09:20:18 | C++ | UTF-8 | C++ | false | false | 622 | h | probe_set.h | #ifndef NXSCANNER_INCLUDE_SCANNER_PROBE_SET_H_
#define NXSCANNER_INCLUDE_SCANNER_PROBE_SET_H_
#include "probe.h"
#include <utility>
namespace nxscan::scanner {
class Probes {
public:
Probes(Probe domain, Probe host, Probe randomHost)
: domain(std::move(domain)), host(std::move(host)), randomHost(std::move(r... |
0ae235453dc5da83b1661a9597885f99185ddaf2 | 123d8e9c7e7cf559cfcbc7e132ef7d01ffdfa81e | /src/GUI/Container.hpp | 4c8ae0d8121f6a022a4fe7e307fb49ff62ddee5a | [] | no_license | jrobchin/zel | a1e521cb94e13b87c2c7f7d7eef4d67440d91bba | c6c4cf78f62023e6de80cf9b14430c603abd8eb5 | refs/heads/master | 2020-04-16T21:14:20.919526 | 2019-02-25T19:28:47 | 2019-02-25T19:28:47 | 165,917,677 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 757 | hpp | Container.hpp | #ifndef GUI_CONTAINER_HPP
#define GUI_CONTAINER_HPP
#include <vector>
#include <SDL2/SDL.h>
#include "Math.hpp"
#include "Component.hpp"
/*
* Container that holds other components.
*/
class Container: public Component {
public:
Container(Point<int> origin=Point<int>(0, 0), int width=0, int height=0, int margi... |
4fbe7ceda9f2dc94bff8b44e37d4cb3d378511c8 | d3d1d7d99054b8684ed5fc784421024050a95c79 | /codeforces/contest/1256/c.cpp | 2b20e27d7bb10da66811595ee598c2ce50152d3f | [] | no_license | rishabhSharmaOfficial/CompetitiveProgramming | 76e7ac3f8fe8c53599e600fc2df2520451b39710 | 85678a6dc1ee437d917adde8ec323a55a340375e | refs/heads/master | 2023-04-28T05:51:18.606350 | 2021-05-15T07:04:33 | 2021-05-15T07:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | c.cpp | #include <bits/stdc++.h>
#define ll long long int
#define ii pair<int, int>
#define iii pair<int, ii>
#define vi vector<int>
#define vii vector<ii>
using namespace std;
int main()
{
int n, m, d;
cin >> n >> m >> d;
vi arr(m);
for (int i = 0; i < m; i++)
cin >> arr[i];
vi ans(n);
int pt =... |
a2db8d8f32d65a0f5369dbcab60594259141d6ca | 450a2cfcc06589388cc2bd7ef127d421577e70f8 | /CourseWork/Example4_PointLight/Example4_PointLight/TerrainShader.cpp | 194605ebe4f11f2668da1e2528f9f79dee309da8 | [] | no_license | Gabe-L/Shaders | 78fe3056c742d549baaa97518acb4776c331d8da | 9abec16bc70c8294b260154d720ad1080d24e6cb | refs/heads/master | 2020-04-01T05:10:10.989704 | 2018-12-11T17:46:47 | 2018-12-11T17:46:47 | 152,892,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,516 | cpp | TerrainShader.cpp | // tessellation shader.cpp
#include "TerrainShader.h"
TerrainShader::TerrainShader(ID3D11Device* device, HWND hwnd) : BaseShader(device, hwnd)
{
initShader(L"terrain_vs.cso", L"terrain_hs.cso", L"terrain_ds.cso", L"terrain_gs.cso", L"terrain_ps.cso");
}
TerrainShader::~TerrainShader()
{
if (sampleState)
{
samp... |
00e47f63cdd0344c9955cfd6f9204e4875ddab55 | 4a5ed032e2a1d5f0149c5901e3cb55906abb20c4 | /core/toolbutton.h | d4d8e76370cc00d498eebec63993aa015ca570d5 | [] | no_license | guchengzhi/ShowBoard | 7c20af09a4d063bac245aabef0cef47a94f6db33 | 4bc5c155f30ef8976058590658670d443a942100 | refs/heads/master | 2023-08-24T01:56:36.567162 | 2021-10-25T01:04:31 | 2021-10-31T07:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,843 | h | toolbutton.h | #ifndef TOOLBUTTON_H
#define TOOLBUTTON_H
#include "ShowBoard_global.h"
#include <QAction>
#include <QVariant>
class SHOWBOARD_EXPORT ToolButton : public QAction
{
Q_OBJECT
Q_PROPERTY(QByteArray name READ name WRITE setName)
Q_PROPERTY(bool dynamic READ isDynamic WRITE setDynamic) // need delete
Q_P... |
34cc0667523b80a45c17b36d446419576ce82b46 | 62d9a7dc6117edbe626b2d566663fed630ff7975 | /Labs/vectors.cpp | 52a3300df1eb632df68f41aefcd9a7469435bd3f | [] | no_license | neil-kuldip/CSCI-135-136 | 6a6cc87c724d2823bfe5e58007612881d07a9ec9 | 9b3b9ba7979923ad74c6f3f8df23192ace38907f | refs/heads/master | 2022-12-30T10:46:27.850672 | 2020-10-12T23:38:52 | 2020-10-12T23:38:52 | 264,583,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | vectors.cpp | /*
Author: Neil Kuldip
Course: CSCI-136
Instructor: Melissa Lynch
Assignment: Lab 12 - Task A
This program contains the function: program a function called vector<int> makeVector(int n)
that returns a vector of n integers that range from 0 to n-1
*/
#include <iostream>
#include <vector>
using namespace std... |
3a521f6501625a4a91466464ee66ad25376a401c | 86eb6a23e99d9aa27710cde1882368bb878d2794 | /lib/UserInterfaceClass/bitmaps.inl | b7448cfd2073cc007b17ec3099e52e9ce8f58b7a | [] | no_license | davidfobar/BrewController | b19e4465dbbbbf75e61409ac95a004aaa8b3eed5 | 9108b88b891d1c2f81f43f621a17467b72656cfe | refs/heads/master | 2022-10-28T14:37:18.128628 | 2019-01-06T09:17:18 | 2019-01-06T09:17:18 | 151,956,719 | 1 | 0 | null | 2018-10-07T16:08:46 | 2018-10-07T15:38:31 | C++ | UTF-8 | C++ | false | false | 736 | inl | bitmaps.inl | #ifndef BITMAPS_inl
#define BITMAPS_inl
#include "Arduino.h"
const uint8_t lock_bitmap[] U8G_PROGMEM = {
0b0011100,
0b0100010,
0b0100010,
0b1111111,
0b1110111,
0b1100011,
0b1110111,
0b1111111
};
const uint8_t arrow_bitmap[] U8G_PROGMEM = {
0b0000000,
0b0001000,
0b0001100,
0b0001110,
0b111111... |
77fa3cdfbab04b9bed3baafe2e91b98773c24ddd | 8564892a4c6b10cc843f7ed38344e44b0d1589ca | /Object Oriented Programming/Hw5 Connect Four Part5/ConnectFourPlusUndo.cpp | a75020fd357f3b1cb1d9566c6abff44c1e2d320d | [] | no_license | utksezgin/GTU-Homeworks | 9909142ead0f264b057909bafb5ac976250a3a52 | 9d19f79b2d7b7bcf1055441e09ef40bcf4fecb50 | refs/heads/master | 2021-07-04T05:08:01.088021 | 2021-06-22T14:36:16 | 2021-06-22T14:36:16 | 160,941,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 694 | cpp | ConnectFourPlusUndo.cpp | #include "ConnectFourAbstract.h"
#include "ConnectFourPlus.h"
#include "ConnectFourPlusUndo.h"
#include "Cell.h"
#include <iostream>
#include <string>
#include <stdlib.h> //Exit
#include <fstream> //Read/Write files
using namespace std;
int myNameSpace::ConnectFourPlusUndo::undoLastMove(){
int h = 0, w = 0;
if(pl... |
dae679b58dbb0a0027134caffa882372fdc9a103 | 1eb7e9a8068ee2fa2650fc976aad243f8f6a5ee0 | /Vowels and Consonant in string.cpp | 214092976619dd0bdb7f6242b1bfaea4879fc567 | [] | no_license | Amankumar-code/Data-Structure | d997421b058c2193127c588ff73f0fb33ad4de31 | 42351a913f05cb7d59928c79a841130ba5909c68 | refs/heads/main | 2023-07-11T00:55:23.325308 | 2021-08-18T07:11:07 | 2021-08-18T07:11:07 | 393,600,485 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | cpp | Vowels and Consonant in string.cpp | #include<iostream>
#include<string>
using namespace std;
int main()
{
string str;
getline(cin, str);
int vow=0,co=0;
for(int i=0;str[i]!='\0';i++)
{
if(str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' || str[i]=='A' || str[i]=='E' || str[i]=='I' || str[i]=='O' || s... |
d02bfd904b376d436c5d1ab98eeec398a3c74b29 | b95b40fa30fccdc66d3f4c1b4340d4d6f93c20d7 | /3Dcoor/feature_abscoord.h | 7c7878ad1e2dd97d278a2f5bb69cc321ffc67829 | [] | no_license | chenying6/6D-PoseEst | 31deee31917ec4dde8e5ebf7ac0a047620249137 | e4293a99e4d237d078783dedd41198107752c67b | refs/heads/master | 2020-08-27T05:34:53.373900 | 2018-06-13T12:19:08 | 2018-06-13T12:19:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,654 | h | feature_abscoord.h | #pragma once
namespace jp
{
class FeatureAbsCoord
{
public:
FeatureAbsCoord() : off_x(0), off_y(0), channel(0), dimension(0), direction(0)
{
}
FeatureAbsCoord(int off_x, int off_y, int channel, int dimension, int direction)
: off_x(off_x), off_y(off_y), channel(channel), dimension(... |
1ddd45cf1b2e7439d79a563c2869a327857ed39a | 449ae14862d9803277babe446f7f030fe9b0f15e | /p2/tags/RELEASE_0_6/python/p2/elements/unmarshalField.cpp | ed77ae4b0e9d5057aac5ecae6b4505169b421bac | [] | no_license | declarativitydotnet/declarativity | 863ea58bed1c0efc57573d75b73e0006eca3f280 | 75096fb78264c517cd00e8486467c010038434cb | refs/heads/master | 2021-01-10T11:58:00.700630 | 2015-12-08T17:44:39 | 2015-12-08T17:44:39 | 47,607,520 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 441 | cpp | unmarshalField.cpp | #include <unmarshalField.h>
#include <boost/python.hpp>
using namespace boost::python;
void export_unmarshalField()
{
class_<UnmarshalField, bases<Element>, boost::shared_ptr<UnmarshalField>, boost::noncopyable>
("UnmarshalField", init<std::string, unsigned int>())
.def("class_name", &UnmarshalField::... |
de30e807cae3bfc40dc1f68e098f081ddb59abb0 | 7b6c90f59e6596f64e96d8105c51662853fdca0d | /Longest Substring Without Repeating Characters.cpp | 05d07d215a359cc7f53d622442cdc16542a32017 | [] | no_license | VladaChernoray/Extra3 | a74d054851495db632284f031ca8ce62ea1b0550 | e2dd4ff1d791fc0b19ccfe08ba929f1c1070dec5 | refs/heads/master | 2022-12-14T05:56:30.776245 | 2020-09-16T16:54:19 | 2020-09-16T16:54:19 | 296,092,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | cpp | Longest Substring Without Repeating Characters.cpp | class Solution {
public:
int lengthOfLongestSubstring(string s) {
int temp = 0;
int max_length = 0;
int curr = 0;
for (int i = 0; i < s.length(); i++) {
for (int j = i - 1; j >= temp; --j) {
temp = (s[i] == s[j]) ? temp = j + 1 : temp;
... |
f2ce9bb04fd2630b607a2f56cd29a384eff189e9 | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/mul/mbl/tests/test_dyn_prog.cxx | 0a79094a076a36da9dc1d9b5fc045696843e5b29 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 4,036 | cxx | test_dyn_prog.cxx | // This is mul/mbl/tests/test_dyn_prog.cxx
#include <iostream>
#ifdef _MSC_VER
# include "vcl_msvc_warnings.h"
#endif
#include <mbl/mbl_dyn_prog.h>
#include "testlib/testlib_test.h"
#include <mbl/mbl_combination.h>
#include "vnl/vnl_random.h"
static inline int mbl_abs(int i) { return i>=0 ? i : -i; }
double dp_cost1... |
920d5f824b8c65dadccdb487223c6b26f503b6fb | 6ac555ae691a7ae57fb44bb1c2f02ecbff53842d | /Relay/CapacitiveSoil_library/CapacitiveSoilSensor.cpp | 772d28771f1df297a3c4c6c3b2f12e2597052291 | [] | no_license | esalcido/EasyFan | 6f243315bb9408542702a7e3f275ae2fda2c0bcd | 4d6ba34d624025bed76c8611bf0c1b7ada260859 | refs/heads/master | 2022-07-20T02:25:00.497754 | 2020-11-15T23:31:45 | 2020-11-15T23:31:45 | 79,675,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 960 | cpp | CapacitiveSoilSensor.cpp | #include "CapacitiveSoilSensor.h"
#include "Arduino.h"
CapacitiveSoilSensor::CapacitiveSoilSensor(int pin)
{
_pin = pin;
const int AirValue = 520;
const int WaterValue = 260;
int intervals = (AirValue - WaterValue)/3;
int soilMoisture = 0;
}
// void CapacitiveSoilSensor::setup(){
// Serial.begin(1152... |
0fd66310402428bc3f751460c0cadd81288e2f13 | bbe2c5d98fd9c0ffaa16e60ec1ecd04a6ece058b | /UIKit Ripoff/constants.cpp | 620bc95005991259baace6357e7aeccb14442821 | [] | no_license | BeeFl/GraphingCalculator-SFML | 896d9b5af7ace49db21aefd24d5b49e935063772 | 2100c023307a47837042525da2ea15852cfb7daf | refs/heads/master | 2021-10-28T14:47:27.301489 | 2019-04-24T04:55:24 | 2019-04-24T04:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,954 | cpp | constants.cpp | //
// constants.hpp
// Graphing Calculator CAS
//
// Created by Jack Zhao on 11/19/18.
// Copyright © 2018 Jack Zhao. All rights reserved.
//
#include <string>
#include "SFML/Graphics.hpp"
const int FrameRate = 60;
const double H_W_RATIO = 0.5625; // 16:9
const int DEFAULT_W = 2600;
const int DEFAULT_H = DEFAULT_W ... |
2d318ad36382fe75d5255743c825f47360ab87bc | 37a70083bc016c1de5620b41229af42f989f9dae | /src/marker/marker.h | 8477fb7343382057a90d0d56ed67ebbe17817fff | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jiangtaojiang/FastMarkerLocalizer | ecc8de70aeaac44e2cc517d3f0d6554ac6e6ffb9 | 065f56602a59eceea8fd4c6a4e9e9e45ede6ba34 | refs/heads/master | 2022-01-16T06:57:20.187438 | 2018-07-30T22:17:50 | 2018-07-30T22:17:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,613 | h | marker.h | /**
* definitions.h
*
* Created on: 13.02.2012
* Author: jung
*/
#ifndef MARKER_H_
#define MARKER_H_
#include <array>
#include <list>
#include <opencv2/opencv.hpp>
#include "location/pose2d.h"
using namespace std;
namespace fml {
struct MarkerRelation2D {
clock_t timestamp;
int sr... |
6f3ad051ca82caa28748a8ec243285cd4fb7ac0d | 5de42c4e14a7ddbc284a742c66cb01b230ba43ce | /codeforces/34/E.cpp | 3dd9c1e44a34a047a82293cf98ea26cc685768bd | [] | no_license | NhatMinh0208/CP-Archive | 42d6cc9b1d2d6b8c85e637b8a88a6852a398cc23 | f95784d53708003e7ba74cbe4f2c7a888d29eac4 | refs/heads/master | 2023-05-09T15:50:34.344385 | 2021-05-04T14:25:00 | 2021-05-19T16:10:11 | 323,779,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,836 | cpp | E.cpp |
// Problem : E. Collisions
// Contest : Codeforces - Codeforces Beta Round #34 (Div. 2)
// URL : https://codeforces.com/problemset/problem/34/E
// Memory Limit : 256 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
/*
A Submission by $%U%$
at time: $%Y%$-$%M%$-$%D%$ $%h%$:$%... |
0fe5343f01b6d75825047471e0f0990bedd9fe2b | 367e78b01dd7e03d32396d22d703c0f069121a32 | /CodeLeet/MinimumPathSum.cpp | 56e40f5314b52c274556c51b610700f6724bc25a | [] | no_license | wencanluo/LeetCode | fc7ce2df36e275f33954d5ecdc49b67460814fc5 | c56dabdefd43bc845f25655927f7e9842b704108 | refs/heads/master | 2021-01-18T21:18:40.876743 | 2017-02-13T02:35:08 | 2017-02-13T02:35:08 | 11,758,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,993 | cpp | MinimumPathSum.cpp | /*Minimum Path Sum Mar 29 '123383 / 7463
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at any point in time
Author: Wencan Luo
Language: C++
Date: 07/31/2013
*/
... |
eb7cdb9729628d969dfada3fca27b572a2bfb71c | 02bc99819fba08876178b156515629c90b0bd1e1 | /src/regression/Regression2LoggingOperator.cpp | daf4978d25455ca5221168a7fc62280b4913e994 | [] | no_license | vkolobara/fuzzy-time-series | c0f055b9e746739b93d73142cb7c5e4c6ca9a366 | 306172d04801e01c84362a095da5abcf6dc3f48e | refs/heads/master | 2021-04-06T10:37:04.794647 | 2018-06-19T13:52:01 | 2018-06-19T13:52:01 | 124,761,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | cpp | Regression2LoggingOperator.cpp | //
// Created by vkolobara on 6/2/18.
//
#include "FinancialLoggingOperator.h"
#include "Regression2FTSEvalOp.h"
bool Regression2LoggingOperator::operate(StateP state) {
auto evalOp = (Regression2FTSEvalOp*) (state->getEvalOp().get());
if (evalOp->fileLogger) {
auto bestIndividual = state->getPopula... |
3444bac9315d0e13ff286bf7ec787251f5c79596 | ae6dbcfd6a333bf598b871e15a7741fef81f964f | /Projects/Protect/src/CommonSfxTests/TestModule.cpp | a70d4b0207c070dfc4f196111250eedf8278d21b | [] | no_license | xeon2007/WSProf | 7d431ec6a23071dde25226437583141f68ff6f85 | d02c386118bbd45237f6defa14106be8fd989cd0 | refs/heads/master | 2016-11-03T17:25:02.997045 | 2015-12-08T22:04:14 | 2015-12-08T22:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,697 | cpp | TestModule.cpp | #include "stdafx.h"
#include "TestModule.h"
#include "..\CommonSfx\Module.h"
BEGIN_TEST_SUITE(TestModule)
ADD_TEST_METHOD(TestConstructorWithValidModuleName)
ADD_TEST_METHOD(TestConstructorWithInvalidModuleName)
END_TEST_SUITE()
void TestModule::TestConstructorWithValidModuleName()
{
Workshare::System::M... |
5aedcd885fb2066bec59e5fafd94d4181404aa2b | 48710b15736de7ed252eba07377a0afb9bfc7eaf | /cppSolutions/problems/source/p98.cpp | 57d8bd2dffcda82e2436555b44e59d9cd73898da | [] | no_license | nnard1616/projectEuler | dc579599d6e4305654638ff1741b45c7ea2460a7 | 77776f961417a35c86ed02a32226cceb02c24bc8 | refs/heads/master | 2021-07-09T16:17:24.496193 | 2018-05-21T04:54:55 | 2018-05-21T04:54:55 | 96,654,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,030 | cpp | p98.cpp | #include <problems/p98.hpp>
namespace problems
{
/*--- Main Function --------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
long p98()
{
std::ifstream infile("../../cppSolutions/problems/txt/p098_words.txt");
std::map<st... |
ac20163723cfad172493494bd7bffe48e3b8d36d | 71b40ea6c16a26efee5afa56be6a4d879dacac7b | /pebblesolitaire/main.cc | 1caf30ed3d8db21f97e27d3fd4eddbdc3ebfac97 | [] | no_license | XrXr/KattisSolutions | ae5292ca270809db231b3d080422bc09c3456cf7 | 149d4a971d796420e7a16c676a382cea496fd1a2 | refs/heads/master | 2021-01-24T06:36:34.284475 | 2019-02-19T02:55:38 | 2019-02-19T02:55:38 | 51,628,236 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,231 | cc | main.cc | #include <iostream>
#include <bitset>
#include <algorithm>
#define INF 0x3f3f3f3f
using namespace std;
size_t best = INF;
void bt(const bitset<12> board) {
bool foundMove = false;
for (int i = 0; i < 12; i++) {
if (board.test(i) && i + 2 < 12 && board.test(i+1) && !board.test(i+2)) {
bitse... |
31d94aae6784fab87aa389452c5fc1dc1a895b13 | e4822c6289a2db5ecaddc78c948970528b9a1e43 | /fortunethread.cpp | 3bfa287801f1a08ef88bbad32e13c5fc440cad60 | [] | no_license | atur94/BHQT | 8d787022970310ac3f5b6881dd1cddb2e50d3d3c | 1e8f82eedfabf3bd22f69c9144b4c47b96b913ac | refs/heads/master | 2021-01-12T05:42:38.907063 | 2017-02-04T20:02:46 | 2017-02-04T20:02:46 | 77,174,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,316 | cpp | fortunethread.cpp | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt... |
0d1c56b51d4371371f7ad0755deb78d95e8eb4a3 | b505ef7eb1a6c58ebcb73267eaa1bad60efb1cb2 | /source/graphics/core/win32/opengl/pixelshaderopengl.h | 97f5a46989f77cb2b3e7a2322949d1c026637569 | [] | no_license | roxygen/maid2 | 230319e05d6d6e2f345eda4c4d9d430fae574422 | 455b6b57c4e08f3678948827d074385dbc6c3f58 | refs/heads/master | 2021-01-23T17:19:44.876818 | 2010-07-02T02:43:45 | 2010-07-02T02:43:45 | 38,671,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | h | pixelshaderopengl.h | #ifndef maid2_graphics_core_win32_opengl_pixelshaderopengl_h
#define maid2_graphics_core_win32_opengl_pixelshaderopengl_h
#include"../../../../config/define.h"
#include"../../ipixelshader.h"
#include"common.h"
namespace Maid { namespace Graphics {
class PixelShaderOpenGL
: public IPixelShader
... |
c9c76b90d2f29aa6b4983ebdbd37eca578948c4f | 163829e90c4ef643882e4b6ddec100e464964537 | /Source_Code/BFS/1009 back to underworld.cpp | dfe4e32d4d4b3ca4c5f463d03ecf160c13f18aad | [] | no_license | Rijul1204/Algorithm_ACM | 31b0d88750fc90f13f0c7188a78ac58a059de599 | 0477861d5476504faa02d3dfddda0ea8acaf5c2e | refs/heads/master | 2021-07-03T07:34:08.169513 | 2021-05-30T19:55:03 | 2021-05-30T19:55:03 | 10,447,817 | 5 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,244 | cpp | 1009 back to underworld.cpp | #include<stdio.h>
#include<vector>
#include<map>
#include<queue>
#include<string.h>
using namespace std;
int col[20100];
int state[20100],on,tw;
vector<int>v[20100];
map<int,int>num;
queue<int>q;
void bfs(int s);
int max(int a,int b){
if(a>b) return a;
return b;
}
int flag;
int main(){
int i,j,k,l,test,t=1,sum;
... |
23a43637624a23f01ebc07eefc4aa72f757eb8b8 | 68f78353a0b25aedd0cdf0b83c850d793a8c1274 | /src/keyboard_layouts/akuhell.hpp | 18b2bdc6c8007a20552b3245a70536c6e382bf09 | [
"MIT"
] | permissive | Aglezabad/akuhell | d107d19333b52cf651f9f4103ea78ccf8b5f3e0c | 84b084f647ecb4898f40dc9c43f201546796d035 | refs/heads/master | 2021-01-18T15:53:06.406457 | 2017-03-30T14:46:13 | 2017-03-30T14:46:13 | 86,687,676 | 0 | 0 | null | 2017-03-30T09:59:50 | 2017-03-30T09:59:50 | null | UTF-8 | C++ | false | false | 14,895 | hpp | akuhell.hpp |
size_t Keyboard_write(KeyboardKeycode k, KeyModifier modifier)
{
if ((modifier & KeyModifier::leftCtrl)==KeyModifier::leftCtrl)
{
Keyboard.press(KEY_LEFT_CTRL);
}
if ((modifier & KeyModifier::leftShift)==KeyModifier::leftShift)
{
Keyboard.press(KE... |
5a216cbabc497d869a5eb3e8e9ad201b71b69949 | f7b4e2e208d3bc12321924bbcddfa6501cf258ef | /CodeforcesProblems/Polycarp's Practice.cf.cpp | a2978a4a31d3cddaf8bd5828ed3523857c8b4cc8 | [] | no_license | Anik-Modak/OnlineJudgeProblemSolution | b476fecf1d112893bc71ea6012a17e26de75254d | a19076d346b1d6028cd75b4ee90b82c4e01cb9dc | refs/heads/master | 2020-05-04T18:24:37.248578 | 2019-04-26T19:53:13 | 2019-04-26T19:53:13 | 179,351,861 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | cpp | Polycarp's Practice.cf.cpp | //Anik_Modak
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,k;
cin>>n>>k;
int a[n],s=0;
vector<int>v;
for(int i=0; i<n; i++)
{
cin>>a[i];
v.push_back(a[i]);
}
sort(a,a+n);
for(int i=k; i>0; i--)
{
s+=a[n-i];
mp[a[n-i]]++;
}
... |
48e9e7de853f503b57b952b3d90332ac33cf5a50 | 06f5f8e660ef2ac6ad9c7cc7159a1611a7cd37f1 | /thunder/storage/storage-inl.hpp | 60cb90758d7301fe4c56ffdc3be07272a56d16c1 | [
"Apache-2.0"
] | permissive | benben-yunyun/Thunder | 6971df8c610d9b617f1e4ad9df0ce7795af65de4 | c98dcb2d6a7cfe09ea2a807959773300fb6d93c5 | refs/heads/master | 2020-12-29T03:07:44.163317 | 2014-08-10T07:26:07 | 2014-08-10T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,739 | hpp | storage-inl.hpp | /*
* Copyright 2014 Xiang Zhang. All Rights Reserved.
*
* 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 applic... |
5b04bb12dceb8932a9abbb9d3d030ff8fcd178b0 | 145caa22a58e0cb156daa2834fbf945c3597fba1 | /Release_3 -versio݁n moodle/ConsoleApplication/Game.h | bf664174b88492e5f6868bb22e7ecc2575cfac1e | [] | no_license | LouGPombo/Snake19 | aef16d1fbfe0409625273dfd69de631725d00688 | 3ead666df5e543154214f657e5b060d377f56162 | refs/heads/master | 2020-05-23T07:50:33.626702 | 2017-02-27T10:22:16 | 2017-02-27T10:22:16 | 80,451,557 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 2,450 | h | Game.h | #pragma once
//Third-party libraries
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp> //OpenGL Mathematics
#include <iostream>
#include <time.h>
#include "GameConstants.h"
#include "SDLInterface.h"
#include "InputManager.h"
#include "Sprite.h"
#include "Cell.h"
#include "Map.h"
#include "bar.h"
#inclu... |
0cb7c23608d633da7a8d7c7e343290f5181c5dee | e9dcb76959047aea9c03e29a8d276f257967c4f2 | /trunk/project_cpp/src/openssl/skp_AES.cpp | 4ae8506498cda4eeb2df13244b1d5f6e2ef21b75 | [] | no_license | yefy/cpp_study | bfab5e8e2944afc6f8b9c9f327761825e9cbe9f8 | 8213e5f4d076bfc9580594feaff0689490662be8 | refs/heads/master | 2020-03-20T23:25:58.023147 | 2018-11-10T14:02:08 | 2018-11-10T14:02:08 | 137,846,030 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,314 | cpp | skp_AES.cpp | #include "skp_AES.h"
#include "openssl/aes.h"
#include "gtest/gtest.h"
#include "src/skp_common.h"
#include "src/skp_log.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
SKP_TEST(openssl, opensll_AES1)
{
AES_KEY aes;
unsigned char key[AES_BLOCK_SIZE]; // AES_BLOCK_SIZE ... |
c51c9e3c78c91230ab4c39cffb0f5ee31cbd22c4 | c990ba64b77b7b4034772fb15a5520a28f1ea5e7 | /copasi/UI/CQTextDialog.cpp | a6561c3a9f00caafa2aa38a43270c556bde56b46 | [
"LicenseRef-scancode-other-copyleft",
"Artistic-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | copasi/COPASI | a3fb515b4d9c667519ad756c52d8b82747a26e64 | 3ddf61e95191f2db09256dddc013f12041719a2c | refs/heads/develop | 2023-09-01T19:32:39.004552 | 2023-06-02T15:01:23 | 2023-06-02T15:01:23 | 4,810,881 | 75 | 34 | Artistic-2.0 | 2022-09-14T13:13:20 | 2012-06-27T16:35:48 | Component Pascal | UTF-8 | C++ | false | false | 1,336 | cpp | CQTextDialog.cpp | // Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
// Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., EML Research, gGmbH, University of Heidelber... |
8bdb5c3b0b2707d59d21993f51e827bfbe3eaf75 | 0c223a66cadf2d4488a6678a8f5578c39990aaec | /CF:543:A/b.cpp | 7cb4ef98a0a14fe728ee5e146f88799a52c60ae9 | [] | no_license | prajogotio/upsolving | b71a1803b372960eec65c6effef2934065d36786 | 51078bf1118acd97af75683a53104bd59311686c | refs/heads/master | 2021-01-10T01:00:18.757460 | 2015-07-21T18:48:02 | 2015-07-21T18:48:02 | 28,124,346 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 776 | cpp | b.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <queue>
using namespace std;
long long dp[2][510][510];
int n, m, b;
long long mod;
int a[510];
int main(){
cin >> n >> m >> b >> mod;
for(int i=1;i<=n;++i) scanf("%d",&a[i]);
dp[1][m][0] = 1;
for(int i=1;i<=n;++i){
int cur = i % 2;
int nex... |
92e614d0ca92fada0c52008fd416303dc8a9a357 | 579dcdaaa1da36ebfb535a96ad75d7aad288814f | /WmgjTrainer/WmgjLibrary/ParamMgr.h | 292c27ab909f49e8523b4dbaae5920ecb2a763b7 | [
"BSD-3-Clause"
] | permissive | fengjixuchui/WmgjTrainer | 49c1aeb677fe14f4dbd0905b1e728e4b676281b3 | cf9226dc99b3c477863daa05e64a4d751b50e0b9 | refs/heads/master | 2023-04-29T01:37:53.504353 | 2023-04-09T08:59:04 | 2023-04-09T08:59:04 | 220,045,194 | 0 | 0 | BSD-3-Clause | 2023-04-09T08:59:05 | 2019-11-06T16:47:23 | C++ | UTF-8 | C++ | false | false | 215 | h | ParamMgr.h | #pragma once
class ParamMgr
{
private:
static ParamMgr* paramMgr;
public:
AttackSkills attackSkills;
AttackMonsters attackMonsters;
private:
~ParamMgr();
public:
static ParamMgr* getParamMgrInstance();
};
|
4d88e865a33bde75ace75bffe13e014ac4a07f23 | 52459805f5891545bd40c5ad62851351b1dcb2d5 | /trunk/zhSipStackDlg.cpp | 3918baca2efcaff5aa8acf1aa48d78b68ac4013b | [] | no_license | BGCX261/zhsipstack-svn-to-git | 552344a3b56a41e4e009842dbeb7a435481c332f | d5b995a388424b569266ae2ee04aa8944a7748e0 | refs/heads/master | 2021-01-13T14:28:14.486313 | 2015-08-25T15:29:59 | 2015-08-25T15:29:59 | 41,486,320 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,596 | cpp | zhSipStackDlg.cpp | // zhSipStackDlg.cpp : implementation file
//
#include "stdafx.h"
#include "ThreadNet.h"
#include "zhSipStack.h"
#include "zhSipStackDlg.h"
#include "UserAgent.h"
#include "WwwAuthenticate.h"
#include "Phone.h"
#include "SipTransactionManager.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
stat... |
e566561404b2eeb721f127be08cffab71cbe091b | 7ee5265bd83df4018c27e5fb3082f3ed890a1335 | /sarl3/sarl_lattice_view_gtk.cpp | 0094d687101cf675732dc24bd688658eabeaf796 | [] | no_license | richcole/Griff | 878a8afd4585b2dc6e577502c6dece2e2d90a2d1 | 7c609b2c815171a92c9e248080fe3b6a1642e432 | refs/heads/master | 2016-09-11T02:17:17.001127 | 2010-02-06T21:29:36 | 2010-02-06T21:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,537 | cpp | sarl_lattice_view_gtk.cpp | #include "sarl_lattice_view_gtk.h"
#include "sarl_diagram.h"
#include "sarl_lattice.h"
#include "sarl_bit_set.h"
#include "sarl_power_map.h"
#include "sarl_string_table.h"
#include "sarl_lattice_view_gtk_marshaller.h"
#include "sarl_label.h"
#include "sarl_lattice_view_gtk_privates.h"
#include "sarl_lattice_view_macro... |
20d4894c6604827d96d4264c16c10399ed6b29a9 | c602515b038d43d616ec2406915d5baae412c33d | /Source/UBomber/Items/Pickups/UBomberPickupBase.h | aac7cd7c9f4ff39fa121766fa1c191b219b7236d | [] | no_license | ZimaXXX/UBomber | 5ca09ccfc7bb808906af787b6ead4c6f43d5b1e0 | d754272948b755a606b4716d315f6ddc3e69cf06 | refs/heads/master | 2021-10-24T18:34:14.675423 | 2019-03-27T14:51:01 | 2019-03-27T14:51:01 | 113,408,207 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | h | UBomberPickupBase.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Common/UBomberTypes.h"
#include "UBomberPickupBase.generated.h"
/**
* Actor containing Pickup information
*/
UCLASS()
class UBOMBER_API AUBomberPickupBase : p... |
0743fee04c1caff7fd594cd552fe7cf465ab2e24 | 2f886d648b308f53f8de7933cb235cab22b40a69 | /QtSesionEleven_/tcpServerChat/tcpServerChat/dialog.h | e74533f9466ae32be5e2b5d2be5762bd0b041259 | [] | no_license | avnikasikci/QTFrameWorkStudy | 1bdfcf5b21246e63a7b27129365fbd19e8286bdb | a08907ba9a8575bf6295867dc0361ef711a91507 | refs/heads/main | 2023-05-13T01:25:57.563320 | 2021-06-05T17:58:05 | 2021-06-05T17:58:05 | 342,936,856 | 2 | 0 | null | 2021-04-28T10:16:52 | 2021-02-27T19:09:07 | C++ | UTF-8 | C++ | false | false | 680 | h | dialog.h | #ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QPushButton>
#include <QMessageBox>
#include "server.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Dialog; }
QT_END_NAMESPACE
class Dialog : public QDialog
{
Q_OBJECT
public:
Dialog(QWidget *parent = nullptr);
~Dialog();
private slots:
v... |
c43f1a4edc8f75ed7eedce126f50988315438a29 | de51ca68306b46a9f0f9217cb4e5f9c4d5308e8e | /I/hw1/9/2.16a/rabbit.h | ea7dfe7d059bff320dac8a59e728e44d5aed1a96 | [] | no_license | alioshag/Cplusplus | 5c180e2a5baf678be0a9f4c1425f283034e96936 | 9cf027a199529272fa32579f7ae421bca7a6c666 | refs/heads/master | 2020-12-24T06:57:24.199726 | 2016-08-25T16:43:10 | 2016-08-25T16:43:10 | 58,066,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | h | rabbit.h | //filename: rabbit.h
//Changes -> H2.14.1a
#ifndef RABBITH
#define RABBITH
#include "terminal.h"
class rabbit {
static const char c = 'r';
const terminal *const t; //H2.17a-> pointer t is read-only and always poinint to the same terminal
unsigned x, y;
//char c;
//rabbit(const rabbit& another); //H2.10c d... |
91d70b7e4c7893465d447e62f61e0574caf38c5c | 1fc0fbdab8bb0be2025ebde8162ed6064b652f97 | /algospot/울타리 잘라내기.cpp | 3445ca488b5837d78b9fdbdde2e7a5d35c2373ca | [] | no_license | dojyj/Algorithm_Study | c58aec70e25b3e55d60aa913d2a6bfcf4f200454 | d837bb41430c2f421d5ee29e6f7e6e54bfc95571 | refs/heads/master | 2023-03-29T12:05:09.725887 | 2021-04-03T03:12:09 | 2021-04-03T03:12:09 | 326,720,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,113 | cpp | 울타리 잘라내기.cpp | #include <iostream>
#include <vector>
using namespace std;
int C;
int solve(int left, int right, vector<int> &v)
{
// base case
if (left == right)
return v[left];
// mid, low, high 지정
int mid = (left + right) / 2;
int lo = mid;
int hi = mid+1;
// 분할정복으로 모든 울타리 비교
int ret = max(solve(left, lo, v), solve... |
1a9b467790e53afce575faca1a314358030f4b5d | e9450baebfcc751108b07e2c663d1e5a2a783fdb | /src/BB/World/Stage.cpp | 386fb5a068d3d1491aeaaa1e52afc2a57455d1fd | [] | no_license | dymani/BrainBurst1 | 009e26c068bd959ec06f96d4a936d2b0ead9a4ea | 7ea647b26f5aa81cbb430bb95b5b6af7243d97f0 | refs/heads/master | 2021-01-17T22:02:45.450106 | 2016-02-13T16:34:23 | 2016-02-13T16:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,853 | cpp | Stage.cpp | #include "BB/World/Stage.h"
namespace bb {
Stage* Stage::create(luabridge::lua_State* L, std::string name) {
Stage* stage = new Stage();
stage->m_name = name;
std::string file = "assets/data/world/stages/" + stage->m_name + ".lua";
using namespace luabridge;
if(luaL_... |
7909128bf5d91bfbd13ef79ecabd397d8bd24fe0 | 27fceff05ded45465dbbba658a2cc5079f30130b | /extern/TGUI-0.7.8/src/TGUI/Widgets/MessageBox.cpp | 5d9e28897a4e3f4c1235037a1018711f149c1857 | [
"MIT",
"Zlib"
] | permissive | towzeur/PLT_2021 | 8e053517a6973a5dd6407adbe58937592b01d1ad | c2598b387929f76ec8766e4e4741efc1a0c0379d | refs/heads/master | 2023-02-21T19:18:58.960318 | 2021-01-29T03:06:45 | 2021-01-29T03:06:45 | 297,877,100 | 4 | 2 | MIT | 2021-01-29T03:06:46 | 2020-09-23T06:39:47 | C++ | UTF-8 | C++ | false | false | 13,228 | cpp | MessageBox.cpp | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TGUI - Texus's Graphical User Interface
// Copyright (C) 2012-2017 Bruno Van de Velde (vdv_b@tgui.eu)
//
// This software is provided 'as-is', without any express or implied warranty.
... |
19c30cf53b07a822a024409db10c586560bebc10 | f60730c08e85c3e2e3e1342f2594de1fbe6ad5ee | /main.h | 323db5cd1e01bdd2f7069312872c4273611db180 | [
"MIT"
] | permissive | paulbelches/ParserGenerator | 3344f18463a778ea9498c5cab4ebc4092e788838 | 18200befdc2e9aba8ffc1ee0c4d4972adecf5a3c | refs/heads/main | 2023-05-12T15:22:07.837943 | 2021-06-04T20:02:00 | 2021-06-04T20:02:00 | 366,460,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,525 | h | main.h | #include <iostream>
#include <bits/stdc++.h>
#include <utility>
#include <fstream>
#include <string>
#include <stack>
#include <queue>
#include <algorithm>
#include <set>
#include <chrono>
/* File:
* main.cpp
*
* Purpose:
* Using a input regular expression the code generates 3 automatas.
* A n... |
f8584eb2362619c1c54f6adc1cf42c67ec87cff8 | e2fc7e28cb7eb8f533b88ba1953e896c8668b2e9 | /Real-Time-Rendering/RasterizeWireframe.cpp | 35e3f1ca427d0c10e2e07a9fdf8c7f46ad497acc | [] | no_license | AndrewJRichardson/Real-Time-Rendering | 08d1c2bdf5529bcec5e4467cfb828206d34a0f41 | 86d84480856c63ceeb56fc3ea282328d9f402a19 | refs/heads/master | 2021-09-22T11:55:55.197414 | 2018-09-10T08:25:10 | 2018-09-10T08:25:10 | 106,158,968 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,019 | cpp | RasterizeWireframe.cpp | #include "RasterizeWireframe.h"
//? Decide where to place bresenham method
//Renders objects in a wireframe mode (a line is drawn between vertexes)
//Currently uses bresenham line method
void rtr::RasterizeWireframe::operator()(FaceVertSet point1, FaceVertSet point2,
FaceVertSe... |
640870e1272a302fc4e7714e4b894a79d647be6a | e6389d3cd6fe210fbe8a4a5c23531bab17eb40d0 | /samples/type_name/test.cpp | a9bdd17eb9eda819217a1bd2286c28756636c5d2 | [
"BSD-3-Clause"
] | permissive | bigjun/mrpt | 7b107cb35fbc2fefb2e456552695557780e0164c | 99b922ed9aee1778e9d01780a70673ac3456031d | refs/heads/master | 2021-01-21T09:11:25.927850 | 2013-12-12T18:27:07 | 2013-12-12T18:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,983 | cpp | test.cpp | /* +---------------------------------------------------------------------------+
| The Mobile Robot Programming Toolkit (MRPT) |
| |
| http://www.mrpt.org/ ... |
7ab6e88f878dc24ac066123e53a3978bafa1d115 | 2d35b36c831db8a4f75f60f1e3ab9ac0d538dda2 | /primer/lc/1261_find_elements_in_a_contaminated_binary_tree.cc | a8626729c5b31c127f5b5abcb0e0870960e32ba4 | [] | no_license | whutaihejin/repo | 55ab38f29420e9674ae3f8e84d7c1ea0a085fb40 | 33137d826ae24dcd0b0552a4b44b7aae1c25a6e7 | refs/heads/master | 2022-05-02T16:34:13.302691 | 2022-04-16T04:40:01 | 2022-04-16T04:40:01 | 98,664,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,014 | cc | 1261_find_elements_in_a_contaminated_binary_tree.cc | #include <iostream>
#include <unordered_map>
// Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class FindElements {
public:
FindElements(TreeNode* root): root_(root) {
if (root) {
... |
36d9930c8792a87c3345f293152119cdc35805be | 4c0141feca9f48679aaf2b6d4bc7f7994e1cdda3 | /light.hpp | 285ddd8f7cef9454bde1c472c9f8c5b56e96f480 | [] | no_license | mchenwang/MLight2d | 20b10d93ff1b14f7c40f9caa61adf207f5843a01 | 0cb4c78decbe45b3537d7e2fda2f92faeb96efb8 | refs/heads/main | 2023-04-27T09:36:07.320555 | 2021-05-14T13:19:18 | 2021-05-14T13:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,323 | hpp | light.hpp | #ifndef __LIGHT_H__
#define __LIGHT_H__
#include <cmath>
namespace MLight {
struct color {
unsigned char r, g, b;
color(int r_=0, int g_=0, int b_=0) noexcept
: r(r_ < 255 ? r_ : 255), g(g_ < 255 ? g_ : 255), b(b_ < 255 ? b_ : 255) {}
};
template<typename T> struct point {
... |
b70945e92b32a35fa60dc362906a1e1453a389b2 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/9e/d4f4a452123398/main.cpp | fd24465d45748bc0fd4dfe0c2d386e41c5d93563 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,807 | cpp | main.cpp | #include <algorithm>
#include <functional>
#include <iostream>
#include <utility>
#include <vector>
template<class FwdIt, class Equal = std::equal_to<>>
void cluster(FwdIt first, FwdIt last, Equal eq = Equal{})
{
for (auto it = first; it != last; /* increment inside loop */)
it = std::partition(... |
93773f940bc3ea9a305a87e6f380210db3ffd6e2 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/base/fs/hsm/inc/wsbdb.h | 36978d4dea88f2881a13002b7c7e4618c85c872a | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | WINDOWS-1252 | C++ | false | false | 7,497 | h | wsbdb.h | /*++
© 1998 Seagate Software, Inc. All rights reserved.
Module Name:
Wsbdb.h
Abstract:
These classes provide support for data bases.
Author:
Ron White [ronw] 19-Nov-1996
Revision History:
--*/
#ifndef _WSBDB_
#define _WSBDB_
// Are we defining imports or exports?
#i... |
82e6ec81d4899405e39d56c3541aeb1f3ba2e2fc | 7c63a96fad4257f4959ffeba0868059fc96566fb | /cpp/std-17/m_bancila-modern_cpp_programming_cookbook/ch_01-core_lang/13-structured_bindings.cpp | 1299db04d8479fd7412890bbf19fb03d4dbd44aa | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,898 | cpp | 13-structured_bindings.cpp | // region [how to do it]
#include <tuple>
#include <iostream>
namespace example_01
{
std::tuple<int, std::string, double> find() {
return std::make_tuple(1, "marius", 1234.5);
}
std::tuple<int, std::string, double> find2() {
return std::make_tuple(1, "marius2", 1234.5);
}
void run() {
auto [id... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.