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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18e8a0caeaa91f9bb5c61ec5f21beb96509f347b | c574911928228eaef73c668c09bade884215bfca | /src/inputimpl.h | 4c4ae931432961c898e94c75040554ed53a5998b | [] | no_license | daboytim/cse655 | 8b5ed2332c72ad933ab04294058347648191257b | 9b61de80789e9486aa47ee72f251013d95fa6d30 | refs/heads/master | 2021-01-11T01:42:03.382872 | 2016-10-12T04:38:44 | 2016-10-12T04:38:44 | 70,658,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | h | inputimpl.h | /*
* inputimpl.h
*
* Created on: May 17, 2012
* Author: boytim
*/
#ifndef INPUTIMPL_H_
#define INPUTIMPL_H_
Input::Input() {
idl = 0;
}
Input::~Input() {
if (idl != 0)
delete idl;
}
bool Input::parse() {
if (toke->getTokenNumber() != 10) {
printf("%s%s'\n", "Error: expected 'read', found '"... |
473d8027653c7dad315b90db366a42aeb5d6d50e | bee84ca1f24f111768053779bf5c39acdfb52748 | /src/CommandFactory/header/CHandler.h | b4f82954be328518dd9efda20b9c704e2e2899c3 | [] | no_license | cooliotseng/eMMCTestFramework | 1bb36835ccada5e68effe3dabda2fcec698a790c | 2f7d34795a0ebbce58ccdb871aa8d62f85df4711 | refs/heads/master | 2021-01-20T05:58:16.077686 | 2015-07-31T02:56:13 | 2015-07-31T02:56:13 | 39,982,656 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,347 | h | CHandler.h | /*
* CHandler.h
*
* Created on: Feb 24, 2015
* Author: vli
*/
#ifndef CHANDLER_H_
#define CHANDLER_H_
#include <string>
#include <stdio.h>
#include <iostream>
#include <json/json.h>
#include "../../header/ICommand.h"
#include "../../CommandType/header/IReceiver.h"
#include "../../UpdateMethod/header/CUpdat... |
478d905bdd99a364c50d1c86d724df41838a0af4 | 285f0ee49313530fa56cc48338e6d72b205c4f75 | /flights.h | fb8d3b655e97409e7b8a4737ba35c037f900ab3e | [] | no_license | bidhankarki4/MeanGreenAirlines | 0ca53e7f92569f9d6924b0520d7c9465e0e5abd8 | e56b130a3303b7facfbfa2a50eca49d2735fcbc0 | refs/heads/main | 2023-03-26T16:46:57.282854 | 2021-03-22T18:36:37 | 2021-03-22T18:36:37 | 350,450,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | h | flights.h | #ifndef FLIGHTS_H_
#define FLIGHTS_H_
class flights{
private:
int flightCount;
vector<flight> flightsList;
public:
flights(){flightCount = 0;}
void AddFlight();
void EditFlight();
time_t GetDateTime();
void DeleteFlight();
void SearchFlight();
void PrintFlight();
void StoreFlight();
voi... |
054858fdb0dd16806dad57c02b271ad85eba2272 | d88ec6e16cfd248b9847f88ee90ae84d2a5e5c39 | /searching5.cpp | bb0a8a0a0f4b6113c6573b91ebf2e3a8a8d349dc | [] | no_license | huuhung99/C-PTIT | 6ff388189fcade1d7b871119f849a77596622024 | 726dee5e7ed7ed58ffe0f86f33d775daaec7f106 | refs/heads/master | 2023-06-26T21:16:07.036590 | 2021-07-22T04:16:44 | 2021-07-22T04:16:44 | 352,688,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cpp | searching5.cpp | #include<bits/stdc++.h>
using namespace std;
int t;
int main(){
cin>>t;
while(t--){
int n,min=INT_MAX,min2=INT_MIN;cin>>n;
int a[n],check=0;
for(int i=0;i<n;i++){
cin>>a[i];
if(a[i]<min) min=a[i];
}
for(int i=0;i<n;i++){
if(check==0&&a[i]>min) {... |
a1ee53f341ea75d68dacb9cb05fa7e37a8a6943e | fca68c5fec6df6f999408571315c2b8e7c4b8ce9 | /service/supersialign_home/src/JimsTestHistogram/Instantiate/T_vector_HINumberWithErrors.cc | 83e82747865a5093783c9213a639991ed019cb0d | [] | no_license | jpivarski-talks/1999-2006_gradschool-3 | 8b2ea0b6babef104b0281c069994fc9894a05b14 | 57e80d601c0519f9e01a07ecb53d367846e8306e | refs/heads/master | 2022-11-19T12:01:42.959599 | 2020-07-25T01:19:59 | 2020-07-25T01:19:59 | 282,235,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 681 | cc | T_vector_HINumberWithErrors.cc | // -*- C++ -*-
//
// Package: DummyHistogram
// Module: T_vector_HINumberWithErrors.cc
//
// Description: Instantiate STL classes for DummyHistogram
//
//
// Author: Martin Lohner
// Created: Wed Sep 11 21:45:29 EDT 1999
// $Id: T_vector_HINumberWithErrors.cc,v 1.1 1999/10/01 18:43:29 mkl Exp $
//
//... |
93fff319f86e64ec7d0bcad85bf18af8adc2a7f8 | bfd52ce7746eea911b02984303412b9c9599d2cd | /codeforces/diva.cpp | 5ae8cd1c10137e78141b09f9459569254636d23d | [] | no_license | abhishek1711/COdeforces | 6ae6a5b1d96e4fc78b8a246df194fa10bf16a94b | 71b5da0699f8706131a62ce10da104ba31dd7cf2 | refs/heads/master | 2020-04-19T12:37:37.967439 | 2019-01-29T17:44:48 | 2019-01-29T17:44:48 | 168,196,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | diva.cpp | #include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main()
{
int n,m;cin>>n>>m;
int arr[m+1]={0};
for(int i=0;i<n;i++){
int l,r;cin>>l>>r;
for(int j=l;j<=r;j++){
arr[j]=1;
}
}
int cnt=0;
int stor[m];
for(int i=1;i<=m;i++){
if(arr[i]==0){
stor[cnt] = i;
cnt++;
}
}
cout<<c... |
3fe782f774f24fe0f7d02ad01ace6a13e0ffd6c2 | 85e50a5e068a800973d57be93d8edc15a580325d | /P2PCP.h | c3c15381e020d34b7c9eed5c10d1e7889f0223e4 | [] | no_license | jjzhang166/markessien-p2p. | 9715a2b05bd129bce4798d2ad8b8d51684c05543 | a691f47fc198f76f7fd5e66cdab1be7f39c0fbf1 | refs/heads/master | 2021-08-12T01:36:01.851011 | 2010-10-23T12:26:52 | 2010-10-23T12:26:52 | 110,662,175 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,986 | h | P2PCP.h | #ifndef _P2PCP_H_
#define _P2PCP_H_
template <class T>
class CProxy_ISharedFolderManagerEvents : public IConnectionPointImpl<T, &DIID__ISharedFolderManagerEvents, CComDynamicUnkArray>
{
//Warning this class may be recreated by the wizard.
public:
HRESULT Fire_OnFileAdded(BSTR File... |
adb3fd4a3114f4657c156bad078a178c64db3bf9 | bc4919e48aa47e9f8866dcfc368a14e8bbabbfe2 | /Open GL Basic Engine/source/glutFramework/glutFramework/oglGameVars.cpp | ccd6d37a4d933df3a1147163f42fad50060d29fc | [] | no_license | CorwinJV/rvbgame | 0f2723ed3a4c1a368fc3bac69052091d2d87de77 | a4fc13ed95bd3e5a03e3c6ecff633fe37718314b | refs/heads/master | 2021-01-01T06:49:33.445550 | 2009-11-03T23:14:39 | 2009-11-03T23:14:39 | 32,131,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,100 | cpp | oglGameVars.cpp | #include "oglGameVars.h"
#include<fstream>
#include<iostream>
#include <string>
#include <sstream>
#include <cmath>
#include <ctime>
using namespace std;
oglGameVars* oglGameVars::pinstance = 0;// initialize pointer
oglGameVars* oglGameVars::Instance ()
{
if (pinstance == 0) // is it the first call?
... |
abe58671039413165b19e9f23ca73d6e13542f94 | 1d3b1589a86211561c5224c65724fa0d9418f198 | /Source/UnrealGT/Private/Triggers/GTGeneratorTrigger.cpp | 66c51044d8371c5777b9a46e5f1fa74efb04fbbe | [
"MIT"
] | permissive | unrealgt/unrealgt | 3ced901522048dc4bc9e352db0d201dce840f58a | 986a3dd178c06eeb7c6c2ade2a3d103fca3105f6 | refs/heads/master | 2023-08-03T00:25:15.710243 | 2022-08-10T13:27:30 | 2022-08-10T13:27:30 | 213,363,349 | 40 | 14 | MIT | 2023-08-01T02:29:29 | 2019-10-07T11:16:41 | C++ | UTF-8 | C++ | false | false | 808 | cpp | GTGeneratorTrigger.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Triggers/GTGeneratorTrigger.h"
#include <Engine/World.h>
#include <TimerManager.h>
#include "Generators/GTDataGeneratorComponent.h"
// Sets default values for this component's properties
UGTGeneratorTrigger::UGTGeneratorTrigger... |
43f46d30bc642ff3b1714ff71d8d6376653c037a | 9a101127203acd5a79bc81c60538d7a52b6e8978 | /Keeper.cpp | e1ee5e674532765b1cbad7f4c9bfcc6ab34f62a1 | [] | no_license | sevimcaliskann/cs411_term_project | 79d17fad154fee0e3d4d5ca06c5ced34038e2a93 | 664fde2d90b04277ac3755d0c99a7e12e9739f4c | refs/heads/master | 2021-01-02T09:26:02.416480 | 2015-01-07T00:33:11 | 2015-01-07T00:33:11 | 28,787,923 | 0 | 0 | null | null | null | null | ISO-8859-3 | C++ | false | false | 2,204 | cpp | Keeper.cpp | #include "Keeper.h"
#include <iostream>
#include <string>
using namespace std;
Keeper::Keeper(Seed &ranGen, Distributer &distributer, int necesAuth){
this->ranGen = &ranGen;
this->necessAuth = necesAuth;
this->distributer = &distributer;
input = 0;
output = 0;
}
void Keeper::setBallot(pair<mpz_class, mpz_class> ... |
0e2694dbc3c24e52b534f967d51380c52137eddf | b7209458829753c9b955f56532bff0c275f2676c | /framework/strike.hpp | 86d0281934a1736042241632c41b5413cad015ef | [
"MIT"
] | permissive | valentinanaghavi/final_raytracer | 554557ea4e8eb4df412231dc091a3c89f25e577d | 7acc18a96fe82e8d71c6fe48d78e1935985d3f54 | refs/heads/master | 2020-03-25T23:35:58.897359 | 2018-09-14T14:17:35 | 2018-09-14T14:17:35 | 144,282,845 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,148 | hpp | strike.hpp | #ifndef STRIKE_HPP
#define STRIKE_HPP
#include <glm/glm.hpp>
#include <memory>
//#include "shape.hpp"
#include <glm/vec3.hpp>
#include <string>
class Shape; //???
struct Strike
{
bool hit;
float distance;
glm::vec3 origin {0, 0, 0};
glm::vec3 normal {0, 0, 0};
//Shape* nearestShape;
std::shar... |
ad70e85c78d098d35622c359a69bc02bd4eba650 | 2c3d596da726a64759c6c27d131c87c33a4e0bf4 | /Src/VC/bcgcbpro/BCGPChartVisualObject.cpp | 5f0d906ac509b59d8da647d4ba7b4ea06644bdca | [
"MIT"
] | permissive | iclosure/smartsoft | 8edd8e5471d0e51b81fc1f6c09239cd8722000c0 | 62eaed49efd8306642b928ef4f2d96e36aca6527 | refs/heads/master | 2021-09-03T01:11:29.778290 | 2018-01-04T12:09:25 | 2018-01-04T12:09:25 | 116,255,998 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 241,718 | cpp | BCGPChartVisualObject.cpp | //** *****************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2012 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only ... |
888db58d74aff4835bef535b2984942e8a6e9373 | eab47b71185ac405380441e251ddcc75da575052 | /playback/amf/extern/g711/g711_codec.h | ad25e6d9fe478e2709e7b6fb1b147632ea764ac5 | [] | no_license | mrtos/ambarella | 6b2bfc6adc3d314ef85cdc63bcded02b85cd3383 | 2eaae76ec56e052479ca6405a82c8fec0bc7a794 | refs/heads/master | 2016-12-13T05:10:17.576686 | 2016-01-21T09:47:01 | 2016-01-21T09:47:01 | 27,258,572 | 3 | 12 | null | null | null | null | UTF-8 | C++ | false | false | 1,123 | h | g711_codec.h | /*
* g711_codec.h
*
* History:
* 2013/11/20 - [SkyChen] create file
*
* Copyright (C) 2013, Ambarella, Inc.
*
* All rights reserved. No Part of this file may be reproduced, stored
* in a retrieval system, or transmitted, in any form, or by any means,
* electronic, mechanical, photocopying, recording, or ot... |
106fff1df756686270286da774bf8c978b458124 | f15e0310d54bb214961ea9bfe9357c28c0c8ed4f | /code/fmirsaII154.cpp | a3897f715c5e88732c57e96fc59cbf035b02c5ce | [] | no_license | chenup/LeetCode | d46db2b506c85ff3fabe1422b5a570766f4d154a | 2d3df4c03d797f3de6f22811cba2c3e079b22012 | refs/heads/master | 2020-12-30T11:40:50.163184 | 2018-04-28T07:19:19 | 2018-04-28T07:19:19 | 91,523,392 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | cpp | fmirsaII154.cpp | #include <iostream>
#include <algorithm>
using namespace std;
class Solution {
public:
int findMin(vector<int>& nums) {
int min = nums[0];
for(auto it = nums.begin(); it < nums.end() - 1; it++)
{
if(*it > *(it + 1))
{
if(*(it + 1) < min)
{
min =... |
ae52431825bf3d1cd3137e0f249cb1c451797e69 | 25360b2fccdaf3da4e2373a04c6075ac37ae5c7a | /9.19/push_to_list.cpp | 4b730c541f84b0b524db4a1e6e28e78e8dbbc810 | [] | no_license | joook/CppPrimerProjects | e0a884113a82bbbd58f61ee4e9008cc3c3fb4d0b | 952d57c867670d9010e1790fa4f0d87e452a6967 | refs/heads/master | 2021-09-18T17:45:18.220942 | 2021-08-23T11:22:29 | 2021-08-23T11:22:29 | 149,216,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | push_to_list.cpp | #include <iostream>
#include <list>
using namespace std;
void readString(list<string> &TempList)
{
string TempString;
while(getline(cin, TempString))
{
TempList.push_back(TempString);
}
}
void printList(list<string> &TempList)
{
for(auto TempItr = TempList.begin();
TempItr != Temp... |
c5d30647122bb4dc7561bccd0fc17614cf876e2c | 530c493966879b1a9d49f8449e1e20d83d50d077 | /1414.cpp | af498895690a4f7cdba549673d3e9ec0d55920e8 | [] | no_license | sourabhossain/light_oj | 3818e5bdaa9346949a62a4eb568ef9a1266595d0 | d4ad7ce2f393bb5842333d66ed509335732b780f | refs/heads/master | 2021-12-24T18:09:01.717322 | 2021-10-02T16:53:53 | 2021-10-02T16:53:53 | 146,195,523 | 0 | 0 | null | 2021-10-02T16:53:41 | 2018-08-26T16:06:31 | C++ | UTF-8 | C++ | false | false | 732 | cpp | 1414.cpp | #include <bits/stdc++.h>
using namespace std;
bool isLeapYear(int year) {
return !(year % 4) && (year % 100) || !(year % 400);
}
int main()
{
int T;
scanf("%d", &T);
for(int i = 1; i <= T; i++) {
string m1, m2;
int d1, d2, y1, y2;
char ch;
cin >> m1 >> d1 >> ch >> y... |
c9207f0a99df409ad25fbad99f0681cb570b0b0a | fcce85b2520971316631616e51ff145aad0bf67b | /ConsoleApplication4/4129.cpp | 0c5ba3bc535e06841872c0504023a31fcfa2ca25 | [] | no_license | ClydeChen/Openjudge | 2d7cde95cbf21745cedad8ef80ab97cb11c561af | 6e21fdd33165ecd9811df67d1e7a315ead0f81f3 | refs/heads/master | 2020-06-09T16:40:09.996052 | 2019-06-26T09:07:56 | 2019-06-26T09:07:56 | 193,469,994 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,968 | cpp | 4129.cpp | /*
你现在身处一个R*C 的迷宫中,你的位置用"S" 表示,迷宫的出口用"E" 表示。
迷宫中有一些石头,用"#" 表示,还有一些可以随意走动的区域,用"." 表示。
初始时间为0 时,你站在地图中标记为"S" 的位置上。你每移动一步(向上下左右方向移动)会花费一个单位时间。你必须一直保持移动,不能停留在原地不走。
当前时间是K 的倍数时,迷宫中的石头就会消失,此时你可以走到这些位置上。在其余的时间里,你不能走到石头所在的位置。
求你从初始位置走到迷宫出口最少需要花费多少个单位时间。
如果无法走到出口,则输出"Oop!"。
输入
第一行是一个正整数 T,表示有 T 组数据。
每组数据的第一行包含三个用空格分开的正整数,... |
d152189b8efc7960cb4c598671ee648f46f1ca16 | b0075e2d7115361860b48c11005d59bdabea8a10 | /hmailserver/source/Server/ExternalFetcher/POP3ClientConnection.h | 59dba1f959355b53bb2dfb29d0a8b391da6b6ccb | [] | no_license | hmailserver/hmailserver | 73f7d61912db856c3f610e3b829fd7a5135b6bc6 | 12ff3d6ab48b9c6181433f1c0b01ba8c8941abd4 | refs/heads/master | 2023-08-06T11:03:44.558427 | 2023-07-27T13:10:52 | 2023-07-27T13:10:52 | 18,572,902 | 822 | 332 | null | 2023-07-24T14:29:28 | 2014-04-08T19:57:15 | C++ | UTF-8 | C++ | false | false | 4,827 | h | POP3ClientConnection.h | // Copyright (c) 2010 Martin Knafve / hMailServer.com.
// http://www.hmailserver.com
#pragma once
#include "../common/TCPIP/TCPConnection.h"
namespace HM
{
class FetchAccount;
class Message;
class TransparentTransmissionBuffer;
class MimeHeader;
class Result;
class FetchAccountUIDList;
class ... |
0995b549798a83fdc48de6213b5d7d28d23a80d5 | 7e90d8bbf7627bd0083eadb14d37e17c4f1c6185 | /Networking/project3 - CS1652 - niv5/node.cc | 538957f3517ba5beecbfc84ad5e6d4907a4e5420 | [] | no_license | thebrownknight/code-samples | 889f4b8452bcb1494e867116b81aa27e7f8767fc | d6cb8bc80bdfcfbe5b9a46226e5eae7f91640687 | refs/heads/master | 2020-12-24T16:33:25.572130 | 2016-05-04T02:11:59 | 2016-05-04T02:11:59 | 15,684,697 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,464 | cc | node.cc | #include "node.h"
#include "context.h"
#include "error.h"
#include "linkstate.h"
#include "distancevector.h"
Node::Node(unsigned n, SimulationContext *c, double b, double l) :
number(n), context(c), bw(b), lat(l), routing_table()
{}
Node::Node() {
throw GeneralException();
}
Node::Node(const Node &rhs) : ... |
41c0234cb4a9b8f468d9e2b4c316b4aa63fe9443 | a73069d78e432e9881c94ed388790156b7f5f08b | /exit.cpp | 246718f8339b913194034467d86e91a2a3a7d0cc | [] | no_license | miljoo/Boxle | 4438f0400e38bd227c7f3df0ba4717f52dbc2150 | 3dba69fe9e17147e6cfbfee6431a81c0e18d5765 | refs/heads/master | 2021-01-21T13:11:23.131434 | 2014-03-26T00:15:14 | 2014-03-26T00:15:14 | 14,368,611 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | exit.cpp | #include "exit.h"
Exit::Exit(int px, int py){
x = px;
y = py;
z = 0;
}
int Exit::get_x(){
return x;
}
int Exit::get_y(){
return y;
}
int Exit::get_z(){
return z;
}
void Exit::set_z(int x, int y, vector< vector<int>> varray){
z = varray[x][y];
}
void Exit::set_x(int value){
x = value;
}
void Exit::set_y(i... |
b5b2951e69b3a6b39236a960368deb52060a5cde | 911ee2ba4a7c7cbcacd47b99eb858ab59ef74e51 | /gemv/gemv_main.cpp | 33acf72e0575e3663b185b46e46124c12f2c8c27 | [] | no_license | samuellees/cuda_cooking | 50a68cd4c8456dc6b6e9dd2297d8052253eb34df | c6956d4106376fb21a7e5d4a69e43b14cc679c47 | refs/heads/master | 2023-02-04T09:54:33.074307 | 2020-12-29T05:49:10 | 2020-12-29T05:49:10 | 204,662,677 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,134 | cpp | gemv_main.cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cmath>
#include "gemv.h"
#include "assert.h"
template<typename scalar_t>
void print_data(const scalar_t * data, int length) {
for (int i = 0; i < length; ++i) {
std::cout << data[i] << ", ";
}
std::cout << std::endl;
}
int main() {
Mat... |
53b10e1913ecebb3b48856e8466d446046ec4360 | eb383814e46d2455acc364bac846184bc40d2111 | /125/main.cpp | 0756d79c315ec1c7922e50eab267dd19431e7ae9 | [] | no_license | hank08tw/SproutOJ | 0f411ccb08c2ebe647121b5086009e2eedec8010 | e32ce1d72f9755e9c868aa97ef24e2f34d95f8aa | refs/heads/master | 2021-05-02T18:39:47.562359 | 2018-07-26T15:49:19 | 2018-07-26T15:49:19 | 120,612,776 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,669 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
#define NUM 10000019
//int all=0;
struct thedata{
int val;
int time;
};
int add(int a,int n){
if(n==1)return a;
if(n%2==0){
int num=add(a,n/2);
return ((num%NUM)+num)%NUM;
}
int num=add(a,(n-1)/2);
return ((((num%NUM)... |
d28cc23d90a69e5f20d0bb9fa451f9c1b5f11738 | 57238ae793184bfe47f20783be3f44fded136efb | /DX/RasterzierState.h | 3c4060b251a7b9fb1fd2ab37f41d0d9a48b7f989 | [] | no_license | Newt6611/DXPratice | 34025dca80eaafdc907942a0f1bdb05d5410dbc5 | afe03f3890598ecddaa73cf64f579c5dee64cb08 | refs/heads/main | 2023-08-12T23:59:48.409118 | 2021-09-30T08:50:08 | 2021-09-30T08:50:08 | 395,588,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | RasterzierState.h | #pragma once
#include <d3d11.h>
enum RasterzierStateType
{
Solid = 0,
WireFrame
};
class RasterzierState
{
public:
RasterzierState();
~RasterzierState();
void Bind();
inline ID3D11RasterizerState* GetCurrentState() const { return m_CurrentState; }
inline RasterzierStateType GetType() const { return m_Curren... |
1da88fbd956a139878090f0512f424fe0db9d9c7 | 07462e8cc8e1bcdcc6a8bac76a7e8716d83d79d2 | /剑指offer/46、把数字翻译成字符串.cpp | bb5ddeca4bab31798041f592b8acbfa71dd4dd70 | [
"Apache-2.0"
] | permissive | Bigwode/3-leetcode-everyday | 0bc97133e06b2f89c2ef7e5c9596c18b49eab083 | 9380fffcfcb69c618cb771c2142302056c42782d | refs/heads/master | 2020-04-06T21:08:54.565561 | 2019-09-10T01:35:22 | 2019-09-10T01:35:22 | 157,794,100 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | cpp | 46、把数字翻译成字符串.cpp | /*
f(i) = f(i+1) + g(i, i+1)*f(i+2)
*/
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int Num2StrCount(const string& s)
{
int len = s.length();
int count = 0;
int* counts = new int[len];
for(int i= len-1; i>=0; i--) // 避免重复子问题,从末尾开始
{
if(i==len-1)
... |
0934d06d1af60d9f94658b579d8aaef55ea99403 | 34aa58efb0bd2908b6a89b97e02947f6ab5523f2 | /server/游戏组件/藏宝库子游戏/红黑大战/服务器组件/TableFrameSink.cpp | 7cb59bc6efb3e6d8bb19f7e884d3bcb413d1b5ae | [] | no_license | aywlcn/whdlm | 8e6c9901aed369658f0a7bb657f04fd13df5802e | 86d0d2edb98ce8a8a09378cabfda4fc357c7cdd2 | refs/heads/main | 2023-05-28T14:12:50.150854 | 2021-06-11T10:50:58 | 2021-06-11T10:50:58 | 380,582,203 | 1 | 0 | null | 2021-06-26T19:31:50 | 2021-06-26T19:31:49 | null | GB18030 | C++ | false | false | 87,676 | cpp | TableFrameSink.cpp | #include "StdAfx.h"
#include "DlgCustomRule.h"
#include "TableFrameSink.h"
#include <locale>
#include <algorithm>
//////////////////////////////////////////////////////////////////////////////////
//常量定义
#define SEND_COUNT 100 //发送次数
//索引定义
#define INDEX_PLAYER 0 //闲家索引
#define INDEX_BANKER ... |
953f55a36f951dd084087db4d6c8d42750cb4ee2 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CUDADataFormats/TrackingRecHit/interface/TrackingRecHitsUtilities.h | 7e28cb97becc8c2f2bcfc39952ff3f80dd67789e | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 3,363 | h | TrackingRecHitsUtilities.h | #ifndef CUDADataFormats_RecHits_TrackingRecHitsUtilities_h
#define CUDADataFormats_RecHits_TrackingRecHitsUtilities_h
#include <Eigen/Dense>
#include "Geometry/CommonTopologies/interface/SimplePixelTopology.h"
#include "HeterogeneousCore/CUDAUtilities/interface/HistoContainer.h"
#include "DataFormats/SoATemplate/inter... |
577d5e110d32588be68ada62cc0fc3d73de1a0ae | 6dbd13b3a4fec635e7f461011cee67bb60feea11 | /MobileNetSSD-linux/main.cpp | 9be73d5f55361d28529f8a3fe1e339db312bff9c | [] | no_license | watersink/MobileNetSSD-linux-as | c7f33d4031001e2ebefb7032000a6dd857fcfd65 | d792e9bda4d6f7f8367f0953f675ef10782d9520 | refs/heads/master | 2021-04-04T18:26:18.097204 | 2020-03-19T10:54:09 | 2020-03-19T10:54:09 | 248,478,162 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | main.cpp | #include <stdio.h>
#include "mobilenetssd.h"
#include "platform.h"
#include "net.h"
#if NCNN_VULKAN
#include "gpu.h"
#endif // NCNN_VULKAN
int main(int argc, char** argv)
{
MOBILENETSSD mobilenetssd("../assets/mobilenet_ssd_voc_ncnn.param.bin","../assets/mobilenet_ssd_voc_ncnn.bin");
string imagepath=".... |
0b53b36efc889bd6c6bd0ed67d031346728b44f5 | 6b5050b28e7d349bed0c9754272f60318006b94e | /include/neolib/map.hpp | 181440c4b28cb4dbe0b44b43322ea2aa1560e33f | [] | no_license | a-ma72/neolib | 7848a8aa88ca3f625775116ef4a2b47e03ff7a64 | fc0144cc208a5f7444d3fe70007f77f80d51a505 | refs/heads/master | 2022-01-25T23:20:20.482175 | 2019-02-04T20:09:11 | 2019-02-04T20:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,612 | hpp | map.hpp | // map.hpp - v1.0
/*
* Copyright (c) 2007 Leigh Johnston.
*
* 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... |
b6b37cfe6d87007fd5ca51da9a7efd081649ae48 | 2c886ac11407d4843417e74ca3255715c5f983d4 | /src/conn.cc | 42fa861bee4a864fb356afbbd5c160ae1324bb73 | [] | no_license | songwei163/Mini_LoadBalancing | 8b9da0c362e0513cc65d4288e7a5cde44e76dea3 | fbad64c2b88f159d1ba674a330c4d12cad7a6379 | refs/heads/master | 2020-06-24T22:28:20.999380 | 2019-08-05T08:15:30 | 2019-08-05T08:15:30 | 198,944,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,514 | cc | conn.cc | //
// Created by S on 2019/8/3.
//
#include "conn.h"
#include "clog.h"
void conn::initClt (int sockfd, const sockaddr_in &client_addr)
{
mCliFd = sockfd;
mCliAddr = client_addr;
}
void conn::initSrv (int sockfd, const sockaddr_in &server_addr)
{
mSerFd = sockfd;
mSerAddr = server_addr;
}
conn::conn ()
{
m... |
e2a4ac1ffc6a144a3d384be92fc13104462477ed | 08d39a94059d900fb05bd668210316ab7667629f | /pacman-clone/Pacman.cpp | 98a49bf47e02d8ed63ec0971e438becea3f0e771 | [
"MIT"
] | permissive | piotr-mamenas/pacman-clone | ae720971b0f2001c8e03ecf8b76cfc0a3e119e07 | ae90da1ae91ea11aa7320e831080be33424e28c1 | refs/heads/master | 2020-04-19T00:49:15.403894 | 2019-02-10T19:51:58 | 2019-02-10T19:51:58 | 167,856,743 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | Pacman.cpp | #include "Pacman.h"
#include "GameObject.h"
#include "GameAssetManager.h"
Pacman::Pacman(int posX, int posY, GameAssetManager* assetManager)
: GameObject(posX, posY, 16, 16, 1, assetManager)
{
stateClipMapping.insert(std::pair<int, int>(1, 1));
} |
ebdb78350c8ee92c73e7bbe0f13d17d9f4a86f31 | ee3148939df49f3ac1abd5ff7bdf5e69ce76a582 | /test/suscription_registry_test.cc | a97c3f6c581b710dec107621c7fef854bee3243a | [
"Apache-2.0"
] | permissive | dmuino/atlas-native-client | a7ab096c7fa2ae16cea8bf9b38691332a1a86c90 | 53f2c6e3c20afd807b93b9b920be22cd07a7c8e8 | refs/heads/master | 2021-05-08T03:48:53.452237 | 2017-10-16T19:21:53 | 2017-10-16T19:21:53 | 108,337,353 | 0 | 0 | null | 2017-10-25T23:28:41 | 2017-10-25T23:28:41 | null | UTF-8 | C++ | false | false | 2,275 | cc | suscription_registry_test.cc | #include "../interpreter/interpreter.h"
#include "../meter/manual_clock.h"
#include "../meter/subscription_registry.h"
#include "../util/config_manager.h"
#include <gtest/gtest.h>
using atlas::util::Config;
using atlas::util::ConfigManager;
using atlas::util::DefaultConfig;
using atlas::util::intern_str;
using atlas:... |
66dd253027dd484626b1ac2f48068880aa13f46d | 15f0eac88515292bf6e686abc399ec95966b6c80 | /AtCoder/ABC/ABC051-100/ABC084/B.cpp | cdd89e7e637214a3fb622d00920f2b48229462de | [] | no_license | punipuni21/competitive-programming | e08bbdcdd6a83571f2dd6272ab638d6ce3471c75 | ed498c950bebf716572f33b4e63756cf269320f4 | refs/heads/master | 2022-09-05T08:27:54.198244 | 2020-05-30T07:28:36 | 2020-05-30T07:28:36 | 178,848,951 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cpp | B.cpp | #include<iostream>
using namespace std;
int main(){
int a,b;
string s;
cin >> a >> b >> s;
if(s[a] == '-'){
for(int i = 0;i < a-1;i++){
if(s[i] == '-'){
cout << "No" << endl;
return 0;
}
}
for(int i = a+1;i < s.length();... |
4d11a091f02c4b7b646179bd5adf0f9aa26280b0 | a16fb68486614ce93ee6445053df31c23a46457c | /ProjectEmpStruct.cpp | 9c9f04b45a6f0901314e21a3ac30ae74a71a3abb | [
"CC-BY-4.0",
"CC0-1.0"
] | permissive | yj1995/training-kit | 23f502b2de189c39232e4e9fd1624a88e07e3ca5 | 60d3a40933208bb4e330e4be138aeb764fcb7c38 | refs/heads/master | 2021-10-24T10:54:30.359682 | 2019-03-25T08:56:20 | 2019-03-25T08:56:20 | 110,125,196 | 0 | 0 | CC-BY-4.0 | 2019-03-25T08:56:21 | 2017-11-09T14:26:02 | HTML | UTF-8 | C++ | false | false | 946 | cpp | ProjectEmpStruct.cpp | #include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include "myHeader.h"
void main()
{
int n,i,a=0;
emp1 *e;
char b;
printf("enter the no of employee:");
scanf("%d",&n);
e=(emp1 *)malloc(n*sizeof(emp1));
Accept(e,n);
printf("\nDisplay Employees Information\n");
Display(e,n);
do
{
int c... |
5f7b796ee706dfc94e9312ae3086b7454e9cc063 | 4a9b704970f2705f412d5528c71d713b53e321a7 | /Reverse Word Wise.cpp | 8ec693489258ff161e63188a52236b2e784d6d22 | [] | no_license | vandu565/Array | 1dacd8d21e846cc346c036291b1fafe1b359fc63 | 03aed799beae7b70b70aa2a4d0757dffaa5fdb67 | refs/heads/main | 2023-01-01T22:28:22.101413 | 2020-10-10T13:23:04 | 2020-10-10T13:23:04 | 302,864,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | Reverse Word Wise.cpp | int length(char input[]){
int len=0;
for(int i=0; input[i] !='\0';i++){
len++;
}
return len;
}
void reverse(char input[],int start,int end){
int i=start, j=end;
while(i<j){
char temp=input[i];
input[i]=input[j];
input[j]=temp;
i++;
j--;
}
}
vo... |
d29d1603197a9f011bdf2537ec41a3aa77219b49 | 25a22eb97d0ac3cc5842125378f114b3d68a0cab | /Texture.cpp | a862aa52ff06422a6ea1b3ae03632d3817f8d5e7 | [] | no_license | RSharma98/SDL_Shooter | a5dc33500d94766e1e5aa6a760a2a7151d27b341 | 6d4669e295b0d33f065b23fd091b832f2dea7766 | refs/heads/master | 2022-11-11T20:02:05.520009 | 2020-07-01T16:07:11 | 2020-07-01T16:07:11 | 264,142,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | Texture.cpp | #include "Texture.h"
#include "Game.h"
Texture::Texture() {
m_Texture = nullptr;
m_SourceRect = SDL_Rect();
}
Texture::Texture(const char* path, Vector2 position, Vector2 size)
{
SDL_Surface* surface = IMG_Load(path);
m_Texture = SDL_CreateTextureFromSurface(Game::renderer, surface);
SDL_FreeSurface(surface);
... |
1b756ac7ad558e4c780f74665feef2098c9ea7c5 | befc88c5034802b6ee80a588f44974fe09519cc7 | /world.cpp | f0b990f409c5df40d97212553f23794f1d13329e | [] | no_license | scosta/CollissionDetection | 1aa6427b65f0d26dc62a1abc2434cdc8f50a7f17 | ea5fcf77bdd94bb67ff54ea5986b17d90859e88f | refs/heads/master | 2016-09-06T06:37:25.445774 | 2015-02-23T02:57:08 | 2015-02-23T02:57:08 | 31,191,313 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 29,245 | cpp | world.cpp | /*-----------------------------------------------------------------------------------
File: world.cpp
Authors: Steve Costa
Description: This class defines the entire world of the simulation. It will
load the world description from a text file and dynamically
create all of the world objects.
----------------... |
3f35d492a44c1346b57234ad119654db72ccf554 | a385661dd00ebe642078b98800d77a889419c4ec | /src/gameinfo.h | 2a7880e65ccbd4ff813bf5b1589477b81ec5fb6f | [] | no_license | ModOrganizer2/modorganizer-hookdll | b11dcdc95e2fa5eaf0864781cd7c533a71382197 | ff83aeffcbaa6f22216a9efd0190ba992b9f529a | refs/heads/master | 2021-04-03T06:53:48.200038 | 2016-02-10T18:14:13 | 2016-02-10T18:14:13 | 124,586,973 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,467 | h | gameinfo.h | /*
Copyright (C) 2012 Sebastian Herbord. All rights reserved.
This file is part of Mod Organizer.
Mod Organizer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option... |
f0931de9711207b269943d903f2c13c3eeaf959c | 36063ac9a8f9e2b8a8ff64a64fa1d2ce87d9bc3a | /min_cost.cpp | 40a4d1f3a3f9977dc91f635188cdba22cb64a5f4 | [] | no_license | siddian93/Algorithms | 1f67c1c1c70a7f70ee4c26ca44973ca9cc2b1bbd | d792cb9490cbf28199cb60afe00f82a87e4036bd | refs/heads/master | 2021-01-24T03:04:01.644338 | 2018-02-25T21:27:22 | 2018-02-25T21:27:22 | 122,876,656 | 0 | 0 | null | 2018-02-25T21:27:23 | 2018-02-25T21:03:15 | C++ | UTF-8 | C++ | false | false | 914 | cpp | min_cost.cpp | #include<iostream>
#include<vector>
using namespace std;
long long int min_cost(int cost[][3], int r, int c){
vector<vector<long long int> > dp(r, vector<long long int>(r, 0));
dp[0][0] = cost[0][0];
for (int i = 1, j = 1; i< r, j<c; i++, j++){
dp[i][0] = dp[i-1][0]+cost[i][0];
dp[0][j] =... |
ac907ed158f91b38091ac7349b4927fef0f1bb3a | f85cfed4ae3c54b5d31b43e10435bb4fc4875d7e | /sc-virt/src/include/llvm/Transforms/ScVirt/CallConstantParameterIndices.hpp | bf33157a819070461956ee5ee0d75660ac8c2653 | [
"MIT",
"NCSA"
] | permissive | archercreat/dta-vs-osc | 2f495f74e0a67d3672c1fc11ecb812d3bc116210 | b39f4d4eb6ffea501025fc3e07622251c2118fe0 | refs/heads/main | 2023-08-01T01:54:05.925289 | 2021-09-05T21:00:35 | 2021-09-05T21:00:35 | 438,047,267 | 1 | 1 | MIT | 2021-12-13T22:45:20 | 2021-12-13T22:45:19 | null | UTF-8 | C++ | false | false | 916 | hpp | CallConstantParameterIndices.hpp | #ifndef LLVM_CALLCONSTANTPARAMETERINDICES_HPP
#define LLVM_CALLCONSTANTPARAMETERINDICES_HPP
#include <cstdint>
/// These indices are required to recognize which intrinsic call parameters cannot be loaded from the data array.
/// There are LLVM checks in place that assert these indices to be constant.
/// For example,... |
358e8476e3e0aea906931487d21b855d0eb94f59 | c6755789c7b4a4862f611b946c6914c997f38cf2 | /hasher.h | 985a082c6b10a4fca5c566c1c5d95e985ca21255 | [] | no_license | AidasBaranauskas/Blockchain-technologijos | ed1c1cab5b381a260ec3090dfffd9c3e6ad6710a | bcdd6bc98fc89024f2245723f0c88517a4537235 | refs/heads/master | 2020-08-05T19:43:14.999881 | 2020-01-14T18:44:19 | 2020-01-14T18:44:19 | 212,681,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,662 | h | hasher.h | #ifndef HASHER//include guard
#define HASHER
#include <iostream>
#include <string>
using std::string;
#define Hash_size 64
int compress_to_64(int x){ //panaikina x'o dali visijancia "limit"
if(x<0)x=-x+8;//panaikinu minusa, atsitiktinumas++
x+=x/Hash_size;//atsitiktinumas++
return x... |
569f941c57813b5fb6488497edcabb8546f40196 | 2abf0c6f3345fabe73e84503854f1e116ef01902 | /src/Population/Properties/PersonIndexByLocationBittingLevel.cpp | 410298f82d7ecb9fec0f49507014595af78bc0e7 | [] | no_license | maciekboni/PSU-CIDD-Malaria-Simulation | 446586731c1a0e39a1d2c7a64722e8fc40423566 | 2313a32bed80b5370f8a5f0f3f93034b7abd4137 | refs/heads/v3.2_Spatial | 2023-05-27T13:25:07.629420 | 2021-03-11T18:12:13 | 2021-03-11T18:12:13 | 136,341,850 | 6 | 6 | null | 2023-05-10T18:56:56 | 2018-06-06T14:37:06 | C++ | UTF-8 | C++ | false | false | 3,004 | cpp | PersonIndexByLocationBittingLevel.cpp | /*
* File: PersonIndexByLocationBittingLevel.cpp
* Author: Merlin
*
* Created on July 3, 2013, 3:34 PM
*/
#include "PersonIndexByLocationBittingLevel.h"
#include "Core/Config/Config.h"
#include "Model.h"
#include <cassert>
PersonIndexByLocationBittingLevel::PersonIndexByLocationBittingLevel(const int &no_loc... |
38ead77df58bd479cb8e97fa0ca62069df849f2d | 88dbd25b1eb4b0063714b4a1175607f3d527abd5 | /program.cpp | 9b13bcdad4db079cf907d4ab7486a294a66cef81 | [] | no_license | artex16/bitcoin-wallet-wrong-password | 563dfd307d0d52a90a48d1f0cf284702e2461571 | 81b971eb280f6625fd2bcc8d57b42c3c1dd5063f | refs/heads/master | 2021-05-05T21:22:23.251226 | 2017-12-28T06:19:14 | 2017-12-28T06:19:14 | 115,591,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,888 | cpp | program.cpp | #include <iostream>
#include <cctype>
#include <cstdlib>
using namespace std;
string input;
int start;
int current;
int count;
void out(const string & str)
{
if (str != input)
{
if (current >= start)
{
cout << str << endl;
count--;
}
if (count == 0)
{
exit(0);
}
current++;
}
}
int main... |
ce5341d761494da6146f1b4448e96d27cb7662a4 | 9ada6ca9bd5e669eb3e903f900bae306bf7fd75e | /case3/ddtFoam_Tutorial/0.002550000/sL | 0e492f4c3be35dff345cf89b815fec68adf6babb | [] | no_license | ptroyen/DDT | a6c8747f3a924a7039b71c96ee7d4a1618ad4197 | 6e6ddc7937324b04b22fbfcf974f9c9ea24e48bf | refs/heads/master | 2020-05-24T15:04:39.786689 | 2018-01-28T21:36:40 | 2018-01-28T21:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 101,921 | sL | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
... | |
646de3d0f454811edd3df4fa006d35e71e1ce5b9 | a7cef70f0d50bf51b4086f156e96f7c7ad51d1f9 | /GAM_engine/GAM_base/input/GAMInput.cpp | 83ca26e6d72e448c13d238cd420136317fb6e2b6 | [] | no_license | vdoom/GAM | 9fd8a5b30fda9b168a0697f301c7673bfba9ba47 | 81ce6e34a3104b861312b8525e966a50d3335cf9 | refs/heads/master | 2020-05-18T12:50:03.637814 | 2013-05-19T15:03:09 | 2013-05-19T15:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,506 | cpp | GAMInput.cpp | #include "GAMInput.h"
GAMInput::GAMInput(void)
{
m_ppDIKB = NULL;
m_ppDDeviceKB = NULL;
m_ppDIMO = NULL;
m_ppDDeviceMO = NULL;
m_pErroreLoger = new ErroreLoger(wstring(TEXT("input.txt")));
m_pErroreLoger->SendToLog(TEXT("GAMInput Created!"));
}
GAMInput::~GAMInput(void)
{
TermKB();
TermMO();
... |
fec0ee6cba300301840a9fb9a564776dbc27fc52 | 4508566a6dc2af865b2cdb25f0ae093422586c76 | /client/file_stat_cache.cc | 49bbc165127a64d72ac215ce72e3df3405d1aae2 | [
"BSD-3-Clause"
] | permissive | dzeromsk/goma | 687239094e7a5bbbc4d131eb1b63446f791eb11b | 350f67319eb985013515b533f03f2f95570c37d3 | refs/heads/master | 2020-03-27T06:43:57.094414 | 2019-03-18T04:49:09 | 2019-03-19T13:26:11 | 146,130,866 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,371 | cc | file_stat_cache.cc | // Copyright 2013 The Goma Authors. 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_stat_cache.h"
#include <string>
#include <glog/logging.h>
#include "autolock_timer.h"
#include "counterz.h"
#include "path.h"
using std::s... |
e065a1ee16f1ae7f21535f725b54fa337ff7b25b | e1d95a0ddf9fc11e1200c5805b4174efe3035afb | /include/increment.cpp | d0f89f0ee1a4572ca50506af93d5bfad0883fab8 | [] | no_license | axelolafs/ass4.1 | a6aa6599e49bc4a0a06f8e5fe4a45e77418875a7 | 8a14c46495922b0eb43db9777a92af382adc15d5 | refs/heads/main | 2023-08-17T19:37:34.556440 | 2021-09-30T22:34:05 | 2021-09-30T22:34:05 | 412,189,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 722 | cpp | increment.cpp | #include "increment.h"
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include "fifo.h"
extern pthread_mutex_t sharedVariableMutex;
int counter = 0;
extern Fifo fifo;
void *incrementTask(void *param){
while(1){
sleep(3);
pthread_mutex_lock(&sharedVariableMutex);
... |
a2c3b3fb3cab1f8bcce354d035ad458b434b2fe1 | 944ff8d4d0c9ddccdad06bafd9a82c65cb885883 | /TinyUI/Network/TinyHTTPRequest.h | 99e89c8615d5633586fc8f9c3b55570d0e626a1d | [] | no_license | zww0815/TinyUI | 42076206bef37eb22a076d71a06572d9facb932b | 1368f5cd2f7278413201ad2e2f5b7a7c693fcddc | refs/heads/master | 2020-06-18T06:34:20.152519 | 2016-11-29T15:07:32 | 2016-11-29T15:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,890 | h | TinyHTTPRequest.h | #pragma once
#include "../Common//TinyCollection.h"
#include "../IO/TinyIO.h"
#include "../Common/TinyCallback.h"
#include "../IO/TinyIOCP.h"
#include "../IO/TinyTaskBase.h"
#include <WinSock2.h>
#include <mswsock.h>
#include <string>
#include <vector>
using namespace std;
#pragma comment(lib,"Mswsock.lib")
#pragma com... |
19861e6fc166109c90c2b483a80109f86d2e8c29 | 1d731673618f2e160de847b45f45f15f706dc277 | /catkin_ws/src/rosdb/src/tuple.h | 7a3154942c8fd96f97e88cece37d9e64cb310001 | [
"Apache-2.0"
] | permissive | Ogiwara-CostlierRain464/hakuba | e1514b477ba51e46044630589ec57f0f93a1c1d3 | ee56d0c6b07d74b2316202f1d29e06cd53db19d2 | refs/heads/master | 2023-08-11T19:16:03.100692 | 2021-10-13T23:37:31 | 2021-10-13T23:37:31 | 350,255,256 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 782 | h | tuple.h | #ifndef HAKUBA_TUPLE_H
#define HAKUBA_TUPLE_H
#include <vector>
#include <cstddef>
#include "memcmpable.h"
namespace tuple{
static void encode(std::vector<std::vector<uint8_t>> &elems,
std::vector<uint8_t> &bytes){
for(auto &elem: elems){
auto len = memcmpable::encoded_size(elem.size());
... |
f26d613d33b54e97cd2b4a4f7d360b37202ce905 | a6bc36a6b15756d07ef74f5fb835797ab6c85e5c | /WL_Vib_Sense_AWS.ino | f6541afcc39d12cf233117b635adbdfef36af8ae | [] | no_license | vbshightime/WL-Vibration-Sensor-AWS- | 400458cf83cce8f29def788e3c30b652deb254b0 | d1356be3e2167b203083209ea0c872f347a5d9c2 | refs/heads/master | 2022-06-11T11:23:47.697653 | 2022-05-29T17:12:57 | 2022-05-29T17:12:57 | 172,691,681 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 22,593 | ino | WL_Vib_Sense_AWS.ino | #include <ArduinoJson.h>
//******************AWS IoT Library********************//
#include <AWS_IOT.h>
#include <WiFi.h>
#include "FS.h"
#include "SPIFFS.h"
#include <EEPROM.h>
#include <WebServer.h>
#include <HardwareSerial.h>
#include <PubSubClient.h>
#define RXD2 16
#define TXD2 17
//******************Length of W... |
ddfdc5d09ef1ad40e7ed57537c440b4f7a8b0a41 | 04c2c5a513f25226b7b174526c03fdc26db9f927 | /Main.cpp | d4ad37721b4a5338d2cc16fcda6a0261ce285dc9 | [] | no_license | lee7282007/TicDetection | d4c8973e978edb07d5834a9b39fba6888dcd2969 | d85d900d486a5146812fad26f5f335bb91bdfbce | refs/heads/master | 2020-04-06T18:30:24.801297 | 2017-07-09T13:27:33 | 2017-07-09T13:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,611 | cpp | Main.cpp | #include <iostream>
//------- OpenCV -------
#include <opencv2/highgui/highgui.hpp>
//------- Data loading -------
#include "DataLoader.h"
//------- Sample processor -------
#include "SampleProcessor.h"
//------- Boost -------
#include "boost/program_options.hpp"
#include "boost/foreach.hpp"
#include "boost/tokeniz... |
989e549970a6301734ecfae5d8b40a1eef0f077b | c0d5a31db8b91c2eae582ba2ac695f50efeb9816 | /code/mt-imager/app/HelperFunctions.cpp | a00f0b712edd7bc152792835a010b8d693fccac7 | [] | no_license | kernsuite-debian/mt-imager | 005c804fed83b80f4433e1715f3ee7da4cb5fcc0 | 9af727397d55eda3d7c49c1663c584cf6bb2636d | refs/heads/master | 2020-12-25T14:22:51.044093 | 2017-12-18T10:51:20 | 2017-12-18T10:51:20 | 62,713,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,646 | cpp | HelperFunctions.cpp | #include "HelperFunctions.h"
//#include "Magick++.h"
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
#if 0
/*using namespace Magick;
void saveImage(GAFW::Result *src,int id,string name,int channel)
{
/* channel 0 - Red
channel 1 - Green
channel 2 - Blue
* channel 3 ... |
8dcb845f6f42707b1f2acad985317b9be3e81540 | 3749081e8f64bbe127db077e703ff7e87eae6069 | /laplacianForUnsructured/testExample/0.015/diffH | bdba54326cf466aa37bc8db6df42f686f98b91a6 | [] | no_license | iftikhar8/Finite-Volume-Method-Codes | 06f8e0383491d39ddb3aacd7225b27efbce5aba9 | d69f8d6cbf8552a90ba3b395f9bc04e487a5141b | refs/heads/master | 2020-09-02T13:00:11.566952 | 2019-03-22T04:29:54 | 2019-03-22T04:29:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,666 | diffH | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
a103a11438110f1bf91d7e74d6d27d8d355fa412 | b8eb357354eeef47b1675031a0b350dd297a81ef | /792. Number of Matching Subsequences - Medium - Solution/solution.cpp | b1d5e81cc73731b4dd812527f45eed456fc8b694 | [] | no_license | wsyzxxxx/LeetcodeGOGOGO | 3e9dd70f01db220048683688f71e7b88d3921d08 | 48418ce917baf05390f1bc8df35aba9e0516f97b | refs/heads/master | 2021-11-26T17:29:23.065653 | 2021-10-29T18:23:32 | 2021-10-29T18:23:32 | 195,494,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,002 | cpp | solution.cpp | class Solution {
public:
int numMatchingSubseq(string s, vector<string>& words) {
std::vector<std::vector<std::pair<int, int>>> pointers(26);
for (int i = 0; i < words.size(); i++) {
pointers[words[i][0] - 'a'].push_back({i, 0});
}
int ans = 0;
for (const... |
4ecde96e075ee42296e693a10b067a819fec793b | dab16faeec5a1882c3aa65d823fa669e5e832111 | /IDETools/SourceFileParser.h | 3a9abf579c245d8cc9c29d7b7fb4ee8033e95bd5 | [] | no_license | paul-hc/DevTools | adaa6b20bedfb941a6114c70b97c2776c543946c | 84be93c23d8d2a272b6d5d09c4129a6cd87a2aa4 | refs/heads/master | 2023-08-31T18:17:21.143856 | 2023-08-31T17:51:12 | 2023-08-31T17:51:12 | 116,268,930 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,639 | h | SourceFileParser.h | #ifndef SourceFileParser_h
#define SourceFileParser_h
#pragma once
#include "utl/Path.h"
#include "utl/TextFileIo.h"
#include "FileType.h"
#include "IncludeTag.h"
struct CIncludeNode;
struct CSourceFileParser : private io::ILineParserCallback<std::tstring>
{
CSourceFileParser( const fs::CPath& rootFilePath );
~C... |
997f543fbe65c9587c8aa8ad95d067d5348e8b82 | 491ea37ecc66128830e8f2163c82b976ac90bd05 | /chinese_weather/classes/util.h | 663d527c3d770319c83870220de0eeafb262c88a | [
"MIT"
] | permissive | 120910383/chinese_weather | 3fd7e3e22d759ff5dfed5e117e87f59be085ef7a | 2e5e1d0e3695d24cdd62a2cae4d37d913563280b | refs/heads/master | 2016-09-05T15:59:30.911433 | 2014-05-16T08:15:15 | 2014-05-16T08:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | h | util.h | #ifndef __CHINESE_WEATHER__UTIL_H_
#define __CHINESE_WEATHER__UTIL_H_
#include "define.h"
#include <sstream>
NS_CW_BEGIN;
/// 通用工具类
class util
{
public:
util() {}
~util() {}
public:
/// UTF8转换GBK
static int32_t utf8_to_gbk(const char* str, char* out);
/// 数值 ==> 10进制字符串
template<typename ... |
f0ffa9829c8701084d528313b2ba81c328ae6006 | 7a2771889b0ddfc2af4df35d992903460606daec | /Sources/Elastos/Frameworks/Droid/Base/Packages/Launcher2/src/elastos/droid/launcher2/ItemInfo.cpp | f3fd34b1548232b4088c884d724e71cecf534f7e | [
"Apache-2.0"
] | permissive | XilongPei/Elastos5 | a78b1a8e17a537344366c2feee36bd150f31e96e | 7aa447fa4ba65b063fc35f6a38a417fa9881e8c8 | refs/heads/master | 2021-01-16T23:07:28.038756 | 2016-04-03T09:12:39 | 2016-04-03T09:12:39 | 55,456,342 | 0 | 1 | null | 2016-04-05T00:53:39 | 2016-04-05T00:53:37 | null | UTF-8 | C++ | false | false | 5,283 | cpp | ItemInfo.cpp |
#include "elastos/droid/launcher2/ItemInfo.h"
#include "Elastos.Droid.Service.h"
#include "R.h"
namespace Elastos {
namespace Droid {
namespace Launcher2 {
const String ItemInfo:EXTRA_PROFILE("profile");
const Int32 ItemInfo:NO_ID = -1;
ItemInfo::ItemInfo()
: mId(NO_ID)
, mItemType(0)
, mContainer(NO_ID)
... |
3836c7d48741a20977a27f5259c9c487eec78a98 | 779f58169c4c1d64254ff01f9e13416991b046d6 | /libraries/Terminal/Terminal.cpp | da1abb1916658fdfa6e1c0301b5efe0fcc8c988c | [] | no_license | merywis/SistemesEncastats | d9eb363981b99a4419fa3627163bb477d69e0429 | b2a9472fa03731b77c8df02636f5498211c198df | refs/heads/main | 2023-06-08T19:39:16.162617 | 2021-06-18T16:31:04 | 2021-06-18T16:31:04 | 366,730,776 | 0 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 2,642 | cpp | Terminal.cpp | /**
* @file Terminal.cpp
* @brief Brief of Terminal.cpp
* @authors Alberto Ballesteros, Miller Espinosa and Manuel Barranco
* @date December 2016 - March 2017
*
* @details Detailed description of this file.
*/
#include "Terminal.h"
#include <math.h>
#include <stdio.h>
using namespace std;
#define ESC 27 // E... |
ca18334fc2046d1579c9a47f93c497409724a6ac | 465a6b48a112001457fcb1ed691451772241c826 | /buffer.cpp | 3434adb3f3f52a83ca1d95988a6ae32c5ed68f26 | [] | no_license | oracleloyall/NetLib | e78519ab844dccefa251c4f5db465895ce34af93 | 99c348b7773430ef16366ea728152881182149d8 | refs/heads/master | 2020-03-07T04:32:46.424837 | 2018-03-29T09:30:57 | 2018-03-29T09:30:57 | 127,269,198 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,395 | cpp | buffer.cpp | /*
* buffer.cpp
*
* Author: zhaoxi(oracleloyal@gmail.com)
*/
#include <stdlib.h>
#include <string.h>
#include "buffer.h"
namespace framework
{
buffer::buffer():m_begin(NULL),m_end(NULL),m_data(NULL),m_space(NULL)
{
// TODO Auto-generated constructor stub
}
buffer::~buffer()
{
fini() ;
}
int buff... |
f716cbe4b08dac5d10492ee9e2edc8a5ce81f26f | dc007d392a935b5dffd2812c79a28914aaaff0b4 | /src/router.cpp | 68f66bbd76bcf293263de81a233e8be30c838e63 | [] | no_license | nullcatalyst/cpp-http | aafef6c4543793ffc04ac66ca77164970f687913 | ad31208a4f07f3fab61e4c79b27bd7c2b19b236e | refs/heads/master | 2021-04-06T09:00:11.338760 | 2018-03-21T16:23:23 | 2018-03-21T16:23:23 | 124,931,549 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,263 | cpp | router.cpp | #include "router.h"
#include <iterator>
namespace {
class URLIterator {
const icu::UnicodeString & url;
public:
class iterator : public std::iterator<std::input_iterator_tag, const icu::UnicodeString> {
const icu::UnicodeString & url;
int begin;
int end;
... |
62cf74190d472b55217b4967169f788652f43b97 | c3c2701c90bdf0a1f52537b0a6747191369e309d | /2012/2012.cpp | 92c9627de357f71e1c88066e26d770ff973f632e | [] | no_license | bzz13/timus | 3c2b845a05cfd716c117fdee832f81e867f0245d | f102d3f10be0e939b96f2bfabac45bf5b763ba32 | refs/heads/master | 2021-06-19T14:02:24.815170 | 2021-02-01T09:12:40 | 2021-02-01T09:12:40 | 47,258,903 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cpp | 2012.cpp | #include <iostream>
using namespace std;
int main()
{
int f;
cin >> f;
cout << (f + ((4 * 60 ) / 45) >= 12 ? "YES" : "NO");
} |
71e1c13b56fe8c7a13cc8f6454ecbeff8e915284 | 1cb9453d24d1b70f9c38c862af9a485a5f95969d | /usecasediagram/diagramactoritem.cpp | d00c73162768275795ffd02242856481a7b1e0b0 | [] | no_license | exAspArk/usecasevstu | a0f08f032ce69d5e5ffd86b61674e347a458acaf | 3d9d53f0c24d7f83df81d46a357e31b72fa571ed | refs/heads/master | 2023-08-02T04:41:27.788368 | 2015-03-22T09:40:49 | 2015-03-22T09:40:49 | 32,669,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,560 | cpp | diagramactoritem.cpp | #include "diagramactoritem.h"
#include "diagramscene.h"
DiagramActorItem::DiagramActorItem(QGraphicsItem *parent, QGraphicsScene *scene)
: QGraphicsTextItem(parent, scene)
{
setFlag(QGraphicsItem::ItemIsMovable);
setFlag(QGraphicsItem::ItemIsSelectable);
this->typeElementData = Comment;
}
QV... |
405c660be37c933352adaa24d8ad180a6d79f27d | 7a1522a014910d9397c43ac3f683fd56211eaab8 | /gy/pil/gyMainCore.cpp | b85de91714310e46e48593840163e6df9ba7f915 | [] | no_license | sky923/gy_old | 86723b24fee3b60f73e9dd6efe1591401691fffe | 290b759c4ad35ea3fa2a0e474a8fe2d52ff0dbb6 | refs/heads/master | 2021-05-27T00:45:36.415668 | 2013-02-07T22:02:43 | 2013-02-07T22:02:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,042 | cpp | gyMainCore.cpp | #ifdef __ANDROID__
#include <android_native_app_glue.h>
#endif
#include "gyMainCore.h"
#include <iostream>
#include <string>
#include <cstdio>
#include <cassert>
#include "gyView.h"
/// MAIN_RET_FAILED
#define MAIN_RET_FAILED(r) if (r == Failed) return r;
/// r = return value, cf = customized function, ... |
66eb3b4773004aceb53c440600232b8ba0cd2d0d | 20095f9d1b6edf95483c5221095465c1daa07a6e | /longest-substring-of-all-vowels-in-order/longest-substring-of-all-vowels-in-order.cpp | c2bff264fa00b94c644183b47a2e5b71f5e789a1 | [] | no_license | Satish7897/leetcode | 01ab9785e59a1c64fd93e3557e8cd2299815a08b | c94ebd018be0b14a22a127f95c2717344a854652 | refs/heads/main | 2023-05-21T10:06:24.934804 | 2021-06-10T08:32:26 | 2021-06-10T08:32:26 | 357,838,445 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | cpp | longest-substring-of-all-vowels-in-order.cpp | class Solution {
public:
int longestBeautifulSubstring(string word) {
int n=word.size(),ans=0,st=0,a[5]={0};
int id[26];id[0]=0,id['e'-'a']=1,id['i'-'a']=2,id['o'-'a']=3,id['u'-'a']=4;
int len=0;
for(int i=0;i<n;i++)
{
int iw=id[word[i]-'a'],f=0;
for(... |
18676d9aacbe7668de6ce8b090c61e1dde9f40f2 | 77f9486892bd481121bf49576d6f76ee63d9a3c8 | /test/Obj.h | af14f954acae00e5b2af2f80ae5662eb4582fd56 | [] | no_license | panyan928/CG_SpanScaline_Elimination | 2052472e044a03521b762092f7c655f560fb6c72 | f689db8f931858271cbbcfa64197da0bba0f8e1f | refs/heads/master | 2021-09-02T00:30:02.257468 | 2017-12-29T11:57:57 | 2017-12-29T11:57:57 | 115,377,569 | 5 | 1 | null | null | null | null | GB18030 | C++ | false | false | 637 | h | Obj.h | #pragma once
#include<iostream>
#include<fstream>
#include<vector>
#include"Coord.h"
#include<string>
#define Color unsigned char
#define INF 99999
using namespace std;
class Obj
{
public:
vector< Coord<float> > vertex;//顶点
vector< Coord<float> > normal;//法线
vector<vector<int>> face;
int n_vertex = 0;//顶点数量
int ... |
b11423b7cbadce5cd0fa503dea5f97c858615996 | 3b0d210cd525ac43e25410ec8054431b5fd26da9 | /tests/test-http/test-http-message.cpp | b15d6036a3f0b09dcc485f3f77730b00ac6b0345 | [] | no_license | harsath/Blueth | 614c7f71342e4dfa5a9a280d42d98f369f2a937b | 2d36b318126ca0a2b61aafe1810d640d66940940 | refs/heads/master | 2023-07-20T05:27:37.871729 | 2021-08-19T05:32:03 | 2021-08-19T05:32:03 | 323,523,938 | 1 | 0 | null | 2021-09-06T04:39:35 | 2020-12-22T04:51:14 | C++ | UTF-8 | C++ | false | false | 2,568 | cpp | test-http-message.cpp | #include "io/IOBuffer.hpp"
#include <gtest/gtest.h>
#include <http/HTTPConstants.hpp>
#include <http/HTTPMessage.hpp>
#include <memory>
#include <string>
using namespace blueth;
TEST(HttpTestOne, HttpGet) {
{
std::unique_ptr<http::HTTPRequestMessage> http_message =
http::HTTPRequestMessage::create();
std::s... |
ca79f5f9afe9665199250b8ed63bb9dd08815279 | d358273691cc57e0727cd916c183cfdcd4d186e8 | /Euler037.cpp | 6795013c27e6d6112608b486c8444d1c233302e0 | [
"MIT"
] | permissive | Shivam010/Project-Euler-Solutions | c20d256b067a8b52b65e73aa4a17bfecdddb943f | c14e18c0935ad492c66ed764edac221d10478998 | refs/heads/master | 2021-01-23T01:17:43.525423 | 2017-06-22T19:03:43 | 2017-06-22T19:03:43 | 92,863,338 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,161 | cpp | Euler037.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define llu unsigned long long int
#define lim 1000050
bool b[lim]={0};
int ten[8]={1,10,100,1000,10000,100000,1000000,10000000};
int fun(int n)
{
int m=n;int c=0;
while(m)
{
if(b[m])
... |
6d24589bccdcbaf22a1b014d97c11037e3e95b3e | 04574167f971ac9625effe609812e83bac856724 | /2018Contest200/Graph_Theory/m.cpp | 0b87a0b83494c6018fbcc8aec61afaa692f51038 | [] | no_license | Ace-Monster/ACM-ICPC | 6e888d2491d5ea0f5b194cfcfffd91bedcf35906 | 7be3cca83882100153eca5b625c60d0f166aea32 | refs/heads/master | 2020-03-23T04:54:58.071164 | 2019-10-04T14:19:23 | 2019-10-04T14:19:23 | 141,112,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,628 | cpp | m.cpp | #include<iostream>
#include<stack>
#include<vector>
#include<cstdio>
#include<set>
#include<algorithm>
#include<cmath>
#include<string>
#include<string.h>
#include<queue>
#include<functional>
using namespace std;
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define rep(i, a, b) for(int i... |
99cfc3818abf6ad81343569e80f684efea6d7911 | c8fcc1acf73585045a5c7213cfb9f90e4c1e809e | /CodeForces/555C.cpp | f9dddca582c0c1c12aca7816477e96cf6aff95b5 | [] | no_license | Jonariguez/ACM_Code | 6db4396b20d0b0aeef30e4d47b51fb5e3ec48e03 | 465a11746d577197772f64aa11209eebd5bfcdd3 | refs/heads/master | 2020-03-24T07:09:53.482953 | 2018-11-19T09:21:33 | 2018-11-19T09:21:33 | 142,554,816 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,556 | cpp | 555C.cpp | /*
两个线段树维护+离线+离散
离散化,然后线段树维护区间最值,区间修改与
区间查询。
在独立思考的情况下A掉此题,爽啊
*/
#include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
const int maxn=200000+10;
int index[maxn*4],tot;
struct Operator{
int x,y,o;
}op[maxn];
int maxx[maxn*8],minx[maxn*8],setx[maxn*8],maxy[maxn*8],miny[maxn*8],sety[max... |
9a85f32b7280834102269cbda38f6c5105befa3d | 1c34a7614b64a44943fba4b1ca4b4b961bf11aa8 | /sadx-heroes-mod/Enemies/flyer.cpp | 4e1430554a6756aa92d7375325881aecb510529a | [] | no_license | kellsnc/sadx-heroes-mod | 2a65512cc7821f1add72d6b9fa0a0e7ae22489f5 | 8a3dd6be3ff0538965451fd9df71be6ebab007eb | refs/heads/master | 2021-06-09T02:17:08.895113 | 2020-03-27T13:02:56 | 2020-03-27T13:02:56 | 147,595,530 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,233 | cpp | flyer.cpp | #include "stdafx.h"
bool IsFlyerInitialized;
ModelInfo* FlyerMdl;
AnimationFile* FlyerAnm;
AnimData FlyerAnimData;
AnimationFile* CommonPaths[11];
AnimationFile* EggFleetPaths[36];
AnimationFile** CurrentLevelPath;
NJS_TEXNAME FLYER_TEXNAMES[4];
NJS_TEXLIST FLYER_TEXLIST = { arrayptrandlength(FLYER_TEXNAMES) };
... |
534707dd00a5558cdd3742e9e8fa9d49dde74a61 | e89f0da1697a3c25197c99bdb8526a858ac93b14 | /GameObjects/turtles.h | e3655c83e23635c32892051f4cac356a76ac5a4b | [] | no_license | nboneh/Frogger3D | 6ea9a1ad5f5f7ae4a31f267effcec6e028d10563 | e95e5570c05f6033c1cc8f2ad2baae23415713b3 | refs/heads/master | 2021-01-10T07:03:02.732011 | 2016-03-03T20:41:02 | 2016-03-03T20:41:02 | 45,214,778 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | h | turtles.h | #include "../Frogger3D.h"
#ifndef WATEROBJECT_H
#include "waterobject.h"
#endif
class Turtles : public WaterObject{
int frame ;
float ticFrameCounter;
bool submergingTurtles,currentlySubmerging, hittingFrog, currentlyAscending;
float submergingCounter;
float elevation ;
public:
Turtles(float speed, int numO... |
66bd412f0fc1eeb1e23d50a627b11de4c3a6e093 | c4b882a7a40f1cd04c7b5f6066ee8cff02e9a689 | /leetcode/231.cpp | eebae38a2b6f29900319be27534e81e566f37f16 | [] | no_license | zhang-wen-guang/CODES | 10da3c3272207cff55a3df9b1813a2db184e2a1b | f5cc9bc8d041508197d38b47a7501e9a1e0b4eed | refs/heads/master | 2021-07-01T22:54:07.154962 | 2021-06-21T16:00:32 | 2021-06-21T16:00:32 | 52,355,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cpp | 231.cpp | #include <string>
#include <stack>
#include <iostream>
#include <unordered_map>
#include <vector>
using namespace std;
class Solution {
public:
bool isPowerOfTwo(int n) {
return (n == 1 || n == 1 << 1 || n == 1 << 2 || n == 1 << 3 || n == 1 << 4 || n == 1 << 5 || n == 1 << 6 || n == 1 << 7 || n == ... |
47dcbd7055156110a05dbfc85cb56e96c6ed955b | 97878d4d4c4ffb2972cf60ea0fabb1798f25c2f7 | /LIVE/eqlive/eqlive_dll/eqapp_namedspawns.h | e06d9e2415e49be683f984ff7bba2f5445595a35 | [] | no_license | dankCodeNugs/everquest | 11bfbfd3570891cfc4920f734f5851cc8e340d34 | b757fba049a81a69f892645e6f4904de1f220a07 | refs/heads/master | 2023-03-15T19:32:38.275043 | 2021-01-26T06:58:14 | 2021-01-26T06:58:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,782 | h | eqapp_namedspawns.h | #pragma once
bool g_NamedSpawnsIsEnabled = true;
bool g_NamedSpawnsTextIsEnabled = true;
bool g_NamedSpawnsNewSpawnsIsEnabled = false;
std::stringstream g_NamedSpawnsText;
uint32_t g_NamedSpawnsTextXDefault = 400;
uint32_t g_NamedSpawnsTextYDefault = 20;
uint32_t g_NamedSpawnsTextX = g_NamedSpawnsTextXDefault;
ui... |
14410075c6a56774674cd100a479d579f6fa9249 | b4144361efb546107c791319ad71c0e0c1286820 | /spoj/redorica.cpp | e006ddabd6e95d1d533983821b90e730d5d484b7 | [] | no_license | brunovcosta/competitive-programming | 34f12db4a2a0bb72001352cdf34b4a2e208fcfb1 | 885a5fe4b3294780b98f2eb0b70cd2c05a873cca | refs/heads/master | 2021-01-10T12:55:40.951847 | 2017-05-22T22:15:51 | 2017-05-22T22:15:51 | 54,164,610 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | redorica.cpp | #include<cstdio>
#include<vector>
#include<map>
using namespace std;
int main(){
for(int test = 1 ;;test++){
int m,n;
scanf("%d%d",&n,&m);
if(!n)
break;
vector<pair<int,int> > graph[1000];
bool visited[1000] = {false};
for(int t=0;t<m;t++){
unsigned int x,y,z;
scanf("%d%d%d",&x,&y,&z);
grap... |
9d73f9a1b517b15af6a28572f9e00ab3d7e9e05f | 09179cdbd202e7fae5baf2a0c3d145d3ad606879 | /renderer/Camera.cpp | be37490e8ae75051a68c4b8be4f436bf594bcab4 | [] | no_license | amecky/diesel2D | ffb89faabd925abf88f4eaded5fcd3dc3f4b129b | 978cdbdfef73d1b4437a0d88e260734e865e1f27 | refs/heads/master | 2020-12-13T23:18:24.787635 | 2016-04-14T19:37:40 | 2016-04-14T19:37:40 | 17,738,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,527 | cpp | Camera.cpp | #include "Camera.h"
#include <d3dx9math.h>
#include "..\math\vector.h"
#include "..\math\matrix.h"
#include "..\utils\Log.h"
namespace ds {
Camera::Camera(int width,int height) {
m_View = matrix::m4identity();
m_Proj = matrix::m4identity();
mViewProj = matrix::m4identity();
m_Speed = 10.0f;
m_LastMousePositio... |
25d22ce96ae8b17a35f9fe93f06f7561f45250ee | dfcb384119934faff24ecffb3ed88dfa9d82c735 | /ZBase/source/ZQuaternionArray.cpp | 4444c01a1de337b988e578c353ccc733c25d940a | [] | no_license | Jaegwang/ZFX | 65a99bd93f0f5e057126b6915f1a8ae83d24e51b | 1bc0ab64d892d992d72eab8cc1bd4bdd977942f9 | refs/heads/master | 2020-11-27T15:12:31.973573 | 2019-12-22T02:56:59 | 2019-12-22T02:56:59 | 229,505,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,810 | cpp | ZQuaternionArray.cpp | //----------------------//
// ZQuaternionArray.cpp //
//-------------------------------------------------------//
// author: Wanho Choi @ Dexter Studios //
// last update: 2017.03.03 //
//-------------------------------------------------------//
#include <ZelosBase.h>
Z... |
ad7a34b20906d6a8c4654cabe472d2f8a363d0b1 | 8a46c8b1ed8b14789e66fe862b2210da2478f7a5 | /180420baekjoon/dp/2133.cpp | 5b6fb8af6965b6f7090708dc939f93f2e887244d | [] | no_license | peter9378/algorithm_study | 627b4c817f9a0c70b94920708548844c6dbcff92 | ff4eedf8a693d00d62414fb41dc8c4d2cd7e42af | refs/heads/master | 2021-12-23T13:03:20.295990 | 2021-10-13T14:44:55 | 2021-10-13T14:44:55 | 125,086,792 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | cpp | 2133.cpp | /**
* baekjoon online judge
* No. 2133 타일 채우기
* @author peter9378
* @date 2018.04.27
*/
#include <iostream>
using namespace std;
// dp 배열
int dp[31];
int arr[31];
// main
int main()
{
ios::sync_with_stdio(false);
cin.tie(NULL);
// 계단 개수 입력
int N;
cin >> N;
// 초기값
dp[0] = arr[0] = 1;
dp[2] = 3;
for (int i... |
ee16f50f78f2e1b3aa620a4bfbe7b73efa82bcc3 | f6da5c301a75ef2c549da0fc196c69442e87fb6a | /sort/src/data.cpp | 71796c297dfa402b228ee1c385a59e17397d9c56 | [
"MIT"
] | permissive | itsnamgyu/algorithms | 4c7a029dc6ae7854663b9b73a8bbbd88ba70fd02 | 028881dfdcd73e6a33ddedb8ea5b36c98196dc24 | refs/heads/master | 2020-03-29T04:20:46.489158 | 2018-12-13T07:37:39 | 2018-12-13T07:37:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,354 | cpp | data.cpp | #include <cstdio>
#include <cstdlib>
#include <vector>
#include <stdexcept>
#include <cassert>
#include <string>
#include <algorithm>
#include <ctime>
#include "../include/data.hpp"
Data::Data() : numbers() {
}
Data::Data(const std::vector<int> &numbers) {
this->numbers = numbers;
}
Data Data::random(int count) {
... |
cdf58ba77bc81b215b7f6f370305785dac93a58d | f12afcc92e0220ecd27ab4e198e1259d80f32755 | /main.cpp | f90b82e11a6fce4e5d29e69fd7f99faa4074ab18 | [] | no_license | tkondziola/edilua | d96c7307276b3850ebcd380dd7c0fecec520ce2a | 1a428e35c8edba68fea7d33c3a5d2585cba27057 | refs/heads/master | 2021-01-10T02:39:21.495571 | 2015-10-26T15:29:25 | 2015-10-26T15:29:25 | 44,744,316 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | cpp | main.cpp | #include <QApplication>
#include <QSplashScreen>
#include <QObject>
#include <QTimer>
#include "mainwindow.h"
#include "luaengine.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// Splash screen
QPixmap pixmap(":/edilua/resources/splashscreen/logo.svg");
//QSplashScreen splashScree... |
64d365934a8842525cccde2b68d13c80dd833ca6 | 2a8a90b78f18e87c0049acb094482867756cbfff | /test/adiar/bdd/test_build.cpp | ee09fcedc8d93328cdf2d832718553f8538e6b2e | [
"MIT",
"LGPL-3.0-only"
] | permissive | SSoelvsten/adiar | 1823a33b4029f5e31bb9e907073fc362d2993d2e | 2f95ca23e2bcc56e53c93fc331bde8f3651bb2e9 | refs/heads/main | 2023-08-31T03:28:15.201698 | 2023-08-29T14:55:44 | 2023-08-29T15:04:39 | 248,442,086 | 16 | 13 | MIT | 2023-08-11T17:42:02 | 2020-03-19T07:51:58 | C++ | UTF-8 | C++ | false | false | 48,917 | cpp | test_build.cpp | #include "../../test.h"
go_bandit([]() {
describe("adiar/bdd/build.cpp", []() {
ptr_uint64 terminal_T = ptr_uint64(true);
ptr_uint64 terminal_F = ptr_uint64(false);
describe("bdd_terminal(v)", [&]() {
it("can create true terminal [bdd_terminal]", [&]() {
bdd res = bdd_terminal(true);
... |
e90e4410dd370f1b3edeab605b6af4fb019d184b | adb152ecb0077455092dccfb7087943d6fc7eb75 | /Structured Programming/F.cpp | 3a73ea1ee6a06c56cb102afcdf57f24274a089fe | [] | no_license | NasosAn/University-projects | 0c38740263c45feaa385923367a4bb4f41cd98a2 | 5e34e294af5013480f65929dcb05d2cfbbe0e7df | refs/heads/master | 2020-11-27T22:50:22.465397 | 2018-12-01T17:28:59 | 2018-12-01T17:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,991 | cpp | F.cpp | #include <stdio.h>
#include <stdlib.h>
void penalty(int **speed,int **violation,int i,int num,int limit);
int main() {
int N,**speed,**number,**violation,i,num,j,limit;
printf("Dwse ton arithmo twn kamerwn!\n");
scanf("%d",&N);
speed=(int **)malloc(N*sizeof(int *));
if (speed==NULL){
printf("Den yparxei arketh diath... |
89d6fff71c68d29ffdbab9efa292c65bb90cb5f0 | 36e3239397a54ef885a9a27bb30ccaa527393979 | /test/strings/string_append.cpp | 4f84f261c10be3d9c9362d0888ed2907390c1368 | [
"WTFPL"
] | permissive | bromine0x23/libbr | f9527032ee7444e5af50ab8d229b65b3f52f3495 | 045d5447b7961edd1fff12ed5a9645345ac99527 | refs/heads/master | 2021-05-16T05:29:49.710786 | 2020-11-15T14:39:54 | 2020-11-15T14:39:54 | 37,529,013 | 6 | 1 | null | 2016-10-17T01:09:13 | 2015-06-16T12:35:21 | C++ | UTF-8 | C++ | false | false | 370 | cpp | string_append.cpp | #include "test.hpp"
#include <libbr/strings/string_append.hpp>
using namespace BR;
TEST(Strings, string_append) {
char const source[] = "1234567890";
char destination[30] = "abcde";
string_append(destination, source);
EXPECT_STREQ(destination, "abcde1234567890");
string_append(destination, source, 5);
EXP... |
8324bd8b4c1e2fd3bc46ae819b9e3bb614d9c94f | ac1c9fbc1f1019efb19d0a8f3a088e8889f1e83c | /out/release/gen/components/sync/protocol/app_list_specifics.pb.cc | 507bb6f834f05b4439b5506c211ae81d56dc7eb9 | [
"BSD-3-Clause"
] | permissive | xueqiya/chromium_src | 5d20b4d3a2a0251c063a7fb9952195cda6d29e34 | d4aa7a8f0e07cfaa448fcad8c12b29242a615103 | refs/heads/main | 2022-07-30T03:15:14.818330 | 2021-01-16T16:47:22 | 2021-01-16T16:47:22 | 330,115,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 26,107 | cc | app_list_specifics.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: app_list_specifics.proto
#include "app_list_specifics.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_form... |
cc66213d5c44f6a2c06c82e2daa64939fe6b44a2 | 1e59d40a86cf6d7f6b92f5e002dc21387656aec0 | /JfF/工大机试-答案/第七章/0_1.cpp | c530b90bcd0286564c51c6847279055815e4b267 | [] | no_license | Soplia/Codes | 7bb0aecfec57d8bacb33bd1765038d0cffc19e54 | 3704f55b060877f61647b7a0fcf3d2eefe7fa47e | refs/heads/master | 2020-04-20T14:06:36.386774 | 2019-02-02T23:37:21 | 2019-02-02T23:37:21 | 168,888,217 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 777 | cpp | 0_1.cpp | /*
Subject:0_1
ID:7.7
Complier:Devcpp
Author:JiaruiXie
StartTime:08/02/17 10:39
Result:Accepted
EndTime:08/02/17 10:48
*/
#include <stdio.h>
#define inf 0x7fffffff
struct node
{
int t,m;
}list[101];
int dp[101][1001];
int max(int a,int b)
{
return a>b?a:b;
}
int main()
{
int t,n;
while(... |
5b3cafbaa275cdf61c735ff539c2ee0e27fb1aeb | 5d0ddbd6f42843ded4d5ba18966dc130725607d2 | /c13.code/uintah/branches/pearls/src/CCA/Components/Wasatch/Expressions/MonolithicRHS.h | e562d5644237db0eb46585feef9bf29e444f5db5 | [
"MIT"
] | permissive | alvarodlg/lotsofcoresbook2code | b93ad62e015d205e4f550028ceb54254023021ee | a2dbeb306fa29ae6663ae29b2c4c132608375cf0 | refs/heads/master | 2020-12-31T03:02:22.579614 | 2015-09-02T15:23:18 | 2015-09-02T15:23:18 | 54,509,919 | 2 | 1 | null | 2016-03-22T21:27:56 | 2016-03-22T21:27:56 | null | UTF-8 | C++ | false | false | 3,310 | h | MonolithicRHS.h | #ifndef MonolithicRHS_Expr_h
#define MonolithicRHS_Expr_h
#include <expression/Expression.h>
#include <spatialops/structured/FVStaggered.h>
/**
* \class MonolithicRHS
*
* Calculates
* \f[
* -\nabla\cdot(\rho \phi \mathbf{u}) + \nabla\cdot(D_\phi \nabla\phi) + s_\phi
* \f]
* which is the RHS of the tra... |
7a52de6d6ea3dcd4c69d228160a9db8d529d4c8b | 501b19eba0f512d9a4a1516de6cae61206567133 | /test/1.cpp | c36f2adcbd1d33513aeff28738d974bbfffead2f | [] | no_license | VladArtiukh/cpp1901 | 56e32d01707dc096c25e49bb473bdb8a66878141 | 6026e01149c6eaf1644bfb69948dc44810b99c8f | refs/heads/master | 2020-12-14T22:06:02.214879 | 2020-02-09T10:19:36 | 2020-02-09T10:19:36 | 234,885,333 | 0 | 0 | null | 2020-02-23T10:41:40 | 2020-01-19T11:00:57 | C++ | UTF-8 | C++ | false | false | 1,202 | cpp | 1.cpp | #include <iostream>
using namespace std;
int main(){
int array [10];
int array1 [10];
for(int i = 1; i < 11; i++){
cout << "array[" << i << "] = ";
cin >> array[i];
cout << " " << endl;
}
for(int i = 1; i < 11; i++){
cout << "array[" << i << "] = " << array[i] << endl;
}
int summa = 0;
for(int i = 1; i < 11; i++){
summ... |
894e83a96f1e475a01b29892a53a6b1411b3d6b0 | dc933e6c4af6db8e5938612935bb51ead04da9b3 | /android-x86/external/opencore/pvmi/content_policy_manager/src/pvmf_cpmplugin_factory_registry.cpp | 16f12030999d41dee8e423856915a9975ea5f373 | [] | no_license | leotfrancisco/patch-hosting-for-android-x86-support | 213f0b28a7171570a77a3cec48a747087f700928 | e932645af3ff9515bd152b124bb55479758c2344 | refs/heads/master | 2021-01-10T08:40:36.731838 | 2009-05-28T04:29:43 | 2009-05-28T04:29:43 | 51,474,005 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,323 | cpp | pvmf_cpmplugin_factory_registry.cpp | /* ------------------------------------------------------------------
* Copyright (C) 2008 PacketVideo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
ddbc7574ad2ca7a4a5b30cb7a940d9dc4a1ab6d6 | 5726a16b78d60159b04a2370a0f5401d626f7af9 | /SHyFT/RooFitter/Fitter.h | 6813ef05b9c622a18ef6de7a2b667d2e32903af2 | [] | no_license | cplager/HEPAnalysis | 714d5f60f947ea8e8ddefc5712936151f9e4c0f8 | ea3d49f8d8e51177de519203c5d9ffc73aaf572a | refs/heads/master | 2023-05-29T23:22:34.987857 | 2023-05-18T18:47:26 | 2023-05-18T18:47:26 | 355,674,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 61,384 | h | Fitter.h | // This file contains a set of basic helper functions to simplify
// doing NJets vs X fits
//
// Authors:
// Kevin Lannon (2010/05/24)
#ifndef NJETS2DHELPER
#define NJETS2DHELPER
#ifndef __CINT__
#include "RooGlobalFunc.h"
#endif
#include "TObject.h"
#include "TFile.h"
#include "TString.h"
#include "TH1.h"
#inc... |
befe45372499483f3b7df0d278370280472891d9 | 0052ecf67070a76c5e6f85b4e2080f6b571d40e1 | /GameServer/GameServer/Manager.cpp | 388b4a2256a169f3d70a5826c36bce98591f298e | [
"MIT"
] | permissive | KINPlay/AFirst | 7e17856796ccf5c9e5b2a9d22fd756950d8691db | 2ac2f85de3692b2661ffc9be132af0d9f6f3d9a2 | refs/heads/master | 2016-09-06T15:52:41.057569 | 2015-02-11T16:11:40 | 2015-02-11T16:11:40 | 30,544,227 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | Manager.cpp | #include "stdafx.h"
#include "Manager.h"
#include "Poco/Net/WebSocket.h"
#include "Poco/Net/HTTPClientSession.h"
#include "Poco/Net/HTTPRequest.h"
#include "Poco/Net/HTTPResponse.h"
using namespace Poco::Net;
Manager::Manager()
{
}
Manager::~Manager()
{
}
void Manager::Run()
{
HTTPClientSession cs("localhost", 300... |
3e041d3d6d097ba74c1b5439817fe705fd64763c | 111cb5b7f82a0adde6132dcd7d6e898185a2a60e | /sqa_scripts/inl/E_NEV_caav_DFCUMU.inl | ace50923af72b58afbcc5d9f3fb75d5120ace040 | [] | no_license | norikcentaure/holder | e76689fb4dcecc664b579a284ca42132e43e58b6 | 9279512f2d2102048b9ed1b90d22f06b9dc25a75 | refs/heads/master | 2020-05-18T02:58:34.372743 | 2019-05-19T21:04:34 | 2019-05-19T21:04:34 | 184,133,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,617 | inl | E_NEV_caav_DFCUMU.inl | namespace NEVPT_CAAV_DFCUMU {
FTensorDecl TensorDecls[30] = {
/* 0*/{"R" , "cAae" , "", USAGE_Residual },
/* 1*/{"t" , "cAae" , "", USAGE_Amplitude },
/* 2*/{"T" , "cAae" , "", USAGE_Amplitude },
/* 3*/{"b" , "cAae" , "", USAGE_Amplitude },
/* 4*/... |
b28a2b071cf6d4c08933805cb87cf2dd064cd90a | 492976adfdf031252c85de91a185bfd625738a0c | /src/Game/AI/Action/actionNPCWaitAction.h | 7c388dc7444406dd9ca8107a9f9783729b98754e | [] | no_license | zeldaret/botw | 50ccb72c6d3969c0b067168f6f9124665a7f7590 | fd527f92164b8efdb746cffcf23c4f033fbffa76 | refs/heads/master | 2023-07-21T13:12:24.107437 | 2023-07-01T20:29:40 | 2023-07-01T20:29:40 | 288,736,599 | 1,350 | 117 | null | 2023-09-03T14:45:38 | 2020-08-19T13:16:30 | C++ | UTF-8 | C++ | false | false | 635 | h | actionNPCWaitAction.h | #pragma once
#include "KingSystem/ActorSystem/actAiAction.h"
namespace uking::action {
class NPCWaitAction : public ksys::act::ai::Action {
SEAD_RTTI_OVERRIDE(NPCWaitAction, ksys::act::ai::Action)
public:
explicit NPCWaitAction(const InitArg& arg);
~NPCWaitAction() override;
void enter_(ksys::act::a... |
f7fb84c3c45ad4c4a15197454b1f03d6d675554b | 11fd3439844c7e9aaa849bcf9eb93f63b8dacfeb | /codeforces/C/515a/main.cpp | 17b8c80c76080e92d58dfc6f6db239bb31fefb5f | [] | no_license | sanesedu/CompetitiveProgramming | b960b8852e88585a79967344d015bef99efa36f0 | 5feae374a04174062d6996f60210ec340d7295e9 | refs/heads/master | 2023-01-12T07:47:18.402228 | 2020-11-18T09:05:13 | 2020-11-18T09:05:13 | 274,455,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 989 | cpp | main.cpp |
#include <bits/stdc++.h>
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define fori(i, n) for(int i = 0; i < (int)(n); ++i)
#define forid(i, n) for(int i = (int)(n) - 1; i >= 0; --i)
#define forl(i, n) for(long long i = 0; i < (long long)(n); ++i)
#define forld(i, n) for(long long i = (long long)(n) - 1;... |
9d9f0e03604d1ba120f424ac3bacbdbae301f582 | 385cfbb27ee3bcc219ec2ac60fa22c2aa92ed8a0 | /Standard/Time.cpp | 04492e8ede18bf07e88bc57e36475a887ee12e67 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | palestar/medusa | edbddf368979be774e99f74124b9c3bc7bebb2a8 | 7f8dc717425b5cac2315e304982993354f7cb27e | refs/heads/develop | 2023-05-09T19:12:42.957288 | 2023-05-05T12:43:35 | 2023-05-05T12:43:35 | 59,434,337 | 35 | 18 | MIT | 2018-01-21T01:34:01 | 2016-05-22T21:05:17 | C++ | UTF-8 | C++ | false | false | 5,534 | cpp | Time.cpp | /*
Time.cpp
(c)2005 Palestar, Richard Lyle
*/
#include "String.h"
#include "Time.h"
#include "Bits.h"
#include "Debug/SafeThread.h"
#include <time.h>
#include <sys/timeb.h>
//! Define to non-zero to enable the use of QueryPerformanceCount() for Time::milliseconds()..
#define ENABLE_QPC 1
//! Define to non-zer... |
836bf2fa964a9b33d3df70d251f5e17fa5ff9349 | fa9c2d22189e2830033fc06a634d4f8d1c667436 | /lib/Tools/RandomNumGen/randNum_MT19937.h | b5c4ae26fcd32beba875f28808c11d0e6afc3c18 | [] | no_license | yonggwi-cho/IroIro | b8c8cf4f6642daaaec9ebe8a2a430133b63a02fc | 2c3126b2995e1fd8fcabb925bcf1a7f9f5affc78 | refs/heads/master | 2020-04-17T04:41:17.778864 | 2016-10-11T10:49:48 | 2016-10-11T10:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,371 | h | randNum_MT19937.h | //-------------------------------------------------------------------------
// randNum_MT19937.h
//-------------------------------------------------------------------------
#ifndef RANDNUM_MT19937_INCLUDED
#define RANDNUM_MT19937_INCLUDED
#include<iostream>
#include <string>
#include "Tools/randNum.h"
#include "Commu... |
2840ae33b6cf943b162e96c0df928d32bbea4a43 | 51dc9ee85eb29edc097df9884ae0905ca290308e | /fxfont.h | cb25298681712f584966fee65e38de25ae438fb6 | [] | no_license | acaudwell/Core | 01beeb1fe125194e554c4c1b219374ebde6dbe2e | f7fa400ec164f6fb36bcca5b85d2d2685cd3c7e8 | refs/heads/master | 2023-01-13T18:48:26.389295 | 2022-10-07T00:51:07 | 2022-10-07T00:51:07 | 617,127 | 38 | 26 | null | 2022-12-26T02:05:50 | 2010-04-19T02:38:42 | C++ | UTF-8 | C++ | false | false | 7,320 | h | fxfont.h | /*
Copyright (c) 2009 Andrew Caudwell (acaudwell@gmail.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
... |
9cfe270cf704861f722cc94b1040b40b91012690 | dd28f4f389e3938ce9ac975877ad2867f45e8efd | /A_INIT.ino | 5448d966343f81b245b0a3d13ad6acffd016d2de | [
"MIT"
] | permissive | islandwonderer/arduino_eTime_bank | 3a9518e5221bed6cc7bd8b777529314a5475e8d0 | 507131669c89da4211bc258498d10d3521cf0368 | refs/heads/master | 2020-12-21T10:39:35.458756 | 2020-02-23T01:20:04 | 2020-02-23T01:20:04 | 236,405,887 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,563 | ino | A_INIT.ino | /* Time Bank
* This is a software to use in conjunction with an Arduino
* build of hardware. The purpose of the software is to allow
* a child to record time spent in set ativities and exange the
* acumulated time for electronics usage time.
* Software and Hardware Configuration by Gabriel & Ramses Ruiz
*/
... |
cbda07936cdfc8bb31756ca907c0e7f8755bcaf8 | 71c2964dd992a25baaa6d5d3692f03b5939979af | /Crypto-1/Q1.cpp | 2dd872e141306f9a061c57ef6b486934444490db | [] | no_license | Moozzaart23/Cryptography-Assignments | ae9c2bccdf481015896ede33ef3c5a015e49e2da | 6de80f7680814f0311ce88cdeaa0716e8ef6f478 | refs/heads/master | 2020-05-02T11:46:23.309610 | 2019-03-27T07:16:42 | 2019-03-27T07:16:42 | 177,938,656 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 670 | cpp | Q1.cpp | #include<bits/stdc++.h>
#include<bits/stdc++.h>
#define max(a,b) (a>b?a:b)
#define min(a,b) (a<b?a:b)
#define ll long long int
#define pb push_back
//#define mp make_pair
const ll MOD=pow(10,9)+7;
using namespace std;
int main()
{
string s;
cin>>s;
int n=s.length();
n=n/2;
n++;
cout<<s[0];
for(int i=1;i<n;i++)
... |
cab7d306cd9e3b058dd085befccb585624edaa0f | cee1b29bbd1e3e87e4dbe9996621b81c4e063a51 | /EPI/16_7.cxx | cde87d894829a2fee9e32167c790ed0fe6469f0c | [] | no_license | edvgha/122 | 4ab3a1358775864ada3919bca8adff01be30f086 | f3643d336060b18ec3f5416b7b995cdaba804f37 | refs/heads/master | 2023-02-18T07:29:22.190292 | 2022-09-02T12:49:36 | 2022-09-02T12:49:36 | 85,350,600 | 0 | 0 | null | 2023-02-15T21:28:39 | 2017-03-17T20:07:53 | Jupyter Notebook | UTF-8 | C++ | false | false | 1,028 | cxx | 16_7.cxx | #include <iostream>
#include <unordered_set>
#include <string>
#include <vector>
bool is_decomposition(const std::unordered_set<std::string>& dictionary, const std::string& name)
{
std::vector<int> last_length(name.size(), -1);
for (size_t i = 0; i < name.size(); ++i)
{
if (dictionary.count(name.s... |
728f8d735b2a9d442632f3620272c96baf9a884f | 62b1723812453548ab026932b1ba2ed960fba53b | /home_automation/actuators/esp8266_mqtt/heater_node/include/MySensorsApp.h | d886c9f446d9188c25c24076d8c2ab7a4e725e66 | [] | no_license | mtiutiu/Coding_Playground | be774676ae7f4c9e8d648c41216c1907e4c2e800 | 9609261118498a180240d57d96fb5f11a7f2a007 | refs/heads/master | 2023-05-26T11:16:56.926411 | 2022-10-19T09:51:37 | 2022-10-19T09:51:37 | 51,744,532 | 1 | 0 | null | 2023-05-01T20:13:21 | 2016-02-15T09:27:53 | C++ | UTF-8 | C++ | false | false | 5,244 | h | MySensorsApp.h | #ifndef MYSENSORS_APP_H
#define MYSENSORS_APP_H
#include <Arduino.h>
#include <MTypes.h>
#include <MySensors.h>
#include "common.h"
// enable reading of Vcc
ADC_MODE(ADC_VCC);
namespace MySensorsApp {
// -------------------------- BATTERY LEVEL REPORTING --------------------------
const float VDD_VOLTAGE_MV = 33... |
f105c8ebc91d3358055ee682f882ab33e00aad60 | 4d6ec3eb29b40e49728085e20c6074b817f65402 | /leetcode-algorithms/442. Find All Duplicates in an Arra/442. Find All Duplicates in an Array.cpp | af9587bc904353e98381244ceac1d18d9672015b | [] | no_license | ShuyiLU/leetcode | fba9960a0a2bb180a9103f1efff2c20a25bd1f57 | f8784b271099b766e180e92313e331917c426844 | refs/heads/master | 2020-08-28T01:27:26.970875 | 2019-11-06T15:09:32 | 2019-11-06T15:09:32 | 217,546,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | 442. Find All Duplicates in an Array.cpp | #include<iostream>
#include<vector>
#include<cmath>
using namespace std;
class Solution {
public:
vector<int> findDuplicates(vector<int>& nums) {
if(nums.size() == 0) return vector<int>{};
vector<int> res;
for(int i=0; i<nums.size(); i++){
int n = abs(nums[i]) - 1;
if(nums[... |
46ee58a794693e87f98d800cfb1c51dc282e16c7 | fbe34dc61c8b3ac0d047b057a58972dc77731074 | /1099. Build A Binary Search Tree/src.cpp | b4b57df2bdfeb000c767b87421913dc01e4c0dec | [] | no_license | moaiweishui/pat | 4c204deec03611f015ce45ff8afd1ba68b77a9e4 | 637a4d5c47a70b18150ef6eff64e31806674a67f | refs/heads/master | 2021-01-19T16:37:06.778775 | 2017-12-03T13:13:38 | 2017-12-03T13:13:38 | 101,012,062 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,021 | cpp | src.cpp | #include <iostream>
#include <algorithm>
#include <math.h>
#include <float.h>
#include <sstream>
#include <string>
#include <vector>
#include <set>
#include <queue>
#include <stack>
#include <unordered_set>
#include <unordered_map>
using namespace std;
struct TreeNode{
int val;
TreeNode *left, *right;
Tr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.