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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b45e04ba75e3fc7921e45d96bf2a57e2c3fb4240 | 9cb14eaff82ba9cf75c6c99e34c9446ee9d7c17b | /uva/sales.cpp | 386bf33c7771e14c1c32d740597b705b5bee954e | [] | no_license | rafa95359/programacionCOmpetitiva | fe7008e85a41e958517a0c336bdb5da9c8a5df83 | d471229758e9c4f3cac7459845e04c7056e2a1e0 | refs/heads/master | 2022-02-19T06:43:37.794325 | 2019-09-02T15:09:35 | 2019-09-02T15:09:35 | 183,834,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | cpp | sales.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ll t;
cin>>t;
for(ll i=0;i<t;i++){
ll a;cin>>a;
vector<ll> arrA;
for(ll i=0;i<a;i++){
ll aux;
cin>>aux;
arrA.push_back(aux);
}
ll ans=0;
for(ll i=1;i<a;i++){
for(ll j=0;j<i;j++){
if(arrA[j]<=... |
1105d51e8376d5230faf0d3b2ee260072c7cff17 | 60205812b617b29713fe22dcb6084c4daed9da18 | /01-Question_after_WangDao/Chapter_02/2.2/T11_00-WangDao_Original.cpp | 7819d86348f0bfad1717a7160a69da8ca6d7dee9 | [
"MIT"
] | permissive | liruida/kaoyan-data-structure | bc04d6306736027cb5fc4090a2796aca7abbbaa4 | d0a469bf0e9e7040de21eca38dc19961aa7e9a53 | refs/heads/master | 2023-04-02T19:57:49.252343 | 2021-01-03T07:20:11 | 2021-01-03T07:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,196 | cpp | T11_00-WangDao_Original.cpp | #include <iostream>
using namespace std;
typedef int ElemType;
typedef struct {
ElemType *data;
int length;
} SqList;
void outPutList(SqList L) {
for (int i = 0; i < L.length; i++)
cout << L.data[i] << " ";
cout << endl;
}
SqList initList(int arr[], int length) {
SqList L;
L.length = ... |
281a44e71f1dafac2553b34148b23bea69ab084c | 3970d59a547fe82174b96e3afd7951bfa5884cf4 | /lab1/server.cc | 13cf0e31bda215a0dbfd0b0f93eb170bc313d7cc | [] | no_license | magical/cs478 | 4d929c418bbf0adbbd385a4fe2704107e4557276 | 64675fd3e1d81ab90ddc560d30412ef06b01f447 | refs/heads/master | 2020-03-18T02:45:52.688091 | 2018-05-21T06:20:14 | 2018-05-21T06:20:14 | 134,206,209 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,980 | cc | server.cc | #include <iostream>
#include <string>
#include <unistd.h>
#include "zmq.hpp"
extern "C" {
#include "miracl.h"
}
#include "puzzles.hpp"
using std::string;
zmq::message_t empty;
std::string tostring(uint64_t t) {
std::string s(8, '0');
s[0] = (char)(t & 0xff);
s[1] = (char)((t>>8) & 0xff);
s[2] = (char)((t>>16) ... |
1cd7dc78ec7a7cdc5d4938fcc181fd9ad8245a20 | 5e16bdc8da61393ac4548aa8ffd6bdbfdb466495 | /chapter02/p54.cpp | 4b6d3737852fc55d1b4c29d3ea54f355597dd31e | [] | no_license | TolicWang/C-Plus-Plus-Primer-Edition-5 | 38610bd03dfb7800cc965c5d8f325552f7d50e60 | b897381d407f7278431397c54a080b39fdc95f9c | refs/heads/master | 2021-01-19T09:54:50.836805 | 2017-06-13T10:29:00 | 2017-06-13T10:29:00 | 87,797,677 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 413 | cpp | p54.cpp | /*************************************************************************
> File Name: p54.cpp
> Author: Tolic
> Mail: mr_king1994@163.com
> Created Time: Sun 02 Apr 2017 10:04:23 AM CST
************************************************************************/
#include<iostream>
using namespace std;... |
9be01c97c61e85dac87a63835b794a52fd1703e5 | 318f4c88ea77251660e7dbee9182ca138d7b95d9 | /Cplusplus/rotateArray.cpp | 74aa23a73f468781b0c3c73523588ca7d58abcbf | [] | no_license | Sahil12S/LeetCode | b1548aec56c7eb30139b0f2975329c6ed9034379 | 5a9916827e969cd4adbc394779e1bb3ba576f6e2 | refs/heads/master | 2021-06-02T07:39:00.503814 | 2020-09-23T03:21:53 | 2020-09-23T03:21:53 | 145,740,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 701 | cpp | rotateArray.cpp | // Given an array, rotate the array to the right by k steps, where k is non-negative.
#include <iostream>
#include <vector>
using namespace std;
void rotate(vector<int>& nums, int k);
int main(int argc, char const *argv[])
{
vector<int> nums{1,2,3,4,5,6,7,8,9,0};
rotate(nums, 4);
for (int n : nums) {
... |
3d82286d19186b96661a6cfd86050f5c9563c31c | c48067c6986bdcfc2787b834e40bde88e9a520ad | /utility/utilities.h | d64e3055820cb00659f23a271fd94a5e3712257f | [] | no_license | leoking01/PlatForm | c6fa1140143e9cb2e853695e469ade69e4c47a1d | 5c493c5ea90f8cce50cccb36fe929f94819eae87 | refs/heads/main | 2023-06-06T02:12:35.196369 | 2021-07-02T01:02:32 | 2021-07-02T01:02:32 | 382,192,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | h | utilities.h | //
// Created by alex on 2021/7/1.
//
#ifndef VISIONCOMPAREBENCH_UTILITIES_H
#define VISIONCOMPAREBENCH_UTILITIES_H
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <strstream>
#include <string>
#include <list>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <memory... |
e673a00471d6a4530689766bcf15f3265d58b8a5 | 7f62f204ffde7fed9c1cb69e2bd44de9203f14c8 | /DboClient/Tool/NtlWE/SLPropDlg.h | 6e1556f680674871acd572bbd4442c2afc2b7e69 | [] | no_license | 4l3dx/DBOGLOBAL | 9853c49f19882d3de10b5ca849ba53b44ab81a0c | c5828b24e99c649ae6a2953471ae57a653395ca2 | refs/heads/master | 2022-05-28T08:57:10.293378 | 2020-05-01T00:41:08 | 2020-05-01T00:41:08 | 259,094,679 | 3 | 3 | null | 2020-04-29T17:06:22 | 2020-04-26T17:43:08 | null | UTF-8 | C++ | false | false | 955 | h | SLPropDlg.h | #pragma once
#include "colourpicker.h"
#include "afxwin.h"
#include "NtlWorldSLManger.h"
class CSLPropDlg : public CDialog
{
DECLARE_DYNAMIC(CSLPropDlg)
public:
CSLPropDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CSLPropDlg();
enum { IDD = IDD_ATTR_SL };
protected:
virtual void DoDataExchan... |
a81be1fa64529a27256919cca7e68eecdb66f554 | c7c48790f1988bd22a4e6dfa3743788c1697f077 | /parser/parser_expr.hpp | 738a7cce0c4fe72ddbc83a756568e8d25d9c5327 | [] | no_license | NotMichaelChen/CS6413 | 9d6d77fdd5d4047f3d08a4cf2d7de5b8fa0271e6 | 04ce66b7fd5620f85b06c53c71ecfe70869340f3 | refs/heads/master | 2020-03-14T09:10:45.961820 | 2018-05-05T05:04:44 | 2018-05-05T05:04:44 | 131,540,007 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | hpp | parser_expr.hpp | //Michael Chen - mzc223 - CS6413 - Spring 2018 - Boris Aronov
#ifndef PARSER_EXPR_HPP
#define PARSER_EXPR_HPP
#include <string>
struct ExprResult
{
bool isint;
//Represents which memory location the result of the computation is in. Negative if literal
int resultloc;
//Only access the one indicated b... |
333940bdb5d4e6042eef5d8877739fc92b1fca07 | 864a03b8cb1debb3a4fefc284d8406c6e4306db8 | /classNormal.cpp | 47fb059801b862cbd6a61601254d52d302938b3a | [] | no_license | dimkael/VRMLConverterToDirectX | cecb8366a586b11b1d23922be4bc0eba96264e99 | f37cf7506e2e24b1543dfd44a7e31bec86298fa3 | refs/heads/master | 2023-04-01T14:07:10.840860 | 2021-04-10T22:22:39 | 2021-04-10T22:22:39 | 356,703,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | classNormal.cpp | #include "classNormal.h"
Normal::Normal() : def("") {}
Normal::Normal(string _def) : def(_def) {}
void Normal::writeX(ofstream& file) {}
Normal::~Normal() {
del(vector);
} |
9ae5a25414ab22f9e9eccbf261b03e7e651ac4a3 | 117ffa29d63005010f2658d8e65461a7944528ab | /src/memory.cpp | 422f93a7c5f59ac9615402e3d30d11fc665f7649 | [] | no_license | cwlroda/MIPS-Simulator | 7407c6c992481d772a8586582f61ae81f062d233 | e16fd5b5b46c716a523299d095d2527485636c53 | refs/heads/master | 2020-12-04T19:00:25.338880 | 2020-02-03T04:06:24 | 2020-02-03T04:06:24 | 231,875,354 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,555 | cpp | memory.cpp | #include "include/memory.hpp"
#include <iostream>
#include <cstdlib>
void RAM::loadtoMemory(unsigned char binstr){
unsigned int addr = ADDR_INSTR_OFFSET + offset;
try{
if(addr < ADDR_INSTR_OFFSET || addr >= (ADDR_INSTR_OFFSET + ADDR_INSTR_LENGTH)){
throw "Accessing out of bounds memory!";
... |
2b815f57e25c08125112de5650ce76781482324c | dc2f458cdf8fecd409e96394f6dd50af970d0ab4 | /util/YR_ThreadPool.cpp | be830a64a181952da589c1b82a212b02a8582cff | [] | no_license | Typedefintbool/youren | be2a0d301c03f1134beb9440ee529df41f36c01b | e9cefb275ad45f4f02cc48729ae610087f70028d | refs/heads/master | 2022-02-24T17:51:11.546574 | 2019-10-15T11:28:30 | 2019-10-15T11:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,783 | cpp | YR_ThreadPool.cpp | #include "YR_ThreadPool.h"
#include "YR_Common.h"
namespace youren {
YR_ThreadPool::KeyInitialize YR_ThreadPool::g_key_initialize;
pthread_key_t YR_ThreadPool::g_key;
YR_ThreadPool::YR_ThreadPool()
:_bAllDone(true)
{
}
YR_ThreadPool::~YR_ThreadPool()
{
stop();
clear();
}
void YR_ThreadPool::init(size_t ... |
3fc7d35c042de93114b3b5435d8f2538d501e624 | eab73a7acf3194b5d9f095aade9ca83ba2e9c5cb | /src/Pegasus/Common/tests/StatisticalData/StatisticalData.cpp | 66e1999d62c77077b3430446ae3a94e578fca885 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | edwardt/Pegasus-2.5 | f1af8e7c546d1ae50bbcbd0b5af752b111b5d895 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | refs/heads/master | 2022-03-17T17:34:46.748653 | 2013-07-23T13:21:50 | 2013-07-23T13:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,498 | cpp | StatisticalData.cpp | //%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... |
96b750cc2b5cabd72fd1c3b73a503073b32fb65d | 1619d31e3f7db1661bfa13560fa51bed75e6de5f | /Snake-And-Ladders/models/Ladder.h | a8059aeefac42104cbc6d3ac2f63e1eca4db5292 | [
"MIT"
] | permissive | abdul699/Machine_Coding | 7603e115fd38331d4d40442ba0c160f57df8972a | 7e71397aa25a77d7d96c4117eda8b473af341d4a | refs/heads/main | 2023-03-06T07:08:10.790465 | 2021-02-18T18:23:47 | 2021-02-18T18:23:47 | 339,701,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | h | Ladder.h | #pragma once
#include<iostream>
using namespace std;
class Ladder {
int start, end;
public:
Ladder(int start, int end);
int getStart();
int getEnd();
void setStart(int start);
void setEnd(int end);
}; |
ef8e99db292896bf1102b4c44e244551686e1cf5 | d979e3b9f5fd2b1324af677eb3068dfb676267f3 | /src/LightSwitch/Configuration.h | a65098fb4990a07f78505463378d343917f850e0 | [
"MIT"
] | permissive | krconv/iot-devices | 42d17323555efabb244059082a124e6c6aafef5b | 8bdd2f0cfbdc7d4f8489264870e5a4e745c1151d | refs/heads/main | 2023-03-03T17:24:22.934496 | 2021-02-16T12:24:48 | 2021-02-16T12:24:48 | 335,498,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | h | Configuration.h | #pragma once
#include <Arduino.h>
#include <string>
#include "../Common/Configuration.h"
#include "../Common/Types.h"
#include "../Setup.h"
namespace LightSwitch
{
namespace Configuration
{
inline static pin_t getButtonPin()
{
return PIN_BUTTON;
}
constexpr inline static voltage_t getButt... |
8208523caa696da3ffb1155783d932c5d2228f14 | 6fd7d4463602194d1dd69dec887fcf2891937a2a | /RenderKit/cappedcylindertriplebondgeometry.cpp | 96362cfa0bccc2d1e9847b59939f484e915e5593 | [
"MIT"
] | permissive | gnvramanarao/iRASPA-QT | 1039cfea17357a5c27ec21b32bbbc2fdd5dcdfc8 | d63adefa8e66daf4dfaf4c5899cdaa2477b756d1 | refs/heads/master | 2022-12-01T20:21:29.741523 | 2020-08-09T15:21:06 | 2020-08-09T15:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,622 | cpp | cappedcylindertriplebondgeometry.cpp | #include "cappedcylindertriplebondgeometry.h"
#include "cappedcylindersinglebondgeometry.h"
#include <algorithm>
#include <float4.h>
CappedCylinderTripleBondGeometry::CappedCylinderTripleBondGeometry(double r, int s)
{
_slices = s;
_numberOfVertexes = 3*(4 * _slices + 2);
_numberOfIndices = 3*(12 * _slices);
... |
587e4d44667c15eb39691a2d9a1a81dd0f243fca | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/audiofile/all/test_package/test_package.cpp | 6943fcec35d57205766dd1a9466bddad6182dc4e | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | C++ | false | false | 276 | cpp | test_package.cpp | #include <AudioFile.h>
#include <iostream>
int main(int argc, char **argv) {
if (argc < 2) {
std::cerr << "Need at least one argument" << std::endl;
return 1;
}
AudioFile<double> audioFile;
audioFile.load(argv[1]);
audioFile.printSummary();
return 0;
}
|
2024313dc8053a45ca77752271f0bee818b079a8 | 91c85b8f40ae85c07ea33edbafe8d79b766cf112 | /Assignment 3/Assignment 3/BaseEventData.h | a9ca3f6f524f5ea61b66b199363eefd20f4453f7 | [] | no_license | JeffreySmalley/EngineDesign-Jeff-Rob | f14f7c2690f7511cc391d4995cdc66ac98aee0bf | 00b147270bb597f2408830434d660f2ba9cbbc9c | refs/heads/master | 2021-05-28T01:44:50.131285 | 2014-12-16T04:46:49 | 2014-12-16T04:46:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | h | BaseEventData.h | #include "IEventData.h"
class BaseEventData : public IEventData
{
private:
const float m_timeStamp;
public:
explicit BaseEventData(const float timeStamp = 0.0f) : m_timeStamp(timeStamp){}
virtual ~BaseEventData();
// Returns the type of event
virtual const EventType& VGetEventType(void) const = 0;
}; |
311c5befae4f18341c06cd51267c04559743d99a | 7ad71b57a48ccfdb82bdad59953006ad9a410af2 | /ConjPrior.h | b9bbd46a186c0f2fff5fad97664b3420fb2972a6 | [] | no_license | scherman/algo2-tp3-pokemon_go | f2277af768a6b00153e22b5d141e770be02a9097 | 9f288f80f659329cf70d096181880a4881005ba5 | refs/heads/master | 2020-07-27T11:13:29.998879 | 2016-12-04T00:44:58 | 2016-12-04T00:44:58 | 73,429,910 | 0 | 2 | null | 2016-11-19T20:34:36 | 2016-11-10T23:35:02 | C++ | WINDOWS-1250 | C++ | false | false | 6,231 | h | ConjPrior.h | #ifndef CONJPRIOR_H
#define CONJPRIOR_H
#include <iostream>
#include "aed2.h"
using namespace std;
using namespace aed2;
class ConjPrior
{
private:
struct nodo;
public:
//clase exportada
struct elem{
Nat campo1 ;
Nat campo2;
elem( Nat a,Nat b) : campo1( a), camp... |
3a56cb36bb8d40263f631114541682d884f9073c | 66a7c9a3eafca6f956edc23e02b0b210385d2475 | /mls-mpm88_3d/MarchingCubes.h | 6884c8af53300bdb8275d868e0fd4c3ca7a99646 | [] | no_license | juniorcarvalho07/mls | 1d474ee2b9ca42ff46b2e2cad77374e935c3aea0 | c4db6d456404d9cf31cdd2252136af1fa4316ce6 | refs/heads/master | 2020-07-14T20:35:10.228466 | 2019-10-17T15:14:42 | 2019-10-17T15:14:42 | 205,395,608 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,966 | h | MarchingCubes.h | /**
* @file MarchingCubes.h
* @author Thomas Lewiner <thomas.lewiner@polytechnique.org>
* @author Math Dept, PUC-Rio
* @version 0.2
* @date 12/08/2002
*
* @brief MarchingCubes Algorithm
*/
//________________________________________________
#ifndef _MARCHINGCUBES_H_
#define _MARCHINGCUBES_H_
#define ... |
9eb0cb2a74f874213850b67bc3f15cacdfb70a9a | 25f69259c6190a6ca57942dbdb95e333c8b32da0 | /sandbox/hello.cpp | 8210c5c7a5559a09de11e6472f38bed9659e4d5b | [] | no_license | raymonraymon/code | 649ec81640433b957e07be8f5884752fe5a87d18 | 51a4b0f8f135847bdd4db83aa9d501f185fe871d | refs/heads/master | 2021-01-17T14:02:31.255136 | 2017-07-04T10:29:37 | 2017-07-04T10:29:37 | 61,924,859 | 0 | 0 | null | 2017-07-04T10:29:37 | 2016-06-25T03:19:31 | C++ | UTF-8 | C++ | false | false | 358 | cpp | hello.cpp | #include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
printf("Hello world!\n"); // 教科书的写法
puts("Hello world!\n"); // 我最喜欢的
puts("Hello" " " "world!"); // 拼接字符串
cout << "Hello world!" << endl; // C++风格的教科书写法
return 0;
} |
101fce979ff705d98243a8b2b56245adb0d36000 | 1be60aa8bec3ced9a169be6c87f6812cb8443a7a | /2015/d15.cpp | 2cd755972861925724af71611e4ddfbaaf845a59 | [] | no_license | tamaskenez/advent-of-code | 4f863c29ee2bb12c927f0d90b9987b198c30aed1 | 6c1315f94c13b67d41c141256519841d59c67480 | refs/heads/master | 2022-09-08T18:15:03.742902 | 2022-09-04T09:20:30 | 2022-09-04T09:20:30 | 231,270,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,426 | cpp | d15.cpp | #include "common.h"
using i64 = int64_t;
using VI64 = vector<i64>;
const vector<VI64> caps = {VI64{3, 0, 0, -3, 2}, VI64{-3, 3, 0, 0, 9}, VI64{-1, 0, 4, 0, 1},
VI64{0, 0, -2, 2, 8}};
const VS ingrs = {"Sugar", "Sprinkles", "Candy", "Chocolate"};
VI64 operator*(i64 x, const VI64& l)
{
... |
8289e7bb6f1e7a97607750edf4c1b76b838de9fb | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-iotsitewise/include/aws/iotsitewise/model/TumblingWindow.h | 5a6387f54a452bf2b764a8e1209f2c69204ec020 | [
"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 | 26,227 | h | TumblingWindow.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;... |
d903c9f053626a0160c7fd36626b272c7b71af7c | 01d4359173c703e217370f3c063e13d002110fa1 | /BFS.h | b695c5aeca82f61a5d5898d9769111871e7c65d4 | [] | no_license | amitkoz/Milestone-2 | c704cf799d1564c567639181269bbacbf5847bc0 | c02132f3907a7f4a40924569923021019d2ec264 | refs/heads/master | 2022-04-03T07:44:46.227302 | 2020-01-26T16:33:00 | 2020-01-26T16:33:00 | 235,830,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | h | BFS.h | #ifndef EX4_BFS_H
#define EX4_BFS_H
#include "Searcher.h"
#include "MatrixSearchable.h"
#include <bits/stdc++.h>
using namespace std;
class BFS: public Searcher {
public:
vector<this_state *> search(Searchable<this_state> *searchable) override;
};
#endif //EX4_BFS_H
|
64096c79ed2ba8e2607fbb8894088c19e3388698 | f65ec23ed0dd258c04808d52e19ee45e7d695d73 | /알고리즘/7193.cpp | e552cc0241666bc47de8e3516736d4f049b62ae1 | [] | no_license | mznx13579/CODESTUDY | 04df5e6d1364b334bb848477cce63662ba27b644 | 7ba8bab4e923896c4379cb5da541148906204988 | refs/heads/master | 2021-07-25T17:53:15.694048 | 2020-09-05T08:31:51 | 2020-09-05T08:31:51 | 184,990,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 981 | cpp | 7193.cpp | #include<iostream>
using namespace std;
int iy[9];
int ky[9];
bool checkArr[9];
int win;
void permutation(int idx, int ky_score, int iy_score){
if(idx==9){
if(ky_score>iy_score) {
win++;
return;
}
return;
}
for(int i=0; i<9; i++){
if(checkArr[i]==fals... |
31f4db85f70823576899dedc134dca71f3451267 | a923165a84ee40771f8d1bde425290432a73a4d2 | /Tests/TestWindows/Main.cpp | 82f59e18b5a279974fe9410676282155e2bc1e90 | [] | no_license | SimoHayha/Engine | 5ba108cdae4d5303f3e740a5823f112d82ff759c | 2660a6fcef7e9a808e8d313712df035d3762f5bf | refs/heads/master | 2020-12-30T09:51:37.824399 | 2018-10-02T20:08:28 | 2018-10-02T20:08:28 | 150,993,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 264 | cpp | Main.cpp | #include <iostream>
#include <Engine/Engine.hpp>
using namespace Ngine;
int main(int ac, char** av)
{
auto ngine = std::make_unique<Engine>();
int32_t exitCode = ngine->Run();
std::cout << "Press enter to continue...";
std::cin.get();
return exitCode;
} |
5b91577bfab4f48b477a6db5b7e13d74c2332566 | 752ddaca71f6729c7ea8d852e77e789591b8315b | /AdvancedLevel/1058.cpp | 9c34ae162c02e09b161a05e60974312f397c0248 | [] | no_license | Edith-vis/PAT | 79b5f7aca10693a432525704b90f912999e4d4ad | 4ebb8eb01c6e5d6829c854a809f1989ced7b4d02 | refs/heads/master | 2022-02-09T06:34:14.138081 | 2019-07-31T09:10:46 | 2019-07-31T09:10:46 | 172,714,092 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | 1058.cpp | #include <iostream>
using namespace std;
int main() {
freopen("D:/in.txt", "r", stdin);
long long int a, b, c, d, e, f;
scanf("%lld.%lld.%lld %lld.%lld.%lld", &a, &b, &c, &d, &e, &f);
long long int num = (a+d)*17*29 + (b+e)*29 + (c+f);
long long int g = num / (17*29);
num = num % (17*29);
... |
1a16f92e81006b180581b01e886a47ebec41f936 | 9a955648aa0bedb9f1103abaf302979b5b61e87c | /basic/tree/binomial_tree.cpp | 9f794dac06849852480a6437ff3c529033de866c | [
"Apache-2.0"
] | permissive | sanjosh/smallprogs | 363641b0d41d95550b977d6dead3ed74f1fd62be | 8acf7a357080b9154b55565be7c7667db0d4049b | refs/heads/master | 2021-12-23T21:54:48.619529 | 2021-11-01T07:25:33 | 2021-11-01T07:25:33 | 25,510,383 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | binomial_tree.cpp | /*
http://stackoverflow.com/questions/13849381/disjoint-sets-data-structures-and-binomial-trees?rq=1
TODO
Has subtrees of order 1, 2, 4, 8 - with a root - hence binomial tree of order k has 2^k nodes and (k/d) nodes at depth d
to merge 2 binomial trees of order k, attach one as leftchild of root of other
http://... |
882063acd20f93cd5911911e14fb1dd0bbdc3838 | 57b0279f10421e713ed1a07fbd6a65ea71bbfd0f | /src/Simulator/glSimulation.cpp | 77ec1f23e6668b1009594757364aad1cb4d1c011 | [] | no_license | mikoval/GraphicsProject | 97d37c25103c25f140138b022c188866c3cff304 | 6a28f0fc4f16c9670c9ed057ca790681b007d77c | refs/heads/master | 2021-07-16T21:55:18.544692 | 2020-06-30T01:53:47 | 2020-06-30T01:53:47 | 180,271,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,358 | cpp | glSimulation.cpp | #include <Simulator/glSimulation.h>
#include <Core/glContextUtil.h>
#include <Controls/Controls.h>
#include <Core/SceneLoader.h>
#include <Core/Base.h>
#include <Cameras/OrbitalCamera.h>
#include <Controls/CameraInputManager.h>
#include <Utils/FBOUtils.h>
#include <TexturePrograms/glTextureDisplayProgram.h>
#include <T... |
02ba3f50b2a0d65de93436ec94214fc27e47836d | e9b34a1896d28125035d945f3ac33ce6ef37ed21 | /Jeopardy/Jeopardy.ino | a78f2730fb06ec00ce49886ace1270bda31087d6 | [] | no_license | sxlijin/Stuy-Jeopardy | 418d522dbad1dc406f60df6e40f51fa5552ca9ff | f39faa9cc9411b025a8ba18277130e4f3f60c00b | refs/heads/master | 2021-01-17T10:38:10.073396 | 2014-06-07T02:54:12 | 2014-06-07T02:54:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,378 | ino | Jeopardy.ino | /**
* Stuyvesant Jeopardy System
* @author FRC694
*
* This system is a replica of Jeopardy and works as follows:
* - There are 4 "contestants": 1 parent, 1 teacher, 1 alumnus, 1 team of students
* - The team of students consists of 4 students
* - The moderator asks a question.
* - The contestants buzz to answ... |
c0a386650c9f3ae133f6a5852b5a857bd259cc10 | cc88f042da9e65aad45d9b09cf43de4f8c255849 | /src/Titulacion.h | 09c14929834004e5e5f80e34e037b6ba51c1d3b6 | [] | no_license | frojomar/edi2015-16 | 20370c21cb3cb1fba5414c4cb87879531a1ab327 | 104d19034fcf6845a4506aaddeb1f0e5d144ddb9 | refs/heads/master | 2020-03-29T23:40:24.116938 | 2018-09-26T20:08:53 | 2018-09-26T20:08:53 | 150,483,297 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,023 | h | Titulacion.h | /*
* Titulacion.h
*
* Created on: 07/03/2016
* Author: FRANCISCO JAVIER ROJO MARTÍN DNI:76042262-F
*/
#ifndef TITULACION_H_
#define TITULACION_H_
#include <cstring>
#include <iostream>
#include "ListaEstudiantes.h"
#include "ColeccionEstudiantes.h"
using namespace std;
class Titulacion {
private:
int c... |
ca17ddbc4098548f4bf0155b1d73e128f5471dc3 | b39e187e9d47d9fd3470d6f25fdd3a92eb25f11b | /source/design/MatrixConverter.cpp | 08ec50ae39a1576ea492a74b258e8011310ead15 | [
"MIT"
] | permissive | SlimDX/slimdx | b0e22cb26b5da34ad3dd522ced54768b71b3e929 | 284f3ab1ddadc17b4091bfa7c7b9faed8bf0ded8 | refs/heads/master | 2022-09-02T19:14:14.879176 | 2022-08-31T03:04:57 | 2022-08-31T03:04:57 | 32,283,841 | 93 | 49 | MIT | 2022-08-31T03:04:58 | 2015-03-15T21:01:40 | C++ | UTF-8 | C++ | false | false | 6,729 | cpp | MatrixConverter.cpp | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... |
f37a35a1ea648c63bba4fba61446779606a08aa5 | bfcddd7d51dbffbaa97d43c8f9521f90a66bd9a5 | /Exercise-Function-2.cpp deivina.cpp | 6ba6ea552a113816a0964de7bbcb7ff370b25e6a | [] | no_license | DDWC1603/lab-exercise-chapter-5-deyvenaVisu | 31514b6442d08f9ec31fb08391d43af4f8ea8f56 | 4dc930039578d8addf1e4801792596b8c0e0cae8 | refs/heads/master | 2021-05-12T03:24:37.278326 | 2018-01-16T02:59:43 | 2018-01-16T02:59:43 | 117,615,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | cpp | Exercise-Function-2.cpp deivina.cpp | //this is an unfinish program
//finish up this program
#include <iostream>
using namespace std;
int sum(int x,int y);
int main ()
{
int result, sum;
char x, y;
x=4;
y=5;
cout<<"x=4"<<endl;
cout<<"y=5"<<endl;
result= x+y;
cout<<"The result is:"<<result<<endl;
}
|
d45634deae0bf2e2d4d07d2a7e766853d65971bd | 130fc6ecaf5f9e57ea64b08b5b6c287ce432dc1f | /Unreal 4/CppCourse/Source/CppCourse/CppCourseGameModeBase.cpp | 8ab2e9723c0dd5a182c74b3ed576787d26e2a9c7 | [] | no_license | Xuzon/PortFolio | d1dc98f352e6d0459d7739c0a866c6f1a701542d | c2f1674bc15930ce0d45143e4d935e3e631fe9c2 | refs/heads/master | 2021-01-17T15:05:08.179998 | 2020-05-13T17:26:19 | 2020-05-13T17:26:19 | 53,209,189 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cpp | CppCourseGameModeBase.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "CppCourseGameModeBase.h"
ACppCourseGameModeBase::ACppCourseGameModeBase()
{
DefaultPawnClass = ACppAdventurer::StaticClass();
}
|
bfa5354c946c1ee1fb9b6461d895badcdeb43eaa | f01435961bc41fbb8877d775619f38d057f49ee9 | /src/ncnn_ultraface.cpp | ef2c041384b308a52ea298f2f7d9808e8884b27a | [] | no_license | nilseuropa/ros_ncnn | 3a904d339add5fba31b4ac914e7d4d2ff1544130 | a7e08d3804ae582f0e6bf726a83d5e4c37d87c56 | refs/heads/master | 2023-03-22T07:47:29.167285 | 2021-03-14T16:12:25 | 2021-03-14T16:12:25 | 270,976,229 | 63 | 19 | null | 2020-06-11T11:56:20 | 2020-06-09T10:49:17 | C++ | UTF-8 | C++ | false | false | 6,504 | cpp | ncnn_ultraface.cpp | #include "ros_ncnn/ncnn_utils.h"
#include "ros_ncnn/ncnn_ultraface.h"
#include <iostream>
#define clip(x, y) (x < 0 ? 0 : (x > y ? y : x))
void ncnnUltraFace::init(int input_width, int input_length, float score_threshold_, float iou_threshold_) {
score_threshold = score_threshold_;
iou_threshold = iou_thres... |
c5092ef68ce766ce8124ae7559b6ae664b92ad0e | a851ee43f6acc20b8058f74abb7eb7afa094f553 | /AHW13_QT_Chats/Server/srvclient.h | cf1e06cfa398e7275894743a5dbc1b1d3b30f96d | [] | no_license | Kapurin/CPP_code_adv | e91ecdc7cbb300c1c6b1271cccc7e702dfb9f494 | 195a1c0577bd0b356a9f76b435dd7bb588984854 | refs/heads/master | 2022-11-16T20:42:41.896721 | 2020-06-14T15:43:55 | 2020-06-14T15:43:55 | 253,762,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | h | srvclient.h | #ifndef SRVCLIENT_H
#define SRVCLIENT_H
#include <QTcpSocket>
#include <QTcpServer>
class Srvclient : public QObject
{
Q_OBJECT
public:
Srvclient(QTcpSocket *client, uint16_t m_numclient);
~Srvclient();
private:
QTcpSocket *m_client = nullptr;
uint16_t m_numclient = 0;
public slots:
void s... |
0964b0b6c80db306f8ec11eb207412995c69df61 | da86d9f9cf875db42fd912e3366cfe9e0aa392c6 | /2020/solutions/D/VDB-Haskovo/password.cpp | dd61b4f65e209f4c829547bb4c16d1b0bf04a5d9 | [] | no_license | Alaxe/noi2-ranking | 0c98ea9af9fc3bd22798cab523f38fd75ed97634 | bb671bacd369b0924a1bfa313acb259f97947d05 | refs/heads/master | 2021-01-22T23:33:43.481107 | 2020-02-15T17:33:25 | 2020-02-15T17:33:25 | 85,631,202 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 755 | cpp | password.cpp | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
char s[5005];
char l[26];
struct povtoreniq
{
int Beg, End;
};
povtoreniq p[1000];
int main()
{
ios::sync_with_stdio(false);
cin.tie(NULL);
cin >> s;
for(int i=0; i<26; i++)
l[i]='a'+i;
int n = strlen(s), ... |
9c8f48200f484b0e5f652933121a6bec39b2c882 | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /chromium/components/autofill_assistant/browser/base_browsertest.cc | e31dc32c4a08f8007a713380e0bfe740c6636a6b | [
"BSD-3-Clause"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | C++ | false | false | 2,111 | cc | base_browsertest.cc | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill_assistant/browser/base_browsertest.h"
#include "content/public/test/content_browser_test_utils.h"
#include "net/test/embedded_test_server/embedde... |
bd51743708b306b633ad0b6ddfbaf5b89cd97889 | 895e5d3600f5c5a06d2cd23fc840de57223b4925 | /include/eosio/mysql_plugin/mysql_plugin.hpp | e4179cf7b991886633fff1f015a863b4da20cccf | [] | no_license | a610138467/mysql_plugin | 18e11c707f765a29bbc9bb7dda3a6ff0d21d82f4 | 8133132257b7b91b4c857fb9abbf12c57a88ed9f | refs/heads/master | 2020-05-18T00:32:23.475027 | 2019-04-29T12:21:01 | 2019-04-29T12:21:01 | 184,065,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,008 | hpp | mysql_plugin.hpp | #pragma once
#include <mysql.h>
#include <fc/io/json.hpp>
#include <appbase/application.hpp>
#include <eosio/chain_plugin/chain_plugin.hpp>
namespace eosio {
using namespace eosio::chain;
using namespace appbase;
class mysql_plugin : public appbase::plugin<mysql_plugin> {
public:
APPBASE_PLUGIN_... |
fa720cb2184d0af80a98419cb7d6116b2113ae86 | c7e14e1579d62ce3d1f60fe91e5c9426081b4b78 | /MathExpPlotter/Expression.cpp | f4829e066b144b29b4ef7e77a7caf47e1de34aa1 | [
"MIT"
] | permissive | JoshOY/math-expression-plotter | 3444d56b09e2931abbe010c401a325e2b4aaf18f | fddcfc1dead16f21db0fb731fc12ca3c7aac1cba | refs/heads/master | 2021-01-10T16:37:25.754098 | 2015-11-19T13:57:30 | 2015-11-19T13:57:30 | 44,462,189 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,112 | cpp | Expression.cpp | #include "Expression.h"
Expression::Expression()
{
this->exp_str = "";
this->exp_id = -1;
this->exp_color = 0x000000;
this->rangeStart = 0;
this->rangeEnd = 0;
this->enabled = true;
}
Expression::Expression(
string _init_exp_str,
int _init_exp_id,
COLORREF _exp_color,
double _rangeStart,
d... |
b00f98cc2e5118e58ab2c4cc3367fda2da42bbf4 | 8cb34ab7f2cc06667885e67290dde71c9e885a49 | /include/angie/bitfield.hpp | c7c9b4d78f4ee289b93cd8b2842ecfe6a2df6bb8 | [] | no_license | fabio-polimeni/angie | c805126e725aedddd8f8386c9a0a896e175410bc | ac91763a2cd8548fc6404f8c096660aa7a26e1b1 | refs/heads/master | 2021-01-01T05:49:10.319843 | 2013-04-02T22:47:15 | 2013-04-02T22:47:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,231 | hpp | bitfield.hpp | #ifndef ANGIE_BITFIELD_HPP
#define ANGIE_BITFIELD_HPP
///////////////////////////////////////////////////////////////////////////////
/// Copyright (c) 2013 Fabio Polimeni
///////////////////////////////////////////////////////////////////////////////
/// Created : 2013-02-09
/// Updated : ... |
28501a9df6b83b4a528c83a8f8226406dbed04c9 | 2549f2e7d73eca116a03c53f50fb08564ca3be08 | /src/InputManager.cpp | 9d0cf86d124a2ceafe32007754c922a62274d97d | [
"MIT"
] | permissive | Eduardojvr/NeonEdgeGame | a4a7f6f24830d6d2ce022635d31b0c22fdb5aeba | 1305853005052765e50d8f5351c23f8ec4ee786d | refs/heads/master | 2021-01-22T18:02:30.532792 | 2017-07-16T03:47:16 | 2017-07-16T03:47:16 | 100,743,895 | 0 | 0 | null | 2017-08-18T19:28:48 | 2017-08-18T19:28:48 | null | UTF-8 | C++ | false | false | 2,778 | cpp | InputManager.cpp | #include "InputManager.h"
InputManager* InputManager::instance = nullptr;
InputManager::InputManager():
mouseX(0),
mouseY(0),
updateCounter(0),
quitRequested(false),
mouseState{false},
mouseUpdate{0},
translationTable{SDLK_SPACE,SDLK_e,SDLK_q,SDLK_a,SDLK_d,SDLK_s,SDLK_w,SDLK_s,SDLK_z,SDLK_j,SDLK_k,S... |
7033fcf604af21cb4f63f6667c993d57c98c8685 | fed9f14edb87cd975ac946e01e063df492a9929a | /src/abc/039/abc39d.cpp | 2ce96f63d51d5b3fa91233bb19faf9c2a42a2a0a | [] | no_license | n-inja/kyoupro | ba91dd582488b2a8c7222242801cf3115ed7fd10 | 44c5a888984764b98e105780ca57d522a47d832d | refs/heads/master | 2021-01-01T06:52:59.655419 | 2020-10-17T13:28:35 | 2020-10-17T13:28:35 | 97,537,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,335 | cpp | abc39d.cpp | #include<iostream>
#include<fstream>
#include<stdio.h>
#include<string>
#include<vector>
#include<map>
#include<math.h>
#include<algorithm>
#include<iomanip>
#include<set>
#include<utility>
using namespace std;
int hx[8] = {0, 0, 1, -1, -1, -1, 1, 1};
int hy[8] = {1, -1, 0, 0, -1, 1, 1, -1};
int main() {
int h, w;... |
53372341ed8bc3d145e1ffdda183e87fc4e46a70 | 419e55c56c5ed91f82657ae451db4dc5ae3dfcce | /practice/SeniorHigh1/semester1/November2021/20211115testFSYo/f.cpp | f34f2710d209b7d7bad74239703962cffc63bee7 | [] | no_license | AlexWei061/cpp | 6e267bea4f163f77245fd2b66863b34edb7e64aa | f5f124b0c37b81036932e79290fb5cebcc7f1a5b | refs/heads/master | 2022-07-15T06:17:46.061007 | 2022-07-09T06:55:26 | 2022-07-09T06:55:26 | 216,490,498 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cpp | f.cpp | #include<bits/stdc++.h>
using namespace std;
#define in read()
#define MAXN 2020
#define endl '\n'
inline int read(){
int x = 0; char c = getchar();
while(c < '0' or c > '9') c = getchar();
while('0' <= c and c <= '9'){
x = x * 10 + c - '0'; c = getchar();
}
return x;
}
int n = 0;
int a[MAXN] = { 0 };
int b[MA... |
a7048f4ba43efb698b10255dc6387c7b4df9efc2 | f7c673d103a0a7261246dbdde75490f8eed918ab | /source/Client/old/source/scene/TestGameScene.cpp | 5d0e81df81b454dc7d9d711221f261e9b3482f54 | [] | no_license | phisn/PixelJumper2 | 2c69faf83c09136b81befd7a930c19ea0ab521f6 | 842878cb3e44113cc2753abe889de62921242266 | refs/heads/master | 2022-11-14T04:44:00.690120 | 2020-07-06T09:38:38 | 2020-07-06T09:38:38 | 277,490,158 | 0 | 0 | null | 2020-07-06T09:38:42 | 2020-07-06T08:48:52 | C++ | UTF-8 | C++ | false | false | 27 | cpp | TestGameScene.cpp | #include "TestGameScene.h"
|
bd3208fd3192956315df5444846d891d231815ef | a124718be979c91107ea3f7de6bdcfb01a2c9022 | /WorkoutSystem/PidjomNohy.cpp | 53651ac6012d201b02ca8386f5b1ed241f05258a | [
"MIT"
] | permissive | TarasShSh/WorkoutSystemApp | 0cb528c6392a003c3ae2458dcff527cf93d18570 | f92f0ff4a8b4a283ab101217ae1c25def1947666 | refs/heads/main | 2023-05-06T23:45:36.255503 | 2021-06-05T14:13:28 | 2021-06-05T14:13:28 | 371,174,701 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,721 | cpp | PidjomNohy.cpp | #include "PidjomNohy.h"
void PidjomNohy::DoExercise() { // робимо вправу
SetName("підйом ноги"); // <- Вписати назву вправи
cout << " Ви робите вправу " << name << endl;
int key;
cout << " [1] — Як виконувати вправу" << endl;
cout << " [2] — Завершити виконання вправи" << endl;
cout << " [0] — Вийти з програми" <... |
29dbc9a9b22bc643de43b79d737816b7516fddf8 | efc84d2b16ffd64e605a7dcf741953b08d7aaee3 | /mainwindow.cpp | dcf9f30071a0e979a528dd43135790babe18c925 | [] | no_license | infoforcefeed/shitspace | d106f0e8b503d7cb86737a539e253bd87f85a9a8 | 4d4a671d12dc3417af56e61949b2376236fae32c | refs/heads/master | 2016-09-06T07:56:57.216980 | 2014-09-21T20:08:11 | 2014-09-21T20:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,926 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
#include <cstdlib>
#include <unistd.h>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
int i;
thumbnails[20] = {0};
ui->setupUi(this);
... |
38da9238a0d543d479a0922d4bbd5bfc4cdb2010 | 5ddd70f4a4799dcbc39148415dbfad09d3a10fef | /d3d12app/d3d12app/Render/Wireframe.cpp | 84415f9212a85d70a0ad83fc55220a12850f40f8 | [] | no_license | zhumake1993/d3d12app | 706fe718bac930c4b03a8e5a9abd91cb4943869a | 64db6773017ade7311ae835d307f5ded11fb944b | refs/heads/master | 2022-01-20T04:48:51.897430 | 2019-07-05T11:27:19 | 2019-07-05T11:27:19 | 192,184,449 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,764 | cpp | Wireframe.cpp | #include "Wireframe.h"
Wireframe::Wireframe()
{
BuildRootSignature();
BuildShader();
BuildPSO();
}
void Wireframe::Draw(const CD3DX12_CPU_DESCRIPTOR_HANDLE& rtv, const D3D12_CPU_DESCRIPTOR_HANDLE& dsv)
{
//设置视口和剪裁矩形。每次重置指令列表后都要设置视口和剪裁矩形
gCommandList->RSSetViewports(1, &gScreenViewport);
gCommandList->RSSetSciss... |
6906a304c0b809bfc220d272b018f89aad4b5057 | bd9739abf849efecd3ed0ffa7c2238f56d927e9e | /maverick/convoy-sidemission/remoteExec.cpp | 8ffd0db7935d36fa2086cc9d32ae359a0fd79339 | [] | no_license | kubalife/kuba_life | a105cf71bf1788d03e7cefa777a4fc7615a4aecd | bd17f36babc4150083ba28237acac832d3c82f70 | refs/heads/master | 2021-01-12T15:13:26.689526 | 2016-11-09T21:13:05 | 2016-11-09T21:13:17 | 69,878,844 | 7 | 7 | null | 2019-06-15T13:26:50 | 2016-10-03T14:30:16 | SQF | UTF-8 | C++ | false | false | 68 | cpp | remoteExec.cpp | class mav_convoy_fnc_addTriggerHandlers {
allowedTargets = 1;
}; |
77f9afd619ff698f7e847cab94a94f41ee5f9bbf | 5702c0a20b6bbf0babd1f8b915d67318f9746284 | /Servo.h | 299c182b853bbfe1123013e2d9fc487c7bc2db42 | [
"BSD-3-Clause"
] | permissive | AnmanTechnology/mbed-RCServo | fe70400ae37001e573e9ea0e7d5bfa05bdd5d582 | 732cf4b79f513069008fa18c941baa9b1620aa54 | refs/heads/master | 2020-09-30T03:17:43.878593 | 2019-12-10T18:36:51 | 2019-12-10T18:36:51 | 227,189,769 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,922 | h | Servo.h | /**
* @author Liews Wuttipat
* @date 13 Nov 2019
*
* @section LICENSE
*
* Copyright (c) 2018 Anman Technology Co.,Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without res... |
3deb52e51e3b0c103a60c93b1087bea1505601c8 | 177be7fbc768c9776e5f1e3b4d2104405c163236 | /controller/src/main_stringBuilder.h | d3bc004341daa310c81ea02de71129a8df0e69db | [] | no_license | JostMat/projektpraktikum | 1f60d6814ebbf028730cee4f73b96194ba927e6e | 691c2f5e8b1c3d1f4b42d5e9bd412347dd7c49c9 | refs/heads/master | 2021-01-13T13:05:47.001653 | 2017-01-07T22:34:04 | 2017-01-07T22:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,615 | h | main_stringBuilder.h | #ifndef MAIN_STRINGBUILDER_H
#define MAIN_STRINGBUILDER_H
#include <Arduino.h>
#include <newdel.h> //fügt new und delete hinzu, wird für "mthread" benötigt
#include <mthread.h>
#include "StoreD.h" //StoreD wird vom StringBuilder verwaltet und aufgerufen
#include "main_valveCtrl.h" //Objekte zum Speichern der Objektp... |
b10dc08ea6f520b6588e13fa1e3021d3d05c1226 | cb88da4001d6dbf6ea1a99940aea8f704f84f06c | /a_PY.cpp | 5b75de61966ba0d92ea708ebdfb17112b1c246c3 | [] | no_license | ayshih/GRASP | 562ca9f8b661e5fc0cb4f5d13a7c501235662fd3 | 5eaecf60805ec58a06742f18d8de375a96ca7605 | refs/heads/master | 2021-01-21T17:06:42.985412 | 2016-02-03T05:37:18 | 2016-02-03T05:37:18 | 19,009,056 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,342 | cpp | a_PY.cpp |
/* =============================================================================================
analysis_PY_int_2: code returns error for negative values of the xp or yp. using analysis_PY_int.h
analysis_PY_int: first integrated version of the analysis code (a7) into the control program
=================... |
b5858eb5bf726aefba943a69958547da7d637cf6 | 9406dcf1f1ccdd67bb34cb9a0030618a50d505b0 | /source/gw/renderer/rectangle_3d_renderer.hpp | 8ec01eec70623d76cb9d858f4d462e6ff8ea32d5 | [] | no_license | code1009/gw | 51f8ec43a23dc9da03c3846d34937553a1c6e116 | e72d9afbf3cb23ff1cac70156913229d12854c49 | refs/heads/master | 2021-07-19T01:06:58.429198 | 2020-06-19T09:33:11 | 2020-06-19T09:33:11 | 176,871,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,758 | hpp | rectangle_3d_renderer.hpp | #ifndef INCLUDED__CX__GW__RENDERER__RECTANGLE_3D_RENDERER__HPP
#define INCLUDED__CX__GW__RENDERER__RECTANGLE_3D_RENDERER__HPP
/////////////////////////////////////////////////////////////////////////////
//
// File: rectangle_3d_renderer.hpp
//
// Created by code1009.
// Created on Dec-17th, 2014.
//
////////////////... |
a33e3db68a7a72315bcc5c5a130da0663933a256 | 19bdd1ecf1833d17915752a0d9d66780246412a3 | /src/corelib/mimetypes/qmimetype.cpp | 55c7de0c8772e39e6ee617670cce7561364f780f | [
"GPL-3.0-only",
"Qt-GPL-exception-1.0",
"LicenseRef-scancode-commercial-license",
"LGPL-3.0-only",
"GPL-2.0-only",
"BSD-3-Clause",
"MIT",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"LGPL-2.1-only",
"GFDL-1.3-only",
"LicenseRef-scancode-qt-commercial-1.1",
"LicenseRef-scancode-kfqf-accepted-gpl... | permissive | Unity-Technologies/qtbase | 04964cd1a0a21f4435e476f6299b266d6acb655a | eca43e4a5ef7ce9016e6b8dd4d78f43d7fea6511 | refs/heads/qtbuild.5.13.2 | 2023-07-18T17:20:15.969921 | 2021-02-12T13:25:37 | 2021-02-22T11:35:03 | 170,777,336 | 7 | 7 | BSD-3-Clause | 2023-04-30T11:12:08 | 2019-02-15T00:25:30 | C++ | UTF-8 | C++ | false | false | 17,392 | cpp | qmimetype.cpp | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2015 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author David Faure <david.faure@kdab.com>
** Contact: https://www.qt.io/licensing/
**
** This file is part o... |
9c0d91eefd7ff298ca8e71f4325178eb0d4b15bd | 0184e96e37298e01d7270afa64035ef26888dc22 | /src/math/ltiUniformContinuousDistribution.cpp | e562f88ce65b5500cdd383ccd53e1457bb3c2c49 | [] | no_license | edwinV21/LTI-LIB2 | 8f938915cc9918f55618ac7e3213862dba2ecce1 | 458cb35eedc1c0d1758416b78c112ff226116ede | refs/heads/master | 2021-01-16T21:07:49.394303 | 2017-12-04T23:51:27 | 2017-12-04T23:51:27 | 100,211,418 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,125 | cpp | ltiUniformContinuousDistribution.cpp | /*
* Copyright (C) 2007
* Pablo Alvarado
*
* This file is part of the LTI-Computer Vision Library (LTI-Lib)
*
* The LTI-Lib is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License (LGPL)
* as published by the Free Software Foundation; either version ... |
34f1bdffba43d589d5bef57882a0f94f0bf2dccd | 9bdffba3a8b84aca95c7907aa8e47a085b0ada8e | /src/main/simulator/hypercube/RendezVousPacket.cpp | aa73646a5d5e9485128036e4bdd35adc1a431b7c | [] | no_license | alejandromarcu/quenas | 9a8ca96c7d27299f894e33897ca60b107acba4b0 | f2aad975f011f29d81584de2a708057ae86d3ec6 | refs/heads/master | 2021-01-17T06:24:30.125651 | 2016-06-18T21:51:30 | 2016-06-18T21:51:30 | 61,453,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,351 | cpp | RendezVousPacket.cpp | #include <vector>
#include <iterator>
#include "RendezVousPacket.h"
#include "common.h"
#include "HCPacket.h"
#include "HypercubeControlLayer.h"
#include "Message.h"
#include "Units.h"
#include "Event.h"
#include "StateMachines.h"
#include "HypercubeNode.h"
namespace simulator {
namespace hypercube {
using name... |
bd500284c248af829e1b85740e57e895f6877c9a | ab538bfad711372b66cb90c9eef24ab00ac2386b | /gba/src/turnipemu/log.cpp | 9fcccb812b60dc5250a172eb61b4caeab2e50574 | [
"Apache-2.0"
] | permissive | theturboturnip/turnipemu | 7ff8feb827237ea10b239ea4fdfa2e9316a424bb | e35560eda30e4a63d5ea7413f3f80b8a845fbbfe | refs/heads/master | 2020-03-21T13:59:14.816159 | 2018-09-14T18:55:50 | 2018-09-14T18:55:50 | 138,635,937 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,294 | cpp | log.cpp | #include "turnipemu/log.h"
#include <cstdio>
#include <cstring>
constexpr int TAG_WIDTH = 4;
char lastTag[TAG_WIDTH] = "";
constexpr int FULL_TAG_WIDTH = TAG_WIDTH + 2 + 1; // Tag Width with braces and following space
int indentLevel = 0;
void LogLineVarargs(const char* tag, const char* format, va_list argptr){
fo... |
171810d1813ced3ac128aafb268dc684ac5fbb48 | 573b7f2b79b6fb8b21b40985f7639bc003b60f7e | /SDK/mtlb_nsvt_reticle_classes.h | bee5fdd8c2ff52499389aec5c8042b3f7f661ac9 | [] | no_license | AlexzDK/SquadSDK2021 | 8d4c29486922fed3ba8451680d823a04a7b7fc44 | cdce732ad4713b6d7f668f8b9c39e160035efb34 | refs/heads/main | 2023-02-21T02:52:15.634663 | 2021-01-23T23:28:57 | 2021-01-23T23:28:57 | 332,328,796 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,007 | h | mtlb_nsvt_reticle_classes.h | #pragma once
// Name: Squad, Version: 13-01-2021
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------... |
e35b5211d2bc353e80561943af38f6bfe8b602cb | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1673486_1/C++/RafaelBrandao/pass_problem.cpp | c20aa9ab9088d0a6ebd4753734006f99bc55fd43 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,299 | cpp | pass_problem.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;
int cn;
double e[100010], p[100010];
int n,A,B;
int main() {
int cases;
scanf("%d",&cases);
while (cases--) {
scanf("%d%d",&A,&B);
double allSu = 1.0;
for (int i=0; i < A; ++i) {
e[i] = 0.0;
scanf("%lf",&... |
e6a260e28c22cd150b88229a2f53fdeb75bbf8b5 | abbdcd4ae84da6109eb1209052e0668e581b5be2 | /MonitorIntensityAdjustment.ino | 9a387a4d9973c6dfa40224f48099ff5c8538ca58 | [] | no_license | mkrumin/varia | 5284244ae37fc48be50ca239e28716396d8fe8a5 | fa8bc5f26f50a05323fef45bec7f54298c4cc9d1 | refs/heads/master | 2023-03-16T00:35:48.691435 | 2023-03-10T18:41:10 | 2023-03-10T18:41:10 | 191,590,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,189 | ino | MonitorIntensityAdjustment.ino | /*
A sketch for adjusting the intensity of three screens
Useful for setting the intensity to a certain lavel
and (more importantly) equalizing it across the three screens.
Michael Krumin, May 2021
- Reads an analog input pin (the value can be controlled by a potentiometer)
- Calculates the On/Off... |
45117fc4ff80f64f30fc78820afb3b78b4103203 | 8ddff22e52da764f54db4091efcfbdafaa63b64d | /4/class_test/main.cpp | f52c297db58db98f04f28dcc75aab1ca23afd1c4 | [] | no_license | weilaidb/cpp.eg | b6b6f2941a7887c56d76939f80ce85c8cfed4785 | b8ec49ddbd70abd04d1b3512943911d1e988562b | refs/heads/master | 2021-01-10T01:36:35.788706 | 2016-01-29T17:22:45 | 2016-01-29T17:22:45 | 47,979,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,400 | cpp | main.cpp | #include <iostream>
#include <cmath> // or math.h
#include <cstring> // for the strlen() function
#include <string>
#define ARRAY_SIZE(A) sizeof(A)/sizeof(A[0])
using namespace std;
void cpplus11_add_new_features()
{
//可不在大括号内包含任何东西,这将所有元素都设置为零
float balances[100] {};
}
void arraysize()
{
char bird[1... |
8f3efe6b8939552473289f79571266b38e758103 | b32dc9c68715276f36ec455b90a602348d39522a | /src/source/class/input/Input.cpp | 75ef825760b2dc9694d007b6f576a92040f80955 | [] | no_license | wicanr2/GameTest | 3287432f7cb60323e0a61489aa515f660dac7d44 | 2ca9ac9401c75305bc86750e16d6bc56400f8814 | refs/heads/master | 2021-01-15T08:31:55.280976 | 2015-12-14T09:07:17 | 2015-12-14T09:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | cpp | Input.cpp | #include "class/input/Input.h"
Input::Input() {
keyboard=new KeyBoard();
mouse=new Mouse();
}
Input::~Input() {
delete keyboard;
delete mouse;
}
|
c330bcfc1912ae5fdc00ba29ecca07e9b77f2747 | 9f320d46e7fafb59ea4ae4a18fbcc082fee01c4f | /projet/testIRPTOWMAjuste/main.cpp | 148947cd01c40500a73e0dfa1eb38a68ac178519 | [] | no_license | Machine223/INF1900 | 6464fbac0b1467a9fe809b317dadac10558bef59 | 3f33478677e3b034706fe0f63ec640bf07ead0a1 | refs/heads/master | 2020-04-25T10:50:24.049091 | 2019-06-01T18:31:35 | 2019-06-01T18:31:35 | 172,723,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,806 | cpp | main.cpp | #define F_CPU 8000000
#include <avr/io.h>
#include <util/delay.h>
//#include "IRPT.h"
#include "clock.h"
#include "can.h"
#include "Memoire_24.h"
#include "uart.h"
void setPort(){
DDRB = 0xff; // PORT B est en mode sortie
DDRD = 0xff;
}
void ajustementPWM (uint8_t val) {
// // mise à un des sorties OC1A et O... |
9b15a88a9b94babc66257d998f86f7b78a860525 | 0960ed88a83fe845649976100d3dab7e24e94204 | /glsh/GLSH_Text.cpp | a819b88cb3e4fbdd6ce06e770fc034a69055ed96 | [] | no_license | mmoussa/TypingCity | 513e9b1290b24f99a9caa14f0961ff156557a6aa | cb36e5d05c1c08b1684fefa6b6486b483b9874da | refs/heads/master | 2020-05-10T00:18:23.369725 | 2019-04-15T16:35:08 | 2019-04-15T16:35:08 | 181,526,889 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,043 | cpp | GLSH_Text.cpp | #include "GLSH_Text.h"
#include "GLSH_Image.h"
#include "GLSH_Mesh.h"
#include "tinyxml2.h"
#include <iostream>
#include <vector>
namespace glsh {
Font::Font()
: mTex(0)
, mHeight(0)
, mWidth(0)
{
}
Font::~Font()
{
Unload();
}
void Font::Unload()
{
if (IsLoaded()) {
glDeleteTextures(1,... |
287a4ac94d22e7d7fba653bab0cd5f4d7cee88fb | 15f0514701a78e12750f68ba09d68095172493ee | /C++/538.cpp | 0c8a186864061b08f95de42593bb1b444512477e | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | C++ | false | false | 1,792 | cpp | 538.cpp | __________________________________________________________________________________________________
sample 36 ms submission
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
c... |
5bea4c640421d5ebff774ceb43473e24682eaea7 | e2d5aff660791992599a58e3e644fd655439f706 | /merge_sort.cpp | 68d5762ff41bf70decc07b8202225c26658410f1 | [] | no_license | TirtharajSen01/Competititve-Programming | 05a2e2f8118c56ff7a23a7ea0f10a1e24b44c9a8 | 441fa97a3469835d7adc1beb60a36cdfcf994de5 | refs/heads/master | 2023-05-13T12:14:03.968736 | 2021-06-11T12:57:28 | 2021-06-11T12:57:28 | 356,622,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cpp | merge_sort.cpp | #include<bits/stdc++.h>
using namespace std;
void merge(int [], int , int , int , int);
void merge_sort(int a[] , int l , int h)
{
if(l<h)
{
int mid = (l+h)/2;
cout<<"l="<<l<<"mid="<<mid<<"h="<<h<<endl;
merge_sort(a, l , mid);
cout<<"After first"<<endl;
cout<<"l="<<l<<"mi... |
68ff1c9974163f32c038283c46225b834356ae8b | 7fff3b37f0f17ea17aaff4aed8165ce2aee02271 | /HDU/2047/9381715_AC_0ms_1940kB.cpp | b26e9c56a2a570146225f40555948d8a0d71fba0 | [] | no_license | onlyless/ACM | d17fc92b2ff94cdcf73811e9cfa58a1d544dc9ed | c6e90e75f0a73a232e574cd7f0c82c40180eb9a7 | refs/heads/master | 2021-01-21T11:36:18.808454 | 2017-08-31T15:37:31 | 2017-08-31T15:37:31 | 96,624,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | cpp | 9381715_AC_0ms_1940kB.cpp | #include<iostream>
#include<cmath>
using namespace std;
using LL = long long;
int main()
{
int n=0;
LL A[41];
A[1] = 3;
A[2] = 8;
for (int i = 3; i <= 40; ++i) {
A[i] = 2 * (A[i - 1] + A[i - 2]);
}
while (cin >> n) {
cout << A[n] << endl;
}
return 0;
} |
17448a88e9fabaadbe308e4e9abfc4d806a65ab4 | 8a4c9287668ee62fdc34e41440311d630fed3d71 | /src/Espace.h | 8c5a3ac1efcd50fbc378dab242a6bd6b6bdbcd88 | [] | no_license | ZiedSoua/AsteroideGAME | e523b064b2e92844372faca6ced6ab983342855a | c6afa89beaa16c6d5bbe1ea213c2bddc2ef155f5 | refs/heads/master | 2022-08-02T05:04:02.129616 | 2020-05-27T17:02:57 | 2020-05-27T17:02:57 | 267,377,622 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 650 | h | Espace.h | /*
* Espace.h
*
* Created on: 15 mar. 2020
* Author: Zied
*/
#ifndef ESPACE_H_
#define ESPACE_H_
#include <SFML/Graphics.hpp>
#include <vector>
#include "ElementEspace.h"
class Espace {
public:
Espace();
void ajouter(std::unique_ptr<ElementEspace> element);
void actualiser();
void gererCollision();
v... |
7014eaa937fefd91a67c445482f23d69874776a3 | 0f08276e557de8437759659970efc829a9cbc669 | /problems/p387.h | f448363a4e3db0d921e28fa8bc6b4948f7b59022 | [] | no_license | petru-d/leetcode-solutions-reboot | 4fb35a58435f18934b9fe7931e01dabcc9d05186 | 680dc63d24df4c0cc58fcad429135e90f7dfe8bd | refs/heads/master | 2023-06-14T21:58:53.553870 | 2021-07-11T20:41:57 | 2021-07-11T20:41:57 | 250,795,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | h | p387.h | #pragma once
#include <algorithm>
#include <array>
#include <string>
namespace p387
{
class Solution
{
public:
int firstUniqChar(std::string s)
{
if (s.empty())
return -1;
std::array<int, 26> first_occ;
std::fill(first_occ.begin(), firs... |
9d854b08bde743ba655912505daf872d97c1882e | 96429a7be74850a8da6c4bcfe5099ecbee346300 | /SPOJ Coins.cpp | 3f80ebac07fa680709fd6418e6af39d4d9f66162 | [] | no_license | OmarELRayes/Problem-Solving | d02656c673c633290785eec699e56d88165c6874 | 225ec40c29fa143d55c67666fd24ba664b407155 | refs/heads/master | 2021-07-11T07:54:49.915302 | 2017-10-14T00:44:05 | 2017-10-14T00:44:05 | 106,884,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | SPOJ Coins.cpp | #include <bits/stdc++.h>
using namespace std;
int n , memo[10000000];
long long dp(long long v){
if(v<1e7)
return memo[v];
return max(v,dp(v/2)+dp(v/3)+dp(v/4));
}
int main()
{
for(int i=1; i<=1e7; i++)
memo[i] = max(i,memo[i/2]+memo[i/3]+memo[i/4]);
while(cin >> n)
... |
31e16e42a5fb65ae3eaa574256a333ec8499decd | 7c5c667d10f01f6cd0e87e6af53a720bd2502bc7 | /src/杂/1.14dp/A.cpp | e9dda65e563eb4e5176f4e397054bf4f58679e66 | [] | no_license | xyiyy/icpc | 3306c163a4fdefb190518435c09929194b3aeebc | 852c53860759772faa052c32f329149f06078e77 | refs/heads/master | 2020-04-12T06:15:50.747975 | 2016-10-25T12:16:57 | 2016-10-25T12:16:57 | 40,187,486 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,475 | cpp | A.cpp | #include<stdio.h>
#include<stdlib.h>
struct M {
int ban, pri;
} man[105][105];
int n, t, m[105];
double minbp;
int main() {
scanf("%d", &t);
while (t--) {
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &m[i]);
for (int j = 0; j < m[i]; j++) {
... |
e1af1781f9166e25655f997ca7afb879f79dc7d8 | cb2df482dcebc7afc0ce9f157d5a84ff6a9898fe | /examples/popup.hpp | ec0b6c2163c31bd35e7ee452cfa96c9e606aa618 | [] | no_license | lunar-mining/darkrenaissance_tui | 434eacccbd621f613f518075dc17e4577b135130 | 329d517851220b80a9246ffbb0ee090fb9d1db28 | refs/heads/master | 2022-12-08T10:38:57.859615 | 2020-09-04T10:11:29 | 2020-09-04T10:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 114 | hpp | popup.hpp | class sendw;
class popup
{
public:
popup(sendw* sw);
void foo();
private:
sendw* sw_ = nullptr;
};
|
d4cc8d4fdd430f50e5694a591907ffea294b4b68 | 1b094be71df26f0f74222aa9e2a0a4aa3fdced4c | /Cirle Operations in C++/mainfile.cpp | 2d2d020528bea2fd9995e6c9a8ac065d8347fa18 | [] | no_license | jaybhagwat/Cplusplus | f8136fd7f660b68df768364e62a7a1cf6fc9f196 | b9c60c308bc0549a62ded3303a9fa6fa9537e437 | refs/heads/master | 2020-04-02T04:15:55.066064 | 2019-07-25T09:08:59 | 2019-07-25T09:08:59 | 154,008,607 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 682 | cpp | mainfile.cpp | #include<iostream>
using namespace std;
#define pi 3.14
class Circle
{
private:
float radius;
public:
void Accept();
void Display();
void Area();
void Circumference();
};
void Circle :: Accept()
{
cout<<"Enter the radius of the circle"<<endl;
cin>>this->radius;
}
void Circle :: Display()
{
cout<<"Radius... |
c50ea4a3a208b1227912654a99c2555f78a15247 | 206b6a2c39de83820293f9574c6d37556dd2949f | /9252_ LSC 2/9252_ LSC 2/Source.cpp | af83ad14c93b8ee6c2af0f6533492f7ee75fff75 | [] | no_license | NOorYes/B-Algorithm | f4fdfce243d33af03a0805f6e703ea08b96dbe5b | 283a1a6b221cd3fa7f531132de46646f5f0862ba | refs/heads/master | 2021-01-11T23:42:07.463178 | 2017-03-08T14:28:41 | 2017-03-08T14:28:41 | 78,626,126 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,847 | cpp | Source.cpp | #include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
char arr[1001];
char arr2[1001];
char temp[1001];
void LCS();
int main()
{
scanf("%s", &arr);
scanf("%s", &arr2);
LCS();
return 0;
}
void LCS()
{
int len = strlen(arr);
int len2 = strlen(arr2);
int result = 0; // 최종 길이
int d... |
20d78f4ca532c97562f70fc874d4170c188df49e | 64e7a0cf9d67467ee5d272ecddba9f79b75ccba5 | /isnumbertest.cpp | 7667f3b81f8ddece7f0cbb5e27952782225e13c3 | [] | no_license | Ruixuan/leetcode | 736a406669ae486ace0edc6a59d8e5d21daf8eb9 | ab63651adcc970b166eed68131cf27f40d5f6be9 | refs/heads/master | 2021-01-23T07:26:58.594731 | 2014-03-10T03:50:02 | 2014-03-10T03:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,154 | cpp | isnumbertest.cpp | #include<iostream>
using namespace std;
bool isNumber( char *s) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
char * pt;
int flag_start, flag_is_power, flag , number_flag , is_dot;
//first check start
is_dot = 0;
pt... |
a140534c5d8c2ff3e37b0d6d3fc86a21131d4a87 | 823d0ae092660edcec9a6d747c5ff49db6977986 | /BST.h | 1b91c625c7c47d86d44b4b9a93e5df1e79d5d013 | [] | no_license | shawheenattar/lab-10-dual-videogame | 4d97f48c4cb024da9974a8927274720c83336454 | 14936dc210086f85edbcc9dfc2dfb1287bb6a53e | refs/heads/master | 2020-04-21T11:09:43.423015 | 2019-02-07T03:16:01 | 2019-02-07T03:16:01 | 169,512,653 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | h | BST.h | //
// Created by Shawheen Attar on 4/21/18.
//
#ifndef PROJECT8_BST_H
#define PROJECT8_BST_H
#endif //PROJECT8_BST_H
#include <vector>
#include <string>
#include <cstdint>
using namespace std;
class BST {
class Node {
public:
int val;
string name;
Node *left;
... |
ed09c9d99835bf778b68ac06a8ac61b86fb61434 | 34f28d31439ef649e2c7aee38b3b32b2a038eea9 | /user.h | 3023acf39dd8ff3ecb25f61fb17ed4ec1deee9ca | [
"Apache-2.0"
] | permissive | plewyllie/friendsvpn | f332675d138554a137ce10f5a1c6be3af3651bf3 | 925e853067b34bcef6af4acbe514fd54bacd230a | refs/heads/master | 2020-04-12T10:33:04.214280 | 2017-11-13T13:12:33 | 2017-11-13T13:12:33 | 21,093,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 448 | h | user.h | #ifndef USER_H
#define USER_H
#include <QObject>
#include <QSslCertificate>
#include <QSslKey>
/**
* @brief The User class represents a user of the system.
*/
class User : public QObject
{
Q_OBJECT
public:
const QString* uid;
const QString* ipv6;
const QSslCertificate* cert;
explicit User(QStri... |
04e7e151c34bf6bc3646811abf08dba5d99f905f | 759838e85a8c98b5c35f3086a30a353d549a3016 | /cme/pacmensl/src/SensFsp/SensDiscreteDistribution.cpp | 67de016e8db4d7aeb44b5b919e4bf812d76eba0f | [] | no_license | voduchuy/StMcmcCme | 82fa2fc6aaa282a1a7d146245e8dde787c2380a7 | 4950cbb8aecff33d6ba5c7fb41785f9e43ae44f7 | refs/heads/master | 2023-06-24T14:55:15.518677 | 2021-07-28T17:07:18 | 2021-07-28T17:07:18 | 271,329,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,949 | cpp | SensDiscreteDistribution.cpp | //
// Created by Huy Vo on 2019-06-28.
//
#include "SensDiscreteDistribution.h"
pacmensl::SensDiscreteDistribution::SensDiscreteDistribution() : DiscreteDistribution()
{
}
pacmensl::SensDiscreteDistribution::SensDiscreteDistribution(MPI_Comm comm,
double t... |
5ec1ba03fab97674f4bb1c30239eb356957e720c | 3a536104dfb32e40d5319edd02d614a911512273 | /sht21.ino | d4107187c7923f820de5c330cd82fcdfff8280c2 | [] | no_license | coredump-ch/sht21-arduino | d2b3e0d77792211652a200b32a13fe64c1b578b5 | 95a0c09efcfd6441bca9919e19c29b5c9358ca10 | refs/heads/master | 2021-01-10T13:18:20.752286 | 2015-12-01T20:04:41 | 2015-12-01T20:04:41 | 47,149,876 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,730 | ino | sht21.ino | /**
* Sensirion SHT21 humidity and temperature arduino example application.
*
* This is an example app that prints the relative humidity as well as the temperature
* every second to the serial port.
*
* Some Parts of this code are based on the SHT21 humidity and temperature sensor
* driver for Linux by Urs Fl... |
3d60710db5d86af63feda1940a2cf5c58cd5d9e7 | d83426fd82af6d34a3d3207f2d82239cbb8de471 | /MultiscreenClient/request/http.h | 47d51d4225bec2a006d507e478ae265ddebf5fc9 | [] | no_license | chenbaohai/multiScreenClient | 6d266ab623f05f5ad38513c52efc7fbfaf78d689 | fcb42ecd2dca86e3399ce37ed6498c73b944be49 | refs/heads/master | 2020-06-03T18:19:25.735320 | 2013-05-25T11:44:10 | 2013-05-25T11:44:10 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,020 | h | http.h | #ifndef HTTP_H
#define HTTP_H
/** @file http.h
* @addtogroup Request_Library
* @{
*/
#include <QUrl>
#include <QByteArray>
#include <QMap>
#include <QStringList>
///·¢ËÍRESTÇëÇóµÄÀà
/** @class Http
*
*/
class Http
{
public:
Http();
// static bool get(QUrl url, QMap<QString, QString> data, QByteArray &res... |
e2880cfab126b6bcbdaf0d2c987bf86ac447c1dc | 53b898fe40133488b5bffe9996146efd1e06df51 | /ati_netcanoem_ft_driver/src/configure_ati_can_ft_sensor.cpp | eda933a9eed91eb1f2341d529ad0d34a2764e33d | [] | no_license | calderpg-tri/tri_hardware_drivers | 63412dfbc82472572b9ad291519b2db9b5ebd259 | c6f97989a26d879538fbb224dd9e638e0609a149 | refs/heads/master | 2023-07-08T06:42:29.052239 | 2022-08-06T04:11:26 | 2022-08-06T04:11:26 | 232,660,009 | 0 | 0 | null | 2020-01-27T19:07:07 | 2020-01-08T21:07:40 | C++ | UTF-8 | C++ | false | false | 2,505 | cpp | configure_ati_can_ft_sensor.cpp | #include <stdlib.h>
#include <stdio.h>
#include <memory>
#include <ati_netcanoem_ft_driver/ati_netcanoem_ft_driver.hpp>
int main(int argc, char** argv)
{
if (argc >= 5)
{
const std::string can_interface(argv[1]);
const uint8_t sensor_base_can_id
= static_cast<uint8_t>(std::atoi(argv[2]));
const u... |
deca8e7a527c856f99236d236136338286d78e69 | e96140fe29ac734c9985ba8835b13a38deda8a23 | /extension/test/gui-report/test-stream.cpp | 925786305e3ffeace4d0a0e02967e46c113bcf0e | [
"MIT"
] | permissive | fanzcsoft/wxExtension | 33efbd379188584d6ef6a2a08fff07ed7fc3e374 | e99bd2c83502fac64db0aece657a480d0352d2ba | refs/heads/master | 2020-03-27T04:36:04.115835 | 2018-08-17T18:45:56 | 2018-08-17T18:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,482 | cpp | test-stream.cpp | ////////////////////////////////////////////////////////////////////////////////
// Name: test-stream.cpp
// Purpose: Implementation for wxExtension report unit testing
// Author: Anton van Wezenbeek
// Copyright: (c) 2017 Anton van Wezenbeek
///////////////////////////////////////////////////////////////////... |
4751273746ef2d48a5cbdf945327cce64490a86d | 8dcc3c662f87deeb861c1ae35071fc8c8f67b14b | /include/texture.h | 2fd0faf7ad5fbdf7438a707a3f5b347dfc50bc76 | [
"MIT"
] | permissive | ECToo/knowledge | 07c136b0ae4342ceafe48db8cf25c561c494247c | ed6a51b9c7a119f453acb8b1151cbf6aa43f3099 | refs/heads/master | 2020-03-30T05:24:56.011130 | 2009-10-28T00:40:15 | 2009-10-28T00:40:15 | 32,542,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,501 | h | texture.h | /*
Copyright (c) 2008-2009 Rômulo Fernandes Machado <romulo@castorgroup.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... |
d5a92d651ec6a3bf3935db22325d185a11f13e34 | 5daed89c7233c60c65ddfc5f4f2fc4df76d04b80 | /detModel/Sections/PosXYZ.h | 1069850ee898da6a32c259d640819ae408f32f40 | [
"BSD-3-Clause"
] | permissive | fermi-lat/detModel | 19324d44b80dd48d35f03774c9bc7dc935f07792 | fd8348a10adb75a669f0e4977448afc5e877f057 | refs/heads/master | 2022-03-06T02:35:04.483074 | 2019-08-27T17:29:28 | 2019-08-27T17:29:28 | 103,186,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 908 | h | PosXYZ.h | #ifndef POSXYZ_H
#define POSXYZ_H
#include "detModel/Sections/SinglePos.h"
#include "detModel/Management/SectionsVisitor.h"
namespace detModel{
/**
* @author D.Favretto & R.Giannitrapani
*/
class PosXYZ :public SinglePos {
public:
/// A standard constructor
PosXYZ():SinglePos(),x(0),y(0),z(0){;}
... |
17f72fdff2fab33c5f09ef5ddc07326bf487a03d | c4eeec079bf08665e607a7409018986d0099c186 | /BDゲーム/BDゲーム/ObjStage1Clear.h | 5359fa2044d9eaf5653b55f40ad4e6a1d3130592 | [] | no_license | ze-ru/BD | 17833847931f562adca3da8e37bc15c4222b5ac8 | 0a339fd2da15cbc310cda54ff8c382215ca81984 | refs/heads/master | 2020-08-14T18:32:53.669967 | 2020-02-14T01:21:26 | 2020-02-14T01:21:26 | 215,215,312 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 547 | h | ObjStage1Clear.h | #pragma once
//使用ヘッダー
#include"GameL\SceneObjManager.h"
//使用するネームスペース
using namespace GameL;
//オブジェクト:STAGE CLEAR & SCORE
class CObjStage1Clear :public CObj
{
public:
CObjStage1Clear() {};
~CObjStage1Clear() {};
void Init(); //イニシャライズ
void Action(); //アクション
void Draw(); //ドロー
void SetScore(int s) { score +... |
150c7dcf4563177de5414e90aa9f2177ccbcc552 | 4303e53cd29789ea72facc801bcd6990b8507ca1 | /espnow/multiple_master_slave/mMaster2/mMaster2.ino | 6f35f6577287b576f7367716326c2716b4a9596e | [] | no_license | DDlabAU/esp-boards | 74232bd2bc7f342ba9fd87f535f6d2b057b44543 | 40c6f0053a3f5ae23b21c637d6e44e0588dfe1b5 | refs/heads/master | 2022-03-25T16:18:15.141727 | 2019-12-12T10:45:26 | 2019-12-12T10:45:26 | 68,092,430 | 0 | 0 | null | 2019-12-03T13:08:59 | 2016-09-13T09:03:51 | JavaScript | UTF-8 | C++ | false | false | 2,131 | ino | mMaster2.ino | #include <ESP8266WiFi.h>
extern "C" {
#include <espnow.h>
}
int ledStatus = true;
uint8_t thisDevice = 5;
uint32_t runTimes = 0;
struct DATA_STRUCTURE {
uint16_t finger1;
uint16_t finger2;
uint16_t finger3;
uint16_t finger4;
uint16_t finger5;
uint8_t unit;
uint32_t times;
};
void set... |
c73bb248ccd9a64d20c9ba1101cb9477c4b619c6 | 9ab407b9090f7cc1b6f50a1092f7be6234d83560 | /Nc/Core/Math/Box3D.h | 038849f775c1232c579975697d3fad94c8bf9bdb | [] | no_license | PoncinMatthieu/3dNovac | 6e8e2b308d8de3c88df747fa838e97f8eb5315b2 | fe634688a1b54792a89da9219ca5cda3cd81a871 | refs/heads/dev | 2020-05-27T01:30:28.047128 | 2013-12-06T17:15:18 | 2013-12-06T17:15:18 | 4,713,732 | 0 | 1 | null | 2015-10-07T12:58:41 | 2012-06-19T13:08:59 | C++ | UTF-8 | C++ | false | false | 2,614 | h | Box3D.h |
/*-----------------------------------------------------------------------------
3dNovac Core
Copyright (C) 2010-2011, The 3dNovac Team
This file is part of 3dNovac.
3dNovac is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as pub... |
c6563a5393394b7cf6546c507150cd0e286a2507 | 2ee816cb1336bb030ce4f9282c8bedd1ba3b46df | /ascii_read.cpp | b135efdd77fcd6b247bd9140626abb1d2c7cd7e3 | [] | no_license | ChaoticBlack/terminal_ascii_art | d4939199a511275f7aab1a88c3896315a1a600a1 | ee762abd98520564be074804703218038152c733 | refs/heads/master | 2023-02-13T11:57:14.088117 | 2021-01-06T17:07:10 | 2021-01-06T17:07:10 | 326,901,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,610 | cpp | ascii_read.cpp | #include <string>
#include <vector>
#include <algorithm>
#include <iostream>
#include <bits/stdc++.h>
#include <array>
#include <map>
#include <regex>
#include <iterator>
#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include <fstream>
#include <string>
#include <sstream>
using namespace std;
void clea... |
da0c0b1d59a8831b7fd32ace787445729013c7f9 | 5709541606b9aa80d57ef334a3adff5a2c5cabab | /src/File/Entity/FileEntity.h | 4f6e762751554f70e0885648a92c2ee572ad8e2a | [] | no_license | borutainfo/FileSearchEngine | 427f2a580fa2e977e6e96ed764382de5742cb572 | 595deebaa7e33ceb04c3c05dde2109ec0bcea5db | refs/heads/master | 2020-05-04T02:46:01.879589 | 2019-04-11T19:46:46 | 2019-04-11T19:46:46 | 178,934,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 900 | h | FileEntity.h | #ifndef FILESEARCHENGINE_FILEENTITY_H
#define FILESEARCHENGINE_FILEENTITY_H
#include "File/ValueObject/FileName.h"
#include "File/ValueObject/FileContent.h"
/**
* @brief Entity for file storage in object way.
* @struct FileEntity
*/
class FileEntity {
protected:
FileName *fileName = nullptr;
FileContent *f... |
45a4d67d16c6b5ef86adcc367555ac7c59a7ed08 | 0fb33dbcb51cee03c58e1d8f2b63ed2609d3f971 | /texted/inc/TXTEDSRC.H | eb62bec002d9510ff997acd3381149c2dd453d61 | [] | no_license | opl-dev/opl-dev | 2e2166d06a05335ff2a5614beb8990e7aba5fb70 | 625c76115254ee4d2879a34b096c57385b083123 | refs/heads/master | 2020-03-16T23:04:51.912087 | 2018-05-11T16:28:34 | 2018-05-11T16:28:34 | 133,064,216 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 577 | h | TXTEDSRC.H | // TXTEDSRC.H
//
// Copyright (c) 1997-2002 Symbian Ltd. All rights reserved.
#ifndef __TEXTSRC_H__
#define __TEXTSRC_H__
#ifndef __TEXTTRAN_H__
#include <texttran.h>
#endif
class CTextEdDocument;
class CApaProcess;
class CTextSource : public CBase , public MTextSource
{
public:
CTextSource(CTextEdDocument* aDoc,... |
f64738cce57d5fd009539e219fe6109a2de35e8e | 77d1b09e277b5078f315645751f184656c41bd03 | /UI_0620/datastack.cpp | 431e8ee7a9e0b9645e41e6bbf83174dd6aa95f7d | [] | no_license | laiqiqi/MotorMeasurement | 89c674bbf20ab3be76156f39c3060cb7827b92e5 | 853a63b20996de42a0e3c46f8cede7c1a9401e56 | refs/heads/master | 2021-12-09T23:25:55.196778 | 2016-06-28T07:37:17 | 2016-06-28T07:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51 | cpp | datastack.cpp | #include "datastack.h"
DataStack::DataStack()
{
}
|
da5bb543d5994cdb74c62fe8a8b795052c15bb4c | f1524807889ec9b1349e2860f7df6ead06bf42e0 | /include/magpie/core/scene.hpp | 17b5a3094f4339bee77ef96387fcaee48284eaf0 | [
"MIT"
] | permissive | acdemiralp/magpie | f120fc061aa8b6d0900bf8efe0a1218a1d87c0f6 | adc6594784363278e06f1edb1868a72ca6c45612 | refs/heads/master | 2021-02-09T06:56:29.180938 | 2020-03-02T02:14:36 | 2020-03-02T02:14:36 | 244,254,660 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 728 | hpp | scene.hpp | #ifndef MAKINA_CORE_SCENE_HPP
#define MAKINA_CORE_SCENE_HPP
#include <memory>
#include <vector>
#include <ec/entity.hpp>
#include <ec/scene.hpp>
#include <magpie/core/metadata.hpp>
#include <magpie/input/controller.hpp>
#include <magpie/graphics/projection.hpp>
#include <magpie/graphics/transform.hpp>
namespace mp
... |
88359778f833bf3575dd475f3257fc034f315cac | 09db853490f551b11a50ac868bfc9a597aea28c0 | /Lab_7/main.cpp | 1e285c66558903b133b4e59d5aa5fd5948733bca | [] | no_license | Xorsiphus/Algorithms-and-Data-Structures | 3ca4e838050d3e2cc1b5ae3a4212e5e402c49a29 | a9b74a73fb181d16e80725c16eafde30ac0cded5 | refs/heads/master | 2022-12-09T04:33:56.285680 | 2020-08-28T08:32:56 | 2020-08-28T08:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,346 | cpp | main.cpp | #include <iostream>
#include <string>
#include "inputFunc.h"
#include "dfs.h"
#define MAX 999999999
using namespace std;
int main() {
int temp = NUMBER_ERROR;
string str;
while (temp == NUMBER_ERROR) {
cout << "Введите количество вершин: ";
cin >> str;
temp = Checker(str);
... |
d93b00dcf1bdeff51bf23886612b573d780c1440 | 5ada0481f57e7c5c3f791ed335260ada992360e8 | /Parqueadero_interfaceWifi/Parker.ino | b3bda3d6682833344e4b4b24809e8f5b36b7276f | [] | no_license | angelriosoberti/Parqueadero_estados_finitos | 955a8c42bd161818a6b16135dfd29a2f69f3d93a | 24ba184cad11a6d163e2f7da5bd9d9e486feb8fb | refs/heads/main | 2023-03-06T22:08:45.295160 | 2021-02-16T21:57:14 | 2021-02-16T21:57:14 | 328,760,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,489 | ino | Parker.ino |
#include <Wire.h>
#include <LedControl.h>
#include <EEPROM.h>
//Los pines deben estar sipre conectados a puertos PWM
// DEBEN SER CONECTADOS EN PINES CON PWM EN EL NODEMCU ES 2,5,6 Y 7
int DIN = 12; //
int CLK = 11; //
int CS = 10; //
int estados[] = {8, 7, 6, 5, 4, 3, 2, 1};
int eco = 7;
int trig = 8;
int intensid... |
72c3c0d2420f63affec24254c4dbf44eb21e503b | 1a8331d4d2220a5c37232f766b726d0429622cfb | /google-codejam/2015/gcj_r2_c.cpp | 5e1a81b759f69fffc817a3715a807b7af4de5b37 | [] | no_license | ngthanhvinh/competitive-programming | 90918dda51b7020348d2c63b68320a52702eba47 | cad90ac623e362d54df9a7d71c317de555d35080 | refs/heads/master | 2022-04-21T07:02:07.239086 | 2020-04-18T08:05:59 | 2020-04-18T08:05:59 | 176,119,804 | 0 | 1 | null | 2020-04-18T08:06:01 | 2019-03-17T15:19:38 | Roff | UTF-8 | C++ | false | false | 2,250 | cpp | gcj_r2_c.cpp | #include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
struct Dinic {
int n; int s; int t;
struct edge {
int u; int v; int c; int f;
edge(int u=0, int v=0, int c=0, int f=0): u(u), v(v), c(c), f(f) {}
};
vector<edge> e;
vector< vector<int> > G;
Dinic(int n=0, int s=0, int t=0): n(n), s(s), t... |
ad1faedd80170c9320e26378eed43b8caa9fc57b | 5f24784f6bae58f2e15809819e485ca5442c8377 | /ch07/ProgressBar/ProgressBar.cpp | ee0ddadc98e3eaa5a489ab0e82dc22a479a7f982 | [] | no_license | farukshin/qt_edu | a2a7a18efc3ff56cba5c4609f502c44dde036f86 | 46d7e9a4d117676bc8a1551d83a7d507233a3aee | refs/heads/master | 2023-01-31T13:05:51.165064 | 2020-10-10T18:08:00 | 2020-10-10T18:08:00 | 263,385,997 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 846 | cpp | ProgressBar.cpp | #include <QtWidgets>
#include <ProgressBar.h>
ProgressBar::ProgressBar(QWidget* pwgt/*=0*/)
:QWidget(pwgt)
, m_nStep(0)
{
m_pprb = new QProgressBar;
m_pprb->setRange(0, 5);
m_pprb->setMinimumWidth(200);
m_pprb->setAlignment(Qt::AlignCenter);
QPushButton* pcmdStep = new QPushButton("&Step")... |
5ae0b650b4474ddfad771ed4a1a83cea39b74224 | 37b1cc093229626cb58199379f39b6b1ec6f6fb0 | /compute_kernel_writer/prototype/include/ckw/KernelWriter.h | 72f85c78aa234b42d5949ade092ce5a121d69b51 | [
"MIT",
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | ARM-software/ComputeLibrary | d4dfccb6a75b9f7bb79ae6c61b2338d519497211 | 874e0c7b3fe93a6764ecb2d8cfad924af19a9d25 | refs/heads/main | 2023-09-04T07:01:32.449866 | 2023-08-23T13:06:10 | 2023-08-23T13:06:10 | 84,570,214 | 2,706 | 810 | MIT | 2023-01-16T16:04:32 | 2017-03-10T14:51:43 | C++ | UTF-8 | C++ | false | false | 13,303 | h | KernelWriter.h | /*
* Copyright (c) 2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights ... |
4bb8e873b14d7ffecd40511819d07547615590bd | 58f844528ed19e4d71f13fb79e68c267a02627f4 | /playpen/MPI_Init/test.cpp | 834491bbaeda3a3774d87c2a321c828abbbd1346 | [] | no_license | schmidtbt/real-time-frmi | 4b8f7eec920e5b8c279d31612341b4c65e717908 | a0a943ae3928860fd7cb2960e107bd723be431a9 | refs/heads/master | 2021-01-19T15:02:30.029636 | 2014-01-07T17:59:57 | 2014-01-07T17:59:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,343 | cpp | test.cpp | /*
* MPI/LOG/QUERY Merger
*
*
* Created by Benjamin Schmidt on 5/27/10.
* Copyright 2010 __University of Pittsburgh__. All rights reserved.
*
*/
#define DEBUG_MODE 1
//include "test.h"
#include <iostream>
#include "Log.h"
#include <mpi.h>
#include <math.h>
#include <string>
#include "query.h"
#includ... |
e8a439ef41d11e57a52606dd91e2fc46eba442e3 | 085f59477009f38844b19e5d077307fcc9954d88 | /trunk/zjucad/linear_solver/src/solver_pack/base/include/solver.h | 9dec13f6278514c2bc10a773495fc94ee92fdb17 | [] | no_license | senjay/zju_geo_sim_sdk | e58916bde012bf747a5e91d9a1fc99b5f717ac71 | 38edc0ad9fcc5ff8f12f9d13b508c9418c989cb8 | refs/heads/master | 2021-06-07T05:33:39.091411 | 2016-08-19T01:33:47 | 2016-08-19T01:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,984 | h | solver.h | #ifndef HJ_SPARSE_SOLVER_H_
#define HJ_SPARSE_SOLVER_H_
#include "config.h"
extern "C" {
//! sizeof_val = sizeof(float,double), not sizeof(complex<float>, complex<double>)
///! direct solver
HJ_SPARSE_API
void *hj_sparse_direct_solver_A_create(
unsigned char sizeof_int, unsigned char sizeof_val, unsigned char rea... |
d877b29dbba3539ef11f9c55f4fc2107cb603ceb | 8c5f7ef81a92887fcadfe9ef0c62db5d68d49659 | /src/parser/statement/call_statement.cpp | 56430d823f7b6cb94e1a42c24f82f36c196e2a63 | [
"MIT"
] | permissive | xunliu/guinsoodb | 37657f00456a053558e3abc433606bc6113daee5 | 0e90f0743c3b69f8a8c2c03441f5bb1232ffbcf0 | refs/heads/main | 2023-04-10T19:53:35.624158 | 2021-04-21T03:25:44 | 2021-04-21T03:25:44 | 378,399,976 | 0 | 1 | MIT | 2021-06-19T11:51:49 | 2021-06-19T11:51:48 | null | UTF-8 | C++ | false | false | 351 | cpp | call_statement.cpp | #include "guinsoodb/parser/statement/call_statement.hpp"
namespace guinsoodb {
CallStatement::CallStatement() : SQLStatement(StatementType::CALL_STATEMENT) {
}
unique_ptr<SQLStatement> CallStatement::Copy() const {
auto result = make_unique<CallStatement>();
result->function = function->Copy();
return move(result... |
0645b675794609a3d3ed65ddea3f765094e6496a | 17416939b9afdf56e67782bd6dbff0e5e46376e8 | /src/visitor/semantic/pass2Visitor.hh | 67ec15e86b9c9f01d6acd910b55533584f267722 | [] | no_license | jack695/VSOPC | 89e0c3cc7e42ea10a467c4d6e51b90e13bbd94d1 | 73471a8f2dc6c10d9f6051ae1999632dc7b7a091 | refs/heads/main | 2023-03-03T04:35:39.762920 | 2021-02-10T12:48:59 | 2021-02-10T12:48:59 | 337,718,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 783 | hh | pass2Visitor.hh | //
// Created by jack on 02/04/2020.
//
#ifndef PART_2_PASS2VISITOR_HH
#define PART_2_PASS2VISITOR_HH
#include "visitor/visitor.hh"
#include "semanticVisitor.hh"
#include "pass3Visitor.hh"
/***************** CHECK VISITOR CLASS ***********************/
/**
* This class is in charge to check the classes and the inh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.