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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59e7ff8a6a6b6108cd7649315e1ec7a9fef12e5f | e342921a7b4e86d43aed6c5f1c4e5dec3b4dbef1 | /Códigos/Principal/movimento.ino | eb21728145a28096206884c2b911714cecb785f1 | [] | no_license | rodigozeus/Maximus | aa2c0d0389bf5914e3aafbcbecc5d2222467425b | 46cc5266b17612d6efcf2778c7cce24d53dd1dd2 | refs/heads/master | 2020-11-23T20:33:51.896800 | 2020-01-16T17:16:48 | 2020-01-16T17:16:48 | 227,809,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,039 | ino | movimento.ino | //Recebe a quantidade de centimetros que o robô deve se mover pra frente
void frente(float cm){
for (int x = 0; x<(int(20*cm)); x++) {
digitalWrite(direcao_esquerdo, HIGH);
digitalWrite(direcao_direito, HIGH);
digitalWrite(step_esquerdo, HIGH);
digitalWrite(step_direito, HIGH);
digitalW... |
6e3f3d851e7faa8022e4406bab18a4aed1f1c961 | f83f743319e36bde353d32ccd20345f7fbda7639 | /NakkiKone/nakkikone.cc | 236f0d2d3644b22e9e91699a6bbba3f9fcc97a49 | [
"MIT"
] | permissive | kauhanem/nakkikone | 35f988bc335081ceb4d4e3395ef2b36fabc6fad7 | e5519ef4211dcdb7ed3ee6b5bb0413d3c13f9cd1 | refs/heads/master | 2020-09-19T17:36:31.872593 | 2016-08-28T00:00:41 | 2016-08-28T00:00:41 | 66,713,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | cc | nakkikone.cc | #include "nakkikone.hh"
#include "ui_nakkikone.h"
NakkiKone::NakkiKone(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::NakkiKone)
{
ui->setupUi(this);
}
NakkiKone::~NakkiKone()
{
delete ui;
}
|
b7eda22859b2ee329b49b8838754f267fcdabcad | 762eb090a812c99a45cf816cf1be4150119a210c | /generated/gui_generated/src/blocked_screen/blockedViewBase.cpp | b77937a36b5a525512f344c5f35cb8f27e0b7dfe | [] | no_license | asadchy/CryptoWallet | 61697606663cb42413ff9c53abf8d98bb905848b | 608dc2a5bc274ab2e775b64a164b3f822432b6fe | refs/heads/master | 2021-01-25T09:55:17.852198 | 2018-09-30T20:45:11 | 2018-09-30T20:45:11 | 123,330,751 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 798 | cpp | blockedViewBase.cpp | /*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/blocked_screen/blockedViewBase.hpp>
#inc... |
bb71f7f766bcb8a2b742e635d91e4d989057e120 | d05cf611e97f8f16927012568be9b830a292a707 | /src/6.55.cpp | 9399f9b311387b866d1adc2d110ba59dc1d28655 | [] | no_license | Ch4osMy7h/Cpp-primer | a12062d6cea434e511654aae9dcdee65dee3476a | 75ee4a9a4484af187612f14ae6e1ecdf657c2adb | refs/heads/master | 2021-01-23T00:56:31.764916 | 2018-03-26T13:29:32 | 2018-03-26T13:29:32 | 85,852,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | cpp | 6.55.cpp | #include<iostream>
#include<vector>
using namespace std;
int func1(int a,int b)
{
return a+b;
}
int func2(int a,int b)
{
return a-b;
}
int func3(int a,int b)
{
return a*b;
}
int func4(int a,int b)
{
return a/b;
}
int main(void)
{
decltype(func1)*p1=func1;
decltype(func2)*p2=func2;
decltype(f... |
4ec19463abc1d9dec4b07cdae511d06f797fe36f | ce3eeb6ba241cee10cd94602fad3d81d2f964170 | /code/senderthread.cpp | 7d6ad251fccec7250c6518b5b81d43c4d59314b7 | [] | no_license | Duttenheim/SpeedyShare | 990e47fe283c9434fbf69bbd6b6ab14f73f028f3 | 00022433f9bcdbde77a7d2dc49edc32d7e29da4b | refs/heads/master | 2021-01-15T17:45:28.656007 | 2014-08-17T15:27:41 | 2014-08-17T15:27:41 | 22,681,564 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,383 | cpp | senderthread.cpp | #include "senderthread.h"
#include <QApplication>
#if __QT5__
#include <QtWidgets/QMessageBox>
#else
#include <QtGui/QMessageBox>
#endif
//------------------------------------------------------------------------------
/**
*/
SenderThread::SenderThread(void) :
connectionOpen(false),
sender(NULL)
{
// empty
}
//... |
df33c9710ffbc11f84397ad3e7d9bf24c6119c45 | b0b7ddd9a2b0262ccd9665dc8294e32e87ba8922 | /541. Reverse String II.cpp | 9e2e82c7b37292df301f15934d4b8aa574079153 | [] | no_license | Deepakku28/Leetcode | c05e5cd96f89bf01f861d4b9b6a2a9747e9f04fc | ebf0f33728a2f799ccdc511be0d6b189672c6967 | refs/heads/main | 2023-03-23T09:50:44.304893 | 2021-03-23T12:53:19 | 2021-03-23T12:53:19 | 331,519,375 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | cpp | 541. Reverse String II.cpp | class Solution {
public:
string reverseStr(string s, int k) {
int n=s.size();
for(int i=0;i<n;i=i+2*k){
if(i+k<n){
reverse(s.begin()+i,s.begin()+k+i);
}
else{
reverse(s.begin()+i,s.end());
}
}
return s;
... |
3bce12b0b26f99ccb1041dc981f85c355f21eab2 | 16addc5cd60d79c5309e63bb582fe1870155ef59 | /Castlevania_Game/TreasureChest.h | b99a063daff59545aebb3882095b178ffbfd9786 | [] | no_license | tienthanght96/Directx_Game_2016 | 3b2e2f6182e89de9aea9d83a969a09b8ae50cf59 | 98e6cdabdcbc0dc26d61d81bf51a2d9638314923 | refs/heads/master | 2021-01-12T05:23:19.279433 | 2017-01-03T13:52:52 | 2017-01-03T13:52:52 | 77,919,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,187 | h | TreasureChest.h | #ifndef __TREASURE_CHEST_H__
#define __TREASURE_CHEST_H__
#define TREASURE_CHEST_FRAME_1 "TreasureChestFrame1"
#define TREASURE_CHEST_FRAME_2 "TreasureChestFrame2"
#define TREASURE_CHEST_FRAME_3 "TreasureChestFrame3"
#define TREASURE_CHEST_FRAME_4 "TreasureChestFrame4"
#include "SweptAABB.h"
#include "CObject.h"
... |
52bb30362676e01d36bb13a9ae96d7f9a27e5159 | f07352ad4b071ed5e801f7a91028606911d8906a | /include/aw/graphics/core/transform.hpp | c0bce4e512137462fc900d007fb27ba5e2718698 | [
"MIT"
] | permissive | AlexAUT/rocketWar | 426362513eca048d2dcb63dd76b87b1fc52f0cf6 | edea1c703755e198b1ad8909c82e5d8d56c443ef | refs/heads/master | 2020-05-19T09:41:44.905120 | 2019-08-11T12:07:56 | 2019-08-11T12:07:56 | 184,954,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,133 | hpp | transform.hpp | #pragma once
#include <aw/util/math/matrix.hpp>
#include <aw/util/math/quat.hpp>
#include <aw/util/math/vector.hpp>
namespace aw
{
class Transform
{
public:
void position(Vec3 pos);
Vec3 position() const;
void scale(Vec3 scale);
Vec3 scale() const;
void rotation(Quat rotation);
Quat rotation() const;
... |
af39465df9baefc41efc8ad15ba4a223d908dc33 | d79449e5ff14fd14e34961f20d0d147de64e5ae7 | /src/SPIFFSEditor.cpp | fddef8da9bd5ddc883bb365e0775bfcd3b8f8c7c | [
"MIT"
] | permissive | bert386/esp32-coop-scheduler | 9cbf2b2c84ccceca697537df90e96e5f80888d5b | 58cd0d88c823e93884d5ff8239ed1e9da0c1e137 | refs/heads/main | 2023-02-23T11:53:42.217563 | 2021-02-01T16:27:29 | 2021-02-01T16:27:29 | 330,575,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,210 | cpp | SPIFFSEditor.cpp | #include "SPIFFSEditor.h"
#include <FS.h>
// File: edit.htm.gz, Size: 4151
#define edit_htm_gz_len 4151
const uint8_t edit_htm_gz[] PROGMEM = {
0x1F, 0x8B, 0x08, 0x08, 0xB8, 0x94, 0xB1, 0x59, 0x00, 0x03, 0x65, 0x64,
0x69, 0x74, 0x2E, 0x68, 0x74, 0x6D, 0x00, 0xB5, 0x3A, 0x0B, 0x7B, 0xDA,
0xB8, 0xB2, 0x7F, 0... |
29c32ddebdb5c29ee91da6ee5dd1902c878d3d27 | 1c9f2b71256d9840157cfd5f7da8f80d299dbc12 | /hw-5/shmem_lib/include/utils/Utils.hpp | 1948851342d066021b0dbc0758443f8aa6544c0f | [] | no_license | artemreyt/AdvCppTP | 92aeaf544812c0ff2e9f609e96a6a5fa32612c5c | 7aa601bb9558ad37e64f7d93e540821179eba2e5 | refs/heads/master | 2022-12-15T16:35:30.406448 | 2020-09-04T13:02:42 | 2020-09-04T13:02:42 | 246,370,628 | 0 | 0 | null | 2020-09-04T12:59:26 | 2020-03-10T17:54:59 | C++ | UTF-8 | C++ | false | false | 1,104 | hpp | Utils.hpp | #ifndef ADVCPPTP_UTILS_HPP
#define ADVCPPTP_UTILS_HPP
#include <type_traits>
namespace utils {
template<typename RetType, typename U, typename Alloc>
std::enable_if_t<std::is_pod_v<RetType>, RetType>
get_object_with_allocator(const U &obj, const Alloc &alloc) {
return U(obj);
}
template<... |
61130d781acf1401ab36754239ec7dd888ba91c2 | 8ca56cbb206986f0180705e41330a2a3e4c9a57c | /Main.cpp | 3a0db7474cfd379a83472a2f8995519f22839b89 | [] | no_license | Siumauricio/Tarea_Template_LinkedList | e4026508d06c0885afb21b4512db3c5c576fdaaa | bbacd116ff0ee4bb7bce25ec3225163dd0563fdb | refs/heads/master | 2020-08-31T11:52:01.893698 | 2019-10-31T04:32:54 | 2019-10-31T04:32:54 | 218,684,480 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | Main.cpp | #include "Stack.h"
#include <iostream>
using namespace std;
int main(){
Stack<string> *a = new Stack<string>;
a->push ("Hola");
a->push ("Mundo");
a->push ("!!!!");
a->print ();
a->pop ();
a->print ();
cout << endl;
cout << a->peek ();
} |
1bc8e6756d2228a805bc4d79f8218c37fa5db6cc | db4adde3aa38548f867fbb836f0e36aee7487479 | /encrypt.cpp | 49d5a33c1aac513559c50f7cc430280ccefe9847 | [] | no_license | mengci/EC-ElGamal | 30db64f028970680204d40adbba9bdc7121d55d1 | b56a5daa160db519d298cbee4407c0bbc1fa5afb | refs/heads/master | 2021-01-10T20:50:53.293145 | 2013-12-18T05:38:26 | 2013-12-18T05:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,678 | cpp | encrypt.cpp | #include <gmpxx.h>
#include <iostream>
#include <gmp.h>
#include <fstream>
#include <string>
#include <sstream>
#include "ecurve.hpp"
#include "point.hpp"
#define L 23
using namespace std;
void encrypt(string keyPub,string plaintext, string ciphertext,mpz_class seed) {
ifstream keyFile(keyPub.c_str());
if (!k... |
35e148b38b097bf830edf8346ca9376ef2550947 | 5bef53b0dc9539a4953919f75fde1f0ebd20e9fb | /CF/572A.cpp | 878f085012698f350d98dd9ef9c97f8d1d939343 | [] | no_license | atrin-hojjat/CompetetiveProgramingCodes | 54c8b94092f7acf40d379e42e1f2c0fe8dab9b32 | 6a02071c3869b8e7cd873ddf7a3a2d678aec6d91 | refs/heads/master | 2020-11-25T10:51:23.200000 | 2020-10-08T11:12:09 | 2020-10-08T11:12:09 | 228,626,397 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 341 | cpp | 572A.cpp | #include <iostream>
using namespace std;
int main(){
int na,nb,m,k,t1,t2,temp;
cin >> na >> nb >> k >> m;
k--,m = nb - m;
for(int i=0;i<na;i++){cin >> temp;if(i==k)t1 = temp;}
for(int i=0;i<nb;i++){cin >> temp;if(i==m)t2 = temp;}
if(t2 > t1 ) cout << "YES";
else cout << "NO";
cout << e... |
36cbfb3e276856449b752433b621600ae54f5703 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Trigger/TrigDataAccess/TrigROBDataProviderSvc/src/components/TrigROBDataProviderSvc_entries.cxx | cf1c657168825b8ab8d7ca3d90f910ec4bbbf7ba | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cxx | TrigROBDataProviderSvc_entries.cxx | #include "GaudiKernel/DeclareFactoryEntries.h"
#include "../TrigROBDataProviderSvc.h"
#include "../TrigROBDataProviderSvc_RTT.h"
DECLARE_SERVICE_FACTORY( TrigROBDataProviderSvc )
DECLARE_SERVICE_FACTORY( TrigROBDataProviderSvc_RTT )
DECLARE_FACTORY_ENTRIES( TrigROBDataProviderSvc ) {
DECLARE_SERVICE( TrigROBDataPro... |
fa6863fdb235b5cf03d5053b4a4cf3f652e56b9f | 5408dcd79ae603c092ac05181358979aed5156cf | /Source/Cs193u/Public/SInteractionComponent.h | b5c7bb5ff7560a24219533ecfcd8191208052a83 | [] | no_license | Wukaken/Cs193u | 5925ed1f8842a9ed072230502b8bd380bf863982 | 8106a194a46736466930342aca352fb97af824c3 | refs/heads/master | 2023-04-21T01:46:31.857002 | 2021-04-13T10:40:26 | 2021-04-13T10:40:26 | 351,392,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,400 | h | SInteractionComponent.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "SInteractionComponent.generated.h"
class USWorldUserWidget;
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
class CS193U_API USInterac... |
a515fe9a632675ba510f70903f2cf85d59f99cf8 | c32ca8180847b209e24e8d1d5ae87f88cda172cc | /hvn3/src/hvn3/physics/PhysicsUtils.cc | 1e180b565137ec289d1a9438850f4e4ff5f7cef4 | [] | no_license | gsemac/hvn3-engine | 051ffe6dd8fd07a95fdb3937013ad3bdc805dddc | 7f99f6a0cc67aae7e5e5ec5a4c08a2a688f0ee0a | refs/heads/master | 2021-07-24T12:04:42.773197 | 2019-03-06T21:50:52 | 2019-03-06T21:50:52 | 98,023,277 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,031 | cc | PhysicsUtils.cc | #include "hvn3/exceptions/Exception.h"
#include "hvn3/math/MathUtils.h"
#include "hvn3/physics/IPhysicsBody.h"
#include "hvn3/physics/PhysicsUtils.h"
namespace hvn3 {
namespace Physics {
float StandardGravity() {
return 9.80665f;
}
IntegrationResult GetEulerIntegrationResult(const IPhysicsBody& body, flo... |
90afb84741037e3930b3506210fb15c9f31b1e3b | 07a0f4fac25fc74cf8b286b12c094821bfabdf5b | /MapObject.cc | a31c49ca9ced4ad943bae2e4e2d746080c8e4b91 | [] | no_license | SomayanC/Dungeons-and-dragons | dd7f6e27c4314896752d860306dc131356e18a6b | 7b299308f9953351fb2dc32c420a2b76b4d08358 | refs/heads/master | 2021-01-22T11:38:22.166397 | 2015-05-20T07:12:19 | 2015-05-20T07:12:19 | 35,932,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,423 | cc | MapObject.cc | #include "MapObject.h"
#include "GameFloor.h"
//default constructor
// sets the floor to point at NULL, rCoord/cCoord to 0 and
// null symbol
MapObject::MapObject() :
floor(NULL), rCoord(0), cCoord(0), cell((Symbol)NULL)
{
}
//default destructor
// does not delete the floor each object uses the same flo... |
10733189f04fe2e72b61b90c582bb29ece196f2e | 0a5645154953b0a09d3f78753a1711aaa76928ff | /common/c/nbservices/src/unittests/testoffboardtilemanager.cpp | 06de6bda1a597d80df2f27517a2597744df23e49 | [] | no_license | GENIVI/navigation-next | 3a6f26063350ac8862b4d0e2e9d3522f6f249328 | cb8f7ec5ec4c78ef57aa573315b75960b2a5dd36 | refs/heads/master | 2023-08-04T17:44:45.239062 | 2023-07-25T19:22:19 | 2023-07-25T19:22:19 | 116,230,587 | 17 | 11 | null | 2018-05-18T20:00:38 | 2018-01-04T07:43:22 | C++ | UTF-8 | C++ | false | false | 32,980 | cpp | testoffboardtilemanager.cpp | /*
Copyright (c) 2018, TeleCommunication Systems, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
2d2362bac4cb14121a76df1733dd6d748c038020 | 025b9d30c1790a16419e86ed5c889b1901c04f1f | /qrc_qml.cpp | 02abbc58113fe8545afc9938057ccc66c6970ffd | [] | no_license | Home-QT/UserAndroidInterface | 1d2cdf0a0b05ceef0d3d5a0ea3088729d7ecf39d | 9ceee272072bcbc4fab2b2b05c265ee6f57e2e78 | refs/heads/master | 2020-07-15T02:08:05.068593 | 2017-06-14T07:27:34 | 2017-06-14T07:27:34 | 94,301,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138,335 | cpp | qrc_qml.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.8.0
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... |
9382568bfa3b0c39aafd8720684246e87300e650 | b2d00a9c2221aee8328c9b1907305b0d8be765c0 | /src/nameserver/file_lock_manager.cc | c0ce463c8be0e3d2e21df23bc633f3c2eedec704 | [
"BSD-3-Clause"
] | permissive | 201341/bfs | 30318042edb12b4e7bb7fb12ec0e413e1ef40f04 | 77e90278c3a79ebae9ab389bd8374cbe3db7cbc2 | refs/heads/master | 2023-08-29T01:00:23.082511 | 2021-09-30T05:49:14 | 2021-09-30T05:49:14 | 411,617,765 | 0 | 0 | BSD-3-Clause | 2021-09-30T05:49:14 | 2021-09-29T09:52:10 | null | UTF-8 | C++ | false | false | 3,887 | cc | file_lock_manager.cc | // Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include "file_lock_manager.h"
#include <vector>
#include <string.h>
#include <assert.h>
#include <common/string_util.h>
#include <common/hash.h>
nam... |
1224ccd95274579a5682d76cbab56002844e1fe9 | f4b5fec598d3f8041147eae50820d7aeab7716f0 | /main.cpp | 408c7288e6b50827344c6228dc35f3b274a53e7a | [] | no_license | davesheehan/Zork | a920ec1c9aee67e4f3009f06b174fe200ed8f98e | c997a8949f0ceb25fef728c9c8e92a46ccdfc8fc | refs/heads/master | 2021-01-11T17:21:20.971531 | 2017-01-23T01:34:41 | 2017-01-23T01:34:41 | 79,758,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | cpp | main.cpp | #include "mainwindow.h"
#include "room.h"
#include <QApplication>
//Creates the main window
int main(int argc, char *argv[])
{
QApplication mainProgram(argc, argv);
MainWindow w;
w.show();
return mainProgram.exec();
}
|
c7b1e383b23420a105c161a0b677e21ecc1797d2 | 9f2fe2e2d42a0ebfe6ea8baa69607517815c923a | /RPS/RPS/Source.cpp | d4c2aed17de39875f527c0d62d5943e7fd8d2a0d | [] | no_license | JackReis01/CPP-CH-6-7 | e201437cc12d01cecc524796abbd3fec4d062029 | d21b39b52d75b78de8aecc3cfeb6a6b042649557 | refs/heads/master | 2020-03-28T21:18:41.513553 | 2018-09-24T16:11:30 | 2018-09-24T16:11:30 | 149,145,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,474 | cpp | Source.cpp | #include <iostream>
#include <string>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main()
{
string play;
int rando, user, score=0, scorec=0;
do
{
// 2>1 1>3 3>2
srand(time(NULL));
rando = rand() % 3 + 1;
cout << "Pick 1. Rock 2. Paper 3. Scissors" << e... |
82674d0103642deda5cd2376c925afafc7832235 | bcc46f92900c78d4ba0fc9daeb47bd6f7127c130 | /testtp/testtp/src/garage.cpp | 48a482965c58e7c099e8c12673d66a6d42dbc318 | [] | no_license | bsplvmxm/tplab1 | 8a3acb8b78a37d83262e6a96c65ea13a2092ec89 | 8f7dc3fe4d7f6f35a9745fc51e228149299c515d | refs/heads/main | 2023-08-21T21:06:23.454912 | 2021-10-30T23:01:04 | 2021-10-30T23:01:04 | 422,238,958 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 64 | cpp | garage.cpp | #include "garage.h"
using namespace std;
garage::~garage()
{
} |
b5f58f3f973b91556cc4cf2d369f8d8d0da34a11 | db1cbcdbebe275babe8861545e64a2f0fb7e1a6b | /treasurer/cloturemodal.h | 2b43d6d2043dad6dfb3bd89b93adc68f3ad126fc | [] | no_license | BiteKirby3/Treasurer | f9d2f68757f6b1722d8f90eaef61c3a8db1d1e46 | dff976b19ceec946b08f8e89ffb97080ba817dc6 | refs/heads/doxygen-HTML | 2023-08-26T07:39:40.242381 | 2021-10-13T14:59:40 | 2021-10-13T14:59:40 | 416,785,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | h | cloturemodal.h | #ifndef CLOTUREMODAL_H
#define CLOTUREMODAL_H
#include <QMainWindow>
#include <QDateTime>
#include <QCloseEvent>
#include "comptecontroller.h"
#include "transactionview.h"
#include "rapportview.h"
#include "rapportsview.h"
#include "comptesview.h"
#include "compteview.h"
#include "compte.h"
#include "transaction.h"
... |
96e03bab2c5a63c8539bebc753fb5e394835d7e5 | 63cae338768b878e880ce0ca4123fe0fdcd5e738 | /Lib/Ziran/Physics/LagrangianForce/LagrangianForce.h | 8e2d32731d247e7d6bd1ca075a4e11d4d30a6529 | [
"MIT"
] | permissive | daniel-perezb/wool_deformation | 2f2e83898daea5f9a470196a872bfc5193c68c98 | dec227cb10976942bd9de8badad18c016866f66e | refs/heads/master | 2023-06-08T15:13:01.682365 | 2023-05-24T02:37:05 | 2023-05-24T02:37:05 | 643,742,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,642 | h | LagrangianForce.h | #ifndef LAGRANGIAN_FORCE_H
#define LAGRANGIAN_FORCE_H
#include <Ziran/CS/Util/Forward.h>
#include <Ziran/Math/Geometry/ElementManager.h>
#include <Eigen/Sparse>
namespace ZIRAN {
/**
This is the base class for computing forces on a collection of particles. The forces are usually functions of the lagrangian mesh node... |
902b88207c8af12b2c3990e23e7c4d8b65a1050f | 62a14f8cd4b9c7088f4fc6767b2d07559890462d | /main.hpp | 6255682ee3b65bdc130d877a89c9b43a41a62d3c | [] | no_license | raphydaphy/Rebound | f9f75a29bd1717147769a0e7216d816c11dbcf0b | 8824bcaa6ff36c318cf9bc2dfa3c38e642493176 | refs/heads/master | 2020-03-18T18:26:55.768388 | 2018-07-23T03:06:26 | 2018-07-23T03:06:26 | 135,093,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 696 | hpp | main.hpp | #ifndef REBOUND_MAIN_H
#define REBOUND_MAIN_H
#include <iostream>
#include <GL/gl3w.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/matrix_transform.hpp>
#include "engine/core/display.hpp"
#include "engine/core/timer.hpp"
#include "engine/gl/VertexArray.hpp"
#include "engine/core/loader.hpp"
#include "engine/lib/pico.hpp... |
9236909902a5f84c118a821b65088e750c99f388 | 1019f53e7fdf450fb93d422e540498c454cfd2f9 | /Queue.cpp | b83f9bc9b1bf88c1d3b3d82d418e9eb4a97ac5f3 | [] | no_license | Batuzz/integer-queue | fb9f2dd6ff7c19be3b292d28a958dbe43fe4116f | 4b4f1e3953d71fde821d6b2f07d108795b3219ca | refs/heads/master | 2020-05-21T18:36:01.249449 | 2019-05-11T13:27:08 | 2019-05-11T13:27:08 | 186,136,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | cpp | Queue.cpp | #include "Queue.hpp"
#include <iostream>
void Queue::print() {
ListElement* tmp_element = this->first_element;
while(tmp_element) {
std::cout << tmp_element->value << std::endl;
tmp_element = tmp_element->get_next_element();
}
}
void Queue::enqueue(int number) {
ListElement* new_elemen... |
cb0fc259e5b4315d70173aa0237de3d614279311 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-sdb/source/model/GetAttributesRequest.cpp | 547d07b1f5710c88bcdf818083fd617052fcd82b | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 1,470 | cpp | GetAttributesRequest.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sdb/model/GetAttributesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SimpleDB::Model;
using namespace Aw... |
5647a8fd413555023d104fd2982d1b4ae072cda6 | bfbec05cbca573dde81ada88881f94cd0f407cbb | /src/TshapeMover.hpp | e88b3a2dc69dffe70172586404515f042be67d0b | [] | no_license | alexvsezanyato/shape-mover | cd4c7621c43eb97e40d8ada92e737f5e7673f3ab | 5e4bf859d5997a9736f7edadf72fcd1c6cba48a7 | refs/heads/master | 2023-02-05T01:11:55.956167 | 2020-12-29T12:00:10 | 2020-12-29T12:00:10 | 325,055,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,494 | hpp | TshapeMover.hpp | #pragma once
#include "WinApp.hpp"
#include "WinSettings.hpp"
#include "Tshape.hpp"
#include <cmath>
#include <SFML/System/Vector2.hpp>
#include <SFML/Window/Keyboard.hpp>
#include <SFML/Window/ContextSettings.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/Color.hpp>
//
// ::TshapeMover
class TshapeM... |
4772759762ce31cee8d5b2310f5589783882ca16 | 954dedbf67741b4b76b00a042cdaa62a0c32c765 | /ONEZERO.cpp | 351a1b3db1f94afac830b6d76c4b12ffdfe1577a | [] | no_license | maraghuram/SPOJ-solutions | 95ecef618fabe8560ce16c70aee12de1b11f4e00 | aa52b7641886021d19bff23a9e1733a4c27a39d3 | refs/heads/master | 2021-01-11T15:00:40.671790 | 2017-02-14T17:55:27 | 2017-02-14T17:55:27 | 80,278,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,316 | cpp | ONEZERO.cpp | #include <cstdio>
#include <vector>
#include <queue>
const int MAX=20000;
using namespace std;
inline void fastRead_int(int &x) {
register int c = getchar();
x = 0;
int neg = 0;
for(; ((c<48 || c>57) && c != '-'); c = getchar());
if(c=='-') {
neg = 1;
c = getchar();
}
for(; c... |
cf5933dee19bd83cd7eac9c90b0ca109e133f813 | 6fd2ab69501d71844a7329f62a3e62718fe9a9dd | /faiss/gpu/GpuDistance.h | c0dde7fd8c1e529877b4f32d39e5cf490cefe802 | [
"MIT"
] | permissive | facebookresearch/faiss | f6a7b9df838309e8a231653df2dc764ef43d355e | 9dc75d026d25b340771a7ef5d99b0f81a0dc5e34 | refs/heads/main | 2023-09-02T15:12:01.311542 | 2023-09-01T14:06:14 | 2023-09-01T14:06:14 | 81,227,005 | 24,723 | 3,437 | MIT | 2023-09-14T20:41:39 | 2017-02-07T16:07:05 | C++ | UTF-8 | C++ | false | false | 5,666 | h | GpuDistance.h | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <faiss/Index.h>
namespace faiss {
namespace gpu {
class GpuResourcesProvider;
// Scalar type of the vect... |
3567f897715d26f9b51b6fe7c757f9fb20c3fb87 | 39df058101c86657c84b181dd75f31c6a4b67799 | /ProblemSolution.h | e04c2619bb484b7a8a57e3d40b5a9c523532e8d5 | [] | no_license | Boudu02/ffsolver | ee2f4cad1494c50d617fa9a012d31d31e490fe6d | 90663119bb791dedeb6d0835b14513e334300bcc | refs/heads/master | 2021-12-08T09:13:43.603829 | 2016-03-02T20:17:45 | 2016-03-02T20:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | h | ProblemSolution.h | #ifndef PROBLEM_SOLUTION_H
#define PROBLEM_SOLUTION_H
#include "NumberList.h"
#include "SolutionStepList.h"
#include "RemainingList.h"
#include "MathOperations.h"
class ProblemSolution {
public:
ProblemSolution() { };
ProblemSolution(const NumberList& problemInput) {
remaining = problemInput;
}
con... |
5f633c40f7c50c1b707734dcbba2d1d3e6079101 | 7892c187fde60b1623958e138b148b8a25023b23 | /src/nif_tool.h | 4a9b379552c3b3799809a7b2ac014634118b195e | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | henrythebuilder/nif_sample_cpp | e74b43847b0bca807c69896867a38ed956691472 | c507eaf7acf2560f88f41d21e5377c05c4ce5be8 | refs/heads/main | 2023-02-26T23:09:11.948928 | 2021-02-06T09:16:44 | 2021-02-06T09:16:44 | 336,500,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | nif_tool.h | #ifndef NIF_TOOL_INCLUDED
# define NIF_TOOL_INCLUDED
# include "erl_nif.h"
# include <string>
ERL_NIF_TERM extract_int_term(ErlNifEnv *env, ERL_NIF_TERM term);
ERL_NIF_TERM make_tuple_error(ErlNifEnv *env, const std::string text);
ERL_NIF_TERM make_tuple_error(ErlNifEnv *env, const std::string text, const int n);... |
13f8a371bbb1f6b943d588ccecdd84097e7b7fa4 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /components/filesystem/public/cpp/prefs/pref_service_factory.h | 048336848233498da59c1343e7b549789fc4d977 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | h | pref_service_factory.h | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
#define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
#inc... |
2383a19c42e9778e9b1bd7c70f497027c63fa964 | 2298cf6c691925733b254368de09e1428c754fcf | /UserTools/HitResiduals/HitResiduals.cpp | 44e2378936a42857593f8480e2a1b63f2ad3c86d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | ANNIEsoft/ToolAnalysis | a7d6ea18e22ba0770aa3dbb96654e871027cd945 | 0ba4a6ad1c1f7051579b1dea638f7e6fe8a58a30 | refs/heads/Application | 2023-08-16T18:18:13.419107 | 2023-07-25T21:12:45 | 2023-07-25T21:51:38 | 113,612,944 | 7 | 42 | NOASSERTION | 2023-09-13T07:01:16 | 2017-12-08T20:07:35 | C++ | UTF-8 | C++ | false | false | 6,618 | cpp | HitResiduals.cpp | /* vim:set noexpandtab tabstop=4 wrap */
#include "HitResiduals.h"
#include "TApplication.h"
#include "TSystem.h"
#include "TCanvas.h"
#include "TROOT.h"
#include "TH1.h"
#include "TLegend.h"
#include <thread> // std::this_thread::sleep_for
#include <chrono> // std::chrono::seconds
HitResiduals::HitR... |
48ae78a6127341d4da4fee07a71651569c13ec27 | 0a0d9228e30e2e8984cea6a7e5f43c3a6ab7719b | /src/KNN/LessPointer.h | e705dde340cb2a14a874c6f8b9da8ddcf4588420 | [
"MIT"
] | permissive | djhaskin987/ml | cf0355266bbc6393582f5e40ba982ba32ec92b9f | 0e46f6d29ba9f2bbb2e16eee5a97a5cef1f41114 | refs/heads/master | 2016-09-06T18:13:35.468749 | 2013-11-13T21:46:21 | 2013-11-13T21:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | h | LessPointer.h | #ifndef __ml_LessPointer__
#define __ml_LessPointer__
#include <functional>
namespace ml
{
template <class Type>
class LessPointer : std::binary_function<Type*,Type*,bool>
{
return_type operator () (const first_argument_type a,
const second_argument_type b)
{
retur... |
144d25d1af39854ca23e3da0aa7e76e547cbc6b0 | 251413d8c6c34086debc828e5a56088c0f3cf4cf | /VVViewer/src/actor/VvvCursor.h | a667b9302c38f56e2c49f41ca07b5c41b83e5d9f | [] | no_license | gecchi/MyMain01 | a7311a3e4659a140dd1127b2ea592e7f1ed1a22b | 31ada3d4a434bea4dcd42fc867a52378493b0853 | refs/heads/master | 2023-09-01T14:30:06.410655 | 2023-08-30T14:39:38 | 2023-08-30T14:39:38 | 13,404,587 | 19 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 973 | h | VvvCursor.h | #ifndef VVVCURSOR_H_
#define VVVCURSOR_H_
#include "VVViewer.h"
#include "jp/ggaf/lib/actor/DefaultSpriteActor.h"
namespace VVViewer {
/**
* テストキャラ .
* @version 1.00
* @since 2012/06/05
* @author Masatoshi Tsuge
*/
class VvvCursor : public GgafLib::DefaultSpriteActor {
public:
enum {
... |
e7e131be32fa440a06f3e70014bf93d0543c07d1 | 4a858dd3ed5cdbe829f66bd8d5645166a2aa8c8f | /Exam2/palindrom.h | 9405231a72bc0aba7ca0508ee15a85cdd4cfcf75 | [] | no_license | NataliaAlonso/CS3A | 66194fc6f7d7e19418d519979144d4363c01f09e | c824aff41214779d3829340dd01ce4b02053c57b | refs/heads/master | 2016-09-01T18:25:42.259822 | 2015-04-28T23:37:21 | 2015-04-28T23:37:21 | 34,761,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | h | palindrom.h | #ifndef PALINDROM_H
#define PALINDROM_H
#include <iostream>
#include <cstdlib>
#include <string>
#include <stack>
using namespace std;
bool performPal(stack<char> &characters, string s);
#endif // PALINDROM_H
|
b35444c30d7bd842ebeb5ea4a50171aa84d38723 | 1b2aa5bb64c4ff4e249225d8f07035f77e7f4447 | /Curso Logica de Programação Neri Neitzke/Algoritmos em C/serie_for.cpp | 9bcef3b765230d39237107f9d6ba2b5aec72d4a6 | [] | no_license | Lukas-PSS/-Programming_Logic | 2fa6eb724c9ada19ac3e2637f597d4b877bededc | b81c2abdf461475068681a669e32f6affd15f94f | refs/heads/master | 2021-01-06T07:25:07.257574 | 2020-04-20T05:49:40 | 2020-04-20T05:49:40 | 241,244,826 | 0 | 0 | null | null | null | null | IBM852 | C++ | false | false | 506 | cpp | serie_for.cpp | // Prof Neri Aldoir Neitzke ULBRA
// www.INFORMATICON.com.br - videoaulasneri@gmail.com
/*Problema: Faša um algoritmo que gere a seguinte sÚrie: 10, 20, 30, 40, ..... 980, 990, 1000.*/
#include <conio.h>
#include <stdio.h>
main()
{
int i;
for(i=10;i<=1000;i=i+10)
{
printf("%d - ",... |
c26267fe534ac135cf9a168b516f76b9bae2d633 | d61aa7d638e3fe949e940f01f293b004017753a3 | /uva/116.cpp | 35c7ad0d6242baf57cdc56abd0c14db4aa09aa65 | [] | no_license | dementrock/acm | e50468504f20aa0831eb8609e1b65160c5fddb3d | a539707ca3c0b78e4160fdf2acad1b0125fa8211 | refs/heads/master | 2016-09-06T01:18:36.769494 | 2012-11-06T01:21:41 | 2012-11-06T01:21:41 | 2,811,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,085 | cpp | 116.cpp | #include<stdio.h>
#include<string.h>
#include<iostream>
#include<string>
#include<stdlib.h>
#define INF 0x77777777
using namespace std;
int n, m, a[101][101], vis[101][101], mincost[101][101];
string path[101][101];
int input(){
if (scanf("%d%d", &m, &n) == EOF) {
return 0;
}
for (int i = 1; i <=... |
5a33db3760f9b5c9c3ff4eb38be3a098096ad4cb | 46837994b2c9f62996db6ff14a971b4f34dab703 | /Edmonds-Karp.cpp | 06a8b66ee40c7dbc8b9e9521ac203f13393b2d63 | [
"Unlicense"
] | permissive | Steven1677/OI-Templates | b12fe95864616b387ffb8d59ab87edd7ca1f14f1 | 9960ddddd4b8608557e5ff9cacc30dba6d817908 | refs/heads/master | 2022-03-14T06:32:25.885590 | 2019-11-12T03:04:12 | 2019-11-12T03:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,474 | cpp | Edmonds-Karp.cpp | #include <cstdio>
#include <queue>
#include <cstring>
#include <vector>
using namespace std;
const int maxn = 10005;
const int INF = 2147483647;
struct Edge{
int from, to, cap, flow;
Edge(int u, int v, int c, int f):from(u), to(v), cap(c), flow(f) {}
};
struct EdmondsKarp{
int n, m;
vector<Edge> edges;
vector<i... |
b0165fc423425f8acdd8b3d9ef196b5714ed801d | c7665ff8da23a59364e811c6da3367ea1b1b2eb0 | /EC/App/BeerpongEmbeddedController/libraries/UARTMessageController/src/UARTMessageController.h | 86325c770a768e25e3650ebd5385c20485a4c2c6 | [] | no_license | santais/beerpong_table | 1f3a1c7a2dd5787df55bd1ffd09c245c4385c9ea | d35153178ff5b864acbc174a4d3673ea56c40ba7 | refs/heads/master | 2020-12-20T01:25:32.302179 | 2019-02-01T17:30:35 | 2019-02-01T17:30:35 | 62,830,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758 | h | UARTMessageController.h | /*
* UARTMessageController.h
*
* Created on: 16 Dec 2017
* Author: markpovlsen
*/
#ifndef LIBRARIES_UARTMESSAGECONTROLLER_SRC_UARTMESSAGECONTROLLER_H_
#define LIBRARIES_UARTMESSAGECONTROLLER_SRC_UARTMESSAGECONTROLLER_H_
#include <IMessageController.h>
namespace Controller
{
class UARTMessageController: p... |
9025977a64a4ed5a4998c5a1993ea0b4ea948f81 | 28718d4ca199c985b2cc99001ed920f3c5d52f14 | /include/natalie/fiber_value.hpp | c025b938c0613e68d0fcd155199a9b59bf07264c | [
"MIT"
] | permissive | alimpfard/natalie | 08a279566563516004ed99952e20bd22557e6e5b | f161e34e63749cd7ed16148d25b010a71cd174d8 | refs/heads/master | 2023-07-22T16:39:16.060666 | 2021-01-02T19:30:18 | 2021-01-02T19:34:05 | 286,884,907 | 0 | 0 | MIT | 2020-08-12T01:20:58 | 2020-08-12T01:20:57 | null | UTF-8 | C++ | false | false | 6,305 | hpp | fiber_value.hpp | /* Copyright (c) 2020 Evan Jones
*
* 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, copy, modify, merge, publish, d... |
492bd9e47b148f4dcf379d281321e27ea4067974 | bfeb93dcc8636ee6b1e422f2697cef4aa983d440 | /Date.cpp | 2dcc9c2348a76c1a72e7fe52b018c9049d7cc30e | [] | no_license | rohanpanuganti/Date | f60cecc40ea323b2f4aac3fa377ca25f317802f6 | 21139eda3134d502b1d8ecd8eb6efa9bf0d5c6c3 | refs/heads/master | 2021-08-31T02:13:22.204570 | 2017-12-20T06:34:56 | 2017-12-20T06:34:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | cpp | Date.cpp | // Rohan Panuganti
// Date.cpp
// 4/3/17
#include "Date.h"
#include <string>
#include <iostream>
using namespace std;
Date::Date() {
year = month = day = 0;
}
Date::Date(int y, int m, int d) {
setDate(y, m, d);
}
void Date::setDate(int y = 0, int m = 0, int d = 0){
year = y;
month = m;
day = d;
}
void D... |
dbaf6ed2fb5a3a6d7b7e863ee6f6edb447af244e | 9d33e1b5485fcd992a8dfd5db9ac6274a0547c51 | /uva_online_judge/programming_paradigms/dynamic_programming/MaximumSumOnATorus_10827.cxx | 1e47911bb62feda3f1b670ae21610f8d46852352 | [] | no_license | deepakantony/competitive_programming | 4a51c915b584c5550062edf81d54ac4e76e6cce6 | de703b751698c01cf79f87c08d090ff6f5f4d8ce | refs/heads/master | 2020-12-25T17:24:25.704372 | 2020-08-30T16:10:06 | 2020-08-30T16:10:06 | 2,997,213 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,642 | cxx | MaximumSumOnATorus_10827.cxx | #include <cstdio>
#define REP(i, st, n) for(int (i) = (st); (i) < (n); ++(i))
int main(int argc, char *argv[])
{
int a[75][150];
int N;
int newst, k, l, prefix[150], tempmin, tempmax, maxSum, minSum, rowTotal;
int stIdx[150];
int nTests; scanf(" %d", &nTests);
while(nTests--)
{
scanf(" %d", &N);
REP(... |
4bfdd2bf75c65cbdedec5923cb65c102fc2a6373 | 284b58e4094a57daddade88eb54abaec0363957f | /Source/VTKExtensions/General/vtkCMBSphericalPointSource.h | 60a6240959af2805517bae158d0a2f9a829bef37 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | cnsuhao/cmb | 586355390d0a7883212250894f23c73b9d06f258 | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | refs/heads/master | 2021-09-05T00:18:27.088593 | 2018-01-09T20:19:07 | 2018-01-09T20:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,281 | h | vtkCMBSphericalPointSource.h | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
a5cab347924e4f92ecb31443ba32d78c2bdfba6e | eddd782a3efe2c101ac8badcda4de34e43d9a9f9 | /Bit Manupulation/shift.cpp | e4cc5a249d0b95fe77ed068d5ee2b0c5c76becd5 | [] | no_license | bappy451/Competative-Code | 43ff03be349dd750fadd00d1045f059242f91999 | ad607f5029659587d25c10ae0343f28a220b6c4b | refs/heads/master | 2022-04-15T20:27:33.878184 | 2020-03-07T07:02:50 | 2020-03-07T07:02:50 | 118,359,368 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,028 | cpp | shift.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
unsigned int a = 15;
//a *= -1;
int c = a>>=2;
cout<<c<<" "<<a<<endl;
//a *= -1;
int d = a>>3;
cout<<d<<endl;
///Logical Shift
unsigned int b = 16, result;
printf("value of exp. result = b >> 3 is ... |
d816b377bad50ae25d3534c168c076dbc8aea6d9 | 551837821b6c6065117acde99d26820ad38b51b2 | /source/v3.3.3_renewed/output/debugger.cpp | eb717f8953befb04f743e2d49ed26fcf9defce5c | [] | no_license | olegbugaenko/DiffRay | 2deaab7be1ca3f347a3b0a09b1bf843e6e7443db | e1e5366ee3d27557cbeab1317688f38b2e7b03fd | refs/heads/master | 2020-07-06T09:27:05.082594 | 2020-05-17T15:19:04 | 2020-05-17T15:19:04 | 202,970,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 843 | cpp | debugger.cpp | #include <stdarg.h>
#include "debugger.h"
int CDebugger::level = 1;
void CDebugger::init(int level = 1)
{
CDebugger::level = level;
}
void CDebugger::write(const char* format, ...)
{
va_list ap;
va_start(ap,format);
vprintf(format, ap);
va_end(ap);
}
void CDebugger::debug(const char* format, ...)
{
if(CDeb... |
5e62d9f661c1a8f60099a7ee2413ce70b51d23de | 5dd27523c18336511e99442955bff2678c80b7a4 | /include/btInf/Broadphase.h | 8341ac0786e03f13e1d189142bb0af95e9963ae0 | [] | no_license | feltech/btInfinite | 747cd6f4a637c0adc2685b13e8e8ed7502538675 | 03d852230a7fa5b63679a57b73a8f7df9bd0350c | refs/heads/master | 2020-05-21T01:53:32.688172 | 2019-05-09T20:51:24 | 2019-05-09T20:51:24 | 185,865,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 804 | h | Broadphase.h | #include <BulletCollision/BroadphaseCollision/btSimpleBroadphase.h>
#include "btInf/Types.h"
namespace btInf
{
class Broadphase : public btSimpleBroadphase
{
public:
Broadphase(const btInf::TileSize tileSize, btInf::TileList& tiles);
void calculateOverlappingPairs(btDispatcher* dispatcher);
bool aabbOverlap(
bt... |
e39c6f281dec40c5e0a3656707dd40031631f03d | 4a62a93cdb55c4154a541aa5b70931c0c95f6217 | /IronCity/Source.cpp | 9891d2f8bc81286fa94af401de03e5b95b77f283 | [] | no_license | DevinDiego/isPalindrome | d86d7eb152170e729b18bcaff450cac898697619 | 0a0054855889a83b9f795ecb22e73fc86c2e098c | refs/heads/master | 2023-05-18T05:45:17.421890 | 2021-06-12T00:28:18 | 2021-06-12T00:28:18 | 307,506,870 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | cpp | Source.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
bool isPalindrome1(std::string str)
{
int i = 0;
int j = str.length() - 1;
while (j > i)
{
if (str[i++] != str[j--])
{
return false;
break;
}
}
return true;
}
bool isPalindrome2(std::string str)
{
int len = str.length();... |
f2e6ccd5f56948f0311c1748aac14d758a128919 | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/csrc/lazy/core/ir_builder.h | a00799c139fb1dec756fa5fd4581a49afa4f6c63 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | C++ | false | false | 4,721 | h | ir_builder.h | #pragma once
#include <c10/core/ScalarType.h>
#include <c10/util/Optional.h>
#include <torch/csrc/lazy/backend/backend_interface.h>
#include <torch/csrc/lazy/core/config.h>
#include <torch/csrc/lazy/core/ir.h>
#include <torch/csrc/lazy/core/tensor.h>
#include <torch/csrc/lazy/core/trie.h>
#include <vector>
// This fi... |
1af686b04ada4e9d9143b8b7f493e45e9d68f008 | b776212295f64b4734440acae88b098918ce8a69 | /codeforce/281_2/B.cpp | c3e1b4db06364f5d1ddc55ba0052e866fb8606d5 | [] | no_license | tommy5198/acm | 7635147f18e2e1c54fc87813cccd14fddcac5897 | d65cef14286141684013c3425cca7ad3250867de | refs/heads/master | 2016-08-06T00:53:13.140150 | 2015-05-27T10:52:49 | 2015-05-27T10:52:49 | 7,730,894 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | cpp | B.cpp | #include<cstdio>
int main(){
int n, bgr = -1, last = 0, i = 0, j = 0;
int point[2][200001];
long long sum[2] = {0, 0};
scanf("%d", &n);
while(n--){
int num;
scanf("%d", &num);
if(num>0){
point[0][i++] = num;
if(bgr==-1 && point[1][i-1]){
... |
de0f21accc5b66bf9fb89568e3972c6172fe5daa | 73b2853af111d019ede65c3516922e8942699cae | /Src Files/ZorkUL.h | d0a93711d579631b09de84afe1b548c626fcc01e | [] | no_license | calvin224/Zork | 9bbcd5c38146a170062cd6a89b6aaee9caa80fca | 21870d61d56807f520774e58a1df9957998b1959 | refs/heads/main | 2023-07-11T11:46:05.934027 | 2021-08-18T20:47:04 | 2021-08-18T20:47:04 | 332,841,737 | 1 | 0 | null | 2021-03-27T18:54:11 | 2021-01-25T18:21:02 | C++ | UTF-8 | C++ | false | false | 1,531 | h | ZorkUL.h | //Advanced pre-processor - Zorkul.h directives
//header files (inclusion guards)
#ifndef ZORKUL_H_
#define ZORKUL_H_
#define ERROR "Fatal"
//Basic pre-processor directives
#include "Command.h"
#include "Parser.h"
#include "Room.h"
#include "item.h"
#include "enemy.h"
#include "NPC.h"
#include "Door.h"
#include "Chara... |
19eb2262952f0a9d361a9077822b37518e4a8188 | dc3460c5884e578f4485bb5ff9d3b9bf8794d2c9 | /.history/hxsMidiSwitcher_20200912192521.ino | 9cd718ce82e516eebe7561c8706909277914ad43 | [] | no_license | gomerso/hxsMidiSwitcher | 0950a1fdfe3a660f8324201ab5d0573f29813047 | 1471cd645fd896a0d1c0c828daeac5f5ab7d6475 | refs/heads/master | 2022-12-11T02:23:37.218718 | 2020-09-12T23:36:24 | 2020-09-12T23:36:24 | 285,888,956 | 0 | 0 | null | 2020-08-07T17:48:34 | 2020-08-07T17:48:34 | null | UTF-8 | C++ | false | false | 14,020 | ino | hxsMidiSwitcher_20200912192521.ino |
/*
* ---------------------------------------------------
*
* Simple 8 button MIDI controller for Line 6 HX Stomp using Nano clone
*
* MIDI connectivity based on https://www.instructables.com/id/Send-and-Receive-MIDI-with-Arduino/
* MIDI pin 4 to TX1
*
* 128x64 I2C OLED - the one I used was https://smile.ama... |
3de4c843d85ef64f88a198b2f507344e1f7c7a23 | e7cb4db8cec75d02a956325c5a56333c7012ded5 | /ASSIGNMENTS/build-finalAssingment-Desktop_Qt_6_1_2_GCC_64bit-Debug/moc_mainwindow.cpp | 1a989fa8750fa308e77003d9048e80d52fd69a14 | [] | no_license | spaceface102/CS3A | de9c3a0821d6eb5561a65a874f165a8f21b4b8ce | 543ea00d494f96d0ab19fcabc8bb38e59439b1e3 | refs/heads/master | 2023-07-14T02:24:44.111161 | 2021-08-30T20:46:05 | 2021-08-30T20:46:05 | 385,648,333 | 0 | 1 | null | 2021-07-18T06:21:47 | 2021-07-13T15:17:39 | C++ | UTF-8 | C++ | false | false | 8,234 | cpp | moc_mainwindow.cpp | /****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 68 (Qt 6.1.2)
**
** WARNING! All changes made in this file will be lost!
**********************************************************... |
66245d18fea9eb37fb9ba424ccb26dc244e8af69 | c380c3d84d8d9a5dea3f295c98804060732a83d7 | /x52/utils.h | db6674e6fe6b16ad2d0d7e334ac15722c2d7fba0 | [] | no_license | raflchan/x52 | 97eb51d0168501c9d86ed81e96ea33b10229855d | 7ff3f4c70f4c2a5a8581064a05abab9b1e14fcd1 | refs/heads/master | 2022-12-11T02:03:31.683239 | 2020-08-29T14:58:35 | 2020-08-29T14:58:35 | 289,790,361 | 1 | 0 | null | 2020-08-27T06:26:37 | 2020-08-24T00:27:02 | HTML | UTF-8 | C++ | false | false | 909 | h | utils.h | #pragma once
#include "stdafx.h"
#define X52_LOGGING
#ifdef X52_LOGGING
#define LOG_DEBUG(x) \
std::cout << "[DEBUG] " << __FILE__ << ":" << std::dec << __LINE__ << " " << x << std::endl;
#define LOG_INFO(x) \
std::cout << "[INFO] " << __FILE__ << ":" << std::dec << __LINE__ << " " << x << std::endl;
#define LO... |
764dc6d4359b91e17658da8b809966258f7ffe9a | 5346c4c3c56ede3f1a3eb232d30052af4976af4d | /interview/practice/leetcode/jz_42.cpp | 64c443d65d4f809117fee59272207417935ca01f | [] | no_license | thiefuniverse/reading_coding | fd8ff1ba5b0ef9efb0628223ef4936b920e6f58d | 4cf8c40cc99583c90005460d4d124e60fe271d5a | refs/heads/master | 2020-12-10T03:02:44.890329 | 2020-05-25T14:48:17 | 2020-05-25T14:48:17 | 233,487,438 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | jz_42.cpp | #include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int maxSubArray(vector< int > &nums) {
int result = INT_MIN, max_result = 0;
for (int i = 0; i < nums.size(); ++i) {
if (max_result < 0) {
max_result = nums[i];
... |
83653b299f561a51b2a3e7d5a7e24ff252ac7324 | 47aed0a50fd7642316ffcac9bcb010dd87c5a67f | /benchmarks/stmbench7-gcc/code/src/tm/tm_spec.cc | 1b274d9e1374a8268d6123781269a5ae1cb90d6b | [] | no_license | akasyagroup/DMP-TM | 6437da5872b907355c65d9c41a11b1ae9e3089ff | f4f50ed84678e06e43044fb520e282b814a56193 | refs/heads/master | 2023-03-16T05:33:13.939042 | 2018-11-14T17:54:09 | 2018-11-14T17:54:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 81 | cc | tm_spec.cc | #include "../constants.h"
namespace sb7 {
void* thread_desc[MAX_THREADS];
}
|
3255602647f7dade9ff9fa9d060eab00035954a5 | 48ccbfdcc68697db4f1c8dd36a366e4a37a45e05 | /SD_test.ino | 6df3e55fa4c90c851113cfe6efe440a05957831f | [] | no_license | yosh-ida/esp32-sound-device-with-server | ac557d187ef44c3ce88472c54c3d4093c15b4bd3 | 9a6865367f97d01816137bf9315eb609a37f72ec | refs/heads/master | 2022-04-06T12:54:35.385387 | 2020-03-02T15:14:52 | 2020-03-02T15:14:52 | 243,202,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,171 | ino | SD_test.ino | //#include "AudioFileSourceSPIFFS.h"
#include "AudioFileSourceSD.h"
#include "AudioGeneratorMP3.h"
#include "AudioOutputI2S.h"
//#include "SPIFFS.h"
#include "AudioFileSourceID3.h"
AudioGeneratorMP3* pMp3;
AudioFileSourceSD* pFile;
AudioOutput* pOutput;
AudioFileSourceID3 *id3;
bool up = false;
bool down = false;
boo... |
4a509d4013ca9f270007775852a6b35e45569874 | 0329589ad3e0e2038e95893e0b3c8d4c21256dc0 | /oh_oh/oh_oh_software/oh_oh_arduino_lib/Oh_Oh_robot/Oh_Oh_robot_led.cpp | 4f47650a6f34e4c2d6b593a344f68d1c6bacb7d9 | [] | no_license | alfrebu/arduino-compatible-robots | a498369f61f6dd847a41bed2a721840470f92c38 | 41b97fb1ec929de0034fe6888a69d5ade674023e | refs/heads/master | 2020-12-31T06:09:09.463004 | 2010-07-20T21:33:13 | 2010-07-20T21:33:13 | 57,426,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | Oh_Oh_robot_led.cpp | #include "WProgram.h"
#include "Oh_Oh_Robot.h"
void Oh_Oh_Robot::funBlink(){
for(int i=0;i<10;i++){
digitalWrite(ledPin,HIGH);
digitalWrite(ledPin2,LOW);
delay(50);
digitalWrite(ledPin,LOW);
digitalWrite(ledPin2,HIGH);
delay(50);
}
digitalWrite(ledPin,LOW);
digitalWrite(ledPin2,LOW);
} |
6442b2447170a01b27ca03e6a19ad9880d1a33e2 | c3f09fdce1afe96b50809b6e8e6d803329a5b438 | /2013-05-27-note/UILoader/include/UIWindowFactory.h | 282413cc8f14619afa6e8f6a95418cd6e0724c9d | [] | no_license | xiaoxiaoyi/windows2linuxnote | 7e219f6e58d8b5eeb5c67c9d5d6d717e793da964 | 35ba4b305cb3bc0fe58e4429078d91b6bdb63616 | refs/heads/master | 2021-01-10T20:04:51.806084 | 2013-08-12T13:01:48 | 2013-08-12T13:01:48 | 10,140,640 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,417 | h | UIWindowFactory.h | #ifndef _UILOADER_UIWINDOWFACTORY_H_
#define _UILOADER_UIWINDOWFACTORY_H_
#include "UIWindow.h"
#include "UIWindowManager.h"
#include <string>
namespace uiloader
{
class UIWindowFactory
{
protected:
std::string m_WindowType;
public:
UIWindowFactory();
virtual ~UIWindowFactory();
public:
/*
设置窗口类型
*/
... |
33dfe015b4b3b602adea406a724cf31f9eb8070e | b5917386eb274374175bd565b27b2eeeb2c41b4c | /test/Tests.hpp | 1c36142f7de54b38c904d37134146129b4de248f | [] | no_license | Gsruhj/bunny | e1de29faf64ed73c6cc5ecc838311ec5c17fe346 | 0bfda54e8bb784fde1e2a914a66b05355dad8ca7 | refs/heads/master | 2022-10-01T20:12:51.729327 | 2019-12-23T11:30:20 | 2019-12-23T11:30:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | hpp | Tests.hpp | //
// Tests.hpp
// opengl-bunny
//
// Created by vtta on 12/17/19.
// Copyright © 2019 vtta. All rights reserved.
//
#ifndef Tests_h
#define Tests_h
#include "ClearColor.hpp"
#include "SpinBox.hpp"
#include "Texture2D.hpp"
#endif /* Tests_h */
|
016b3924768434b478bbc1c14813d73ae7d58b3d | b74ebf026cd67246976a32cd0c7892c7d4a6c618 | /src/Rpg/com/RpgBanner.h | 0decd79501ce827a51195912dadb38f58f9bf19f | [] | no_license | Ruilx/RPGV3 | 610e8ea20ee6791acd29ae369a8d2afbcefafb93 | 5c5ed97f3eda4cf2cecb5d69d97986ab9d6513cc | refs/heads/master | 2023-08-18T15:48:58.280564 | 2023-08-16T11:54:51 | 2023-08-16T11:54:51 | 207,011,308 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,843 | h | RpgBanner.h | #ifndef RPGBANNER_H
#define RPGBANNER_H
#include <QGraphicsItem>
#include <QTimeLine>
#include <functional>
#include <Rpg/Rpg.h>
#include <Rpg/core/RpgObject.h>
#include <Rpg/core/RpgItemProperties.h>
/**
* @brief The RpgBanner class
* RpgBanner类, 可以在窗口中展示一段实时播放的演示, 信息或图片等
* 将item设置好后可加入组件中, 并设置好时间轴关键帧回调, 可以用于JS... |
d03d496585389b6262d2338b0798626f695c854e | 4ce532180ed36b55dc170de98f9eca4c6adb17cd | /trunk/GreenWars/src/Controls.h | 03dcadf13c0a5a3d254ded951655e463710bd76d | [] | no_license | Kerogi/GreenWars | fb4b9eccae7d5608194dd72c8f4a4cea973a05e3 | 64b9663c7dbe74a3ce367629cf6abc627acd5888 | refs/heads/master | 2021-01-16T19:42:36.000350 | 2012-11-11T11:29:13 | 2012-11-11T11:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 591 | h | Controls.h | #pragma once
#include "IwArray.h"
#include "IwGameSprite.h"
#include "GameCommand.h"
class CGame;
class CControls
{
CGame & Game;
int ScreenWidth;
int ScreenHeight;
CIwGameSpriteManager SpriteManager;
CIwArray<CIw2DImage*> ImageCache;
struct HitZone
{
int x,y,w,h;
CMovePlayerComman... |
602f76dd173a1b1e23b15d8093e53a05e20113e7 | 82902e1287eedb79ce7eaf268da624da04fa3b7d | /NOI_1.9_12/main.cpp | 495f1be4fafd5c769f96470ab60e9c9bed46deb0 | [] | no_license | flamepeak/poj | 0722b54ae1ce4f1112726b8a4a864fdef15ae98c | 782f54b8aaadacf0428ffcfea4f18d926c86711e | refs/heads/master | 2020-04-19T02:41:30.968397 | 2019-02-01T20:19:11 | 2019-02-01T20:19:11 | 167,911,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | cpp | main.cpp | /*
12:最长平台
查看 提交 统计 提问
总时间限制: 1000ms 内存限制: 65536kB
描述
已知一个已经从小到大排序的数组,这个数组的一个平台(Plateau)就是连续的一串值相同的元素,并且这一串元素不能再延伸。例如,在 1,2,2,3,3,3,4,5,5,6中1,2-2,3-3-3,4,5-5,6都是平台。试编写一个程序,接收一个数组,把这个数组最长的平台找出 来。在上面的例子中3-3-3就是最长的平台。
输入
第一行有一个整数n(n <= 1000),为数组元素的个数。第二行有n个整数,整数之间以一个空格分开。
输出
输出最长平台的长度。
*/
#include <iostream>
using nam... |
291e1c4f3d7a4a6d3743141a10e945d2edd5db50 | 6347ce28067e711e39ba666d4021ed0ce8a17d38 | /tags/release-1.6.0/lang/c++/impl/FileStream.cc | 6ec62201ccdb812b4a077ddc0d305674d85444bc | [
"MIT",
"Apache-2.0"
] | permissive | SpotifyUsedOpenSourceCode/avro | 24f621f04ab488ba4a829d8afa2e9fd1a03f0a2b | fbc9cc2bbfa17742a51b5b85c06b0ab0e3fed885 | refs/heads/master | 2020-04-09T21:15:23.416883 | 2018-12-06T01:11:21 | 2018-12-06T01:11:21 | 160,596,566 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,689 | cc | FileStream.cc | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
92f5ddae227239cbb879853e90d7e81041f109e9 | 45b32ffcdc7ac3864c0b810b61deeee136616554 | /3dsMaxExportImport/Awd/AwayExtensions-3dsmax/src/cache.cpp | 6afc0dc763710b416e8cc6d08e33ebf16e1ad1d9 | [] | no_license | atom-chen/Tools-2 | 812071cf6ab3e5a22fb13e4ffdc896ac03de1c68 | 0c41e12bd7526d2e7bd3328b82f11ea1b4a93938 | refs/heads/master | 2020-11-29T10:05:24.253448 | 2017-07-12T06:05:17 | 2017-07-12T06:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,518 | cpp | cache.cpp | #include "cache.h"
#include "utils.h"
#include <stdlib.h>
BoolCache::BoolCache()
{
firstItem = NULL;
lastItem = NULL;
}
BoolCache::~BoolCache()
{
BoolCacheItem *cur = firstItem;
while (cur) {
BoolCacheItem *next = cur->next;
free(cur);
cur = next;
}
firstItem = lastItem ... |
2f193422b6d52a13e0afa26320988fa7ac31589b | cfe66ccf761f273a68eeb38c31f715f1041f8187 | /World.h | 922ceb64e2a95f3f96ad0bb0baec9b7fac482daa | [] | no_license | Zearics/Pacmangame | 38930a63ae4c2f38087d988104bfd063b02164bb | 4c8696b91814d1e49f0c08f2323cfb0b9fd6ab22 | refs/heads/main | 2023-02-02T23:12:13.416931 | 2020-12-17T21:21:52 | 2020-12-17T21:21:52 | 322,390,073 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | h | World.h | #pragma once
namespace world {
class World
{
public:
void setWorld();
void setPacPos(int xPos, int yPos);
void setGhostPos(int xPos, int yPos, char color);
void setScore();
char** getWorld();
void drawWorld();
void setIntersections();
void getIntersections();
void collectPoint(int xPos, int yPos, c... |
38685741f81a88d42aeeaa31cf2547c62dcfd781 | ce0294364e4fa68efb71791e67e969b26945b9a8 | /Algorithm/Algorithm/프로그래머스 카카오프렌즈 컬러링북.cpp | 5caed4f53124f2c1b2f3dd26bf19182867343592 | [] | no_license | vndn6832/NewRepo | 395f1caca97d1ddeb4207b562f282f13d324bd5d | b0b5ebf4a10825f02486753188bbb0ddb9be71af | refs/heads/master | 2023-07-30T10:09:39.933057 | 2021-09-15T14:40:40 | 2021-09-15T14:40:40 | 279,098,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,533 | cpp | 프로그래머스 카카오프렌즈 컬러링북.cpp | #include <vector>
#include <queue>
using namespace std;
int dx[4] = {-1,0,1,0};
int dy[4] = {0,-1,0,1};
vector<int> solution(int m, int n, vector<vector<int> > picture) {
bool check[100][100]= {false,};
int number_of_area = 0;
int max_size_of_one_area = 0;
vector<int> answer(2);
for(int i... |
42a5dbae484beb809e02edc2f50d887498d74cb0 | 932894f8d0847c43747d484661b2096147853725 | /longest_+ve_sum_array.cpp | bed3a250b851cc8e3ac86e672fbfc7ae5b0e625c | [] | no_license | ashes0409/DSA | cdf5027a46fcd950196f1f5b3dbb2815478061de | 514e03f592cd0a25339acf78867ebe02b7042bc2 | refs/heads/main | 2023-04-12T21:37:33.298306 | 2021-05-04T12:37:37 | 2021-05-04T12:37:37 | 364,245,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 964 | cpp | longest_+ve_sum_array.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
int LPA(int arr[],int n)
{
int i,j,m=-1;
int LMin[n],RMax[n];
LMin[0]=arr[0];
for(i=1;i<n;i++)
LMin[i] = min(arr[i],LMin[i-1]);
RMax[n-1]=arr[n-1];
for(j=n-2;j>=0;j--)
RMa... |
a52db2f7479e86c0eb3f00e310969482d0995a7e | 94ff0e1b4c57100dc8d9982bfd2c15950c3bef2b | /De2/Cau1/Cau1/Cau1.cpp | 6cfc0a7998c68d93b4e34d1a9cb78fc259d1400f | [] | no_license | ydang2002/CPlusPlus | a7576137a6a1e5331552021d3bdb434136480f99 | 4b65909dd869dfdfb19fc52277368912e035fe00 | refs/heads/main | 2023-08-05T10:08:15.550046 | 2021-09-11T03:15:50 | 2021-09-11T03:15:50 | 311,374,877 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | Cau1.cpp |
#include <iostream>
using namespace std;
float TinhXn(int n);
float TinhYn(int n);
float TinhXn(int n)
{
if (n==0)
{
return 1;
}
else
{
return TinhXn((float)(n - 1) / 3) + TinhYn((float)(n - 1)/ 2) + 5;
}
}
float TinhYn(int n)
{
if (n == 0)
{
return 2;
}
else
{
return TinhXn((float)(n - 1)/ 2... |
a3e92b2d2cf0ab9a0baa7376c4527dd6dad036be | ba193e30352cbf5927c60b3b4d9a5115d1a6be70 | /1047.cpp | a4042a7daa8663c6c2bf6e27714a11e8e43769b3 | [] | no_license | yasminalvx/Uri-cplusplus | 6b5f1075c226fd3f5c1c7903de3793421f40df9f | d1cc13a2241679af46237adacfd236492ec2fe6f | refs/heads/master | 2023-01-04T15:46:39.383944 | 2020-10-31T23:37:40 | 2020-10-31T23:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 978 | cpp | 1047.cpp | //Yasmin Alves
//27.06.2020
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, min, hor;
cin >> a >> b >> c >> d;
if (a == c) {
if (b == d) { hor = 24; min = 0;} // 7 7 7 7 24h00m
else if (b < d) {hor = 0; min = d - b;} // 7 7 7 8 00h1m
else if (b... |
817c02ba881976738fbbc5a97737803eb4a8113a | 9eb6e5d32fdd4b8ec9545c4e66d1dbb162ccb5db | /NetworkUtils/IPV6Utils.h | 68251b8745a737e5b429358090fcba0df681413b | [] | no_license | LittleMali/win_common | 9b85fd6ba6d19ff7db11d72387d058362f73f702 | 8806088e066791895540024f680aa079ba02d309 | refs/heads/master | 2023-06-29T23:32:43.728865 | 2021-07-27T07:38:48 | 2021-07-27T07:38:48 | 298,824,760 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 896 | h | IPV6Utils.h | #pragma once
namespace IPV6Utils {
// https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows
enum class IPV6Config :DWORD
{
// Disable IPv6
DisableIPv6_All_Interfaces = 0xff,
// windows default
Default = 0x00,
//disable IPv6... |
b4d7dfef6158650f2be76827cf80f08dd9018d50 | 8390cc8990562b75c10f36890f9325edc970c55e | /王子超的codeforce/2020.8.31Codeforces Round #666(Div.2)A(水).cpp | b3f39f67b5ec5c2ef8f46419708e20f0091570cb | [] | no_license | StandNotAlone/ACM | 598c4361710167b8dd9a7f2876cbc63658b2b1e0 | c0302788a0fb0d45aff199011ca50ef16524400b | refs/heads/master | 2023-05-03T16:05:14.317580 | 2021-05-25T13:09:33 | 2021-05-25T13:09:33 | 262,744,367 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | 2020.8.31Codeforces Round #666(Div.2)A(水).cpp | #include<bits/stdc++.h>
#define ll long long
#define llINF 9223372036854775807
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
int num[26];
int32_t main()
{
IOS;
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
memset(num,0,sizeof(num));
... |
1db1b24e653f6d769f703e9cece3cc79cb0bc5ea | fdfbc8fa51d48b10aee8ed6ca484d397d3eadb7d | /UVH2+1v0.4/kln-2.21forUVH2+1v0.4/OverLap.cxx | bd50cde0449c40f856e6dc0cf4fa4b2da5d4d3ff | [] | no_license | Scicomath/CMW | 2a6656b9fcf38e56a62cb0e632eb20188eebb531 | 5769f99b9fa25039a1702cf5e449d3225595368c | refs/heads/master | 2021-01-10T15:36:30.686166 | 2016-01-26T08:38:23 | 2016-01-26T08:38:23 | 43,885,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,411 | cxx | OverLap.cxx | #include <cstdlib>
#include <cmath>
#include <algorithm>
//#include "pythia/Pythia6.h"
#include "OverLap.h"
//#include "Const.h"
#include "Random.h"
using namespace std;
OverLap::OverLap(int a, double b, double signnin, int seed)
{
//srand48(seed);
A = (double)a;
rad=1.12*pow(A,0.333333)-0.86/pow(A,0.33... |
022a5a59176c3c9cf0e677ddf5c8e61b038aef82 | bfec72816d2dcd280c25b88993d88fbb30a15b85 | /MAMR Game Server/Server/MapGroupKernel/Battle.h | a02236f36b66c5b3c6fc864bac586f698e12ccf2 | [] | no_license | jon-karve/MAMR-Game-Server | e5e48f859d102f119eba8695c128d4ad4a270773 | e170ad89100188124e892d7caf260520e834f7d4 | refs/heads/master | 2023-03-21T18:50:59.082395 | 2020-10-23T03:57:43 | 2020-10-23T03:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,170 | h | Battle.h | #pragma once
#include "Monster.h"
#include <vector>
enum BATTLETYPE {
BATTLETYPE_NPC,
BATTLETYPE_PVP,
};
enum BATTLEACT {
BATTLEACT_ATTACK = 0,
BATTLEACT_SPECIAL = 1,
BATTLEACT_DEFEND = 2,
BATTLEACT_NONE = 3,
//4, change pet?
BATTLEACT_RUN = 5,
BATTLEACT_CAPTURE = 6,
BATTLEACT_CAPTUREFAIL = 7,
BATTLEACT_C... |
6bccd59a627afd0aee3f23f013b015ce027d16a0 | 84f22bf9fb726f4cfed7b2b623b7bc73a02ba98a | /tedhaMatHoRe/tedhaMatHoRe.ino | 537debef32cacba553123a80b2456f50e120a504 | [] | no_license | ASME-IIT-ROORKEE/AUV-CODE | c0ce377d3d4177627c59a6963514e284ccf28c1e | 4b3881dd0bd47289309db3a1f05e27e11f7abcf3 | refs/heads/master | 2020-07-28T01:33:44.092199 | 2020-03-16T21:52:36 | 2020-03-16T21:52:36 | 209,269,142 | 2 | 6 | null | 2019-10-11T05:01:00 | 2019-09-18T09:23:42 | Python | UTF-8 | C++ | false | false | 2,049 | ino | tedhaMatHoRe.ino | #include <Servo.h>
Servo esc1,esc2,esc3;
bool relay1, relay 2;
//when relay1 is off , motor is rotating clockwise, same for relay2
int depth;// actual depth
int reqd;// required depth
int errorAngle;
int multD;
int ikp,ikd,iki;//for imu
int dkp,dkd,dki;// for depth
bool dir1, dir2;
int s1,s2,s3;
///// for d... |
954aad2684deb1f1705d62770df2b341f9887449 | bb5964b979ec9444086a74540aaab44cc64a090d | /work/okeyLib/Events/AbstractPriorityDelegate.h | a5a886fe57c02c6b291dd04ab7c2ca43dc4880ef | [] | no_license | okey19841106/okey | d5942c1c86245dc022d43c31b14e902bb84ecc41 | 6fefb1d32836ae637c9f92e963136d0bf17ceb19 | refs/heads/master | 2021-01-20T21:53:06.536700 | 2016-01-25T06:51:09 | 2016-01-25T06:51:09 | 17,868,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | h | AbstractPriorityDelegate.h | /********************************************************************
created: 2015/01/23
created: 14:26
author: okey
purpose:
*********************************************************************/
#ifndef __ABSTRACT_PRIOTITY_DELEGATE_H_
#define __ABSTRACT_PRIOTITY_DELEGATE_H_
#include "AbstractDelegate.h"
n... |
7c0bd4e42812c6d931b9681e134a1126296eeef6 | 336ec59ec9fe7ab5048c1b841204c5438a7c2aca | /include/simcore/neighbor_list.hpp | f4f1c71c0f8c320625c5bb01ae95d95201d47bef | [
"BSD-3-Clause"
] | permissive | jeffmm/simcore | f7043a5a788e8d69c709a23de402cd44052f348e | 5b180579ec4b9c1a18f64d494c7204f870266920 | refs/heads/master | 2021-07-20T11:05:06.913327 | 2021-04-13T23:56:06 | 2021-04-13T23:56:06 | 78,224,592 | 2 | 2 | BSD-3-Clause | 2021-04-13T23:56:06 | 2017-01-06T17:21:42 | Jupyter Notebook | UTF-8 | C++ | false | false | 972 | hpp | neighbor_list.hpp | #include "auxiliary.hpp"
#include "object.hpp"
#include <mutex>
/* A data structure that is used to hold a list of particles that are nearby the
* owner of the list in a thread-safe way. */
class NeighborList {
private:
std::mutex mtx_;
std::vector<Object *> nlist_;
public:
NeighborList() {}
~NeighborList() ... |
9fbedcff3785b1a234b56f54d61cd5885d510ca4 | c5146230f703a8772c342589a11db85d9bc1e8d7 | /Source/Warlords.cpp | 59d2b6aceb9600d6184c0a3b511ec665b8ee559d | [] | no_license | TurkeyMan/warriorlords | 63e91c435911e70b6549aad82f1d08b5a997b5b7 | 5344621f0a4e5325ef6f514ff90012a5a8bbfb8a | refs/heads/master | 2022-12-31T20:55:41.170305 | 2013-08-21T15:50:17 | 2013-08-21T15:50:17 | 307,701,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,359 | cpp | Warlords.cpp | #include "Warlords.h"
#include "Display.h"
#include "Game.h"
#include "Editor.h"
#include "Fuji/MFFileSystem.h"
#include "Fuji/FileSystem/MFFileSystemNative.h"
#include "Fuji/MFModel.h"
#include "Fuji/MFView.h"
#include "Fuji/MFRenderer.h"
#include "Fuji/MFSystem.h"
#include "Fuji/MFDisplay.h"
#include "... |
de396b4fafe96f0937137afde6e68c91dfe9c496 | 082b362705c6c23f5f29dacdff7aa8bc397b6e37 | /GeoTempCore/Source/GeoTempLoaders/Public/LoaderHelper.h | d7d51df4f9f098d39beabc5130e5ec8691cafebb | [
"MIT"
] | permissive | interactivevislab/GeoTempPlugins | eeabb2728bedee96bd54fbfa75535e4fe1578794 | 5c650769cbdb22931fc0e221bd7a3233a56c202a | refs/heads/master | 2021-04-20T10:55:33.651759 | 2020-05-20T22:20:55 | 2020-05-20T22:20:55 | 249,676,605 | 9 | 0 | MIT | 2020-05-28T11:27:13 | 2020-03-24T10:21:23 | C++ | UTF-8 | C++ | false | false | 1,836 | h | LoaderHelper.h | #pragma once
#include "CoreMinimal.h"
#include "RoadsData.h"
#include "GeometryData.h"
#include "LoaderHelper.Generated.h"
/** Static class with utility functions for data loaders. */
UCLASS()
class GEOTEMPLOADERS_API ULoaderHelper : public UObject
{
GENERATED_BODY()
public:
/** Default value for number lines ... |
0bf3bb2225014c227e27a099e81840f6ef60f4fe | 59c5a41ef8e6418d79f70b5743d2cd12a64d90ec | /4_C++/inpprac.cpp | 2d5200544439d22e02d419440a1435c9037e5ada | [] | no_license | SimonRenblad/1w1c-challenge | 4a184baa3bab34f222075b033fd7d10ff57b4ec5 | fdd49a40f73c24184c2696097f805ec59ed627f1 | refs/heads/master | 2021-09-28T03:02:47.426600 | 2021-09-23T10:44:36 | 2021-09-23T10:44:36 | 236,963,806 | 0 | 0 | null | 2020-01-29T14:22:03 | 2020-01-29T11:09:30 | JavaScript | UTF-8 | C++ | false | false | 671 | cpp | inpprac.cpp | // C:\Users\simon\Documents\Programming_Challenge\4_C++
#include <iostream>
#include <cmath>
using namespace std;
int main(int argc, char const *argv[]) {
string name;
cout << "Hello Stranger!" << endl;
cout << "What is your name?" << endl;
getline(cin, name); //gets entire line
cout << "He... |
acf661d0b6e28371fa99c777af3367819825f6e6 | c6c8bf3525698a8184fde1b5439a24744970512d | /searchcore/src/vespa/searchcore/proton/matching/requestcontext.cpp | 6ad2f69ae7afe34b7c2593173670ee103e5ea44c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | socratesone/vespa | 0df03ece09de001942232300de23f8db13a38e45 | 7ee52b93cbae2695cf916c9b2941361b35b973f1 | refs/heads/master | 2023-03-16T23:35:10.953427 | 2021-03-17T02:41:56 | 2021-03-17T02:41:56 | 305,143,840 | 1 | 0 | Apache-2.0 | 2021-03-17T02:41:56 | 2020-10-18T16:18:57 | null | UTF-8 | C++ | false | false | 2,400 | cpp | requestcontext.cpp | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "requestcontext.h"
#include <vespa/eval/eval/fast_value.h>
#include <vespa/eval/eval/value_codec.h>
#include <vespa/searchlib/attribute/attributevector.h>
#include <vespa/searchlib/fef/proper... |
48ed13964241fe9c6a6e6bef5f0927f9c9befd2e | afee2250a162d9258f4a6eb49375290346d24557 | /vislib/src/net/CommServerListener.cpp | 1f7ef3ea6ff534ea0c02e189d92b64841a55abfa | [
"BSD-3-Clause"
] | permissive | sellendk/megamol | bbaa4ce9b1e78980017df25968559b86ff6e8684 | 03748a31064b06186ae2a14e34313b776c60b80f | refs/heads/master | 2023-01-11T06:22:23.320033 | 2022-12-07T15:35:31 | 2022-12-07T15:35:31 | 208,452,969 | 0 | 0 | BSD-3-Clause | 2021-07-13T11:49:32 | 2019-09-14T14:36:44 | C++ | UTF-8 | C++ | false | false | 1,032 | cpp | CommServerListener.cpp | /*
* CommServerListener.cpp
*
* Copyright (C) 2006 - 2010 by Visualisierungsinstitut Universitaet Stuttgart.
* Alle Rechte vorbehalten.
*/
#include "vislib/net/CommServerListener.h"
#include "vislib/net/Socket.h"
#include "vislib/Exception.h"
#include "vislib/net/CommServer.h"
/*
* vislib::net::CommServerList... |
f1adc229e28947db42ac07b2d994e45feb47f37c | 50079da556609aefdd9c9b4a249b41f43c762fae | /WISET_Code/OLED_Clock/OLED_Clock.ino | a65f3e6a12ab66d21a6a6f140217fb3cf91e44c4 | [] | no_license | zzeromin/Arduino | eab2cdb2d9d95ae57bbfb0c9bb706d32e79f0151 | 5651a3e3e55e4bf1d6547fc40c4b4aff43a900f5 | refs/heads/master | 2022-08-17T14:28:24.975906 | 2022-07-20T07:51:49 | 2022-07-20T07:51:49 | 14,380,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,499 | ino | OLED_Clock.ino | /***************************************************************
OLED Analogue Clock using Adafruit GFX and OLED libraries
by Chris Rouse Oct 2014
visit https://learn.adafruit.com/monochrome-oled-breakouts/arduino-library-and-examples
for the OLED libraries and instructions on their use.
Note:: Sketch uses... |
12aba811643b3218343a77a1c98a37c0db70e05b | e257b4be93211daa91376e409640d7174fd7e1a3 | /src/core/Method.cpp | 10edc6e378b5844ef6ed6ba866049ee6d442dbee | [] | no_license | iblaauw/Cilon | 9f33dd0f0c7b63d2365eee45fa5b56515e4e6e97 | 87e72e7a91d10528dfb193f419def758d49847aa | refs/heads/master | 2021-09-03T08:52:03.372213 | 2018-01-07T19:27:57 | 2018-01-07T19:27:57 | 110,394,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,019 | cpp | Method.cpp | #include "Method.h"
#include "Exceptions.h"
#include "ILType.h"
#include "Module.h"
Method::Method(Name name, const MethodSignature& signature, Module* owningModule)
: name(name), signature(signature), owningType(nullptr), owningModule(owningModule)
{
// TODO: isStatic = true? not sure how to define top level... |
6f1bad4a8b523a14cb579d06356cf7dab4d7a404 | 352115ddd493e230dcef73115e17fef9f4d8bf6f | /贪吃蛇/贪吃蛇/贪吃蛇.cpp | fcbf4e8ec7d87f22f4e0fc532b057206daf72f78 | [] | no_license | ZhouJun2303/c_game | 298e839566881b5b6ce1924ff9b934b1626c68d6 | c18fa6c2622cc57a80a0f9993d6b43a554624461 | refs/heads/master | 2020-12-15T19:55:07.134629 | 2020-01-21T03:40:29 | 2020-01-21T03:40:29 | 235,236,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,970 | cpp | 贪吃蛇.cpp | //#define _CRT_SECURE_NO_WARNINGS
#include "pch.h"
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#include"Sanke.h"
#include<Windows.h>
#include<conio.h>
/*
1、定义蛇的结构体
1、初始化蛇和实物
3、开始游戏
蛇和墙的碰撞
蛇和吱自身的碰撞
蛇和食物碰撞
重新随机食物
蛇身体增长
分数增长
方向键的控制
4、游戏结束
*/
void Ini... |
f110aa8c124869cbe8fef7b161e8b14aea2f76b0 | a94b40e523a0431796946ab9ca3b7a6f50c06f06 | /luogu/P2661.cpp | 44cd0d19eb333c20c664d8350e20aa2d6e88c0ee | [] | no_license | superkunn/acm | fbf697beb6239f197319c2b0315e3fb2dfd7fa94 | 7c91ecb4f9cca70bc8ca5178711d3ff8eaac788a | refs/heads/master | 2021-06-06T13:33:36.207848 | 2019-12-25T00:59:17 | 2019-12-25T00:59:17 | 138,170,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | P2661.cpp | #include<bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=a;i<=b;i++)
#define what_is(x) cerr<<#x<<" is "<<x<<endl;
const int MAXN=2e5+233;
int vis[MAXN];
int G[MAXN];
int ans=1e9;
int d[MAXN];
int f[MAXN];
void dfs(int u,int dep){
if(f[u])return;
f[u]=true;
int v=G[u];
if(d[v]!=0){
... |
87b4685e94afdf2ea22c9b6c75186cebd1cee0c0 | 3706f30d8bdb900e4f6397002927acb34cc1da20 | /LeetCode P101~150/P102.cpp | f39cd97220048e88ed3226b5566e3923b8a041d5 | [] | no_license | chemlzh/Solution-of-LeetCode | b6b6ebb9e9c8bc68362c28f69c03ce1f542b9d01 | 389db021151a2d51d2e67b50ecfc13fa5292e0eb | refs/heads/master | 2021-07-17T04:32:41.519954 | 2020-06-03T03:46:51 | 2020-06-03T03:46:51 | 170,661,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,293 | cpp | P102.cpp | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
struct TreeNode {
int val;
TreeNode* left;
TreeNode* right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
}*treeRoot;
inline void makeTree(vector<int> treeArray, int num, TreeNode*& node) {
if (num >= treeArray.size()) return;
else... |
9c584c0afe5f6bf53e2c715571cea5544f577729 | 87582f5bdefd4ee50b052e04d7fb1dbec4adf91e | /src/object/exceptions/Exception.h | 4b5b7db09b0d6295761eb844cd9e129ae840a8d8 | [] | no_license | dwachira/tpdatos2c2008 | 626f33e16e80436c41b3d406ca29bfdce4dd51ad | d142dd8e8498d5980178ec41f7c073736ba35d3a | refs/heads/master | 2021-01-25T08:49:41.383102 | 2008-12-14T22:54:25 | 2008-12-14T22:54:25 | 39,199,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | h | Exception.h | /*
* Exception.h
*
* Created on: 22-jul-2008
* Author: gsenno
*/
#ifndef EXCEPTION_H_
#define EXCEPTION_H_
#include <string>
class Exception {
private:
std::string description;
public:
Exception();
Exception(const std::string& description);
virtual ~Exception();
};
#endif /* EXCEPTION_H_ */
|
059020871162a5a8418f63f7793264d51216883f | 98018bc3a73fd3b49964b4a3b6c3b88df4cde721 | /src/chain_sequence.cpp | c479ad0850d3c1b4023ff96f0eda41690bb9eea1 | [] | no_license | oKermorgant/ecn_Dextar | 24aef93b0074176fca0a73a84da477d0c1368b89 | a1c88606e803073bc24b6119f9d82bebd727df1d | refs/heads/master | 2021-01-19T07:22:49.042929 | 2018-10-15T21:34:36 | 2018-10-15T21:34:36 | 87,531,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,676 | cpp | chain_sequence.cpp | #include <chain_sequence.h>
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
// static variables
std::vector<std::vector<double> > ChainSequence::nodes = std::vector<std::vector<double> >();
unsigned int ChainSequence::n_ = 0;
std::vector<unsigned int> ChainSequence::base_ordering_ = st... |
0f5ba547b95cc40b0bd009b98dfb8a3e734115d3 | 7546a2a3660688002df7bbd924075912bd2661b7 | /src/flop_kmeans.cc | 1214c658b3d7e33761724ee0554657bafd5a9d7b | [
"MIT"
] | permissive | northwolf521/poker-hand-clustering | 8bc912486fb0b551fbe9bfff97fcc0f5c636ca2d | 2a302242f977d35b1adf0087fbe0cc958a194dda | refs/heads/master | 2023-03-22T10:44:14.545727 | 2020-01-30T06:33:50 | 2020-01-30T06:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,118 | cc | flop_kmeans.cc | #include "flop_kmeans.h"
#include <cfloat>
#include <thread>
#include "flop_kmeans_util.h"
#include "mean_histogram.h"
using std::pair;
using std::vector;
namespace {
size_t calc_nearest_cluster_idx(
const std::vector<size_t>& flop_hist,
std::vector<std::vector<std::pair<size_t, double>>> mean_histograms,
... |
509dcc1e4fcf51e93f0cd9674ec2b1e3ca786b8a | cb553e547e7927e2a199d7ab1d74f698907986f6 | /factory_method/fm_factory_child3.h | d78e4946a1c814566ee81260dd7125cd4d2bc879 | [] | no_license | PKizin/patterns-qt-cmake | fcccdc1ab5ae6f3e35f688ee0057fbe202b7b4be | ea1efb477a4d8a8a0d882609920b8565d626316e | refs/heads/master | 2020-12-03T00:38:57.441679 | 2017-07-19T16:35:49 | 2017-07-19T16:35:49 | 96,054,815 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | h | fm_factory_child3.h | #ifndef FM_FACTORY_CHILD3_H
#define FM_FACTORY_CHILD3_H
#include "fm_factory_base.h"
#include "fm_base.h"
namespace factory_method {
class FactoryChildThree : public FactoryBase {
public:
Base* create() override;
};
}
#endif
|
91c239b432fe410156359d0e05925d117409dcff | b0d93b5b4930d1e4c07112e3df07e7d7c13b3688 | /Reversi/Board.h | f9500302e091d1fddeb18e79c9f90c4c77fbeba7 | [] | no_license | OleksiyNosov/Reversi | 569c9e72ff7244353d8ca8bc00e084b8d8c025a1 | fff6fad6ea00e661bc0efbefd6e7c98a17eb55ba | refs/heads/master | 2016-08-12T15:29:06.255650 | 2016-04-06T13:18:54 | 2016-04-06T13:18:54 | 55,552,731 | 1 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 2,660 | h | Board.h | #pragma once
#include "Disk.h"
using std::vector;
using std::list;
struct LineOfDisks
{
// Line between two disks
// start of line
COORD st;
// end of line
COORD en;
// line direction H - Horizontal and V - vertical
// possi values +1 and 1
int H;
int V;
LineOfDisks()
{
this->clear();
... |
d350bcdcc3d7acafe6b8fb0367f230b2b88fe488 | bef8fc158ace874fb2599e09997b61860dfed558 | /SDIZO_Projekt_2/ListMember.h | 93946e24c96a892530e6e441cab676c0b797690c | [] | no_license | piotrek-k/SDIZO_Projekt_2 | f9cdeca6b652dc5e6a5748d0c7be91da6a959496 | 82757726e73a4047fece845df06013ea91debc05 | refs/heads/master | 2020-05-17T08:35:33.909296 | 2019-05-30T19:21:31 | 2019-05-30T19:21:31 | 183,610,254 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | h | ListMember.h | #pragma once
#include "Node.h"
class ListMember : public Node
{
ListMember* next = nullptr;
bool first = false; // TODO: potrzebne?
public:
ListMember();
ListMember(int index, int weight);
ListMember(ListMember * prev);
~ListMember();
void Build(int index,int weight);
void AddAtTheEnd(int number, int weight)... |
f1b2ba6ef3cbc1cf74304cad2e0ccb282d26e09d | faddb0eb72fa949cd3ee7990b744072fa56fb258 | /Questoes UVA ACM/11605 - Lights inside a 3D Grid.cpp | 67c1c0333f1789348374ad019abc54a4a367830a | [] | no_license | mbfilho/icpc | 7d30e9513d8d929275a6112c29726eb472884f86 | 98e51ed48748fb09bd1c0259d38d4041aacde6ca | refs/heads/master | 2021-01-10T07:32:15.916576 | 2016-03-01T00:20:06 | 2016-03-01T00:20:06 | 52,644,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,013 | cpp | 11605 - Lights inside a 3D Grid.cpp | #include <bits/stdc++.h>
using namespace std;
#define fr(i,a,b) for(int i = a; i < b; ++i)
#define rep(i, n) fr(i,0,n)
#define each(it, m) for(__typeof(m.begin()) it = m.begin(); it != m.end(); ++it)
typedef pair<double,double> P;
#define N 120
#define pb push_back
#define mp make_pair
int X, Y, Z;
double favo(int x, ... |
9b4b9465f3a7648485432360d6676a6a08951f34 | cdf3fe28faf4b266fe0bbc513a2583b6823dc2b4 | /PathAndValue.h | fa935c44f56c237bc0d5a96ea1e1ee9bb0de38f8 | [] | no_license | benjaminmilch/project | 8ad042848f750688b59a77ec2a4eafa92b38348e | 27d00c34a48d310a02829600f1001e6c4c65f630 | refs/heads/master | 2020-04-13T01:44:47.444694 | 2018-12-30T16:38:57 | 2018-12-30T16:38:57 | 162,882,218 | 0 | 0 | null | 2018-12-23T13:45:49 | 2018-12-23T10:40:52 | C++ | UTF-8 | C++ | false | false | 336 | h | PathAndValue.h | //
// Created by ben on 12/25/18.
//
#ifndef PROJECT_PATHANDVALUE_H
#define PROJECT_PATHANDVALUE_H
#include <string>
using namespace std;
class PathAndValue {
string m_path;
double m_value;
public:
PathAndValue(string path);
void updateValue(double value);
string getPath();
};
#endif //PROJECT... |
8a6867e48786fde3061c44edf3539fd25e3ab27b | 25284bc98ae6983d663d165c46b9fa4dab1c0eb6 | /Userland/Utilities/edid-dump.cpp | 2ac465b249c4c0121703c622f853a249db498a23 | [
"BSD-2-Clause"
] | permissive | bgianfo/serenity | 6c6564e9b72360c4046c538c60b546b6c2a51cd9 | a813b941b82a48d04859669787cbbb21ea469f1e | refs/heads/master | 2023-04-14T20:53:16.173060 | 2022-04-22T02:52:55 | 2022-07-08T22:27:38 | 233,478,401 | 2 | 1 | BSD-2-Clause | 2022-02-03T09:02:53 | 2020-01-13T00:07:49 | C++ | UTF-8 | C++ | false | false | 996 | cpp | edid-dump.cpp | /*
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/String.h>
#include <AK/StringUtils.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/System.h>
#include <LibEDID/EDID.h>
#include <LibMain/Main.h>
#include <assert.h>
#include <errno.h>
#include <f... |
be18ca4ec46c26b6eadab977c0b5b50c50de1ab2 | 967085e58cd85996d603ba2e55b0be53309eae80 | /CodeForces/CF197-D2-D.cpp | e6fba4f05e1aaac4459ca3fc17ce6c4ba25d99cd | [] | no_license | Ahmed-Zaher/CompetitiveProgramming | 4c4f8718251cbf45d73e074664cf856daf67047a | 4531541e03b961a6af70d11a700e106d6e707516 | refs/heads/master | 2021-07-06T23:52:20.258408 | 2021-05-07T23:29:43 | 2021-05-07T23:29:43 | 236,213,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,461 | cpp | CF197-D2-D.cpp | /*
* We consider 2 grids to be different if the positions (i, j) that
* lie in them have different (i / n, j / m)
* Consider the sequence of positions (i mod n, j mod m)
* we'd get if we were to start walking infinitely away
* from the start position, eventually we'd get a repeated
* pair (and at that point... |
415eea8f0317d61d15691d6ca6b5f6446485f2f2 | aee7d21690aa925262a1beaa68ba730c9b96e39a | /test/SamplePlatformer/Tiles/Tile.cpp | b8cdf5340aa1c74de0ac576ab1d0a4164ab57c15 | [] | no_license | powanjuanshu/glowy2d | 8dc153fc22cf00898cb1a8e2055186900d0db5d1 | 0d6633e2a3255da583c5948d9d760053ea7ad302 | refs/heads/master | 2020-03-26T10:43:36.833942 | 2017-01-03T23:51:47 | 2017-01-03T23:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | Tile.cpp | #include "Tile.h"
namespace game
{
Actor * Tile::spawn(glm::vec2 pos)
{
return nullptr;
}
bool Tile::isTextureSet() const
{
return false;
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.