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
39a911aa1d893cfdb1649d84e0a8b20d82ef9693
cb0e94e234814236e706d30c7d940e813f07fd00
/distributions/univariate/continuous/KolmogorovSmirnovRand.h
5190f9617e6d5a549b0d1ec5614ec293b2aebb08
[ "MIT" ]
permissive
vishalbelsare/RandLib
9cd2278fc8c6eb59548631ce11b20e1a963475af
6536dadd6e532316848cade7e48f84fb40135767
refs/heads/master
2023-06-23T04:49:20.008681
2023-06-20T12:00:53
2023-06-20T12:00:53
146,628,254
0
0
MIT
2023-06-20T21:18:04
2018-08-29T16:30:03
C++
UTF-8
C++
false
false
1,494
h
KolmogorovSmirnovRand.h
#ifndef KOLMOGOROVSMIRNOVRAND_H #define KOLMOGOROVSMIRNOVRAND_H #include "ContinuousDistribution.h" /** * @brief The KolmogorovSmirnovRand class <BR> * Kolmogorov-Smirnov distribution * * Notation: X ~ KS */ template < typename RealType = double > class RANDLIBSHARED_EXPORT KolmogorovSmirnovRand : public Continu...
38f89d79b1ff68abfef0bf977b576af883c81e1f
4c2e1966ee56f2f5088f6d6de6699ea53bef9adb
/Classes/SoftElement.cpp
44f07914a33f02044d0d7a6fa001e3fc80b4463b
[]
no_license
BoenYang/GameProject
311b0a03fa7d8da8e19e519e94d78f7652ffb375
96d97099a95a6181bc3449ec2849221978907b4c
refs/heads/master
2021-01-01T16:21:22.473595
2014-10-03T12:03:32
2014-10-03T12:03:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,704
cpp
SoftElement.cpp
#include "SoftElement.h" #include "Macros.h" USING_NS_CC; SoftElement* SoftElement::createWithFilename(b2World* world, const char* filename, CCPoint pos, float rotation) { SoftElement* element = new SoftElement; std::string vexterFile = filename; std::string pngFile = filename; int p = vexterFile.find_last_of('.')...
0c89e184a9b9709e1b0f8c9430639c1859e229f3
c7d8418e8f40a554745e2c4d3c9aa45477902ff8
/qq消息发送前处理/ActionAdd.h
169156a19c0c399b8ae01cda868f6bc1750f105b
[]
no_license
lwjandmy/QQ-Message-Pre-Decorate
ac5025aa2e4c5b3f0dcd7acd3c929617fb52d037
d521bcdbc1d4b8aae807234b221477521eb0555d
refs/heads/master
2021-01-10T07:39:11.144599
2016-03-09T06:41:56
2016-03-09T06:41:56
53,243,049
0
1
null
null
null
null
GB18030
C++
false
false
546
h
ActionAdd.h
#pragma once #include "Action.h" namespace DecorateMessage { class CActionAdd : public CAction { public: CActionAdd(); CActionAdd(const CString &strAdd); ~CActionAdd(void); // str是整个字符串 // 返回值表示下一个未修改字符的偏移值, // 若函数失败, 返回UINT(-1) virtual UINT Action(CString &str, UINT uiIndex, const POINT ...
77e2017febb75cffc4a2d9d01d93c76ec6f618d5
c96aa48d20d1683b944ed4eac9e371157a4f5bf1
/Hanoi.cpp
37498081ab94bbedc4487a45f683728e403a0288
[]
no_license
blind2/prog3_tower_hanoi
ebe97469ace67bb5c4aa61e3a8883753eecaeafd
ffcc1ce087d1ca242c8eceb1744aeae042a525f1
refs/heads/master
2023-03-22T15:43:56.767536
2021-02-24T22:41:27
2021-02-24T22:41:27
341,404,657
0
0
null
null
null
null
UTF-8
C++
false
false
381
cpp
Hanoi.cpp
#include "Hanoi.h" #include <iostream> Hanoi::Hanoi(int type) : m_type{ type } {} Hanoi::Hanoi(){} void Hanoi::show() { switch (m_type) { case 1: std::cout << " @ "; std::cout << "\n"; break; case 2: std::cout << " @@@ "; std::cout << "\n"; break; case 3: std::cout << "@@@@@"; std::cout << "\...
1fad7703ff33dc66283f7a19033ff43ac710b2d9
486b15bc1abf2cda3fcb733b6d31a6b9364020eb
/SPKF/SPKF/control.hpp
baf10b07dd68939855cdee1c491d41d878984f72
[]
no_license
xnvst/robotics
376f6a6f6a95cca8ce7606f4e74b4abb94687334
8e12abe1e2d6d618118aadc8d8858df78cd74f08
refs/heads/master
2021-01-16T00:09:33.455018
2019-04-14T19:40:24
2019-04-14T19:40:24
99,957,587
0
0
null
null
null
null
UTF-8
C++
false
false
473
hpp
control.hpp
#ifndef CONTROL_HPP_ #define CONTROL_HPP_ #include "configs.hpp" namespace SPKF_namespace { template<typename T> class Control { public: Control(){} virtual ~Control(){} Eigen::Matrix<T, 2, 1> get_mat() const { return control_mat_; } void set_mat(T v, T dtheta){ cont...
df4686b64f23df1bd180ab71749f892557da3e90
c50c4796cc416e78ef2c8883899d12f1d4e0a9e8
/RPG/QuotesSettings.h
fcf5f16592a9e42f06884c6e6b893fd4d83f061d
[ "MIT" ]
permissive
kriskirov/RPG-Remote
052b5c9eb24a1f61415def3cb3d72e0d30489a49
f446f5461ad38267ed3a34dc80e8bd807ae29ef9
refs/heads/master
2021-01-20T01:19:10.416123
2017-05-09T11:37:42
2017-05-09T11:37:42
89,253,403
0
0
null
null
null
null
UTF-8
C++
false
false
465
h
QuotesSettings.h
#ifndef QUOTES_SETTINGS_H #define QUOTES_SETTINGS_H #include <string> struct QuotesSettings{ QuotesSettings() = default; QuotesSettings( std::string attack, std::string getAttacked, std::string getAttackedWhileDead, std::string dead ); ~QuotesSettings() = default; QuotesSettings& operator=(const Quo...
a5f0cbcc0207e09a9223781ee555a33b5471889b
83bf0347cc4654dd882a53c619e522a15b012bc8
/code/Smokey_VII/HotGoalDetector.h
f6cb29537c0ed088b40e01dfb41a0508822423f3
[]
no_license
bearbotics2358/Bearbotics-2014
3004fbc421634de03d171ccffd9b22694643be9b
df358922bc1068222e295569b1986e5d89158e21
refs/heads/master
2020-03-21T19:34:52.507236
2014-04-04T22:42:17
2014-04-04T22:42:17
138,957,889
0
0
null
null
null
null
UTF-8
C++
false
false
1,857
h
HotGoalDetector.h
#ifndef _HOT_GOAL_DETECTOR_H_ #define _HOT_GOAL_DETECTOR_H_ #include "Logger.h" #include <iostream> #include <memory> #include <vector> #include <string> #include <sstream> #include <DigitalOutput.h> #include <nivision.h> class AxisCamera; class DigitalOutput; class HSLImage; struct Particle { int id; double cx,...
2f000e4903e941fa7af2cd955801f0004519b98b
998d5908971381f7c18aa303822753b2d628bb6d
/include/rc_ImageLoader.h
c1d351e8cca20721028b331c45b06249bc297dc7
[]
no_license
JacobLawson/Raycaster-Framework
edf9708034214801cf9226ca1e23fa5e2cb6920a
b7349772384db652f8790613ef012dc60e6fad2d
refs/heads/main
2023-02-15T18:35:27.108633
2021-01-17T15:03:01
2021-01-17T15:03:01
330,417,071
0
0
null
null
null
null
UTF-8
C++
false
false
1,291
h
rc_ImageLoader.h
#include <stdafx.h> #pragma once #ifndef __IMAGE_LOADER_H__ #define __IMAGE_LOADER_H__ //set enum of different types of images formats capable of being loaded typedef enum ImageType { IM_BITMAP, IM_PCX, IM_PPM, IM_MAX }ImageType; class ImageLoader { public: ImageLoader() {}; //default constructor - no real fu...
22338329c7c1606f35817b6183d5828a9354926c
4112265a1152b3e4ca04295d608be05060bbfa72
/dynarray.cpp
8f37f1963512ad4994971860dc0811e89aa92067
[]
no_license
blueshen111/dynamic_array_class
ef6877ca3fbe98d3e92a85363627d5cd8a0b9f95
2d3f9d2f64b5145e670db2027e7fd7ac172361f3
refs/heads/master
2020-09-20T22:52:48.499284
2019-11-28T08:59:27
2019-11-28T08:59:27
224,611,134
0
0
null
null
null
null
UTF-8
C++
false
false
2,735
cpp
dynarray.cpp
#include "dynarray.h" using namespace std; DynamicArray::DynamicArray() { DynamicArray::DynamicArray(1); } // this is the default constructor setting the // array to have a capacity of 1 DynamicArray::DynamicArray(int setsize) { size = setsize; arr = new int[size]; for (int...
248d59a16998c0f494460cebafae54d3db9badfb
d29399f93b50cc2c677c41a40b97767dac580604
/北大推免10题/2016-07-14/d.cpp
1a169f1afea03bf85e170eee995b05c3d93c6755
[]
no_license
lmh760008522/ProgrammingExercises
81636f209a150062c2c7b1ea78c441a7b1c0b68d
821fd0d36f2eab11386dec1b6bcdaba223727c48
refs/heads/master
2021-10-08T20:11:35.547047
2018-12-17T08:12:51
2018-12-17T08:12:51
157,045,843
3
0
null
null
null
null
UTF-8
C++
false
false
458
cpp
d.cpp
#include<cstdio> #include<cmath> int main(){ int n; scanf("%d",&n); int a[21][21]={0}; a[0][n-1]=1; int leftx=0,lefty=n-1; for(int i=2;i<=pow(2*n-1,2);i++){ int x=(leftx-1+2*n-1)%(2*n-1); int y=(lefty+1)%(2*n-1); if(a[x][y]!=0){ x=(leftx+1)%5; y=lefty; } a[x][y]=i; leftx=x; le...
94f6ad1d66339d2d08324d34f55a41af1c8d3c16
838f71b5e82c4610ab6cf551e75f4ae75d4d48d9
/smc/src/core/editor.h
4f2788232b81aa35907c9ca195b60a17cf87d5c8
[]
no_license
RyanTech/smc
717d51e085b1cc64335871ba1a6102a09e1eb0b9
1c594dcc7308ffef1fac0eb2471b76adf2f23acd
refs/heads/master
2017-12-02T07:02:57.148875
2012-08-17T13:46:33
2012-08-17T13:46:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,491
h
editor.h
/*************************************************************************** * editor.h * * Copyright (C) 2006 - 2011 Florian Richter ***************************************************************************/ /* This program is free software; you can redistribute it and/or modify it under the terms of the G...
e212b09bb2be15a738b5c7b102169008c5549d7e
2ccd1f143d3d8d7cfe13794f84400dce630db82b
/game.cpp
afdaef6434ba108da174be994b8df48e9ff49b6e
[]
no_license
Uxeron/Battleship
623a1b555f56f081e1128dd6721b366144d2614f
7b7fc25c90aaac19d7f775d0ca181b49e820f469
refs/heads/master
2023-04-02T18:31:09.664460
2021-04-07T13:27:35
2021-04-07T13:27:35
348,144,837
0
0
null
null
null
null
UTF-8
C++
false
false
7,189
cpp
game.cpp
#include <stdio.h> #include <string.h> #include <stdbool.h> #include "game.hpp" const int Game::ship_sizes[] = {carrier, battleship, cruiser, submarine, destroyer}; const char* Game::ship_names[] = {"Carrier", "Battleship", "Cruiser", "Submarine", "Destroyer"}; const char* Game::board_visual[] = {empty_visual, ship_v...
d3a1e330d9213ec72317b390ca16781ac82be9be
4f2486b02fc6fdd4eeb3fa0545eae7e04e4df115
/LeetCode/Array/34. Find First and Last Position of Element in Sorted Array.cpp
5417d73460e72bff0ac569d519c7318f692993c7
[]
no_license
renardbebe/Coder-Meng
d2425f8310ea59cfcc089f395543844bc48c118c
0d44b6f3418911118e5657b098e6d0e2faa8c22a
refs/heads/master
2021-06-17T03:48:36.166868
2021-02-28T07:40:29
2021-02-28T07:40:29
161,977,227
0
0
null
null
null
null
UTF-8
C++
false
false
1,084
cpp
34. Find First and Last Position of Element in Sorted Array.cpp
class Solution { public: vector<int> searchRange(vector<int>& nums, int target) { vector<int> ret; int low = 0, high = nums.size() - 1, mid = -1; bool find = false; while (low <= high) { mid = (low + high) / 2; if (nums[mid] == target) { find =...
53a02ce9b440d82461de32957ea1e4d9bcf6c568
456d4a833e9e1aedb204b88593e572a24627a4d0
/src/foundation/essentials/src/test/c++/dormouse-engine/reflection/Object.cpp
44b9dab4e3daf5a467a600a75a130358019a5129
[ "MIT" ]
permissive
blockspacer/dormouse-engine
14342768be3db8ae8dcf9e8b3f86c87f0c4b5929
07ab12f2aaad2a921299d4e9b8f89c97c9ee8da5
refs/heads/master
2021-08-27T21:27:35.493849
2017-10-22T12:43:40
2017-10-22T12:43:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,068
cpp
Object.cpp
#define BOOST_TEST_NO_LIB #include <boost/test/auto_unit_test.hpp> #pragma warning(push, 3) # include <ponder/classbuilder.hpp> # include <ponder/classvisitor.hpp> # include <ponder/valuevisitor.hpp> # include <ponder/uses/runtime.hpp> #pragma warning(pop) #include "dormouse-engine/reflection/Object.hpp" using names...
25a4c54ed5891f352becfc49ea6a503e97b7dd16
6b206dbd7333a8af101e15a8e98c8e7f615acea0
/facemask/src/ofApp.cpp
f47b55f492f21f4f10d3d4cf077910af7f9ec0fd
[]
no_license
soleilkohl/CreativeCoding
95470796ca457d8810f1491be20ff33d8228b829
3a42f3b49e883cb287b63652915f17e39163487d
refs/heads/master
2021-01-19T22:52:51.657490
2017-06-07T05:13:58
2017-06-07T05:13:58
88,880,453
2
0
null
null
null
null
UTF-8
C++
false
false
12,647
cpp
ofApp.cpp
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetVerticalSync(true); ofSetWindowShape(600, 480); ofSetFrameRate(30); gui.setup(); gui.add(lineWidth.setup("lineWidth", 2, 1, 10)); gui.add(offsetXL.setup("x offset low bound", 0, 0,...
1b132fd4b4a2abec560c2a5c6833569e7e486006
debe23e55d35aba1b107f78486b90eed3949f017
/picoloop/Machine.cpp
d4a9317cd2b4decc140e858bf50cfc7dc19da31e
[]
no_license
TurBoss/picoloop
23baafb7a2aae39501906b67a42dc5b9298f2eb7
5fe939b44a2d744477846b759ebc85d69bd5680c
refs/heads/master
2021-07-14T19:11:34.183173
2017-10-21T12:24:08
2017-10-21T12:24:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,248
cpp
Machine.cpp
#include "Machine.h" Machine::Machine() { DPRINTF("Machine::Machine()"); } Machine::~Machine() { DPRINTF("Machine::~Machine()"); } void Machine::setChannelNumber(int c) { //printf("void Machine::setChannelNumber(%d)\n",c); channel=c; } int Machine::getChannelNumber() { return channel; } void Mac...
364050b15e4e6bf0eb291bfd80be83d0f13949d4
614369bd9a9452f6b48b9c667b12daacf153d6b8
/Jiwon/Programmers/DP/카드게임.cpp
85db1a0d60343352220621aac21ea94c4c62aacb
[]
no_license
minji0320/Algorithm_for_CodingTest
339ad05a81a89b2645dfab73d7bcbc2df9775d77
7fc091f93693d549fa1975044f4b4ff5ee056520
refs/heads/master
2022-06-26T05:14:27.149435
2021-06-30T00:16:38
2021-06-30T00:16:38
242,951,278
2
0
null
2020-02-25T08:43:49
2020-02-25T08:43:48
null
UTF-8
C++
false
false
1,534
cpp
카드게임.cpp
/* 카드게임이 있다. 게임에 사용하는 각 카드에는 양의 정수 하나가 적혀있고 같은 숫자가 적힌 카드는 여러 장 있을 수 있다. 게임방법은 우선 짝수개의 카드를 무작위로 섞은 뒤 같은 개수의 두 더미로 나누어 하나는 왼쪽에 다른 하나는 오른쪽에 둔다. 각 더미의 제일 위에 있는 카드끼리 서로 비교하며 게임을 한다. 게임 규칙은 다음과 같다. 지금부터 왼쪽 더미의 제일 위 카드를 왼쪽 카드로, 오른쪽 더미의 제일 위 카드를 오른쪽 카드로 부르겠다. 1. 언제든지 왼쪽 카드만 통에 버릴 수도 있고 왼쪽 카드와 오른쪽 카드를 둘 다 통에 버릴 수도 있다. 이때 얻는...
76423dd8b06db2176d625570c42e91a9986504d3
a27bd882ba76f8b91b343e5dc27627d9f649e853
/include/utils4cpp/core/UCompilerDetection.hpp
c3799f67582615cc335b5c2e5ccd00979854a0d4
[ "BSD-3-Clause" ]
permissive
shaoguangwu/utils4cpp
cbf45a6c5fdf1ec0ba5f7b0984833ba67db0ed14
6cc2093220e7be293761432cde88dff275c8f678
refs/heads/master
2020-08-02T18:11:15.130569
2019-12-08T13:13:57
2019-12-08T13:13:57
211,457,913
1
3
null
null
null
null
UTF-8
C++
false
false
5,320
hpp
UCompilerDetection.hpp
/************************************************************************************ ** ** BSD 3-Clause License ** ** Copyright (c) 2019, shaoguang. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions ar...
6fd5118e77114ca6ff8a4336b09a01d01ffe10bf
6ea50d800eaf5690de87eea3f99839f07c662c8b
/ver.0.8.1/FlameParticle.h
b7fc06211b36c4b4a9c648866867449a8e11004e
[]
no_license
Toku555/MCPE-Headers
73eefeab8754a9ce9db2545fb0ea437328cade9e
b0806aebd8c3f4638a1972199623d1bf686e6497
refs/heads/master
2021-01-15T20:53:23.115576
2016-09-01T15:38:27
2016-09-01T15:38:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
263
h
FlameParticle.h
#pragma once class FlameParticle{ public: void getBrightness(float); void init(float,float,float,float,float,float,int); void render(Tesselator &,float,float,float,float,float,float); void tick(void); void ~FlameParticle(); void ~FlameParticle(); };
94e06df44bf5a20ca8af8919868ed83148f78531
bc54067fc22077e58e60fb5c28528222c9bb11af
/final/layers/virtual_layer.hpp
a22d7f39b9bfde33371b38806b11bcc4bf13b2b9
[]
no_license
Ignobillium/configurator
d2384a5af84751496af645f6b1b25603ea475ca1
61fd96e4ca19e98e0b1827051f6c4e79b0f8182a
refs/heads/master
2020-03-17T03:15:53.718464
2018-06-19T13:27:18
2018-06-19T13:27:18
133,227,651
0
0
null
null
null
null
UTF-8
C++
false
false
1,090
hpp
virtual_layer.hpp
#ifndef _VIRTUAL_LAYER_ #define _VIRTUAL_LAYER_ namespace configurator { namespace layers { class virtual_layer { // friend configurator::adaptation::teacher; protected: boost::numeric::ublas::matrix<double> *Weights; boost::numeric::ublas::vector<double> Bias;...
0e27eb4ce6087c9d56ceca6dabcada16ff33f4e1
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/git/gumtree/git_repos_function_1261_git-2.6.0.cpp
0701236b4e3947ec9c9560ded54dab01f1a39a23
[]
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
581
cpp
git_repos_function_1261_git-2.6.0.cpp
static void adjust_git_path(struct strbuf *buf, int git_dir_len) { const char *base = buf->buf + git_dir_len; if (git_graft_env && is_dir_file(base, "info", "grafts")) strbuf_splice(buf, 0, buf->len, get_graft_file(), strlen(get_graft_file())); else if (git_index_env && !strcmp(base, "index")) strbuf_sp...
d3127167cf81c8e799a9fb869bf1d67481bc4297
b62316e67301403d66e4d08da948d1f928afaff3
/assignment_04/SelectionSort.cpp
9745a01fdbe3cc211cf53b5ce94960238fe6b961
[]
no_license
soayeb95/assignment_04
20255d3124064f77601f96fd0fd6aa7ee2801f4f
b7c3e36f6ebe645e0fbbe6df9cc268ff2acd69d4
refs/heads/master
2023-03-17T23:00:14.246928
2023-03-11T17:31:42
2023-03-11T17:31:42
163,101,166
0
0
null
null
null
null
UTF-8
C++
false
false
567
cpp
SelectionSort.cpp
#include "SelectionSort.h" #include<iostream> using namespace std; SelectionSort::SelectionSort() { } SelectionSort::~SelectionSort() { } inline void Swap(int &a, int &b) { int k = a; a = b; b = k; } void SelectionSort::SelectionSorter(int arr[], int arr_size) { for(int i = 0; i < arr_size - 1; ...
16111c1baacea4e3e6cf9dd86a1620f5493075bb
84ea17552c2fd77bc85af22f755ae04326486bb5
/Ablaze-Core/src/Graphics/Time.cpp
b67e062d5a756f8df1066f8e2a30dd43fac1cea8
[]
no_license
Totomosic/Ablaze
98159c0897b85b236cf18fc8362501c3873e49f4
e2313602d80d8622c810d3d0d55074cda037d287
refs/heads/master
2020-06-25T20:58:29.377957
2017-08-18T07:42:20
2017-08-18T07:42:20
96,988,561
1
1
null
null
null
null
UTF-8
C++
false
false
1,494
cpp
Time.cpp
#include "Time.h" namespace Ablaze { double Time::updateElapsedSeconds = 0.0; double Time::updatePrevTime = 0.0; double Time::renderElapsedSeconds = 0.0; double Time::renderPrevTime = 0.0; std::vector<int> Time::fpss = std::vector<int>(); int Time::avgFPS = 60; void Time::OnUpdate() { double current = glf...
7eba548fb39cc708f8db920647a1526c47ce0be8
6ef80060712c1d141fea3e63977be3416f1a980b
/Lec2_AllCodes/list.cpp
70bfa85cb52d50ac56d773d3dfbbf6446035101a
[]
no_license
nigel-lirio/EEE-13
73d09bd5670a040a7bd2d6f012f395493c12c6cb
898baa443559b504745225907d3a0f078773455e
refs/heads/master
2021-10-25T12:03:23.498768
2019-04-04T06:08:29
2019-04-04T06:08:29
143,665,467
0
0
null
null
null
null
UTF-8
C++
false
false
1,564
cpp
list.cpp
// list.cpp #include <iostream> #include <list> using namespace std; int main(){ list<int> l; // []; empty l.push_back(3); // [3] l.push_back(5); // [3,5] l.push_back(4); // [3,5,4] l.push_front(6); // [6,3,5,4] l.push_back(7); // [6,3,5,4,7] l.push_back(8); // [6,3,5,4,7,8] f...
301c1d87ed9bc89f8dfe13074b24248f72b74da2
6419a5149cb8a85baaa71a6d0e203370bdc5e34a
/miniproject/Timer4CTC.h
e1cc1b7feade496c8887d4c15233cefb16aab206
[]
no_license
inyourtime/micro-private
e42b8c76478a2e21d9a791ed1541468bb423680e
be3caf4d59ada8d9d43ded082382898ab9086687
refs/heads/master
2023-08-23T04:39:13.817112
2021-10-24T07:16:39
2021-10-24T07:16:39
386,515,713
0
0
null
null
null
null
UTF-8
C++
false
false
2,078
h
Timer4CTC.h
/* * Timer4 with CTC mode 4 (TOP is OCR4A) */ #ifndef Timer4CTC_H #define Timer4CTC_H #include "Arduino.h" #include <avr/io.h> #define TIMER4_RESOLUTION 65535UL class Timer4CTC { public: /****************************** * Configuration * ******************************/ Timer4CTC() {} void in...
808e9a452fb064b8d137ff171c6d7f1acaaf3716
5e148bf117ddb6c15e9696ff2e5558c11903e099
/Исходный код 2008/Robot/EditVarsDlg.h
700a323051071d22abe853b10951e52a16ec250e
[]
no_license
NomenIllisLegio/CAD_ROBOT
1ff14417867c1f20e24eec52e51c8e1e0f83f5c1
1dbbcb7492b30138127f266f683f8be147fcbc87
refs/heads/master
2021-01-21T11:14:56.890436
2014-02-27T16:46:50
2014-02-27T16:46:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,211
h
EditVarsDlg.h
#if !defined(AFX_EDITVARSDLG_H__A93B3410_BDBA_4CF0_B38A_076834840714__INCLUDED_) #define AFX_EDITVARSDLG_H__A93B3410_BDBA_4CF0_B38A_076834840714__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // EditVarsDlg.h : header file // /////////////////////////////////////////////////////////////////////...
8cc0f2ffa6e702b07eea921edb47f033dfaea531
a620e44d2a674bd3ec983be83f6036d126bb527e
/examples/ton_blink/main.cpp
fb2656ea9a1427527f81146976ac3ad490757774
[ "Apache-2.0" ]
permissive
iotontech/IOTON-API
a43b0d21ba66ffd7a0ebd360467f1afd8145bf44
2e5f7dc87dc4650ca187013d379591f3207901e9
refs/heads/master
2020-12-24T06:10:33.853427
2017-06-24T16:20:26
2017-06-24T16:20:26
58,824,871
1
2
null
2017-02-21T14:01:57
2016-05-14T18:54:29
C
UTF-8
C++
false
false
687
cpp
main.cpp
// Includes -------------------------------------------------------------------- #include "main.h" // ***************************************************************************** // MAIN PROGRAM **************************************************************** int main(void) { // The main LOOP while (1) { ton.se...
f99f95529ffe14ba75dc437dbfae4b2e8f2acc7f
3c1f04a8156333cab7b43c79ba2130960fd20f9f
/src/extend/Build.h
1ec87bf557607d449ea0773f4aec3fe2c89b0d38
[ "MIT" ]
permissive
pitchShifter/liteForge
6ee494fc8bd07b3cd5f0484c26f6c873a5678a50
df3337842005e6b113663fcf85e9331a18e678b9
refs/heads/master
2021-01-10T06:17:03.182763
2015-11-01T18:21:57
2015-11-01T18:21:57
44,494,448
0
0
null
null
null
null
UTF-8
C++
false
false
404
h
Build.h
#ifndef __BUILD_H__ #define __BUILD_H__ #include <iostream> #include <unordered_map> #include <memory> #include "LayerHandler.h" #include "UserInterface.h" namespace liteForge { class Build { private: LayerHandler lhandler; UserInterface ui; SDL_Window *windowref; SDL_Renderer *renderref; public: void...
b6faca4ef935201d1ccf3de888c407c0fbd946ff
3dc054605a6528b537d4f536daf60475795026f0
/ex0301.cpp
6bbd5ec4724fab312fa79d1e600f3f00078306b0
[]
no_license
gvko/CppExercises
3604bac6d6877ee7fc711b562779a73bd8c2fc4d
d27067078eb5972ac5e6478e02f2a641d63d65ca
refs/heads/master
2021-08-07T05:45:04.110794
2017-11-07T16:05:55
2017-11-07T16:05:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,633
cpp
ex0301.cpp
#include <iostream> #include <math.h> using namespace std; int main() { int intervals, set_size, k, max_el, count = 0; cin >> intervals; cin >> set_size; int dataset[set_size]; // Fill up the array while (count < set_size) { cin >> dataset[count]; count++; } max_el = ...
ea2f6fc2da80d7b1f71ab8bd001c4162c30abd85
d0fb46aecc3b69983e7f6244331a81dff42d9595
/sae/src/model/DescribeApplicationSlbsResult.cc
39e847123010cdc7228039979a8e46b51730b5b8
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-cpp-sdk
3d8d051d44ad00753a429817dd03957614c0c66a
e862bd03c844bcb7ccaa90571bceaa2802c7f135
refs/heads/master
2023-08-29T11:54:00.525102
2023-08-29T03:32:48
2023-08-29T03:32:48
115,379,460
104
82
NOASSERTION
2023-09-14T06:13:33
2017-12-26T02:53:27
C++
UTF-8
C++
false
false
4,473
cc
DescribeApplicationSlbsResult.cc
/* * Copyright 2009-2017 Alibaba Cloud 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...
49e629fe8db0e69c0bac61e96ff159cd7ec2aea6
6c13a8bb29d93670e23db9bbc7e64034b98e282c
/build/tlab_automoc.cpp
9d129581ecbe2d89ffb33414c32787207434dc86
[ "Apache-2.0" ]
permissive
TradingLab/tlab
9e51f2198e07c67cd04db9422766b66d237c5bde
6f742ca742869b21fb485d9cd5c243d912c8fc6e
refs/heads/master
2021-01-19T22:10:38.697244
2015-12-19T20:14:51
2015-12-19T20:14:51
40,972,554
0
0
null
null
null
null
UTF-8
C++
false
false
89
cpp
tlab_automoc.cpp
/* This file is autogenerated, do not edit -D_BSD_SOURCE */ #include "moc_plotgraph.cpp"
8a5d276344c204d42f4327839993b8c99dc3c933
340da2c1e122cf9eab16d374825441164018db0b
/LDGame/GunProperties.h
3a9f6a3c9317ddde571d9b8a700d0a902f560855
[]
no_license
Turtlesoup/SuperRobotHunt
3416fce74997fcc0327327dc5ce02d172987ecf4
cdf2988e423839151dddb471dae0b0a3f9711883
refs/heads/master
2021-09-02T03:37:20.298978
2017-12-30T00:51:25
2017-12-30T00:51:25
115,762,015
0
0
null
null
null
null
UTF-8
C++
false
false
729
h
GunProperties.h
#ifndef GUN_PROPERTIES_H #define GUN_PROPERTIES_H #include <vector> class GunProperties { public: static GunProperties createRandomProperties(); GunProperties(float shotDelay, const std::vector<unsigned int> &bulletTypes, const std::vector<float> &bulletOffsets, const std::vector<float> &bulletRandomSpread); v...
553d275030b88d3bcf0cd994968e17e50337ffbe
edfb435ee89eec4875d6405e2de7afac3b2bc648
/tags/selenium-2.0-rc-2/third_party/gecko-2/win32/include/nsIStringStream.h
5e4b8c608626f26e49be2b8c27487c1df3c2809f
[ "Apache-2.0" ]
permissive
Escobita/selenium
6c1c78fcf0fb71604e7b07a3259517048e584037
f4173df37a79ab6dd6ae3f1489ae0cd6cc7db6f1
refs/heads/master
2021-01-23T21:01:17.948880
2012-12-06T22:47:50
2012-12-06T22:47:50
8,271,631
1
0
null
null
null
null
UTF-8
C++
false
false
5,635
h
nsIStringStream.h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-2.0-xr-w32-bld/build/xpcom/io/nsIStringStream.idl */ #ifndef __gen_nsIStringStream_h__ #define __gen_nsIStringStream_h__ #ifndef __gen_nsIInputStream_h__ #include "nsIInputStream.h" #endif /* For IDL files that don't want to inclu...
f8ee46292e296ce95a2d84a00a659b8379670bcf
1722686f8139aca7d6927ec7a6dfed13a5d319fb
/pc-client/classroom-stu_mini_2nd/dataconfig/datahandl/ymtcpsocket.h
f370e68f73cb64976710a3abadab4bf7d4069259
[]
no_license
oamates/clientmy
610ca1c825e503e0b477a9a579248d608435a5d0
b3618b2225da198f338a3f2981c841dde010cd8d
refs/heads/main
2022-12-30T14:53:43.037242
2020-10-21T01:01:12
2020-10-21T01:01:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
995
h
ymtcpsocket.h
#ifndef YMTCPSOCKET_H #define YMTCPSOCKET_H #include <QObject> #include "../../pc-common//longLinkManager/NetworkService.h" class YMTCPSocket : public QObject, public PushObserver, public StateObserver { Q_OBJECT public: explicit YMTCPSocket(QObject *parent = 0); ~YMTCPSocket(); sign...
35eb6180aff646b956a85a4cd1a304d5d4d773d3
035d6a9d6fabe41d92d144a77142e44955042daa
/k层叶子节点.cpp
c9d0d9babc18a44e79d65951fb7c1aa87ead58fe
[]
no_license
blue24xin/offer_
59dc7f63366b215d436854ceade1e9bd6133499b
f8c90ec6cb31e8fe5a2d8a5bad2da03714afd277
refs/heads/master
2021-06-30T17:23:36.418843
2017-09-21T06:39:57
2017-09-21T06:39:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
443
cpp
k层叶子节点.cpp
//计算第K层的叶子节点的个数 int GetkLeafNodesTotal( BTreeNode *pRoot, int k){ if( pRoot == NULL || kthLevel <= 0 ) return 0; if( pRoot != NULL && k == 1 ){ if( pRoot->_left == NULL && pRoot->_right == NULL ) return 1; else return 0; } return ...
a644655b37aebdac91700abfcbfad2ce6ff0418f
391c3971ff196e3c1ae862d50dee460a3faf00f4
/robot/worker/dispatcher.hpp
6ad34fef821971bcd0b17b3e711c345cfc4812ed
[]
no_license
OpenTrader9000/quik
257c954fc219338d9f25ccae9cff52b4ec7b7520
117e9f3439b9e05bfd5a73c837d6921de66bf239
refs/heads/master
2021-09-01T04:30:41.349079
2017-12-24T20:14:52
2017-12-24T20:14:52
110,351,902
3
0
null
null
null
null
UTF-8
C++
false
false
792
hpp
dispatcher.hpp
#pragma once #include "config.hpp" #include <memory> #include <thread/telegram/telegram.hpp> namespace robot { namespace worker { struct dispatcher { static void init(config const& conf); static void clear(); static void stop(); // // on_transaction // send_transaction // on_order ...
615549bed9abe9902abc51752d4dc5bf97a3cf89
077d8d3ec3906370580a4b4d57150eb676563a50
/LeetCode/两个字符串的删除操作/main.cpp
d837742506c29646e3dcb1158cd3bda03522a689
[]
no_license
byx2000/OJ
8955053987ccd9eb8bb0e575269082d9114764ab
ec1c9b1ac6a6982f099481364761ea01a82c7db0
refs/heads/master
2023-03-07T18:03:49.294014
2021-02-19T13:59:07
2021-02-19T13:59:07
287,937,848
0
0
null
null
null
null
GB18030
C++
false
false
2,355
cpp
main.cpp
// https://leetcode-cn.com/problems/delete-operation-for-two-strings/ #include "../common/common.h" // 解法1:转化为最长公共子序列 class Solution1 { public: Solution1(const string& s1, const string& s2) : s1(s1), s2(s2) {} int solve() { cache = vector<vector<int>>(s1.size(), vector<int>(s2.size(), -1)...
cdb1df68c86b6cf642e6a8ba72d956a3291c9831
2b339e93f27f300983112fa8bd5bb3f58dcee51a
/source/parsing/action/copy.hpp
35b0ede4678283792b08978b6d9d997ffd16d256
[]
no_license
octopus-prime/gamma-ray-2
caf11e2b2f2d349f2845233b1fa8ef163d8ce690
873fad52635b48875469ad4a28903a438e0a7bbe
refs/heads/master
2021-01-10T05:47:58.255511
2017-12-22T17:57:14
2017-12-22T17:57:14
51,027,037
0
0
null
null
null
null
UTF-8
C++
false
false
297
hpp
copy.hpp
/* * copy.hpp * * Created on: 13.12.2015 * Author: mike_gresens */ #pragma once #include <boost/spirit/home/x3.hpp> namespace x3 = boost::spirit::x3; namespace rt { namespace parsing { namespace action { auto const copy = [](auto& ctx) { x3::_val(ctx) = x3::_attr(ctx); }; } } }
81292a2690d57f7082f750f35d1b2a7a14e65c27
0f383d6cce3bbffafcfe5873a7045fe2d9c93abe
/Source.cpp
1e323647f48b498c96f2ed3b28b8ebafacdabedf
[]
no_license
window-watcher/bjarne-exercise-5.8
fa654887f515d41bd7319a608e784e915e52f91a
a538f8dbe3e81d8a1836ebf8494b9e7b1b8cc0b4
refs/heads/master
2022-12-17T03:29:06.437674
2020-09-03T20:40:32
2020-09-03T20:40:32
292,674,753
0
0
null
null
null
null
UTF-8
C++
false
false
1,406
cpp
Source.cpp
/* Project: Section 5.8 By: Adrian Rodriguez Date: 9/2/20 Objectives: Allow user to enter integers in to a vector. Add all values within the vector upto the element selected by the user within a variable. Print variable to screen. Version 1.0 Change log version 1.0 : */ #include <iostream> ...
9c471561a43b1992cfe35b1f093b88c27b5e61cb
11fa8475048d974588380c7f4d5b574864b1cb0d
/leetcode/109.有序链表转换二叉搜索树.cpp
9463c11be7d6cc3ff6e8daec4ddba52f667897f5
[]
no_license
degawong/leetcode
fb2811e9d208c48035ed1adf88b4c924eadb5946
d86256c31309b62e5be1c1016c24720bcaaa93ef
refs/heads/master
2023-04-05T01:41:08.053531
2021-04-08T00:38:45
2021-04-08T00:38:45
302,859,169
0
0
null
null
null
null
UTF-8
C++
false
false
1,601
cpp
109.有序链表转换二叉搜索树.cpp
/* * @Author: your name * @Date: 2020-10-30 09:01:46 * @LastEditTime: 2020-10-30 09:36:12 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \leetcode\leetcode\109.有序链表转换二叉搜索树.cpp */ /* * @lc app=leetcode.cn id=109 lang=cpp * * [109] 有序链表转换二叉搜索树 */ // @lc code=start /*...
733de8c76a73d3a38d870ef7a4a17db0caa3d3dd
86df9c63eb2f388b49b10c18097e8cd9ccd37111
/BOJ/class3/7569.cpp
cf9c057f8cabda3de6bc1fe23e7995d683b25208
[]
no_license
Green-grape/Algorithm
ad1571ea76c0e416ef18e1a44ce08a73cc0f1843
599de13664f6618de7ef6d1e0a198bb0137731fd
refs/heads/master
2023-02-23T19:20:23.458280
2023-02-14T12:25:22
2023-02-14T12:25:22
238,646,986
4
0
null
null
null
null
UTF-8
C++
false
false
2,085
cpp
7569.cpp
#include <iostream> #include <vector> #include <queue> #include <cstdio> using namespace std; int n,m,h; vector<vector<vector<int>>> board; //z, y, x 순서 int adj[][3]={ {1,0,0}, {-1,0,0}, {0,1,0}, {0,-1,0}, {0,0,1}, {0,0,-1} }; int bfs(const vector<pair<int, pair<int,int>>>& ripes, const int ...
6e6d7fede3b1dcc60942b55c806d24a6495fb7dd
eddcd87c24939a0b9d35bfd52401a2ecd62c04de
/developing/yggdrasil/yggr/geometry/geo_polygon_t.hpp
61bf27a0619214e3bc0c629c2c61363b10fc0dde
[]
no_license
chinagdlex/yggdrasil
121539b5f4d171598be2bb79d36f5d673ad11cb4
16f6192fd0011dc3f7c1a44f8d4d2a8ba9bc8520
refs/heads/master
2021-03-12T19:08:19.120204
2016-09-26T09:36:19
2016-09-26T09:36:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,651
hpp
geo_polygon_t.hpp
//geo_polygon_t.hpp /**************************************************************************** Copyright (c) 2014-2018 yggdrasil author: yang xu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...
1573964bb52494e17fe5657ee6ce6f7d88d94f8b
f521659d68ad2e2fd2ba1ecafb5f369614ddc3db
/src/formats/SonyPS2Scanner.h
8a681f4475325c540750c8da9b6477b1801b5d3f
[ "Zlib", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ValleyBell/vgmtrans
7f06d219027728ad3d29d1fd1920f85e453ea8f3
fc7ad99857450d3a943d8201a05331837e5db938
refs/heads/master
2020-12-25T21:56:50.643643
2014-11-13T21:05:14
2014-11-13T21:05:14
25,303,522
3
0
null
null
null
null
UTF-8
C++
false
false
773
h
SonyPS2Scanner.h
#pragma once #include "Scanner.h" class SonyPS2Scanner : public VGMScanner { public: SonyPS2Scanner(void) { USE_EXTENSION(L"sq") USE_EXTENSION(L"hd") USE_EXTENSION(L"bd") } public: ~SonyPS2Scanner(void) { } //virtual bool UseExtension() //{ // theExtensionDiscriminator.AddExtensionScannerAssoc(L"sq",...
50f47a8e82dbe905233081ec9c93379455f249b0
cbc870f2e6cafada1e171ea1ad7c4a61377e69d0
/src/support/testaux/syntaxgen.tpp
9c43fadaaab499b590225157a079e0ef50625fcd
[]
no_license
SrTobi/minijava
719634577eea3113f9fc625ab2f7c515b07cb5a0
034e0e351951f05766e7bca7f6a1e689b789ee9d
refs/heads/master
2021-01-12T12:13:42.793808
2017-02-13T06:45:03
2017-02-13T06:45:03
72,376,450
2
0
null
2016-12-12T02:43:53
2016-10-30T21:24:12
C++
UTF-8
C++
false
false
12,078
tpp
syntaxgen.tpp
#ifndef TESTAUX_INCLUDED_FROM_SYNTAXGEN_HPP #error "Never `#include <syntaxgen.tpp>` directly; `#include <syntaxgen.hpp>` instead." #endif #include <cmath> #include <random> #include <string> #include <utility> #include "exceptions.hpp" #include "lexer/token_type.hpp" #include "util/raii.hpp" #include "testaux/rando...
d60acf54652e9d142f74fd99c3c88341571cd80c
dc165ecdb79145b864a06d50f06f82b44b15518f
/cpp/Graph/MatrixGraph.hpp
07c69de2f374371a5a920ac57755e36c47dfd46c
[]
no_license
faxinwang/DataStructure
452047925ec7eceefa360f3b161f40c0a20ab1bb
f4d28324da21ac8f82ff8224145a5ab52392ba78
refs/heads/master
2018-11-02T19:34:22.664992
2018-09-01T02:28:04
2018-09-01T02:28:04
120,861,905
2
0
null
null
null
null
UTF-8
C++
false
false
9,015
hpp
MatrixGraph.hpp
#ifndef MatrixGraph_hpp #define MatrixGraph_hpp #include "../Vector/Vector.hpp" #include "../util/require.hpp" #include "../Queue/Queue.hpp" #include "../Stack/Stack.hpp" #include <sstream> NamespaceBegin template<typename T> class MatrixGraph{ private: int _numNode, _numEdge; int _relax; const int _noEd...
8e96ea035efb830bbf01175216229c5f47dba185
634120df190b6262fccf699ac02538360fd9012d
/Develop/mdk/MiNet/include/MTCPSocket.h
3905ddc5036145b0f52126e0fedcc600fddff254
[]
no_license
ktj007/Raiderz_Public
c906830cca5c644be384e68da205ee8abeb31369
a71421614ef5711740d154c961cbb3ba2a03f266
refs/heads/master
2021-06-08T03:37:10.065320
2016-11-28T07:50:57
2016-11-28T07:50:57
74,959,309
6
4
null
2016-11-28T09:53:49
2016-11-28T09:53:49
null
UHC
C++
false
false
4,463
h
MTCPSocket.h
#ifndef MCLIENT_SOCKET_H #define MCLIENT_SOCKET_H #include "MiNetPrerequisites.h" #include <crtdbg.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include "MThread2.h" #include "MPacket.h" #include "MiNetCommon.h" namespace minet { class MTCPSocket; enum SOCKET_ERROR_EVENT {eeGeneral, eeSend, eeReceive...
92b46582aeb88a34d98956e5dc97dcb63b2c369a
117729b1504a128cf6a8a2622d1433937ce8d87d
/팀 프레임워크/cSkillTest.cpp
d298c9761acc354484ec36011f741530fc76fcb9
[]
no_license
161227TEAM-DirectX/D3D
0fda089c9e3e59a2fb97cd32a3cb0831831fc5c9
fce147c1fbbf4c9a5abe5e7323bf5d789ad89b36
refs/heads/master
2021-01-21T20:38:20.589289
2017-07-18T03:49:32
2017-07-18T03:49:32
92,261,883
0
0
null
null
null
null
UTF-8
C++
false
false
1,438
cpp
cSkillTest.cpp
#include "stdafx.h" #include "cSkillTest.h" // #include "cUISkill.h" cSkillTest::cSkillTest() { } cSkillTest::~cSkillTest() { } HRESULT cSkillTest::init() { //DXIMG_MANAGER->GetDxImg("skill0_On")->SetPosition(D3DXVECTOR3(WINSIZEX / 2, WINSIZEY / 2, 0)); //DXIMG_MANAGER->GetDxImg("skill0_On")->SetCenterDraw(true);...
3ea58f4923918a29ac1cd31603f11c82bc3c77a5
814d33726e1172294390ecb21feb8c7485d02577
/networkutils/networkutils_packet.cpp
de3b3a752893b104d9eeb9bab99c43c0a3ad8f51
[]
no_license
wpond/ipstack
64333960b6bef7a5cd998fef0c3e48000279c180
8bec985f51b63a8a6642a11a9c41fd598279dee2
refs/heads/master
2020-03-29T02:43:17.547377
2017-06-17T17:47:54
2017-06-17T17:47:54
94,646,629
0
0
null
null
null
null
UTF-8
C++
false
false
924
cpp
networkutils_packet.cpp
#include "networkutils_packet.h" #include <cstring> #include <stdexcept> namespace networkutils { Packet::Packet(const uint8_t* data, uint32_t size) : mSize(size) { mData = new uint8_t[size]; memcpy(mData, data, size); } Packet::Packet(std::shared_ptr<Packet> packet, uint32_t start, uint32_t size) :...
ef6038e1711aed818d3046b2ec68f342c671fd27
11f9cef2c51f51ac67333290389314ff382cb8ed
/by-type/implementation/list-minimum-hard.cpp
c8f082d03425851ca665eabd6a1392714df9f671
[ "MIT" ]
permissive
ruar18/competitive-programming
64502a17e5b5483ac7d8ffc3d5687c9581703bdf
f264675fab92bf27dce184dd65eb81e302381f96
refs/heads/master
2021-01-15T17:50:00.845099
2017-12-28T03:48:15
2017-12-28T03:48:15
99,758,975
0
0
null
null
null
null
UTF-8
C++
false
false
280
cpp
list-minimum-hard.cpp
#include <cstdio> #include <algorithm> #include <cstring> using namespace std; int a[100000],n; int main() { memset(a,0x3f,sizeof(a)); scanf("%d",&n); for(int i=0;i<n;i++)scanf("%d",&a[i]); sort(a,a+n); for(int i=0;i<n;i++)printf("%d\n",a[i]); return 0; }
e3858f6e26597f495178fe2f069e6ab0411078c0
44f04b8f2b6c0dba51f1e998985d3a9e8540715f
/Gym/100203/D/D.cpp
27bfbc575c4830b9335c1a38f30f48c53e226d5c
[]
no_license
GuessEver/ACMICPCSolutions
2dd318a45939711eff1dd208cffc05a029b38130
909927778efd77ca9ec8e18aed3ff22c167d2a33
refs/heads/master
2020-05-18T20:52:32.359955
2015-11-04T08:31:43
2015-11-04T08:31:43
29,720,059
5
3
null
null
null
null
UTF-8
C++
false
false
1,294
cpp
D.cpp
#include <cstdio> #include <set> #include <utility> using std::set; using std::pair; int MinimumRepresentation(int *s, int l) { int i = 0, j = 1, k = 0, t; while(i < l && j < l && k < l) { t = s[(i + k) >= l ? i + k - l : i + k] - s[(j + k) >= l ? j + k - l : j + k]; if(!t) k++; else{ if(t > 0) i = i + k + ...
ae689f0e5bac71a78fab8bb97d7e8896f0cbea03
2d1507435a60294aa3a807024ac94fcb7abde7a9
/lib/command/Command.h
c6a6e0822b18fd6dcab4533e9e27764bab1e26d9
[]
no_license
Crawler995/ZqlSimpleFileSystem
af75e36258d2ca89d20706a65569a6a2668774fb
9f5636386a4612385fd7767852b8e4c7b864b415
refs/heads/master
2020-11-23T23:27:04.635410
2020-03-03T03:51:54
2020-03-03T03:51:54
227,862,061
1
0
null
null
null
null
UTF-8
C++
false
false
385
h
Command.h
#pragma once #include <string> #include <vector> class Command { public: std::string invokeName; std::string description; std::string usage; std::string successTip; Command(std::string argsString); virtual void execute() = 0; protected: std::vector<std::string> args; bool isRequestHelp(); void outputHelp...
8adf567a83782f86883fbc9e2b766ed070039fff
12cd700e75b246a265120e691decf59ac8c3796d
/LCD_LED_TEMP/LCD_LED_TEMP.ino
d001d3538ad97c4a8b7faa8142c07e84516cc4c0
[]
no_license
afroraydude/MyArduinoSketches
a8a4f2cc0baca8b3102f1f827b895a25013313c5
e2a080dac37d6485bf4db5be982ecf97163db0f3
refs/heads/master
2021-01-22T05:10:09.595147
2018-02-28T14:20:30
2018-02-28T14:20:30
29,394,108
0
0
null
null
null
null
UTF-8
C++
false
false
1,503
ino
LCD_LED_TEMP.ino
#include <LiquidCrystal.h> #include <Wire.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); const int temperaturePin = 0; int r = 9; //I have g at 13 because I just want to make sure that //the curcuits are wired correctly. int g = 13; int b = 10; float setDegreesF; float voltage, degreesC, degreesF; void temp() { vo...
b74d22ccf288d383a2a316b523b78b6a0229d577
92bbd2cccf371aea5501393edaad09281b9d84a0
/src/main.cc
2938efb539f4277893372aae26932d0fe578eabe
[]
no_license
sograindustries/heart_rate_detect
2d14aef04c666dd3e31129804344b142c337c541
0b85a7037fea83b41c1b039ab8de00938ea88e14
refs/heads/master
2022-03-21T19:22:22.500497
2019-11-21T05:37:20
2019-11-21T05:37:20
220,847,452
0
0
null
null
null
null
UTF-8
C++
false
false
674
cc
main.cc
#include <iostream> #include <vector> #include "estimate_hr.h" extern double heartbeat_01[5000]; int main(void) { // Creates simple data // std::cout << "Loaded a " << data.size() << " length data set." << std::endl; argos::hr_params_s hr_params; hr_params.sample_rate = 250; hr_params.std_dev_threshold =...
82a35d50a3c24f4f5dcc76619dd88bb6bb53eab0
9ffd9bda08e36b9b6452187e9d8c442926f70125
/lab2/MiniDict/Dictionary/Dictionary.cpp
9d5212375953ad47f1a717e77f982d64a6e60abf
[]
no_license
UsingCoding/OOP
2b2153f1fef71604a8299d7db7d0fb96c3ebda30
0658dd2a4d38871f4eb0fe7312846179afae330b
refs/heads/master
2022-11-17T17:11:08.564055
2020-07-15T17:51:03
2020-07-15T17:51:03
240,872,325
0
0
null
null
null
null
UTF-8
C++
false
false
4,302
cpp
Dictionary.cpp
#include <iostream> #include "./Dictionary.hpp" #include <algorithm> #include "../../../Utils/StringUtils.hpp" #include <stdexcept> const std::string Dictionary::RU_LOCALE = "RU"; const std::string Dictionary::EN_LOCALE = "EN"; const char Dictionary::COLON_SEPARATOR = ':'; const char Dictionary::DASH = '-'; const int...
c7ebde593db25b987a1c69d37a3c97e91a2f0eac
a7bdc725e7351d3f057a983fd159e0fc6866623f
/main.cpp
463799b86d9f0a3325ad68a030cd573a7de806b1
[]
no_license
Theadek/BinaryPuzzle
5bc31cb8ee617b32d4e042d871e1d694c70104b1
bf5b0c67b7dbb3054d9cc49be127febface55262
refs/heads/master
2020-05-18T07:05:53.071799
2019-04-30T12:05:34
2019-04-30T12:05:34
184,254,328
0
0
null
null
null
null
UTF-8
C++
false
false
15,783
cpp
main.cpp
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include "conio2.h" #include <stdlib.h> #include <time.h> using namespace std; #define xPlansza 45 #define yPlansza 2 #define xLegenda 2 #define yLegenda 2 #define tabx (x - xPlansza - 1) #define taby (y - yPlansza - 1) #define RandomMax 50 #define RandomMin 30 ...
ae3dda89fba44e4b020412b46851b1ee6959f2ea
518e22d35af73a148ee14a8ae09db7ba220f1a7a
/arbori2/main.cpp
8b84e30deddae894f1a1ea63692dd2b96e8cbd7e
[]
no_license
rainer13/valentin
c7f06971147f36806bd5113659f8259c34a88a74
452999324d8b1115fb2bac1881ae514243fc538d
refs/heads/master
2021-05-05T18:33:20.766289
2018-03-15T02:38:17
2018-03-15T02:38:17
117,616,297
0
0
null
null
null
null
UTF-8
C++
false
false
1,369
cpp
main.cpp
#include <iostream> using namespace std; struct element{ int i; element *left, *right; }; element* root =NULL; void adaugareElement(int i){ if(root==NULL){ root= new element(); root->i=i; root->left=NULL; root->right=NULL; return; } element* e=root;...
7aaaa3b10b19550a7a1eda3c307891fd53787fdc
dbb50d74406518f58baae0f91e7fb44874ab31e6
/RingingMaster/NewDocumentWizardPages.cpp
93bf401563b87363a9e9d1c2dd94fc1cf0093acf
[]
no_license
lakestephen/ringingmaster_cpp
60f917eb66970e6fc84f9703a229dd0028892632
3d34efa1c4dca560a67a8aee1375df92fdcbeb6f
refs/heads/master
2023-02-20T14:41:35.756431
2021-01-26T19:45:38
2021-01-26T19:45:38
333,197,351
1
0
null
null
null
null
UTF-8
C++
false
false
15,647
cpp
NewDocumentWizardPages.cpp
// NewDocumentWizardPages.cpp : implementation file // #include "stdafx.h" #include "RingingMaster.h" #include "resource.h" #include "NewDocumentWizardPages.h" #include "NewDocumentWizard.h" #include "NotationDlg.h" #include "PropItem.h" #include "SearchDlg.h" #include "NotationResultsDlg.h" #include "NotationExplorer...
bf76a017853a72d5cfcce4e12e6c433eb31dc258
1216aa0b8dc73520971cbd3e0ae8f85fb20f656d
/06 Searching and Sorting/Chef_Restaurant_.cpp
bc380a8ae1d7a28ca335ec97052bb9af37413de7
[]
no_license
pranjalg131/Competitive-Programming
f345bfa7c5f835b995b0da31339a59119c7e03ce
21753f70ead2f8b1d72095302c93bef3530902b9
refs/heads/master
2023-03-12T03:25:41.903754
2021-03-01T14:12:26
2021-03-01T14:12:26
295,162,428
1
0
null
null
null
null
UTF-8
C++
false
false
1,400
cpp
Chef_Restaurant_.cpp
#include <bits/stdc++.h> using namespace std; void solve(){ int n,m; cin >> n >> m; vector<long long> time(2*n); for(int i = 0; i < 2*n; i++){ cin >> time[i]; } sort(time.begin(),time.end()); while(m--){ long long present; cin >> present; auto lower = lower...
16dbc1dad5ad14bcff20e39ed001b9b5ccdb722c
fee886b058954be1264f5c7afc7e80b887c7f0cb
/TmpCpp/GameEntry.cpp
2935c29f6452796fde9964b4badcdc0b1f7e01b3
[]
no_license
Amazer/AEngine
be7c0fd4b64f94d0d7d1bc978cf9742fc7b644be
37ad9078a3a7436cc7ca8fcface8676e1da5974e
refs/heads/master
2021-01-21T22:52:38.988356
2018-04-19T12:21:40
2018-04-19T12:21:40
102,175,132
0
0
null
null
null
null
UTF-8
C++
false
false
4,134
cpp
GameEntry.cpp
#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <windowsx.h> #include <math.h> #include <stdlib.h> #define WINCLASSNAME "WINCLASS1" #define WNDNAME "EngineEntry" LRESULT CALLBACK WinProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); void TestPixel(HWND hwnd); void TestLine(HWND hwnd); void TestRecta...
ba2ee583c48c020b1a9185963dbb826f90c7e9e1
513cb3ccfb09c7f02d8e176b1897d989630f12b0
/server/userdb.cpp
2558fb2e580234bb4d64bbc13c0a36c29c60fa7b
[]
no_license
yuts21/word-elimination
7984fcced42b5bcf1663a4d4245e38621cfc66a4
a407ed8863c1d0032cd3ccca03fc642b108ec1d0
refs/heads/master
2022-06-18T00:11:09.205728
2020-05-11T09:12:08
2020-05-11T09:12:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,034
cpp
userdb.cpp
#include "userdb.h" #include <QString> #include <QSqlDatabase> #include <QSqlQuery> #include <QVariant> #include <iostream> UserDatabase::UserDatabase() : //数据库初始化 QSqlDatabase(addDatabase("QSQLITE", "userdb")) { setHostName("localhost"); setDatabaseName("users.db"); if (! open()) { ...
7d8bb5ba8d968b27b26288928a5f3d2e5c298a78
cf039e7df430ae2d1ec917031dc17837771a6d6f
/5_chapter/exersices/8.cpp
f4c6e9e639928378be0539fe7e99a076126fcbf6
[]
no_license
koshernoDev/StephenPrataCppPrimerPlus
4cba24d3cb7ac1347d2ca97875af93b9e9cf76e3
3acfbcd6841374dbb80390575db74f432bf56dac
refs/heads/master
2020-04-23T06:25:35.206393
2020-02-16T07:43:58
2020-02-16T07:43:58
170,972,705
0
0
null
null
null
null
UTF-8
C++
false
false
1,162
cpp
8.cpp
/*Напишите программу, которая использует массив char и цикл для чтения но одному слову за раз до тех пор, пока не будет введено слово done. Затем программа должна сообщить количество введенных слов (исключая done). Пример запуска должен быть таким: Вводите слова (для завершения введите слово done): anteater birthday c...
bdc86be0a95ba17519828c94f99680532943593c
bd55b20d5231b14682e6a52820eaa30b09d191af
/tahaky/serialLedBlinkingOnOff.ino
dccf90f9a88c72db34ef4d8674bcfb5b24839edb
[]
no_license
StefekVUT/RoboCamp2016
45131617f52069b2391aafbef92dfe7fa1d43fff
57140cb18452b3cfa319fcca9ea5cc215ef5f70f
refs/heads/master
2021-01-01T18:39:44.785328
2016-08-13T08:34:09
2016-08-13T08:34:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,217
ino
serialLedBlinkingOnOff.ino
/* Example led blinking (on/off) by serial communication Created by Jaroslav Páral RoboticsCamp 2016 RoboticsBrno www.robotikabrno.cz Popis: Ovladani blikani ledky pomoci seriove linky. */ void setup() { pinMode(LED_BUILTIN, OUTPUT); // nastaveni pinu LED_BUILTIN na vystupni ...
b103c6047b6a15c5b14324fbbc568ebb7e065cd1
6cbde1e548a69f82fd070c972938296d0b48a574
/src/gazebo_plugins/src/GripperPlugin/GripperManager.h
335e508917d7d7b8b4dc959d1800d3ea0698eda3
[ "MIT" ]
permissive
BCLab-UNM/CPFA-ROS
24c72d1cb6e7d95f6bb9a8ff13f2e053e3963dcb
bfdd4f7d95ff9eb7325777bcf828120e49f1e74f
refs/heads/master
2021-03-19T18:10:18.857534
2018-10-20T00:03:55
2018-10-20T00:03:55
93,586,778
2
0
MIT
2019-08-16T22:04:48
2017-06-07T03:06:24
C++
UTF-8
C++
false
false
1,876
h
GripperManager.h
#ifndef GRIPPER_MANAGER_H #define GRIPPER_MANAGER_H #include <ros/console.h> #include "PIDController.h" /** * This class defines the interface between the GripperPlugin class and the PID * controllers for each of the three primary joints: wrist, left finger, and * right finger. Structs for passing data to and from...
464edce49f81db2fc18690e0d75b45db31d7c552
3f06bba11ab9217175e8ad4cf8be5c4296bdbe86
/seminars/week_4_operators_cannonical/operators.cpp
ba44f7ce5803f066cd5a8252e945444c1362985d
[]
no_license
fmi-lab/oop-kn-2019-group4
9a715f9626091d9af1ae9850e9167ac4462f81ec
01a1f89a37299555eb22d7995f51e1e2269433c0
refs/heads/master
2021-01-05T08:32:38.611219
2020-06-02T11:37:22
2020-06-02T11:37:22
240,955,220
2
3
null
null
null
null
UTF-8
C++
false
false
2,391
cpp
operators.cpp
#include<iostream> #include<cassert> struct Rat{ int a; int b; Rat add(Rat); }; template<class T> T sum(T& first, T&second){ return first + second; } class IntContainer{ int array[100]; size_t size = 1; public: friend std::ostream& operator <<(std::ostream&, const IntContainer&); fr...
3fd7a6451d5dabb1b886f333d10eee6d609f1f6d
2e08fdaa72315fa7ef541b4199880cee97492918
/cdebug.cpp
7b3de13ab01ba57a323d7c840e3ed3d367bdfc82
[]
no_license
Mirraz/ecap-filter
828eed314667f5f6f055c836901e88019005bdd1
3e5a2a86607a32377393b84f6f2c0ad0fc9163fb
refs/heads/master
2021-01-20T09:20:11.005528
2017-05-11T09:15:37
2017-05-11T09:15:37
90,237,390
0
0
null
null
null
null
UTF-8
C++
false
false
818
cpp
cdebug.cpp
#include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <ostream> #include <libecap/common/autoconf.h> #include <libecap/common/registry.h> #include <libecap/common/log.h> #include <libecap/host/host.h> #include "cdebug.h" #include "Debug.h" int cdebug_printf(cdebug_lvmask_type lvmask, const char *format, ...
9d387db0c4a0a5f4f7ea17cd07c0cef644696adf
74a9456b605da15cbce5eefcfc22b2c049925d24
/mimosa/http/byte-range.hh
aed932ec46621e1fa88f3284ce9dfaccb4e5fa89
[ "MIT" ]
permissive
abique/mimosa
195ae693e2270fbfe9129b95b981946fab780d4e
87fff4dfce5f5a792bd7b93db3f3337e477aae76
refs/heads/master
2022-06-30T16:32:55.355008
2022-06-07T11:38:47
2022-06-07T11:38:47
2,087,313
27
8
MIT
2018-01-16T07:20:04
2011-07-22T05:40:03
C++
UTF-8
C++
false
false
242
hh
byte-range.hh
#pragma once namespace mimosa { namespace http { struct ByteRange { enum Type { kStart, kRange, kSuffix }; enum Type type_; int64_t start_; int64_t end_; }; } }
b7d7420bd4a4bb8d33a2d1eb29fec84062c2d815
b6156b33cc6d287300421272f95a231893613df1
/Engine/Engine/Src/Resources/ResourcesManager.cpp
080942aab6c10ec40e71d9cd08a0bda41ea85b60
[]
no_license
aqscithe/OpenGLModern
b5b17da7353bc195f9f57cbefa1270f57bc43b65
bcfd24ed4de241ea26b2ba6e689aaedc4c5b5f0d
refs/heads/master
2023-06-16T23:29:08.161685
2021-07-15T17:52:17
2021-07-15T17:52:17
378,525,671
1
0
null
null
null
null
UTF-8
C++
false
false
16,733
cpp
ResourcesManager.cpp
#include <fstream> #include <Resources/ResourcesManager.hpp> #include <Physics/Transform.hpp> #include <Core/Log.hpp> #include <Core/Assertion.hpp> using namespace Resources; void ResourcesManager::addResource(int resourceType, std::string& vert, std::string& frag) { bool success = true; switch (reso...
1a192a5b878a71f053f39d395cc3f37e09b4bf14
aaa3eb8aa16289dd1a9235c7854bf55d5e557520
/base/exception.h
ca6e522bb95d2f90314f86e5906caf05631f345a
[]
no_license
yangjietadie/common
5d46f3528ca16f728b92b2872838ac0b8eb302d5
2d87039d75d665b92d4f4cf368a422e656fa2b05
refs/heads/master
2023-03-19T23:30:52.659245
2019-07-29T03:04:52
2019-07-29T03:04:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
567
h
exception.h
#ifndef _COMMON_EXCEPTION_H_ #define _COMMON_EXCEPTION_H_ #include <stdarg.h> #include <string> #include <exception> namespace common { class Exception : public std::exception { public: Exception(const std::string & msg); Exception(const char * msg, ...); Exception(const char * msg, va_list ap); Exce...
b90a432bbe915bdbd4c5f5ca639d3e1845be6a65
ca768ca8f9e32a8cb58a09f84a40101247e1716f
/Esame mazzola ex5/Playlist.h
0b5bf4c8813eaaa8c7a172a35bbaad92fadee4c6
[]
no_license
FreeTax/exercise-C-
498f1ea3e86352b2130b00ca3ad63d2a75a8c8f1
32e54b261c026295ed353bf8a2a4bcfdba794457
refs/heads/master
2022-11-08T06:27:14.644199
2020-06-18T23:14:12
2020-06-18T23:14:12
267,363,385
0
0
null
null
null
null
UTF-8
C++
false
false
419
h
Playlist.h
// // Created by Francesco Mazzola on 18/06/2020. // #ifndef ESAME_MAZZOLA_EX5_PLAYLIST_H #define ESAME_MAZZOLA_EX5_PLAYLIST_H #include "iostream" #include "list" #include "Document.h" class Playlist { public: Playlist(); virtual ~Playlist(); void play(); void add(Document * d); void remove(Docume...
65c54d6e2a4502dcba4c3ca6686e2a688ea9d2c5
1efef6bf3d245d6e5b25d31f6a650619e7a7320d
/include/CompoundStatementNode.h
3c1f75e9740f11ca4c78854129b9c2ff2331ffb0
[]
no_license
dillonevans/Prism
c5f0717df606c5418a0bc2f1ecbe9d6df2d32fb5
22d534b548893e1d029fd3fa3d854e97a3e94588
refs/heads/main
2023-06-17T02:30:53.856284
2021-07-15T02:25:55
2021-07-15T02:25:55
376,091,037
0
0
null
null
null
null
UTF-8
C++
false
false
336
h
CompoundStatementNode.h
#ifndef COMPOUNDSTMTNODE_H #define COMPOUNDSTMTNODE_H #include <vector> #include "AstNode.h" class CompoundStatementNode : public ASTNode { private: std::vector<ASTNode*> statements; public: void accept(Visitor& v); std::vector<ASTNode*> getStatements(); CompoundStatementNode(std::vector<ASTNode*> li...
dffb55eba9f21132f9952b80bdfa583e14e04f3a
487faeca15f6c310353ae3b803943197382b0916
/MOP/c++/TP1/Ctriangle.cpp
26a62177640b7045ffce88a3c02f0eb86aa574be
[]
no_license
Mialus/L3
d14b4536d5beb8ebf92ff9ea5b6bd15737a8c21f
5b259afda805991970d0317ae537d42cb4f40f5b
refs/heads/master
2020-04-22T13:42:01.383323
2015-10-21T14:20:29
2015-10-21T14:20:29
27,518,258
0
0
null
null
null
null
UTF-8
C++
false
false
230
cpp
Ctriangle.cpp
#include "Ctriangle.h" void Ctriangle::setBase(float x) { m_base=x; } void Ctriangle::setHauteur(float y) { m_hauteur=y; } float Ctriangle::getBase() { return m_base; } float Ctriangle::getHauteur() { return m_hauteur; }
bf939e5e3762601495ca955caa92d86d667dff1a
9a452ff5b25aca2d5bbad91ca67b716c249849c9
/cpp/stl/map/MapDemo.cpp
81a82a88d4542ec2390ace27b0461adec7b06e2d
[]
no_license
faterer/cpm
40b11f1ca9d13f30f9356c4587c5c3fe53818172
8b65a58dba3425033fc703e25ff5ddb9cf4c1464
refs/heads/master
2023-02-25T22:12:52.659885
2021-01-27T14:10:26
2021-01-27T14:10:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
354
cpp
MapDemo.cpp
/* * MapDemo.cpp * * Created on: Dec 22, 2014 * Author: mawang */ #include <iostream> #include <map> using namespace std; int main() { map<int, string> m; m.insert(make_pair(1,"wangmai")); m.insert(make_pair(2, "samuel")); m.insert(make_pair(3, "guowang")); for(auto i : m) cout << i.first << ":" <<...
1d391d0163d2ab25a75c6ceae38a0c8733209dbf
258e0e4e56de692526a43812acaa11f99adfa3bd
/UVA/10611 - The Playboy Chimp.cpp
fa8cab418c7faef526a87c12f862694b5b275967
[]
no_license
MohabAyoub10/Problems-solutions
2c664f68897d39eddf7ea9a23e7729f1d0023540
a8339e50e1e39eaa144e2d29760fed29e751482a
refs/heads/master
2023-05-01T15:32:13.530398
2021-05-08T17:46:55
2021-05-08T17:46:55
292,390,388
0
0
null
null
null
null
UTF-8
C++
false
false
971
cpp
10611 - The Playboy Chimp.cpp
#include <bits/stdc++.h> using namespace std; #define Fast_IO ios::sync_with_stdio(false), cin.tie(0), cout.tie(0) int n, q; int up(int arr[], int x) { int f = 0, l = n - 1; while (l >= f) { int mid = (l + f) / 2; if (arr[mid] <= x) f = mid + 1; else l = mid - 1; } if (f >= n) return 0; ...
d343dfc839ab3a5046c9ffab171931141a7532b6
91eafd1d231686d3fc61e5572f62d79dfe07cd58
/areafragment.cpp
e73ed0e12cad5b36fb7d6ce4f1ab58e28c8e731b
[]
no_license
fkjslee/Fragment
ff18dc9cad8aca123d000362dcd87e42f55b7639
7234f14c9662df90d2fe02cab5dbeeaab9e6c020
refs/heads/master
2023-04-11T00:14:48.489330
2021-04-14T01:15:28
2021-04-14T01:54:35
231,005,337
0
0
null
null
null
null
UTF-8
C++
false
false
3,651
cpp
areafragment.cpp
#include "areafragment.h" #include <Tool.h> #include <commands.h> #include <CommonHeader.h> AreaFragment::AreaFragment(const std::vector<Piece> &pieces, const QImage &originalImage, const QString &fragmentName): FragmentUi(pieces, originalImage, fragmentName) { this->offset = cv::Mat::eye(3, 3, CV_32FC1); setT...
bfbef7e326cde8a589f4c5e6006f930c70e32a1a
54aac4018ba32e2cb497775128d67d83ac5878c3
/code/src/FPSManager.cpp
2be7645a42aeefed4a020b76c78e48cf49e48ebd
[ "MIT" ]
permissive
LinDevHard/basic_sdl
535ab850f2653ed0027abbffae33352ff4d50160
c8f30d70e5e81b7ac7aadda5587999ef49f7de90
refs/heads/master
2020-04-05T15:14:10.482933
2018-12-03T12:00:28
2018-12-03T12:00:28
156,960,018
0
1
MIT
2018-11-10T13:32:20
2018-11-10T07:55:55
CMake
UTF-8
C++
false
false
917
cpp
FPSManager.cpp
#include <iostream> #include "FPSManager.hpp" FPSManager::FPSManager() : m_lastTime(std::chrono::system_clock::now()){} void FPSManager::LimitFPS(const std::chrono::milliseconds &framePeriod) { std::chrono::system_clock::time_point nextFrameTime = m_lastTime + framePeriod; std::this_thread::sleep_until(nextFrame...
ed2b4a0589dcd1ef6d7c3c77e1536add3d9f2379
c7307a96e7bb07c77fbdc6d88fc5f72d02dc17ab
/gestionDeplacement.h
e8d365c4ebea294a5a182aa3fa8e4e6e95b24b2d
[]
no_license
Hartichaw/Dofus-Harvester
ccecdcede8c1f9984e8fe2f2c36c885a81a5d3c9
35cf050ba77074f551e4bef70f601c8061fcdf13
refs/heads/master
2021-07-04T00:07:12.871690
2018-12-08T17:34:30
2018-12-08T17:34:30
132,341,186
0
0
null
null
null
null
UTF-8
C++
false
false
632
h
gestionDeplacement.h
#include <vector> #include <map> #include <iostream> #include <stdio.h> void leftClick(int x, int y); void leftClickResPos(POINT pt, int delay); void moveMapUp(); void moveMapLeft(); void moveMapDown(); void moveMapRight(); //void ClickZaapHavreSac(); //void ClickHavreSac(); void trajetAstrub(); void trajetBanqueAs...
77fb9b81122a349153d91eeee54036b987297a1b
8e7563423fb079bd3858f8066d363552028050cb
/experiments.cpp
2425e0877206547181b39a3ac272d223703600b8
[]
no_license
NathanieldPW/AJCAI2018
418b5f786813665478329ce0f897af04ac82665d
6d9c8550f6501584d9af7dac0df56bcfddeef0c6
refs/heads/master
2021-04-06T07:56:34.519936
2018-03-12T10:30:01
2018-03-12T10:30:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,870
cpp
experiments.cpp
#include "experiments.h" #include "train.h" #include "utils.h" #include <ctime> void deterministic_experiment() { int numRows = 1; int numCols = 101; int startRow = 0; int startCol = 50; GridWorld nonCLEnv(numRows,numCols,startRow,startCol); nonCLEnv.place_goal(0,100); nonCLEnv.place_hazard(0,0)...
2426fc8ec4303a1f1c334965aa735251505a2af7
7a03f3324e68f9b43214077db5adb57e3609194f
/Kriging.cpp
022bba497658c12c6f00c50c20eb288df4852ce3
[]
no_license
hliu119/GIS-Algorithms
e6aec36071f852ad911fafbbe279631b03e4d38c
b444e838603ba32ae5a6c43eab63c84a1373fce3
refs/heads/main
2023-01-06T12:28:55.775086
2020-11-04T00:24:49
2020-11-04T00:24:49
309,829,357
0
0
null
null
null
null
GB18030
C++
false
false
5,603
cpp
Kriging.cpp
#include <stdio.h> #include <math.h> typedef struct point { int x; int y; float z; }point; typedef struct gamah { float h;//距离 float value;//半方差值 int n;//点对数 }gamah; float inv[10][10] = { {-0.0766601562,0.0227508545,0.0128326416,0.0353393555,-0.00767898560,-0.00922393799,0.00632095337,0.009094...
5428d264f9951fd70761373790dcf4e41e4a0251
d2190cbb5ea5463410eb84ec8b4c6a660e4b3d0e
/old_hydra/hydra/tags/apr07a/pid/hpidreconstructorpar.cc
1e27e787f81b981c1ae5a9b36c141ceea489cb38
[]
no_license
wesmail/hydra
6c681572ff6db2c60c9e36ec864a3c0e83e6aa6a
ab934d4c7eff335cc2d25f212034121f050aadf1
refs/heads/master
2021-07-05T17:04:53.402387
2020-08-12T08:54:11
2020-08-12T08:54:11
149,625,232
0
0
null
null
null
null
UTF-8
C++
false
false
1,029
cc
hpidreconstructorpar.cc
// @(#)$Id: hpidreconstructorpar.cc,v 1.3 2006-08-16 16:13:35 halo Exp $ //*-- Author : Marcin Jaskula 10/10/2002 //_HADES_CLASS_DESCRIPTION //////////////////////////////////////////////////////////////////////////////// // // HPidReconstructorPar // // HPidReconstructor parameters with particles intensities // There...
2a11da20fa96075c47ccc6f7376bd36fc325e46e
d5c4cc228a3dbb91f22eca6e4000fbc5df58be3e
/include/cantera/zeroD/FlowDevice.h
17eec484200a5c068c57f61042846939aa9931c4
[]
no_license
songjunl/cantera
bd90048297451d9c75fc30cafafcc62de04b382a
643fdea8208d619d5168f4d66f80f684ca2d876d
refs/heads/main
2023-03-07T20:53:33.325176
2021-02-14T20:50:54
2021-02-16T19:00:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,446
h
FlowDevice.h
//! @file FlowDevice.h // This file is part of Cantera. See License.txt in the top-level directory or // at https://cantera.org/license.txt for license and copyright information. #ifndef CT_FLOWDEVICE_H #define CT_FLOWDEVICE_H #include "cantera/base/ct_defs.h" #include "cantera/base/global.h" #include "cantera/base/...
1b58b2f1307f37063b916db6e0ad65e067e2053c
4d3a458b136ffe806a8ec308cae08af33d7d91ee
/AsortymentDatabeseEdit.h
5352f037b886d4d631bb318e94d84ea81f079df9
[]
no_license
krakusooo/Projekt_Cpp
3c53e3a534bdbf3e1abaa8252a66349cac66e343
506ceee15f6277f909fe0a6730d1d87f1e341ab5
refs/heads/main
2023-05-31T06:48:33.994800
2021-06-11T09:18:42
2021-06-11T09:18:42
307,373,089
0
0
null
null
null
null
UTF-8
C++
false
false
1,807
h
AsortymentDatabeseEdit.h
#ifndef ASORTYMENTDATABESEEDIT_H #define ASORTYMENTDATABESEEDIT_H #include "Baza_asortymentu.h" #include "rental_database.h" #include "sizersv2Main.h" //(*Headers(AsortymentDatabeseEdit) #include <wx/button.h> #include <wx/frame.h> #include <wx/listctrl.h> #include <wx/sizer.h> #include <wx/stattext.h> #include <wx/tex...
379cda66ed546f01064350ab0249344d4bfe99a1
79655093bc7b13f63ce014d199e31ea1e9ae8d59
/TrainingFramework/src/GameStates/GameStatebase.cpp
9f0b1b6c4a6767eaba087669496b03063d09644a
[]
no_license
quanganh991/dynablaster
b8428230c114e66d6d5e0b69571e28d4da5be43d
3b12e0a1f6c7fb722865bcb4ee5ff4c04ec257be
refs/heads/main
2023-05-07T13:16:34.002469
2021-06-02T08:48:50
2021-06-02T08:48:50
348,183,231
0
0
null
null
null
null
UTF-8
C++
false
false
949
cpp
GameStatebase.cpp
/* #include "GSIntro.h" #include "GSMenu.h" */ #include "GSPlay.h" #include "GSBattle.h" #include "GSIntro.h" #include "GSMenu.h" #include "GSStageGameStart.h" #include "GameStatebase.h" #include "GSBattleGameStart.h" #include "GSBattleResult.h" std::shared_ptr<GameStateBase> GameStateBase::CreateState(StateTypes stt)...
d4d483709ce2b4db2d25a68d30807c1870823a1f
08f00b4204b19d4ff6f9d502e622cb822ca0a539
/src/mongocxx/test/spec/operation.hh
1f806c027403c605e2956426df54178a4a2e87f7
[ "Apache-2.0" ]
permissive
Nukhba/mongo-cxx-driver
ffb9b9414d88a111c5b10c731c83549b3b5734d1
ca7eee19c16c6750952824dcf6e4d7bd18b47dfc
refs/heads/master
2020-03-28T10:58:46.900311
2018-09-05T00:51:46
2018-09-05T16:44:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,693
hh
operation.hh
// Copyright 2018-present MongoDB Inc. // // 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...
fef48b02d2ffb049947d63ccaad00cb5f95f1ad5
310c510f20db78880f5362354c12e8839db90558
/CodeForAli/MERGE_NEW_ESG_CODE/PROD_CCG_V2.1_27032013/PRICER_GMXB_DLL/Utility classes/.svn/text-base/usefule_function.h.svn-base
c1c0b50b321d4affaf23e1ea72added968a1f9d4
[]
no_license
sdzouiten01/sz-project
da8a057726eb07b9b833d75a0d94822b0b264b05
f7b0057dad14b8c1eed0c8d25ef82749cf52ccda
refs/heads/master
2021-01-21T04:19:29.495647
2016-08-13T17:59:40
2016-08-13T17:59:40
37,811,086
0
0
null
null
null
null
UTF-8
C++
false
false
271
usefule_function.h.svn-base
#pragma once #pragma once #include <iostream> #include <sstream> #include <string> class Converter { public: template<typename T> static std::string convert_to_str(T& ip) { std::stringstream ss; ss << ip; std::string s; s = ss.str(); return s; } };
c3c2d0437658cd4ee17215896d2061631c382880
cfd33821398cede8c2aadd847d59b89d72d7e0a6
/NotWorkingStuff/Deprecated/Skype/src/skypekit/conversation.cpp
b970a55cbf3a710539c1ca2d2ab00abe26c9343e
[]
no_license
miranda-ng/deprecated
1c922e502d7ec35371a454131b9e5fa019e241fd
137526f743d2e8237845b7faea992989a7e8fbd7
refs/heads/master
2023-01-28T20:57:12.499530
2023-01-13T23:32:54
2023-01-13T23:32:54
71,989,840
3
3
null
2017-08-22T18:52:34
2016-10-26T09:53:01
C++
UTF-8
C++
false
false
378
cpp
conversation.cpp
#include "..\skype.h" #include "conversation.h" #include "..\skype_chat.h" CConversation::CConversation(unsigned int oid, SERootObject* root) : Conversation(oid, root) { this->room = NULL; } void CConversation::SetChatRoom(ChatRoom *room) { this->room = room; } void CConversation::OnChange(int prop) { if (this->...
fd7826d5e914caea41b3c73322474f71a6b63bf6
cecfda84e25466259d3ef091953c3ac7b44dc1fc
/UVa Online Judge/volume125/12578 10:6:2/program.cpp
19e07beab4c59f191eb4a31ce0ed53f0d659ea40
[]
no_license
metaphysis/Code
8e3c3610484a8b5ca0bb116bc499a064dda55966
d144f4026872aae45b38562457464497728ae0d6
refs/heads/master
2023-07-26T12:44:21.932839
2023-07-12T13:39:41
2023-07-12T13:39:41
53,327,611
231
57
null
null
null
null
UTF-8
C++
false
false
660
cpp
program.cpp
// 10:6:2 // UVa ID: 12578 // Verdict: Accepted // Submission Date: 2017-12-18 // UVa Run Time: 0.000s // // 版权所有(C)2017,邱秋。metaphysis # yeah dot net #include <bits/stdc++.h> using namespace std; const double PI = 2.0 * acos(0); int main(int argc, char *argv[]) { cin.tie(0), cout.tie(0), ios::sync_with_stdio(fa...
c98ac45ff1a8e94876401e14e1bb0249e0fef0ea
912dd33d3f599991612d253eae95015e37d568bc
/Longest Common Subsequence/LCS.cpp
c0ab1c5de1c64d8c86f4ab7656b7fce76eb32703
[]
no_license
pks18/Dynamic-Programming
fee33ed8aacb133c35cb7510a9fc125eb51ec026
69f7469fd9ede856d1026dabf023445e9c5eff04
refs/heads/master
2023-04-28T11:15:45.098850
2021-05-22T11:00:49
2021-05-22T11:00:49
220,718,906
0
0
null
null
null
null
UTF-8
C++
false
false
3,638
cpp
LCS.cpp
#include <cstdlib> #include <bits/stdc++.h> #define ll long long using namespace std; int lcs(string a,string b,int x,int y) //recursive solution { if(x>=0 and y>=0) if(a[x]==b[y]) return 1+lcs(a,b,x-1,y-1); else return max(lcs(a,b,x-1,y),lcs(a,b,x,y-1)); ...
d60d3eec2ee4b16a8631d01139ef20017f49c55b
7810760ab8cc62e58cb4676c877d52946888b97a
/utils/string_extension/string_extension.hh
9c82ec958ce4173ed7bb96992b00a94490d7ccb7
[]
no_license
wanghaiqiangk/libwhq
d468034a4d43795ce5092f882ccce74f9d62109b
0a474b1d5e0f1e6b0116a738fbd62fa4b4d80321
refs/heads/master
2023-03-30T14:00:36.887185
2021-03-31T16:54:40
2021-03-31T16:54:40
298,261,766
0
0
null
null
null
null
UTF-8
C++
false
false
688
hh
string_extension.hh
/** * \file Extensional functions to string standard library */ #ifndef STRING_EXTENSION_H #define STRING_EXTENSION_H #include <string> /** * \brief Replace all occurrences of sub-string * * Internally, this function use pure string's standard library to * accomplish replacing all sub-string with another ...
7c505c9ec90391c36e1683408c0f51d16bf4a946
9916afb6be17d3a5859091a49262f2fb48afa136
/framework/PVRAssets/Model/Model.cpp
3c0505fc448c3930ebfaaed8a1645823d571a9c6
[ "MIT" ]
permissive
orb1t/powervr-graphics-native-sdk
c94596b5de12cce71a2e9ff90c3aa1e45df4c8f5
e0ad6bcad43328e1fc5d9c5c3fa0c9c82a147768
refs/heads/master
2022-02-05T07:33:51.958906
2019-07-05T16:52:21
2019-07-05T16:52:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,717
cpp
Model.cpp
/*! \brief Implementations of methods from the Model class. \file PVRAssets/Model/Model.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRAssets/Model.h" #include "PVRAssets/Model/Camera.h" #include "PVRAssets/Mod...
471199ff5f8fd03026595b0c952aebda4ae8f539
0a7c429c78853d865ff19f2a75f26690b8e61b9c
/Legacy/generic_scene_graph/GSG/Core/PushPop.h
c4944c03b2d5f967ba17a76f30ee04fb53193897
[]
no_license
perryiv/cadkit
2a896c569b1b66ea995000773f3e392c0936c5c0
723db8ac4802dd8d83ca23f058b3e8ba9e603f1a
refs/heads/master
2020-04-06T07:43:30.169164
2018-11-13T03:58:57
2018-11-13T03:58:57
157,283,008
2
2
null
null
null
null
UTF-8
C++
false
false
882
h
PushPop.h
/////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2002, Perry L. Miller IV // All rights reserved. // BSD License: http://www.opensource.org/licenses/bsd-license.html // /////////////////////////////////////////////////////////////////////////////// ///////////////...
ff3cf8e664a64990db6a6a7aa7459223abda382c
60ddf1bb1b52bccbab0b83383bf9048f5288edc5
/cpp/lib/src/ops_cuda/cpu_vector_ops.cpp
395a3d30069be6973d783b7c069914e029c908ce
[]
no_license
DLFromScratch/DeepLearningFromScratch
6c70bbbc0852fce49d107168b9348ea16fcb51de
7410f74fbc78c8c28022d64fa0256078505e1135
refs/heads/main
2023-06-06T13:11:12.914650
2021-07-07T13:17:13
2021-07-07T13:17:13
350,328,765
0
0
null
null
null
null
UTF-8
C++
false
false
1,010
cpp
cpu_vector_ops.cpp
#include "vector_ops.h" #include <iostream> /* Code for CPU vector operations */ //------------------------------------------------------------------------ /* Addition operation: Input: - a, b input std::vector - c is output std::vector */ void CPUVectorOps::add( const std::vector<float>& a, const std::vector...
45003417baabd98bded89ff37766f6992d930c0e
f8200e441656f24efdcc1be0a571b670cb826b41
/examples/travellingsalesmanproblem.cpp
f4e5081378ba8033f400ce60ce8ff1fb51ab125a
[ "MIT" ]
permissive
daunfamily/heurisko
755a78c4990fb9f4a05726d40e9f079c820d1ba5
ffa34063f934f6935e5a462698dd9eb8616a8d75
refs/heads/master
2022-11-20T07:30:22.330379
2020-07-23T23:17:21
2020-07-23T23:17:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,249
cpp
travellingsalesmanproblem.cpp
#include <iostream> #include <memory> #include <random> #include <vector> #include "entities/solution.h" #include "examples/combinatorial/indirect/tsp.h" #include "solvers/differentialevolution.h" #include "solvers/parameters.h" #include "util/timer.h" #include "util/tspreader.h" #include "util/util.h" void travellin...
15bc30336df6fc5df095730ef0affc037beb7d34
fa39ee84e8ad36eca978f3243fc2cb3d16e1f444
/VERI YAPILARI AVL TREE/stack/include/Stack.hpp
26e22a51f3237fac0d5a498f0c95e1e025c495d9
[]
no_license
ozhanyildirim/University-Works
032c34f9136d151d34bb763b1d856ef25876fb98
cc51b5c2d3e96e234041f154f277545d5cebaee1
refs/heads/master
2023-02-15T17:42:21.450160
2021-01-12T10:56:50
2021-01-12T10:56:50
null
0
0
null
null
null
null
ISO-8859-9
C++
false
false
573
hpp
Stack.hpp
/** * @file Stack.hpp * @description Stack işlemi için class yapısı * @course 1A * @assignment 2 * @date 02.09.2020 * @author OZHAN NURI YILDIRIM */ #ifndef STACK_HPP #define STACK_HPP #define STACK_SIZE 8 typedef struct { int data[STACK_SIZE]; // stack boyutu int top; }stack; class Stack // sta...
0b75a686d5febdceecf30efca614f75d8c144f15
835be31fd44e8b7c2a7c09648764697cea5488db
/src/view.cpp
9a89c5592ee665b310f488a0ea5269b0dc349549
[]
no_license
scrime-u-bordeaux/simulationRainOfMusic
ffa940c771a8b0cbb3198c64327d123b75433311
8cb6609f80fd83288078af4e35c962f08d4d1bfb
refs/heads/master
2020-04-24T05:47:45.484074
2016-01-27T15:19:16
2016-01-27T15:19:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,669
cpp
view.cpp
#include "view.hpp" View::View(ofVec3f zoneDim): _zoneDim(zoneDim){ } //-------------------------------------------------------------- void View::drawBot(const ofVec3f position,const ofVec3f color, const ofVec3f size, const string& modelName, ofxAssimpModelLoader& model, float angle) { ofPushStyle(); ofSe...
d061f78b6f61f4f8a054317b6794255073f17012
a0ac0cb4113b731721c73dbca165f0f473e20435
/data/kernels/9423/0/common.h
78df1d24b396bb09b5fda926093ca9cfe0178ac4
[]
no_license
NTNU-HPC-Lab/LS-CAT
93f2d5d24937c518a8a216e56e54961658fcaab8
83a50786eee2de633be477819c044d2c9a1ad076
refs/heads/master
2023-08-22T11:53:35.114641
2023-08-08T14:12:14
2023-08-08T14:12:14
380,981,826
0
2
null
null
null
null
UTF-8
C++
false
false
470
h
common.h
#ifndef COMMON_CUH #define COMMON_CUH #include <vector> #include <iostream> #define MAX_BLOCK_SIZE 1024 void Task1(); void Task2(); void Task3(); bool GoodMiltiplication(std::vector<unsigned> const& a, std::vector<unsigned> const& b, std::vector<unsigned> const& result); template <typename T> void WriteVector(st...
b2a327ee581cb2a2f58e49ff2aaf8d53b7d2d402
0648ca7f781e15f1f3084c7c9c5b1be09545007e
/editDistance/editDistance.cpp
17f6399058a53a58abeefdc98afa0ee228de8de5
[]
no_license
cy2260/leetcode
0472c204be2d270bbdaab0fae83435edd0d42782
e34600d87fb4d4b10975de71cf08fa2310382cd0
refs/heads/master
2021-01-15T10:47:26.413051
2013-06-24T14:07:36
2013-06-24T14:07:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
863
cpp
editDistance.cpp
class Solution { public: int minDistance(string word1, string word2) { if( word1.size() == 0 ) return word2.size(); if( word2.size() == 0 ) return word1.size(); int w1Len = word1.size(); int w2Len = word2.size(); int dp[w1Len+1][w2Len+1]; fo...
c8e50ef2f7d8262157a677d0abda23214441fbee
d779871bd611329186091d47742d2438ff300daa
/adventureGame.cpp
24df127ad81d3f28db89ce7d382fcb166e93abf6
[]
no_license
Keeganfn/CS-161-Coursework
01aa535c7e654ec37b1335242116a41ed1f56b76
6d3b442366bb178b60f29c75f36f67f657afc79e
refs/heads/master
2020-04-25T08:22:20.163294
2019-03-25T02:10:07
2019-03-25T02:10:07
172,644,972
0
0
null
null
null
null
UTF-8
C++
false
false
5,493
cpp
adventureGame.cpp
/********************************************************************* * ** Program Filename: adventure.cpp * ** Date:1/20/19 * ** Description:Text based adventure game * ** Input:The user will input 1 or 0 * ** Output:The output will be a line of text and present the user their options * ***********************...
54cf9aaf7f3b2c6bd3220f8e73927f263dcbe72f
b4cb3760b0b96e9093106e2ea646d8459f4ce1f6
/chuyen_so_ngay_sang_nam_tuan_ngay.cpp
be1bd9881c82aa6f4ba72897314b61c5e88012b6
[]
no_license
ngoquanghuy99/C-CPP-problems-and-solutions
461526ab9ec2cafa280031f94720a87926793539
ca3e06be1c84ca9b7ad09f7464be71020defd223
refs/heads/master
2022-11-06T14:43:07.800730
2020-06-16T12:16:32
2020-06-16T12:16:32
135,458,944
3
0
null
null
null
null
UTF-8
C++
false
false
178
cpp
chuyen_so_ngay_sang_nam_tuan_ngay.cpp
#include<iostream> using namespace std; int main(){ int n, n1, n2; cin>>n; n1 = n2 = n; int x = n1/365; int y = (n2%365)/7; int z = (n%365)%7; cout<<x<<" "<<y<<" "<<z; }
7512f610a0a89a026afedf082b282c3d07adb058
987b56f54d86a73a15624f7c763ac7dc741361a0
/src/exception/orderLimitReached/orderLimitReached.h
ef5953697eda116fe7fafb31ec0025991d901567
[]
no_license
biromiro/feup-aeda-project
0d47be656f5e4fa584e8a33d2471aa49963ae722
e0f31d00266b7a6aa6296d7273a31e6795c462ef
refs/heads/main
2023-02-08T14:45:46.454366
2021-01-04T23:06:41
2021-01-04T23:06:41
303,830,242
0
1
null
2021-01-04T21:54:45
2020-10-13T21:13:52
C++
UTF-8
C++
false
false
1,242
h
orderLimitReached.h
// // Created by Danny on 21/12/2020. // #ifndef PROJECT_ORDERLIMITREACHED_H #define PROJECT_ORDERLIMITREACHED_H #include <iostream> #include <exception> #include "../../model/transactions/merch/merchRequest.h" /** * @file orderLimitReached.cpp * * @brief Exception for when a viewer tries to order merchandising b...
61ac46119aa714f68514ed913cc2f4eef255b7d3
b8d1007362afcd7dbe85ff82745217388c435150
/LUOGU/1208.cpp
3ee439915bd027585f5b91d412fa3f55dd485be4
[ "MIT" ]
permissive
PIPIKAI/ACM
5ef5bcd0193ed49e48806cca64875c1abaa00c42
b8e4416a29c0619946c9b73b0fe5699b6e96e782
refs/heads/master
2021-07-19T02:29:04.010478
2020-08-03T01:36:58
2020-08-03T01:36:58
200,979,733
0
0
null
null
null
null
UTF-8
C++
false
false
583
cpp
1208.cpp
#include<bits/stdc++.h> using namespace std; typedef long long ll; struct node { int a,b; }f[5200]; bool cmp(node a,node b) { return a.a<b.a; } int n,m; int main() { ios::sync_with_stdio(false);cin.tie(0); cin>>n>>m; int sum=n,ans=0; for(int i=0;i<m;i++) { cin>>f[i].a>>f[i].b; } sort(f...