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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7853ad951aebab5a33a5d81d61d1a0df04efb309 | 490ddd4c6d98a28b8c3c7faf8cf9e72d7152993e | /school_2k5_12_fall/Cop2224-C++-Vcc/Hw2/CH2-PE2-Echo Rounded To Two Decimals/hello.cpp | e1c6be0b2288b5a1954a51060f05cf63f5b3d8fc | [] | no_license | spottedmahn/Computer-Science-Degree | 9808d036bec4ff7037ab85c6eab1f45397c63408 | b75a23ff8c510c26bbf27b4852a8f5807270e55f | refs/heads/master | 2021-08-22T23:28:28.453737 | 2017-12-01T17:03:57 | 2017-12-01T17:03:57 | 112,764,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 623 | cpp | hello.cpp | /************************************************
** Name: HW2 Programming Excercise #2
** Copyright:
** Author: Mike DePouw
** Date: 2005/09/24
** Description: Implementation of HW2 Programming Excercise #2.
** Complied With: CodeWarrior 4.2.5.766
************************************************/
#include <ios... |
e1b895853d0415a050c0fdd6b96b80c505bf537a | 671080c547a48d571bd444ed5b72dd0eb4c03704 | /105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.cpp | 10f2b31ac53739fdfe2f2d93c424b8a83d1ce003 | [] | no_license | gKevinK/LeetCode | dc42b7dd4d83a5a4b4aacfe6066fbca23900584b | 193eba041625a501b1578cf37fba819f9dbd17d4 | refs/heads/master | 2021-06-07T07:42:52.114362 | 2020-08-29T11:57:57 | 2020-08-29T11:57:57 | 115,308,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 822 | cpp | 105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
TreeNode* b(vector<int>& pre, int prel, int prer, vector<int>& in, int inl, int inr) {
if (prel... |
cfd78d8f977bd8c54a66ff868d228c1772466937 | 4dbaea97b6b6ba4f94f8996b60734888b163f69a | /POJ & HDU/hdu_2925_约瑟夫环.cpp | 4d809b16ba97553e3ee8efc580d476081a15f0b2 | [] | no_license | Ph0en1xGSeek/ACM | 099954dedfccd6e87767acb5d39780d04932fc63 | b6730843ab0455ac72b857c0dff1094df0ae40f5 | refs/heads/master | 2022-10-25T09:15:41.614817 | 2022-10-04T12:17:11 | 2022-10-04T12:17:11 | 63,936,497 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 345 | cpp | hdu_2925_约瑟夫环.cpp | #include <iostream>
#include <stdio.h>
#include <algorithm>
#include <string.h>
using namespace std;
int main()
{
int n, k;
while(scanf("%d%d", &n, &k) && n != 0)
{
int s = 0;
for(int i = 2; i <= n; i++)
s = (s + k) % i;
printf("%d %d %d\n", n, k, s+1);
... |
3b9d508ff93eea3529daeb0b118a5206e41d17ae | 99520b13128cb2286b60d3fd58056781197de9ea | /src/arepoInterp.cpp | 74d8f4ceac5f2634971971c5c084615d5ea584c0 | [] | no_license | WentaoLuo/ArepoVTK | de521c43c135d3cfe9f9e50e4af4815a3a7b0573 | 10b14c15fd864f01fcf1f3af893f8c740163f61f | refs/heads/master | 2023-07-04T08:50:39.003683 | 2021-08-04T08:43:42 | 2021-08-04T08:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,671 | cpp | arepoInterp.cpp | /*
* arepoInterp.cpp
* dnelson
*/
#include <alloca.h>
#include "transform.h"
#include "spectrum.h"
#include "arepo.h"
#include "volume.h"
#include "transfer.h"
#include "util.h" // for numberOfCores()
// NNI_WATSON_SAMBRIDGE
#define MAX_NUM_TETS 100
#define MAX_NUM_NODES 400
#define NODE_A 3
#define NODE_B 0
#de... |
c18084701de45308d4281b26d0695b578f9a3979 | 36b68fe70932687b2f904e089d64a606d1159e9a | /Assignment 6.1/Source/Assignment 6.2/main.cpp | 490e04a5eec416e8a977083cb9e09e8215422902 | [
"MIT"
] | permissive | bgmichelsen/RBT211-Atmel-Mircocontrollers- | d2236fdd731e5413e2cb96424a584841640bfdec | bfc0298d5a9713258384c4c85d4ca898332843ee | refs/heads/master | 2022-12-12T18:38:42.225424 | 2020-09-04T22:05:31 | 2020-09-04T22:05:31 | 292,953,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,143 | cpp | main.cpp | /*
* Michelsen_Assignment6-1.2.cpp
*
* Created: 10/10/2018 4:18:37 PM
* Author : brand
*/
#define F_CPU 16000000UL // 16 MHz clock
#include <avr/io.h>
#include <util/delay.h>
#include <stdlib.h>
#include "headers/USART.h"
// Function prototypes
int analog_read_10(int channel); // Function to read a value from ... |
388c97e84620cc1c9b58acd4d846df57cdc2f0f1 | 9558af4af8751bd7345259ba060c9092a14a6ea8 | /src/utilities/AsyncUtils.cpp | 38d4f7f447e496d2548f9d072127f7a5b2c9b67c | [] | no_license | iliastsa/sigmod-benchmarks | 1963b480119aac8cbd635289d1d05b2f0af3cbae | 29f10452cad5801d753e1f9754583a2d45485a49 | refs/heads/master | 2020-04-30T23:58:25.041060 | 2019-04-23T00:09:25 | 2019-04-23T00:09:25 | 177,156,922 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | cpp | AsyncUtils.cpp | #include <unistd.h>
#include <syscall.h>
#include <AsyncUtils.h>
int io_setup(unsigned nr, aio_context_t *ctxp)
{
return syscall(__NR_io_setup, nr, ctxp);
}
int io_destroy(aio_context_t ctx)
{
return syscall(__NR_io_destroy, ctx);
}
int io_submit(aio_context_t ctx, long nr, struct iocb **iocbpp)
{
return syscal... |
851b405d78abb461df814e7c11a29b568a4be05d | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /chrome/browser/printing/cloud_print/privet_notifications_unittest.cc | 9ac3c06ac13264fe06e8bbb199f9e5828c7fb7e0 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 12,057 | cc | privet_notifications_unittest.cc | // Copyright 2013 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.
#include "chrome/browser/printing/cloud_print/privet_notifications.h"
#include <memory>
#include <utility>
#include "base/message_loop/message_loop.h"
#... |
a5f417ca5cee2259ea918e2a0a85aa0e5768f332 | 9b25dc90ff4cb62ef7e0de65577e2c13d60c320b | /Codeforces/three-swimmers.cpp | 99d21bd96e22a83f3a93c71fd553c5e8be47c156 | [] | no_license | iamvinayvk/Competitive-Programming | 1e62ab5a10f9631d24fcdbf8726ce03068e15268 | 8a28b35665ed9db040479f646c8d3a31b06210f2 | refs/heads/master | 2021-07-16T21:25:37.678010 | 2021-03-06T20:56:34 | 2021-03-06T20:56:34 | 243,021,712 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | cpp | three-swimmers.cpp | /**
*
* @Author : Vinay Kushwaha (iamvinayvk)
*
* @DateTime : 2/23/2021 2:41:51 PM
*
*/
#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long int
#define w(t) int t;cin>>t;while(t--)
#define mod 1000000007
#define all(x) x... |
eb93de6d2f7ab70b0a901b93fd32e41ecdeb9f01 | 098da1b72abfad04e92aa66ae8462d4fda589da7 | /11581.cpp | fdacc8ccfe5bac9ec613244cf9dcc0c1bfde0f5b | [] | no_license | WilliamPinho/onlinejudge-solutions | 46c714865226a9597fc4f795900d1aa6668767e5 | 1e6cf14d03fea0f00147b97e94470e431cad0187 | refs/heads/master | 2021-01-10T14:40:18.472094 | 2019-04-20T17:02:22 | 2019-04-20T17:02:22 | 51,261,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | cpp | 11581.cpp | #include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
int T;
cin >> T;
vector<vector<int>> g(3,vector<int>(3));
char c;
while(T--) {
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 3; ++j) {
cin >> c;
g[i][j] = c - '0';
}
}
ve... |
f56ffa13819727bba0a3d372e97c88f812e73dde | f0b2da224f6a200c47604fad0c29a720c560262b | /ofApp.cpp | bda7e7c7e258b708607e0aac9fc7a78e0733408a | [] | no_license | carlosgonzalez96/Bustout-in-c- | ab61426772cc24c0939924ab519596750c0b83d5 | 26ff017efb99d9a2859a75c18cfd6c62924fa001 | refs/heads/master | 2020-07-23T22:53:54.197529 | 2019-11-10T04:56:26 | 2019-11-10T04:56:26 | 94,360,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,214 | cpp | ofApp.cpp | #include "ofApp.h"
#include "paddle.h"
#include "ball.h"
#include "bricks.h"
const int START_SCREEN = 0;
const int GAME_SCREEN = 1;
const int GAME_OVER_SCREEN = 2;
const int WIN_SCREEN = 3;
int gameState = START_SCREEN;
//--------------------------------------------------------------
void ofApp::setup() {
ofSetBackg... |
01805110681ba4609bb91e81b4dfe919152de7d6 | 7bc8b3136eaf3df62ea8fbb173c47bded2b11a43 | /code/code/sys/process.cc | ab889519b185f13c43bfae029234491ee8f0c225 | [] | no_license | travisnelson/sneezymud | b0cf390cdcb7539214113277e8bab809184cf93b | 19887d31602aad5bada2d6c49f96612972e4ce84 | refs/heads/master | 2021-01-21T21:21:56.064933 | 2017-06-19T21:57:49 | 2017-06-19T21:57:49 | 94,824,071 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,778 | cc | process.cc | #include "process.h"
#include "timing.h"
#include "database.h"
#include "shop.h"
#include "parse.h"
#include "faction.h"
#include "extern.h"
#include "toggle.h"
#include "guild.h"
#include "being.h"
#include <sys/shm.h>
#include <sys/ipc.h>
///////////
// procFactoryProduction
procFactoryProduction::procFactoryProdu... |
45199e44f03646655593215e7adf3c35c346d91c | 1e69982045a16cec2e1a13d20cdc6c7804651af4 | /symbex/triton_util.cc | c21d232baebef1b93b689fbe1dbb4eebf1d48689 | [] | no_license | berkgoksel/Deobfus-Scripts | fa0fca11f975743185fb95cda296b9e6c0c5cda3 | 6686ae0799cae14bd009d346acd875d1234c6470 | refs/heads/master | 2020-12-28T04:20:03.124453 | 2020-02-20T12:09:58 | 2020-02-20T12:09:58 | 238,179,789 | 2 | 2 | null | 2020-02-20T12:07:53 | 2020-02-04T10:29:27 | C++ | UTF-8 | C++ | false | false | 4,432 | cc | triton_util.cc | #include <stdio.h>
#include <stdint.h>
#include <string>
#include <map>
#include <triton/api.hpp>
#include "triton_util.h"
triton::arch::registers_e
get_triton_regnum(char *regname)
{
if(!strcmp(regname, "al")) return triton::arch::ID_REG_AL;
else if(!strcmp(regname, "ah")) return triton::arch::ID_REG_AH... |
824ce0e38dc22bfe7c32e7ba58773ab136c4e243 | 8900b8dca91e74b7aebc8888b9ae9e637bb875d2 | /src/EventManager.cpp | 12e8784bf711c3706bdab0c08c03b2c7fe5673f7 | [] | no_license | SanchezSobrino/ARgos_Client | f6e13345ba91fb7a0bef3b871c90e5f2eb1b4b1e | 9b72af695b12aabeb59ef42ca41cd6827f52b075 | refs/heads/master | 2021-12-04T11:33:38.556787 | 2015-03-23T10:57:49 | 2015-03-23T10:57:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | cpp | EventManager.cpp | #include "EventManager.h"
#include <iostream>
namespace argosClient {
void EventManager::addEvent(EventManager::EventType ev) {
if(_eventsQueue.size() > MAX_EVENTS)
_eventsQueue.pop_front();
_eventsQueue.push_back(ev);
}
EventManager::EventType EventManager::popEvent() {
EventType ev = Event... |
0211f5ad1619cd05e8da47993df233eced92edfc | ea26ee9c65d9a063fdfb86f21d7cbcd2d0ba841e | /Week1/Problem7/main.c++ | c221beb54b429c8cbfd87bf38200692c890fb366 | [
"MIT"
] | permissive | OctaviPascual/edX-HowToWinCodingCompetitions | 554812efb6bd4280c7d15c86f410d1c0e9761170 | e30917f1ebc44e045f21d0e0a595b2fb88047366 | refs/heads/master | 2021-08-26T06:39:34.766389 | 2017-11-19T11:10:57 | 2017-11-21T22:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,237 | main.c++ | #include <fstream>
#include <vector>
#include <map>
#include <algorithm>
#include <string>
using namespace std;
struct Position {
int w, h;
};
typedef vector<char> VC;
typedef map<char,Position> MCP;
const string TEMPLATE_END = "%TEMPLATE-END%";
const int MAX_SYMBOLS = 10000;
void read_keyboard(ifstream& fin, i... | |
8e29449a493d83eae2a6fed2365f108935a1c497 | ca3921a38d15f352065de1c35cea405014920113 | /matris jam&tafrigh.cpp | 868853d08da85ad4c606ef64b0ba9fceef93a01d | [] | no_license | atpgeek/code-for-you | 31f550ff424f6160ab4ead175a0b6084b334377a | b23fc36d18395dbca9e448a4cc34e5a7718d282a | refs/heads/master | 2020-04-02T00:36:49.293108 | 2018-10-31T08:59:05 | 2018-10-31T08:59:05 | 153,812,634 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 875 | cpp | matris jam&tafrigh.cpp | #include <iostream>
#include <conio.h>
template <class T>
void subAdd(T a[][3],T b[][3],T add[][3]){
const int n=3;
int i,j,sub;
for(i=0;i<n;i++)
for(j=0;j<n;j++){
sub[i][j] = a[i][j] - b[i][j];
add[i][j] = a[i][j] + b[i][j];
}
}
int main(){
const int n=3;
int i,j,a[n][n] ,b[n][n],sub[n][n],... |
65cd56d35cd7e8d9e366221004e792313aa28afe | 948f4e13af6b3014582909cc6d762606f2a43365 | /testcases/juliet_test_suite/testcases/CWE127_Buffer_Underread/s01/CWE127_Buffer_Underread__CWE839_listen_socket_83.h | f0b2c4a07d533ccbb21e6405d88d4e17ff82322e | [] | no_license | junxzm1990/ASAN-- | 0056a341b8537142e10373c8417f27d7825ad89b | ca96e46422407a55bed4aa551a6ad28ec1eeef4e | refs/heads/master | 2022-08-02T15:38:56.286555 | 2022-06-16T22:19:54 | 2022-06-16T22:19:54 | 408,238,453 | 74 | 13 | null | 2022-06-16T22:19:55 | 2021-09-19T21:14:59 | null | UTF-8 | C++ | false | false | 1,604 | h | CWE127_Buffer_Underread__CWE839_listen_socket_83.h | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__CWE839_listen_socket_83.h
Label Definition File: CWE127_Buffer_Underread__CWE839.label.xml
Template File: sources-sinks-83.tmpl.h
*/
/*
* @description
* CWE: 127 Buffer Underread
* BadSource: listen_socket Read data using a listen socket ... |
f6fd2a0146e77f66c366b65bb232a32d00f7cbbc | 27c6781ffe68ae3a2372468d653a267bd1ce7b61 | /examples/RTCReset/RTCReset.ino | ef5530229d7e67ca7e43581a08ed49d5fd00010e | [] | no_license | fpistm/STM32RTC | 2ba0365bda683e455bd70dcf9013589e8bd7b9ee | 442ec380ce4ede22037823aa6ec1179e1bf4907e | refs/heads/main | 2023-07-14T14:19:14.350695 | 2023-06-19T13:04:52 | 2023-06-20T07:10:38 | 128,411,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,716 | ino | RTCReset.ino | /*
RTCReset
This sketch allows to test STM32RTC after a software reset or power off
with VBat. Including Alarm A and B management.
Creation 17 jan 2023
by Frederic Pillon for STMicroelectronics
This example code is in the public domain.
https://github.com/stm32duino/STM32RTC
*/
#include <STM32RTC.h>
... |
239b1729fdc5ab173fd4629ae589c80292538da5 | 8f5ddc7f1bc64f5d647195ff426ac8b0dd8904e5 | /1149.cpp | 39e51e1983feae46a9bfdc13f23368e9398f1c5b | [] | no_license | Chemiphilist/BOJ | 572d678a9a050a398185bb724cc3a5f7246e1e50 | 5685b96b4aa4480fa25816a8f9ba80baaeb7cd91 | refs/heads/master | 2020-07-17T21:15:13.419213 | 2019-09-04T12:14:04 | 2019-09-04T12:14:04 | 206,100,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | cpp | 1149.cpp | #include <iostream>
#include <algorithm>
#define R 0
#define G 1
#define B 2
using namespace std;
int arr[1200][3], sum[1200][3];
int main()
{
int house, r, g, b;
cin>>house;
for (int i=1; i<=house; i++)
{
cin>>r>>g>>b;
arr[i][R]=r;
arr[i][G]=g;
arr[i][B]=b;
}
for (int i=1;... |
5235beca5ab85cd29929da23cfcb62384b97a562 | d7ff866f367f64b60e401c0a2bb892111014833b | /src/World.cpp | 648528ccab39002b125647fe96c91a717a3f638e | [] | no_license | kasrasadeghi/fortress-commander | 07baaa77efb27021bef887a477a26dff6f769c4a | 6a84c06d16e727cec1f36e4cf17f3f2cc40b4a66 | refs/heads/master | 2020-04-06T07:40:10.134585 | 2019-10-27T15:10:00 | 2019-10-27T15:10:00 | 157,280,862 | 2 | 0 | null | 2019-10-09T02:30:23 | 2018-11-12T21:41:51 | C | UTF-8 | C++ | false | false | 6,664 | cpp | World.cpp | #include "World.h"
#include "Game.h"
#include "Graphics.h"
#include "Unit.h"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/string_cast.hpp>
#include <glm/trigonometric.hpp>
// clang-format off
void mat4_print(glm::mat4 m) {
for (int i = 0; i < 4; ++i) {
for (int j = 0; j < 4; ++j) {
std::cout << m[j]... |
e892975c4eb0bf4292b7b520679e5fe6e68a29c9 | 714b2aa8d410ae746bd120a323d24fa8b406a341 | /src/lexer/slang-lexer.cpp | 50036bc69404d30e1e52ea714b6041836a4c006c | [] | no_license | pencels/slang-old | bb8ff42a9e8d4970bac68a9234260a15977a5cc8 | 0755a888fffc19cce2500fd8dd3c74c7fc4d4419 | refs/heads/master | 2021-06-07T22:33:32.529395 | 2016-09-21T00:09:20 | 2016-09-21T00:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | cpp | slang-lexer.cpp | #include <iostream>
#include <string>
#include <exception>
#include "lexer.hpp"
using namespace std;
int main(int argc, char * argv[]) {
if (argc != 2) {
cerr << "Input only one file argument." << endl;
return 1;
}
ifstream file;
file.open(argv[1]);
if (!file.good()) {
cer... |
1e44a83fd75d4cc93d266b9f6732a61a717e25ba | 8417ee3d01e9db0dde37367778a0821200673e13 | /bitwise_operators.cpp | e27046517aac3271ea37ccd3e35e1a12f3e1fcd0 | [] | no_license | jiseongyoo/C-Examples | ee9224ff3419f9fdefd89051997fddb9fffb6241 | b1788deaf996c5b7f4e6b8f4466445c339f3f88f | refs/heads/master | 2020-04-18T21:47:11.786681 | 2019-01-27T05:47:40 | 2019-01-27T05:47:40 | 167,774,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,649 | cpp | bitwise_operators.cpp | #include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
void print_binary(int input, unsigned int length);
int main(int argc, char** argv) {
int val1 = 0b0101;
int val2 = 0b1100;
std::cout << " "; print_binary(val1,4); std::cout << std::... |
bc6a0dc604ac67a9ddec05847ba31901009bf6f9 | 4f2719dc274ac1fd1d88603cd87c3590e1c1f55a | /Practice/Practice/2667_단지번호붙이기.cpp | 5d963a03bffc0241030caf8fba8e9e6f962e795e | [] | no_license | coconamy77/algo_Cpp | b44270950ad74c8ac8e9f0ccad1c32012f7b7246 | ca1cca9acfbbc7a1803c16f46254f919eb5239b1 | refs/heads/master | 2020-11-28T13:41:51.570921 | 2020-04-06T07:12:32 | 2020-04-06T07:12:32 | 229,834,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | cpp | 2667_단지번호붙이기.cpp | #include<cstdio>
#include<algorithm>
#define V(X,Y) if(X<N&&Y<N&&X>=0&&Y>=0&&f[Y][X]>48&&!v[Y][X])
char f[33][33], v[33][33];
int dx[] = { 0,-1,0,1 }, dy[] = { 1,0,-1,0 }, N;
int go(int x, int y) {
int a = v[y][x] = 1;
for (int i = 0; i < 4; i++)V(x + dx[i], y + dy[i])a += go(x + dx[i], y + dy[i]);
return a;
}
int... |
67e59d0be37ad1efe768f7c93a52a024c31b6485 | 498b8be6c9099783c9221ee9735b01863e03bb33 | /test/string_plugin.cpp | 37284d1712da616311624d31cd71fde3dce54a9f | [
"BSD-2-Clause"
] | permissive | saarnold/envire-envire_core | 1c56246a7bb2bc2df21adb36effc63934334976b | 50ccab7c0c66daf2ace726e3db1eb0ea1aa866d6 | refs/heads/master | 2020-05-20T23:41:52.673025 | 2017-02-20T15:59:23 | 2017-02-20T15:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 95 | cpp | string_plugin.cpp | #include <envire_core/plugin/Plugin.hpp>
#include <string>
ENVIRE_REGISTER_ITEM( std::string ) |
7d5c6fa76f857fac8fdaa18eaba2c5eaf63bc8dc | 528120ff7c5f369542490b9707cb4fb49b8899d6 | /code/day09.cpp | e4914affbe9601b1ba00884846b615a130993acb | [] | no_license | SamG97/AdventOfCode2020 | 94fb98d3a5ed64de2ca083fad30f3b8f830d2b2d | 0300c83153baaf5651c9669c999cb09ac0b0e029 | refs/heads/main | 2023-01-30T14:26:39.912796 | 2020-12-20T01:14:39 | 2020-12-20T01:14:39 | 319,295,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,109 | cpp | day09.cpp | #include "utils.h"
#include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
template <int n>
class XMASCode {
public:
void update(int i) {
buffer[head++] = i;
if (head == n) {
head = 0;
inPreamble = false;
}
}
bool isValid(int target) {
... |
7a7669b0246555f5e4803595bd2fe20df525f2c1 | 01e2f6bc6035b52b7649800424820d2da4fea717 | /Part-4/SortedSet.h | 2a5cd123fcfc1282590997b22d01c94776f2da6c | [] | no_license | RazLandau/Yad3---C-CPP-BASH | c8ea5427c2f3e224fad9e9d64f385f9d588597f4 | baf8a45013330ce3d69f607ba50db875e3f2e9a0 | refs/heads/master | 2021-01-11T04:35:38.725449 | 2016-10-17T17:54:21 | 2016-10-17T17:54:21 | 71,158,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,268 | h | SortedSet.h | #include <iostream>
#include <assert.h>
#ifndef SORTEDSET_H_
#define SORTEDSET_H_
template<class D, class Compare = std::less<D> >
class SortedSet;
/************************************NODE**************************************/
/* An aiding class for class list (all the function and fields are private) *... |
8875fbdfc3248bc1b662ef07073742cf7397ae64 | 55b53529db205e921d13873f901a59518c35b14f | /data/basedata.cpp | ff2e03b08584877a24baf018e96574cf918420f5 | [] | no_license | andreikl/gexplorer | 00e7efd6a25231eed53e4770cb864b41e280f88a | 5e4a16432504f20fdae90ae316ddc8f782e625a1 | refs/heads/master | 2021-06-02T00:44:56.036227 | 2016-05-15T02:37:11 | 2016-05-15T02:37:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80 | cpp | basedata.cpp | #include "data/basedata.h"
BaseData::BaseData()
{
}
BaseData::~BaseData()
{
}
|
d23bd09bbcf365b632e8925021a236d2bfa988b9 | 72e95df33ab3fb6bba03a81867b77b755f46bb66 | /shared_model/interfaces/common_objects/domain.hpp | 13c2ada4adb142185d1e37dacfe22b317820d912 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | hyperledger/iroha | f07a81389fe1d3c488968919ab9196c548048f3a | f2d96e3050a504a982b983d8061588d8c650c5ad | refs/heads/main | 2023-09-06T00:40:53.092106 | 2023-09-01T17:37:08 | 2023-09-01T17:37:08 | 67,340,575 | 1,125 | 419 | Apache-2.0 | 2019-04-16T17:26:30 | 2016-09-04T11:17:53 | C++ | UTF-8 | C++ | false | false | 1,526 | hpp | domain.hpp | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_DOMAIN_HPP
#define IROHA_SHARED_MODEL_DOMAIN_HPP
#include "interfaces/base/model_primitive.hpp"
#include "interfaces/common_objects/types.hpp"
#include "utils/string_builder.hpp"
namespace ... |
6bcd7860aa638959faab14f22dc7ec5013c8927d | 0ea6e97f5d6de315fc332f86a996d1491c61acad | /include/gdk/graphics_context.h | 50de930fd03e5977ccc92e39ab37c87d7047ccc2 | [
"MIT"
] | permissive | jfcameron/gdk-graphics | 660e6b542348f7426ae1b130f6a3d81907384517 | f778ca23a2c84948650ea9b1a4c9b37303ef5148 | refs/heads/master | 2022-09-18T08:45:21.171777 | 2022-09-13T05:50:32 | 2022-09-13T05:50:32 | 189,794,666 | 1 | 1 | MIT | 2021-04-13T03:28:42 | 2019-06-02T01:58:03 | C++ | UTF-8 | C++ | false | false | 6,937 | h | graphics_context.h | // © Joseph Cameron - All Rights Reserved
#ifndef GDK_GFX_CONTEXT_H
#define GDK_GFX_CONTEXT_H
#include <memory>
#include <gdk/entity.h>
#include <gdk/material.h>
#include <gdk/model.h>
#include <gdk/scene.h>
#include <gdk/screen_camera.h>
#include <gdk/shader_program.h>
#include <gdk/texture.h>
#include <gdk/image_d... |
60fc5fffd4cf7d25e18944246a1e1deafd1ec16c | fbfe5e213658f9f27badb04d85869d1bea73f68f | /Source/CombBIBD_Enumerator.cpp | 6e55d8ff4185bee36c12de4fa414a5f0af157893 | [] | no_license | andrei5055/Incidence-System-Enumeration | 7494b59b95654a77f0664ba73bc03c797109fe6f | 19838d606c1d47a4031400715ed73a007ed0e9ba | refs/heads/master | 2023-08-17T00:41:03.196235 | 2023-08-13T04:24:03 | 2023-08-13T04:24:03 | 24,400,669 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,020 | cpp | CombBIBD_Enumerator.cpp | #include "CombBIBD_Enumerator.h"
#include "DesignDB.h"
template class CCombBIBD_Enumerator<TDATA_TYPES>;
FClass2(CCombBIBD_Enumerator)::~CCombBIBD_Enumerator() {
delete[] m_FirstPartSolutionIdx;
delete[] m_bSolutionsWereConstructed;
delete m_pSpareMatrix;
delete[] m_pGroupOrders;
delete m_pGroupOrder;
if (m_bC... |
bd55493ded2d5989b14eb705ef2ee836b2bb3148 | 9384ba6009ac1cf833526eb9ef4da57eae682cc1 | /190.cpp | 505e375395c3817a02b27527dc980a26b49399d9 | [] | no_license | wxl-98/OJ_Code | 2013218afd7a40cdf0d5a84dacec5ce277988c63 | fe36a815fccfe983888c05468149f28347d3ea1e | refs/heads/master | 2020-12-04T13:33:08.179177 | 2020-04-28T10:31:45 | 2020-04-28T10:31:45 | 231,782,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | 190.cpp | /***********************************************************
* &Author: Wang Xianling
* &E-mail: wang_xianling@foxmail.com
* &Motto: Believe in yourself.
* &File Name: 190.cpp
* &Created Time: 2019年12月02日 星期一 17时39分25秒
* &Description:
********************************************... |
e4bc06cc8afe0dda13c4bddda4908f109239669b | 0acd1e19ea3e4351dcb3358207aa3f29afe2231e | /Carro/frmvendadialog.cpp | 2d9ad4cefd5f3f41e779c9f99b5df898e0e8a551 | [] | no_license | guoyu07/trabalhoPRG3 | 9a5ba94654ec280150adebd85bd7f0d0e2a562fc | 2df791102a0b4841dfa62649ffa81ca5d247c7d8 | refs/heads/master | 2021-05-30T01:25:22.146343 | 2015-12-03T10:49:20 | 2015-12-03T10:49:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,982 | cpp | frmvendadialog.cpp | #include "frmvendadialog.h"
#include "ui_frmvendadialog.h"
#include "pgsqlcarrodao.h"
#include "pgsqlclientedao.h"
#include <QVector>
#include <QMessageBox>
FrmVendaDialog::FrmVendaDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::FrmVendaDialog)
{
ui->setupUi(this);
carroController = new CarroCo... |
e9782a8b9d356c61aa8ba04558f9ee6adb73d275 | 166b44fa7f996c2b8e410cd3b06c58cfad624c93 | /similarity/team_list.cpp | 276a23e8ae37400c05c6a401814be98c58766c2a | [] | no_license | errorcodexero/stats | 1c763dc36f8f79fcbf59a930c5c55b83f40b483f | 992b0763f5becff494a999a1d02832666d7c7007 | refs/heads/master | 2021-07-04T15:31:21.799430 | 2016-12-28T02:34:33 | 2016-12-28T02:34:33 | 40,694,633 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,917 | cpp | team_list.cpp | #include "team_list.h"
#include "../util.h"
#include "../scrape.h"
#include "nlohmann/json.hpp"
using namespace std;
using namespace nlohmann;
vector<unsigned> range(unsigned lim){
vector<unsigned> r;
for(unsigned i=0;i<lim;i++) r|=i;
return r;
}
ostream& operator<<(ostream& o,Team_info const& a){
o<<"Team_info(... |
1ddade65497cee16452a7189fc6b0645cfcf22f5 | f9628918bf1f94ad44360fc808b5b09ba3d391ca | /session03/03bfunctionoverloading.cc | 7b069a37006cf440529df3518e5c18516b7f9311 | [] | no_license | chuanhanyuan/CPE553-CPP | 9e8157c243f4f8e775d0e0f82be2673bd70219ce | 9ccf0a6f3508886b803231930861094c72e0abdb | refs/heads/master | 2023-08-18T06:26:45.004832 | 2021-10-15T18:21:23 | 2021-10-15T18:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cc | 03bfunctionoverloading.cc | #include <iostream>
using namespace std;
void f(int x) { cout << "int"; }
void f(const char* s) { cout << s; }
int main() {
f("hello");
f(3);
int* p = NULL;
p = 0;
f(0); // ambiguous because 0 is null OR zero
p = nullptr; // since c++11
}
|
d45c1f0c76ca2d54ce398286087ac2bc70edf15e | e8167637b0c2c34e3d4e0add8ebbe639f22afbcc | /C++ projects/first_lab_version2/first_lab_version2/structs.h | 1f9140a0f15ce305e18430c79f2f6cb1734117c7 | [] | no_license | Koci4ka/Git_projects | 1f1473016411847a02d67a0952e263a6b61cb0eb | 41e98e64ad411dfca4c602e94b86b12cbee99168 | refs/heads/master | 2022-12-28T21:55:08.571300 | 2020-10-16T11:17:43 | 2020-10-16T11:17:43 | 264,414,255 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 733 | h | structs.h | #ifndef STRUCTS_H
#define STRUCTS_H
#include <list>
struct Node
{
Node(int _id = -1, Node* _parent = nullptr, int _i = -1, int _j = -1, bool _inOpened = false, bool _inClosed = false, float _g = INFINITY, float _f = INFINITY, float _h = INFINITY)
:id(_id), parent(_parent), i(_i), j(_j), inOpened(_inOpened), inClosed... |
c2e9d9e162755111a574d772f653c63b133c0a34 | 804a0d133adb5fe67696753a89fbc83c1be740c1 | /monte_carlo_methods/src/tests/testTemplateStaticMember.cpp | eec9b96622deab632508137f095a477422e15274 | [] | no_license | jstanco/MonteCarlo-Methods | b51d8b5f260816267a0338b64332f77a0efc7e9e | 776767c0abb6b94f1552fa1d9a3e1be7ff11efa6 | refs/heads/master | 2021-09-20T05:26:44.676455 | 2018-08-04T00:31:08 | 2018-08-04T00:31:08 | 135,193,561 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 147 | cpp | testTemplateStaticMember.cpp | //created by John Stanco 6.1.18
#include <iostream>
template<char... Char>
class A{
static int n;
};
int main(){
A<'test'> a;
return 1;
} |
6d85bc6ffe143c83fddce486c80b0b414a4dd53b | 05be486d1dac8354f2bf2c2fed268960ffeac3f3 | /aquarduino.ino | 4e01a370964bb979731a08cb78fbc4eadc2816ba | [] | no_license | max2thousand/Aquarduino | 13e57b4d27618e66711318901a23ce0ec9fcdc03 | 40aaafbdd1f80507c77bfa79a238367fefa014f1 | refs/heads/master | 2020-05-20T07:34:50.358657 | 2012-02-25T10:37:46 | 2012-02-25T10:37:46 | 3,543,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,321 | ino | aquarduino.ino | const int ledPin = 13; // LED connected to digital pin 13
int currentHour = 23;
int currentMinute = 18;
int currentSecond = 0;
const int maxHour = 23;
const int maxMinuteSec = 59;
void setup()
{
// initialize the serial communication:
Serial.begin(9600);
pinMode(ledPin, OUTPUT); // sets th... |
f10f61ee33ad7ee61c540d1dda8ee43791dfd397 | 767fb682d264ce75823236b7f7a1f710fa45d736 | /445A.cpp | 2f4e39fc24117eee34f906e107a904834494d22a | [] | no_license | wwkenwong/codeforces | 0521aa28977a64d73c2bc45ef1d390b219ea9e64 | a31ad8d84e718bfa8ea9a93824cd9c7673232585 | refs/heads/master | 2020-07-23T21:09:33.027018 | 2018-01-08T08:42:03 | 2018-01-08T08:42:03 | 67,006,474 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,368 | cpp | 445A.cpp | #include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
#include <sstream>
#include <deque>
using namespace std;
const int maxn=110;
const int inf=1e9+10;
int n,m;
bool bad[maxn][maxn];
bool vis[maxn][maxn];... |
15a01fee461d341fc313f0d536cac6a20880a4c3 | 673d3406aefed5ec77840170f5d6848cc6f40ce7 | /Contest2/E.cpp | a20d722659acb90bb5f3a5b86577e51286d42610 | [] | no_license | Shrey-Viradiya/CompetitiveCodes | d66cb66520b6ad7b764b5c96d179089a8d14e1ef | 5e6a65b3fc4a178ccbfdc6da1d0b2794d827e6ce | refs/heads/master | 2022-12-14T14:43:39.804095 | 2020-09-11T07:04:42 | 2020-09-11T07:04:42 | 228,394,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 616 | cpp | E.cpp | #include <bits/stdc++.h>
#define pb push_back
#define fo(i, a, b) for(int i=a;i<b;i++)
#define GCD(a, b) __gcd(a,b)
#define TESTCASE int t;cin>>t;while(t--)
#define INF LLONG_MAX
#define NINF LLONG_MIN
using namespace std;
// threading function
int main(int argc, char const *argv[]) {
int a,m;
cin >> a >> m;
//... |
7f7e31ec35c1b46ceec14f02f6f97b94964a69da | 9139c3f0a274239dc068322ae9c4811386fd82ca | /HCI/mainwindow.h | f0d820b51c36d66c0fb28ce9309dd58e1348a39f | [] | no_license | NohaWong/HCI_eyetracker | f6d903b09e0fa862e28d3a5d21f8467bbb332473 | 621c3044ac96908ec4f543f996bce6b83ad33182 | refs/heads/master | 2021-08-31T13:55:19.699489 | 2017-12-20T14:24:27 | 2017-12-20T14:24:27 | 111,900,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 903 | h | mainwindow.h | #ifndef BOOST_MAINWINDOW_H
#define BOOST_MAINWINDOW_H
#include <iostream>
#include <vector>
#include <QMessageBox>
#include <QtOpenGL/QGLWidget>
#include <QtGui/QtGui>
#include <QFileDialog>
#include <QLabel>
#include <QCheckBox>
#include <QPushButton>
#include <QGridLayout>
#include <QListWidget>
#include "glwidget... |
b62c99fea6914662aba3df1d0b24853f86c72bd0 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1493. Longest Subarray of 1's After Deleting One Element/1493-2.cpp | fbb173781121a26618c5f5e3786902d400ed0fd7 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | C++ | false | false | 280 | cpp | 1493-2.cpp | class Solution {
public:
int longestSubarray(vector<int>& nums) {
int l = 0;
int count0 = 0;
for (const int num : nums) {
if (num == 0)
++count0;
if (count0 > 1 && nums[l++] == 0)
--count0;
}
return nums.size() - l - 1;
}
};
|
3677998c078947e55cd1db74cc907c63e7e233c0 | 35c36b6de568714344035b33b850066785f2d8f2 | /src/stationchat/ChatAvatar.hpp | 06a2f17b3e46c2963b6a7280d111bde253dfb35a | [
"MIT"
] | permissive | apathyboy/stationapi | bd5b95cc372c3808df1ef9a7128ccffab6accf05 | f24c5bdbfee7320a99ce9203349980c5041bfe82 | refs/heads/master | 2021-12-28T11:19:57.967291 | 2021-11-26T22:28:43 | 2021-11-26T22:28:43 | 60,681,522 | 6 | 7 | MIT | 2021-11-26T06:58:21 | 2016-06-08T08:26:08 | C++ | UTF-8 | C++ | false | false | 4,442 | hpp | ChatAvatar.hpp |
#pragma once
#include "Serialization.hpp"
#include <cstdint>
#include <string>
#include <vector>
class ChatAvatar;
class ChatAvatarService;
class ChatRoom;
enum class AvatarAttribute : uint32_t {
INVISIBLE = 1 << 0,
GM = 1 << 1,
SUPERGM = 1 << 2,
SUPERSNOOP = 1 << 3,
EXTENDED = 1 << 4
};
struc... |
0d038991682a93f32118c9ec351c3a44bcd55536 | 13144cec2fbdc292035273bb19d0a9b595492a7d | /VulkanBenchmarks/MultiPass/DeferredRendering/demo_application.h | f062c49103fc7e084e36eeef67679b3b96240791 | [] | no_license | agkountis/dissertation-vulkan-vs-opengl | 99ebdb8717fa0faadd88ab2eb33a0385b7367861 | 7713e12a43d2cf12a67591a074c3f63257fca2f9 | refs/heads/master | 2022-08-09T17:56:28.775126 | 2020-05-20T23:35:49 | 2020-05-20T23:35:49 | 265,708,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | h | demo_application.h | #ifndef DISSERTATION_DEMO_APPLICATION_H_
#define DISSERTATION_DEMO_APPLICATION_H_
#include "vulkan_application.h"
#include "demo_entity.h"
#include "demo_scene.h"
class DemoApplication final : public VulkanApplication {
private:
DemoScene m_DemoScene;
VkCommandBuffer m_DeferredCommandBuffer{ VK_NULL_HANDLE };
Vu... |
c5827d6d339ffe0a1aadc27c6f8202a994ef41f9 | 2ad75908efc7f819f0b63433618cd9f7bbfec0b5 | /legacy_compatible/CiHBResponser.h | 844b3774c0108eb0b1e0d373e72ae30ae7f7b3a2 | [] | no_license | castisdev/libcastis_heartbeat | 8f7e8ca7d125ebc1b4ba85dd723bca6497dc4fd9 | a007a99f7fe7420e62f7dc32d39ac83a18d3efd1 | refs/heads/master | 2020-12-22T19:20:51.560345 | 2020-12-16T01:45:40 | 2020-12-16T01:45:40 | 25,906,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | h | CiHBResponser.h | #pragma once
#include <string>
#include "legacy_support.h"
#include "CiHBDefines.h"
#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable : 4512)
#endif
class CCiHBResponser : public cihb::CNetworkThread
{
public:
CCiHBResponser(const std::string& szRepresentativeIP,
unsigned short iPortNumber,
cons... |
93c5e5520eb0e881f8689fae88c7c2c5b37f2436 | a51750f599885dd6dc91bc8a41e7ffa495cb59a2 | /cspark/spark/sema/names/memberlookup.h | d31337c7a2207179f34944c4e724db2aec70d207 | [
"Apache-2.0"
] | permissive | viridia/spark | 3f15ffdb00e23bfdc76099f49517b71ec95c1e0b | d1c0f4cc1e72f73b360b119e8b694b58935b0209 | refs/heads/master | 2016-09-05T19:26:48.597528 | 2015-11-13T03:30:01 | 2015-11-13T03:30:01 | 31,223,236 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,489 | h | memberlookup.h | // ============================================================================
// sema/names/memberlookup.h.
// ============================================================================
#ifndef SPARK_SEMA_NAMES_MEMBERLOOKUP_H
#define SPARK_SEMA_NAMES_MEMBERLOOKUP_H 1
#ifndef SPARK_CONFIG_H
#include "spark/confi... |
21f130de68ce04a00898dfe59f4bb31cc80006ac | 55cd997356533e66dd1e5ad585089836982620ad | /CustomWidgets/UICustomWidgtes/CustomWidget.cpp | 03a3338b0d8f14b37e36f47325351ae5def4ea4c | [] | no_license | douzhongqiang/EasyCanvas | f8e34ee6b60acf825cecc388c2a4a03262039d31 | 84aad331afad1a43e77fcf3bb4ce093f80a60008 | refs/heads/master | 2023-07-25T22:36:15.453873 | 2023-07-15T07:18:02 | 2023-07-15T07:18:02 | 251,264,472 | 143 | 70 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | CustomWidget.cpp | #include "CustomWidget.h"
#include "UICustomCore/CustomStyleConfig.h"
#include <QStyleOption>
#include <QPainter>
CustomWidget::CustomWidget(QWidget* parent)
:QWidget(parent)
{
g_StyleConfig->setCurrentStyle(this, "DefaultWidget");
}
CustomWidget::~CustomWidget()
{
}
void CustomWidget::paintEvent(QPaintEven... |
2306aadb669b879907958017fef68cbdd8f10919 | 09d9b50726c2e5cdc768c57930a84edc984d2a6e | /CODEFORCES/CONTEST PROBLEMS/educational_round_A.cpp | c74962dc087d708ba030a3b7abf2dd296c949707 | [] | no_license | omar-sharif03/Competitive-Programming | 86b4e99f16a6711131d503eb8e99889daa92b53d | c8bc015af372eeb328c572d16038d0d0aac6bb6a | refs/heads/master | 2022-11-15T08:22:08.474648 | 2020-07-15T12:30:53 | 2020-07-15T12:30:53 | 279,789,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | educational_round_A.cpp | #include<bits/stdc++.h>
#include<stdio.h>
#include<cstring>
using namespace std;
int ara[110];
bool cmp(int a,int b)
{
return a>b;
}
int main()
{
int n,m;
cin>>n>>m;
for(int i=1;i<=n;i++)
cin>>ara[i];
sort(ara+1,ara+n+1,cmp);
int sum=0,i;
for(i=1;i<=n;i++){
sum+=ara[i];
... |
11b8089739b7a48e27e8129d6bd4cc18237636f3 | eabe92ff958be0e5894ed7501780d8eb608b6ae9 | /remoting/host/chromoting_host.h | 02143fa2fd5b8e08b47ca8b12891a7661c81f7be | [
"BSD-3-Clause"
] | permissive | meego-tablet-ux/meego-app-browser | 51bf8a8b8f15d702151a3f32a2598d4621b6926d | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | refs/heads/master | 2021-01-10T21:33:19.677680 | 2011-07-20T01:19:53 | 2011-08-01T07:18:37 | 32,045,345 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,365 | h | chromoting_host.h | // Copyright (c) 2011 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 REMOTING_CHROMOTING_HOST_H_
#define REMOTING_CHROMOTING_HOST_H_
#include <string>
#include "base/memory/scoped_ptr.h"
#include "base/threadi... |
731a032effb481afd9a90248a922db761b4fa375 | 7ee1a4625d259a8a0e0c98c42271c4d4d3c84a5f | /src/groups/mqb/mqbc/mqbc_clusterstateledgerutil.h | 36b605adc2c5df6a4c650caf1e1846c4fd4cbe06 | [
"Apache-2.0"
] | permissive | bloomberg/blazingmq | c78323ff0246d69177b619c54fa85c15968e4d25 | 1a0588ca8049230421e75760e110bff3711e79e8 | refs/heads/main | 2023-09-01T01:06:02.672367 | 2023-08-29T21:57:39 | 2023-08-30T17:39:25 | 665,300,681 | 2,199 | 84 | Apache-2.0 | 2023-09-14T21:01:30 | 2023-07-11T22:49:38 | C++ | UTF-8 | C++ | false | false | 11,683 | h | mqbc_clusterstateledgerutil.h | // Copyright 2019-2023 Bloomberg Finance L.P.
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
/... |
addf4834ce00c3b3451505b6f4104e701d961816 | 04a70456751af7f5e2f7d9e905ffb793c2454e9f | /source/image/dithering/DitheringOptions.h | 592f48e391f5865a26a39a25f0892562d8e1a663 | [
"MIT"
] | permissive | Highlife1911/glexamples | 420f4155f34115eea58b5d0c7914bf0ba3be8d0a | 06d5d936098177f02704094ba81623dfb96069b4 | refs/heads/master | 2021-01-16T21:53:48.364150 | 2015-07-25T13:46:17 | 2015-07-25T13:46:17 | 35,499,164 | 0 | 0 | null | 2015-05-24T17:38:08 | 2015-05-12T16:19:44 | C++ | UTF-8 | C++ | false | false | 851 | h | DitheringOptions.h | #pragma once
#include <glm/vec3.hpp>
#include <reflectionzeug/FilePath.h>
class Dithering;
using reflectionzeug::FilePath;
enum class DitheringMethod
{
Nearest,
FloydSteinberg,
Jarvis,
Stucki
};
enum class GreyscaleFormula
{
Classic,
Modern
};
class DitheringOptions
{
public:
DitheringOptions(Dithering* o... |
38319b02311d81d400c404d99f607143db8327bf | 8e068eede9730e6ce3773f1e7232c34dd03ef29d | /Engine/Modules/LUI/Rendering/TextureRenderingComponent.cpp | d9ecd883181e340a8b255c016473179070336faf | [
"MIT"
] | permissive | leec0m3t/Leggiero | 2e228fa23f723132883577c8018e7f6a47879f61 | 8fe13d86454a08ba8a3a8cebe1ce92343090c1be | refs/heads/main | 2023-04-09T19:17:06.555139 | 2021-04-19T06:54:00 | 2021-04-19T06:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,328 | cpp | TextureRenderingComponent.cpp | ////////////////////////////////////////////////////////////////////////////////
// Rendering/TextureRenderingComponent.cpp (Leggiero/Modules - LegacyUI)
//
// Texture Rendering Component Implementation
////////////////////////////////////////////////////////////////////////////////
// My Header
#include "TextureRend... |
0acc2d74fb68c4e91a1ebdefd3d0013b7fb24d94 | e7efba3eab50401f29716ff3a842a8175b046e2c | /source/interface/interface.ino | 15f71f30bbc1d38a5778469571e6c85889fda394 | [] | no_license | KCherkasov/coursework_arduino | c5a0360e44a5d74270e4d0287dd8b2b710887360 | 3094f54d6598377e9ce3f7f068c7323a4be2ee65 | refs/heads/master | 2020-12-24T11:10:09.512624 | 2016-11-22T10:23:55 | 2016-11-22T10:23:55 | 73,184,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,010 | ino | interface.ino | // A system interface module for coursework
// добавить сюда #include для библиотеки под дисплей
/*======================*/
/* list of enumerations */
/*======================*/
enum ResponseCodes { RC_OK, RC_BAD_INDEX, RC_BAD_PID, RC_BAD_INPUT, RC_EMPTY_STRING, RC_UNKNOWN_CODE, RC_WRONG_STAT_RANGE, RC_SIZE };
enum... |
ee5c3fd3869bb3ca8b0eb8a0a25a532b0b7485d3 | dc3b4009591c7eb75388249fb760112cea96c9be | /Interface/figure.cpp | a112c3a0b14931946379bf9aeb932bb0a87e7513 | [] | no_license | DavidBonnier/ProjetTut | dc8fa5d297ba014ad2b025f6033cd36730e39a6e | 8fab312d20d8bf0153cf8356a12cefea8343e315 | refs/heads/master | 2021-01-01T18:37:36.973604 | 2014-03-17T16:33:52 | 2014-03-17T16:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 729 | cpp | figure.cpp | ///////////////////////////////////////////////////////////////////////////
//! \file figure.cpp
//!
//! \brief Définition du seul constructeur de Figure.
//!
//! \date 01/02/2014
///////////////////////////////////////////////////////////////////////////
#include "figure.h"
//////////////////////////////////////////... |
454c93cb1c8a6e314945c2553e72081aa1809bcc | 2c97fc62eab1f78c4a5d1a83826a75209ebb6d39 | /1比赛题目/18.10.16模拟赛/source/source/ljj/bed.cpp | e04fbeb0867f1be9d45aee41565cd2f3d4c731aa | [] | no_license | GaisaiYuno/My-OI-Code-1 | f32932f1004e593ffee0b0e97cffd25d9e2851bf | c57ec4e2aaa1d770ee9490a42710d1cf71a153f2 | refs/heads/master | 2020-12-31T23:13:46.913582 | 2020-02-08T01:09:46 | 2020-02-08T01:09:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,375 | cpp | bed.cpp | #include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
const int maxn=300005;
const int inf=1e9;
int n,k,cur;
int d[maxn];
int mx[maxn<<2],mn[maxn<<2];
void pushup(int tmp)
{
mx[tmp]=max(mx[tmp<<1],mx[tmp<<1|1]);
mn[tmp]=min(mn[tmp<<1],mn[tmp<<1|1]);
}
void build(int tmp,int... |
8b9cb98822a4f919dd4afea5ba57b74c9d91516d | 1c8c31f2531323eb30fd4538a109f148c3975abe | /BaseballTour/csvparser.cpp | cd8bf6be1f4655caa02d993b1ddd28c26b3b5451 | [] | no_license | ethanl21/BaseballTour | b5bdfa53db2590cafd2a0ec0dec901eb87081dc2 | 2f5b952cf1752f00e925d38a369ef8d1bd56f695 | refs/heads/main | 2023-04-27T23:26:56.593642 | 2021-05-18T05:13:09 | 2021-05-18T05:13:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | cpp | csvparser.cpp | #include "csvparser.h"
vector<teamData> csvParser::parseTeamsFromFile() const {
QStringList row;
teamData temp;
vector<teamData> teamsOut;
// open the file
QFile iFile(filepath);
iFile.open(QIODevice::ReadOnly);
// link stream to file
QTextStream csvStream(&iFile);
csvStream.readLine(); // ignore ... |
5822fa3b8ddb6c57b417a719e0ddd40a41b577a4 | af8a87ee48316292a1560f4a893a8c2870099b10 | /Disassembler/Asm/AsmStorage.cpp | 70851a6f4cc6ca567750919af6867c0ad802b822 | [] | no_license | Qazwar/WindowsUtil2 | e6bffd559313851d6b59833f667166c7925f1afa | 0e8eae92d850db173620e60e012f688381b229f0 | refs/heads/master | 2020-03-23T11:05:25.940944 | 2016-12-27T10:36:04 | 2016-12-27T10:36:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | cpp | AsmStorage.cpp | #include "AsmStorage.h"
namespace Disassembler
{
AsmStorage::AsmStorage()
{
is32Bit = true;
}
OperandGroupStorage * AsmStorage::GetOperandGroupStorage() { return &operandGrpStorage; }
OpcodeDataStorage * AsmStorage::GetOpcodeDataStorage() { return &opcodeDataStorage; }
NameStorage * AsmStorage::GetNameStora... |
495b5b4285caad7a31c27c1f7397de6c5c77ba1c | 3ee53c9e2086b54036f2a50aa983be5d39f03439 | /c++/3sum_closest.cpp | 6d17b42f7a311899e1d5187d5a727696f82135d2 | [] | no_license | Peilin-Yang/leetcode | 764b41992bc903aca4f8249320da5a59e3ce5deb | ad1ce11804183816bc5127091af00a5caa25017d | refs/heads/master | 2021-01-10T16:01:31.571332 | 2015-11-12T19:40:08 | 2015-11-12T19:40:08 | 46,076,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,273 | cpp | 3sum_closest.cpp | #include <map>
#include <vector>
#include <algorithm>
#include <iostream>
#include <climits>
using namespace std;
class Solution {
public:
int threeSumClosest(vector<int> &nums, int target) {
std::sort(nums.begin(), nums.end());
int s = nums.size();
int closest = target < 0 ? INT_MIN : INT... |
c4828dd7f1e986f4b36c854c97d396b1fde96175 | 0902b733fa9bfb5c9152b4937db0a5c358f3323e | /Ultrasonic.ino | d3833e0139b39edddf154fb1ffd1cf1c18e6608a | [] | no_license | DroidBotStudiosYT/Ultrasonic-and-LCD-Arduino | 1bcec9416c3b50653cb45271fc50271f842df886 | 698cfc1d0a965f3b6fbd8c8a5d9a92ed0d5b03a5 | refs/heads/master | 2022-11-27T17:56:36.667531 | 2020-08-08T21:44:14 | 2020-08-08T21:44:14 | 285,647,702 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,175 | ino | Ultrasonic.ino | #include <SR04.h>
#include <Wire.h>
#include <LiquidCrystal.h>
#include <Servo.h>
const int trigPin = 6;
const int echoPin = 5;
long duration;
int distance;
LiquidCrystal lcd(8, 9, 10, 11, 12, 13);
int buzzerPin = A0;
int notes[] = {262};
void setup(){
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
lcd... |
d053e54fe36477c64bd64cef5443e529d34f3b0f | 1469d15af9e279af7958be9bf6d219c552c5efa2 | /app/favoritesselectionlist.cpp | 5392d29445e7468eb5f8d1c835735fa4be5a1bf4 | [
"MIT"
] | permissive | pgeorgiev98/5Com | 4b15c37483299f2b0cfe057af33f65d1c089ab00 | 58af10f3f9d7d7dd90b9c571b135fff9557e9df3 | refs/heads/master | 2023-01-04T19:17:13.370017 | 2022-12-21T20:20:25 | 2022-12-21T20:20:25 | 171,918,966 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,645 | cpp | favoritesselectionlist.cpp | #include "favoritesselectionlist.h"
#include "favoriteslistobject.h"
#include <QVBoxLayout>
#include <QListWidget>
#include <QLabel>
#include <QMenu>
FavoritesSelectionList::FavoritesSelectionList(QWidget *parent)
: QDialog(parent)
, m_list(new QListWidget)
{
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidg... |
c5caa2dd339bc1ce24509f450767750b05e2c40a | 22929f51a661e9ef9aebd7406c37f72650d8b50c | /sourceCode/cpp/lc0007/lt000692/Solution.h | 8b887593879a41e15bde748ad4efea077355d65a | [] | no_license | GHzbq/LeetCode | 8832cb3ce77d510f189477f1f8aacec5c20bbf42 | 07ec2976118d75ef7c5da6a436df99c16864ef34 | refs/heads/master | 2021-06-09T10:12:42.058173 | 2021-05-30T02:27:19 | 2021-05-30T02:27:19 | 186,953,255 | 1 | 0 | null | 2021-05-30T02:27:20 | 2019-05-16T04:49:59 | C++ | UTF-8 | C++ | false | false | 3,031 | h | Solution.h | //
// Created by zhangbaqing on 2021/5/20.
//
// 692.前k个高频单词
// https://leetcode-cn.com/problems/top-k-frequent-words/
// medium
#ifndef LEETCODE_SOLUTION_H
#define LEETCODE_SOLUTION_H
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#include <unordered_map>
#include <algorithm>
using std::st... |
d3a132b67b1ec89b39e0f4def6b610670eb39844 | f93c6d745dbbc25a7bb19ecb6b9ad60a1210f44e | /RMaxQTree.cpp | a45d73fcac6a0c0b5881096571fa7eeda57347ec | [
"MIT"
] | permissive | algbio/bdbwt-mem-chaining | 777cda61adbe00feb965b3e322b2508792546e69 | 78a7e54b87d9cd0ecb52fb18d8477cd04458fe4b | refs/heads/master | 2023-01-19T18:05:23.533412 | 2020-12-06T11:58:05 | 2020-12-06T11:58:05 | 266,734,424 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,717 | cpp | RMaxQTree.cpp | /*
* RMaxQTree.cpp
*
* Created Oct 7th 2017
* Author: Anna Kuosmanen
*
*/
#include "RMaxQTree.h"
#include <vector>
#include <limits>
#include <math.h>
#include <iostream>
//int negative_infinity = - std::numeric_limits<int>::infinity();
int negative_infinity = -10000000;
void RMaxQTree::init... |
cea54e022de284fba6b70136aae297ab301d22c7 | 64d6cc9ca6ba9f700a61ded18cb4179a9c399a91 | /Managers/PollManager.h | 6792842cf5be078401ac7fce15127f9bf5a22257 | [] | no_license | darkroom2/ZPR-Monitor-Zasobow | c952ad893b1e8a78efe62b2c1448717a5c4494e2 | 094368a798597b4b0a3bcec125d6362516ae203a | refs/heads/main | 2023-03-10T07:48:31.828627 | 2021-02-26T20:44:17 | 2021-02-26T20:44:17 | 342,693,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | h | PollManager.h | #pragma once
#include <memory>
#include <iostream>
#include <tuple>
#include "../Providers/ResProvider.h"
class PollManager {
std::unique_ptr<ResProvider> _resProvider;
public:
PollManager(std::unique_ptr<ResProvider> resProvider);
std::tuple<int, int, int> getUsages();
};
|
547e315836f7e95b491c50eb9f56b2113c9f48d1 | def575c0dd64192284d09488464692868a789c56 | /CraftClone/main.cpp | e5babd086c378682c6acf1d3fb126ba3568620c8 | [] | no_license | kava00/CraftClone | 716f710c58dcb5b055b0c9e7f26b1f8c807873b8 | 6b977d4076480d91c6a366a306134ca031f9e3e5 | refs/heads/master | 2020-07-03T02:16:06.510859 | 2019-08-11T14:56:26 | 2019-08-11T14:56:26 | 201,753,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,940 | cpp | main.cpp |
#include <iostream>
#include "Common.h"
#include "Renderer.h"
#include "Core.h"
#include "Mesh.h"
int main()
{
std::unique_ptr<Core> core = std::make_unique<Core>();
core->createWindow("Test");
std::shared_ptr<Renderer> renderer;
renderer = core->getRenderer();
std::shared_ptr<Mesh> mesh = std::make_sha... |
d79a12344755da6560b7dbeeb47a57472031b99a | d819d38b9f256e596b28fca643ab2b2e7f4edcfb | /src/functionlibs/LocalPlayer/PlayMgr.h | fcb4aefd2ad4d3f20f456c6e7996d9b048e36dd1 | [] | no_license | github188/qtcms | 032ed9b5703a27081e85418dcc5f51db6fbc0486 | 8e8aaddb1d086370e33c93d683c8cf12e44d737b | refs/heads/cms_1.1.12_beta | 2021-01-15T08:15:56.317798 | 2015-04-21T04:27:08 | 2015-04-21T04:27:08 | 55,661,875 | 1 | 0 | null | 2016-04-07T03:49:26 | 2016-04-07T03:49:26 | null | UTF-8 | C++ | false | false | 2,239 | h | PlayMgr.h | #ifndef _PLAYMGR_HEAD_FILE_H_
#define _PLAYMGR_HEAD_FILE_H_
#include <QThread>
#include "IVideoDecoder.h"
#include "IVideoRender.h"
#include <QVariantMap>
#include <QDateTime>
#include <QTime>
#include <QMutex>
#include <QWaitCondition>
#include "IAudioPlayer.h"
int cbDecodedFrame(QString evName,QVariantMa... |
97e2075dafdcfaa1cd5635cacd6a5b420a968f30 | 55d6143df4af3dc38d05d8a9a398732013390e45 | /Date/test.cpp | d5b330cdd4054c40bef8b55f11782ad751bd15ea | [] | no_license | Sertarus/Date | cde75488717e39d7fbd02022806fbf2100927bc4 | fe167feabab638535a413220fc6b72fc58a49c74 | refs/heads/master | 2020-09-14T03:20:20.789963 | 2019-11-20T18:23:37 | 2019-11-20T18:23:37 | 223,000,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cpp | test.cpp | #include "Date.hpp"
#include <iostream>
using namespace std;
int main() {
Date test(1998, 2, 30);
cout << test;
test.SetDate(1985, 6, 4);
cout << test;
cin >> test;
test++;
cout << test;
test--;
cout << test;
} |
201792b61d392c6d1d2447048fb9e7273eb718be | 3f5179150584730cc0ee2ddc8f232b5e372d84aa | /Source/TestingModule/Testing/Tests/RaceRunningStage/RaceRunningStageTest.cpp | 08c098a1b986f9a16ea4d3ea3c31e704bb1434c8 | [] | no_license | poettlr/ProjectR | 4e8963c006bc0e5a2f7ffe72b89e5f65355d5dde | 1b92b4c034c36f0cbb0ef8c2e02972dd86a3e1e1 | refs/heads/master | 2023-06-16T02:37:39.782708 | 2021-06-29T00:07:41 | 2021-06-29T00:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,180 | cpp | RaceRunningStageTest.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#if WITH_DEV_AUTOMATION_TESTS
#include "RaceRunningStageTest.h"
#include "RaceRunningStageTestCommands.h"
#include "GameMode/RaceStages/RaceRunningStage.h"
#include "Tests/AutomationEditorCommon.h"
#include "../../Commands/CommonPIECom... |
5cf5dc09213e4c39adb4abe1b74d35115e364747 | 2485ffe62134cd39d4c5cf12f8e73ca9ef781dd1 | /contrib/boost/iterator/test/function_output_iterator_cf.cpp | a3f1d9cfc1d0313ce3c888420e7c77aaef2f36f5 | [
"MIT",
"BSL-1.0"
] | permissive | alesapin/XMorphy | 1aed0c8e0f8e74efac9523f4d6e585e5223105ee | aaf1d5561cc9227691331a515ca3bc94ed6cc0f1 | refs/heads/master | 2023-04-16T09:27:58.731844 | 2023-04-08T17:15:26 | 2023-04-08T17:15:26 | 97,373,549 | 37 | 5 | MIT | 2023-04-08T17:15:27 | 2017-07-16T09:35:41 | C++ | UTF-8 | C++ | false | false | 802 | cpp | function_output_iterator_cf.cpp | // Copyright 2022 (c) Andrey Semashev
// Distributed under the Boost Software License Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/iterator/function_output_iterator.hpp>
namespace {
struct sum_func
{
typedef void result_type;
expl... |
8fa5c99043a7652b76dd1e6ea37585ab7e6b4475 | cdc4c9d1db0bd3286f5473fe35d892c0d35554b7 | /FinalProject/FinalProject/Map.cpp | 81ab650deaac3150d6023146e63e698e5f073a2e | [] | no_license | sadaust/Eevee-Hound-Final | da53f7e6cdd7fa9c3dc4342dc78442c375166578 | 260ba076287c867d1cc398e6de4bab88d813b342 | refs/heads/master | 2021-01-19T18:07:24.746207 | 2015-04-20T10:39:03 | 2015-04-20T10:39:43 | 22,240,322 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,003 | cpp | Map.cpp | #include "Map.h"
#include "ResourceManager.h"
#include <fstream>
#include <sstream>
Map::Map() {
mat.Ambient = D3DXCOLOR(0.1f, 0.1f, 0.1f, 1.0f);
mat.Diffuse = D3DXCOLOR(1.0f, 1.0f, 1.0f, 1.0f); // Diffuse color reflected
mat.Emissive = D3DXCOLOR(0.05f, 0.05f, 0.05f, 0.05f); // Emissive color reflected
mat.Spe... |
fc5cc66ff2c4b8127b6e75986d2907dd0c3ffd55 | 02383c4c79846536cfcfe1ff7dcbec61fbed628a | /altona_wz4/altona/main/base/types.cpp | 8879c10bd5a1e7d401b8069d0c6f07da8f562a96 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | Ace17/fr_public | f8df170d76d7f6daf929e85cc3872fe834e37e4b | 9014f5b8e9ea9f9cca4d1b689a2c82e8202cbed4 | refs/heads/master | 2021-01-17T11:23:10.188451 | 2015-01-27T20:21:56 | 2015-01-27T20:21:56 | 29,902,485 | 0 | 0 | null | 2015-01-27T07:24:25 | 2015-01-27T07:24:25 | null | ISO-8859-1 | C++ | false | false | 181,856 | cpp | types.cpp | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... |
419d92bc68b5a1c6a47d82b24b6e6036afb08aec | 77dc3f93ff8f0556cfba989279f9bb66b6478785 | /Cryptography Project/Headers/MatrixMath.h | 83c05b328fd87f355285a55664452abfed487451 | [] | no_license | spencerng/MultiCrypt | b8ee0f3ef3fc0ac11017d65bc87bac1780f4e565 | c97d9a17eafa4ab0c2ff23af7aeaf404453aab4f | refs/heads/master | 2023-08-03T12:23:41.968732 | 2023-07-27T20:08:50 | 2023-07-27T20:08:50 | 52,997,681 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,860 | h | MatrixMath.h | #ifndef MATRIXMATH_H_INCLUDED
#define MATRIXMATH_H_INCLUDED
#include <vector>
using std::vector;
// Creates the minor matrix of A across the first row and a given column and returns it
vector< vector<unsigned long long> > toMMatrix(vector< vector<unsigned long long> > A, int row, int column);
// Uses cofactor expansi... |
3c2229789eafdde8989915ebe9b85755877a7c59 | 7f62f204ffde7fed9c1cb69e2bd44de9203f14c8 | /DboClient/Lib/NtlPresentation/NtlPLWeatherDefine.h | 5d52840c2a76085474417da3cb6c4d6fa6ca606c | [] | no_license | 4l3dx/DBOGLOBAL | 9853c49f19882d3de10b5ca849ba53b44ab81a0c | c5828b24e99c649ae6a2953471ae57a653395ca2 | refs/heads/master | 2022-05-28T08:57:10.293378 | 2020-05-01T00:41:08 | 2020-05-01T00:41:08 | 259,094,679 | 3 | 3 | null | 2020-04-29T17:06:22 | 2020-04-26T17:43:08 | null | UHC | C++ | false | false | 5,903 | h | NtlPLWeatherDefine.h | #pragma once
#define dPL_WEATHER_MAX_COUNT 5
#define dPL_WEATHER_CHAR_BUFFER_SMALL 64
#define dPL_WEATHER_CHAR_BUFFER_MIDDLE 128
#define dPL_WEATHER_CHAR_BUFFER_LARGE 256
#define dPL_WEATHER_COLLISION_EFFECT_WATER "_WATER"
#define dPL_WEATHER_RANDOM(R) NtlRandomNumber(-(R), (R))
enum EPLWEATHER_FADE_STATE
{
EP... |
359fcf35b04c061345ff1c067906fa2393882e72 | b111bb858e0af49d75243f934ca8da9df14278e4 | /Point.hpp | 8d34356c5bcc03204e509da9da3ddb0ad9802712 | [] | no_license | Ennoserp/cpp | a3da239e5ca28b3e045092cd304e693a35cb9b7a | 691aca7178cdf65f41f720853892683715c5ae1b | refs/heads/master | 2020-07-26T10:11:47.398943 | 2019-10-23T15:12:49 | 2019-10-23T15:12:49 | 208,612,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | hpp | Point.hpp | #ifndef POINT
#define POINT
class Point{
private:
int x;
int y;
int z;
static int compteur;
public:
Point();
Point(int,int);
~Point();
void setX(int);
void setY(int);
void setZ(int);
int getX();
int get... |
e613c00d488b476bf0effe2cb562308227b28568 | 48776305cbd93f5ebc133a6390d67dc2d6c022c3 | /1159A.cpp | 32bba05fe69f01d356aac0983672a249886e177e | [] | no_license | dharmeshprataps/Compeititive-Programming | 4f6df620bd0f75192bf7b0659f761c9d92b31d8c | c0a26845b64f3b4bda351f3335f1549e8dda4d00 | refs/heads/master | 2020-09-17T02:08:42.158487 | 2019-11-25T13:59:18 | 2019-11-25T13:59:18 | 223,956,933 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | cpp | 1159A.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int s=0;
while(n--){
char c;
cin>>c;
if(c=='+')
s++;
else if(s>0)
s--;
}
cout<<max(0,s)<<"\n";
}
|
c567984b39dbbc5e5239348f47d76d0cb02a1aea | 966edec49fe335e738bb4498098083141ddcf1e2 | /DFD-Mayoría de edad.cpp | 32be944df0aca8b090b058287e61510adff822f5 | [] | no_license | JuanAndresRomanYanez/Omegaup-solutions | 083ecebe4d7e9afe4495abae346625d5d458be28 | cebb51388e4ce935bd3e6c0cd347868d3f214342 | refs/heads/master | 2021-01-01T19:32:19.172427 | 2017-12-31T23:33:23 | 2017-12-31T23:33:23 | 98,606,966 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 106 | cpp | DFD-Mayoría de edad.cpp | #include <stdio.h>
int x;
int main(){
scanf("%i", &x),printf(x>17?"MAYOR DE EDAD":"MENOR DE EDAD");
}
|
9c0cca3704589af5a0e0c711fbe8e0938483772c | ad74f7a42e8dec14ec7576252fcbc3fc46679f27 | /BTDecoyClient/AppID.cpp | b09f67f21db44e02c987a7e749048166482bcde4 | [] | no_license | radtek/TrapperKeeper | 56fed7afa259aee20d6d81e71e19786f2f0d9418 | 63f87606ae02e7c29608fedfdf8b7e65339b8e9a | refs/heads/master | 2020-05-29T16:49:29.708375 | 2013-05-15T08:33:23 | 2013-05-15T08:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | AppID.cpp | #include "StdAfx.h"
#include "AppID.h"
AppID::AppID(void)
{
m_app_id = 0;
m_version = 0;
m_app_name = "";
}
AppID::AppID(unsigned int id,unsigned int version,const char* name)
{
m_app_id=id;
m_version=version;
if(name)
m_app_name=name;
}
//
//
//
AppID::~AppID(void)
{
m_app_name.clear();
}
//
//
//
//retur... |
6906d2d705f323a4937b3ebf92d732f1fd6075ae | 374e1bb26249098955d01687750a6d049f39f6b8 | /src/tests/buffer_ops.cpp | a42dd9367f1134790a516adf6b57d88044c235f4 | [
"MIT"
] | permissive | martty/vuk | b4b31639fc8c06ffbce95d13a27d9eec3e272780 | 5b6aacb6be0ce31367768b538f0d0157612541e0 | refs/heads/master | 2023-08-31T13:24:58.187989 | 2023-08-28T21:12:55 | 2023-08-28T21:12:55 | 241,478,136 | 281 | 25 | MIT | 2023-09-13T19:18:39 | 2020-02-18T22:08:25 | C++ | UTF-8 | C++ | false | false | 1,843 | cpp | buffer_ops.cpp | #include "TestContext.hpp"
#include "vuk/AllocatorHelpers.hpp"
#include "vuk/Partials.hpp"
#include <doctest/doctest.h>
using namespace vuk;
TEST_CASE("test text_context preparation") {
REQUIRE(test_context.prepare());
}
constexpr bool operator==(const std::span<uint32_t>& lhs, const std::span<uint32_t>& rhs) {
re... |
2f646648e05eb961fb2139cb84996a57101d80d7 | c60b226ef6af565a91d236be60f4f508fb07a2be | /timer_main/timer_main.ino | d62cc9e867eaaf6b0c4a61fffa0c8f8efb30f9a6 | [] | no_license | mharasic/Ardutimer | 0dba001e5575537a030015acdb9d1854550a9142 | 300398d4e5f8abf52930f9b5d9b99d28f37b7f07 | refs/heads/master | 2020-09-21T09:01:29.536947 | 2019-12-01T00:01:38 | 2019-12-01T00:01:38 | 224,748,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | ino | timer_main.ino | #include <LEDMatrixDriver.hpp>
// Define the ChipSelect pin for the led matrix (Dont use the SS or MISO pin of your Arduino!)
const uint8_t LEDMATRIX_CS_PIN = 9;
// Number of 8x8 segments you are connecting
const int LEDMATRIX_SEGMENTS = 8;
const int LEDMATRIX_WIDTH = LEDMATRIX_SEGMENTS * 8;
// The LEDMatrix... |
1a27dda5caeec09b5849b3469226ef14f2375c45 | 2971d9d24beae2aaba9a290223d09b350b84bca7 | /3_3.cpp | daba798c2cfefa925656081ebda7d9492198389a | [] | no_license | liuchen5214/homework | e8248eec481485580a5efc3b6ffcb888b6c9f16d | f126f83acd16b18b9ae60b995f3bb41646da74ad | refs/heads/master | 2021-08-30T10:17:24.724069 | 2017-12-17T13:17:06 | 2017-12-17T13:17:06 | 103,822,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | cpp | 3_3.cpp | #include <iostream.h>
void main()
{#include <iostream.h>
void main()
{
int x,y;
cout<<"x:"<<endl;
cin>>x;
if(x%3==0)
y=1;
else
if(x%7==0)
y=1;
else
y=0;
if(y==1)
cout<<x<<":YES.\n";
else
cout<<y<<":NO.\n";
}
|
9f44636f061c0f04342d526d021ad5fa10ba499b | 52b8c4d7bb772a9e4c4aa6b45b6699bf72a6e453 | /src/Analyse_gramaticale.cpp | 2c1f1d89bff84de613488a19fcf8866f0b850c13 | [] | no_license | peterscf/ProjetC | 668d1ee4a4f5adbe6d9931aee0ca9d9be9f7f401 | fd81470aba573a612848888c068a62432105d592 | refs/heads/master | 2021-01-11T02:05:55.037803 | 2017-02-09T11:03:54 | 2017-02-09T11:03:54 | 70,808,339 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,708 | cpp | Analyse_gramaticale.cpp | #include<iostream>
#include<sstream>
#include<string>
#include<iostream>
#include<fstream>
#include <vector>
#include <stack>
#include <stdlib.h>
#include"lexem.h"
#include"node.h"
#include"ref_tree.h"
#include"Analyse_gramaticale.h"
using namespace std;
//variable glabale des fonction
ref_tree library_tree("./ref... |
fbd5cdb51507e192d10b49b2066dfb9b2132a8ad | d84dc901eb40de2765a509c784103d9432a8d89b | /src/stmt_fwd.hpp | 6667d4090ef453f5337a62cf41c02c8a59c1d94b | [
"MIT"
] | permissive | jonathansharman/gynjo-cpp | 7964048724398763655c8744fc31fab957766a9f | efa9ecafc76312c7de35c1a1263195d6b1220240 | refs/heads/master | 2022-10-22T02:07:20.797885 | 2020-06-10T12:00:50 | 2020-06-10T12:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 178 | hpp | stmt_fwd.hpp | //! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#pragma once
#include <memory>
namespace gynjo {
struct stmt;
using stmt_ptr = std::shared_ptr<stmt>;
}
|
abc80e47fa5dcd0305c86161158c6d9d7419b264 | b378d72e949b1ccd0acea75ccbb32018904576a4 | /WWW/solutions/966.re | b8db2cf48ccb9d5d951081f5308836d97eaa4ce1 | [
"MIT"
] | permissive | wanatpj/guarana | c1eeef7297fc771919ae362d3323b9fd339f17a7 | 1a3f95fedca93130698cdcf48668afdf2360d6be | refs/heads/master | 2020-04-05T11:43:39.293238 | 2017-07-08T22:21:08 | 2017-07-08T22:21:08 | 81,142,049 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 44 | re | 966.re | 1 0
0 0
1 0
0 0
0 0
0 4
0 40
0 32
0 0
0 376
|
bc59848446f588284288977f2cda2fc00852f99d | d60714ae60052ecd47615f784fd51dcb12329ea9 | /Source/MinesweeperEditorPlugin/Private/MinesweeperEditorPluginStyle.cpp | f23104812521894ad54e1f166bed9b3f3fd2ea26 | [] | no_license | dandar28/MinesweeperEditorPlugin | 5cef9f15741663bdc909be76dd01d79fab28eccd | 4157d2a3884cff8634901f1aa715dd769f2ff964 | refs/heads/main | 2023-09-02T17:58:12.298075 | 2021-10-18T17:29:20 | 2021-10-18T17:29:20 | 414,127,080 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,400 | cpp | MinesweeperEditorPluginStyle.cpp | // Copyright Epic Games, Inc. All Rights Reserved.
#include "MinesweeperEditorPluginStyle.h"
#include "MinesweeperEditorPlugin.h"
#include "Framework/Application/SlateApplication.h"
#include "Styling/SlateStyleRegistry.h"
#include "Slate/SlateGameResources.h"
#include "Interfaces/IPluginManager.h"
TSharedPtr< FSlateS... |
63352e7e4bceb54d99cb3afcb5ea875e4b4f4fe3 | 538085601f2e8a7c82ced22e49e68dc5ae9fb461 | /src/Front.h | d572fdd836e1b4b58c5e693f6988c4f4ce22a536 | [] | no_license | Tonsty/BPA-BPA1.1 | 97210aac87772aa3300d85d25797b0b389b485b7 | b896b86d5f04e6aad2f2578de6ce10e465b85e36 | refs/heads/master | 2021-01-20T13:16:40.040379 | 2017-02-21T13:34:27 | 2017-02-21T13:34:27 | 82,683,690 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 756 | h | Front.h | /**
* Author: rodrigo
* 2015
*/
#pragma once
#include "Triangle.h"
#include "Pivoter.h"
#include <map>
#include <list>
class Front
{
public:
Front();
~Front();
EdgePtr getActiveEdge();
void addEdges(const TrianglePtr &_triangle);
void joinAndFix(const std::pair<int, TrianglePtr> &_data, Pivoter &_pivoter);
... |
a361e5321425901a0b39bbcbfbbf94cb0b4d07a2 | 651eae1f89acf3b49d5f0bd76febe947aa72d231 | /StudyCPPWithMe/testSrc/DynBase.h | c3e7b3914828c2f260190b73d8611a64c2466c2e | [] | no_license | kuntung/CPPCourses | 78b480e3e3eed2d6d638d8736c10c4048adf883c | 3ce2d56e26d471a495bf19484b43513013afb602 | refs/heads/master | 2023-08-05T22:17:59.975100 | 2021-08-09T13:52:57 | 2021-08-09T13:52:57 | 382,742,061 | 2 | 2 | null | 2021-08-09T13:52:58 | 2021-07-04T01:52:56 | Makefile | UTF-8 | C++ | false | false | 1,086 | h | DynBase.h | #ifndef _CPPCOURSE_DYN_BASE_H_
#define _CPPCOURSE_DYN_BASE_H_
#include <map>
#include <string>
using namespace std;
typedef void* (*CREATE_FUNC())();
class DynObjectFactory
{
public:
static void* CreateObject(const string& name)
{
map<string, CREATE_FUNC>::const_iterator it;
it = mapCls_.find(... |
080900e4320171327c3512b1a05a9d81e6989aca | dae2b1d2b2e0f30e5fa5551bc6ca73333fbde8e4 | /cobotsys_tutorials/examples/OSG.Test/test/osgfpdepth/osgfpdepth.cpp | db8611db543ec545b623a309150f113a8cf7c5f4 | [] | no_license | COBOTOS/CobotSys | 360301fa644e238191ecfe43e74b93d1a3595559 | 22b2d9a0783a3605a28bc7bda420a7cb3170789f | refs/heads/master | 2020-09-23T11:29:37.648116 | 2019-12-19T08:58:01 | 2019-12-19T08:58:01 | 225,490,747 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 38,660 | cpp | osgfpdepth.cpp | /* OpenSceneGraph example, osgfpdepth.
*
* 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, publis... |
ac6dec86f66db63a96d6132eea34fe67af60dfdc | 8994deb19b78ae8af5a93e292f53285cd5001f79 | /BankSimul_700/mainwindow.cpp | 57f64e9b9062058bf07da7713efe24252dcb935f | [] | no_license | JohTorm/BankSimul | 7e1cc7fa9170a8003d3c2acaaa7d53679ac27c41 | 15b10164c877a7ef3ca2fc8e41f2235b741eb0ca | refs/heads/master | 2021-03-14T15:23:43.408298 | 2020-03-12T14:56:53 | 2020-03-12T14:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,316 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLineEdit>
#include <QLayout>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->stackedWidget->setCurrentIndex(8); //aloittaa päänäytöstä
//idKortti="101"; //debuggausta vart... |
02b0dc302abe92d10f918eadefa0f062ae8669f2 | 944071624c6eb3432b6c76b0f0d233127064c067 | /mapa/tools/clang/include/clang/SnuMAPA/MAPAOptions.h | 1fd96a6481593fd3fa88b0693ed926a0bdaf97e2 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | mcrl/SnuRHAC | 572f73752b092b566e05dc5d9ff3b09abb2e7554 | c28333ccd838502237aca47e9eb94c3fad86e15b | refs/heads/master | 2023-06-02T07:02:39.018405 | 2021-06-22T14:03:45 | 2021-06-22T14:03:45 | 377,524,016 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,211 | h | MAPAOptions.h | /*****************************************************************************/
/* */
/* Copyright (c) 2021 Seoul National University. */
/* All rights reserved. */
... |
a4f83cd8a7afb6a39b3b43e305d5afe8483135f9 | e8c4d8eee036ac71c2459552846c120a6e95af11 | /servo-conti/servo-conti.ino | 53e1cadebb3d696608a3936d8be1c9d53a2e825d | [] | no_license | denzveloper/Arduino_on_Studenttask | 078f6195c402f2532d249576274bd6e6a55888f9 | 7e32378d31228a350dbc4d0175f9d9fe98ed7850 | refs/heads/master | 2021-03-16T02:33:06.692687 | 2020-03-12T17:47:15 | 2020-03-12T17:47:15 | 246,896,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | ino | servo-conti.ino | #include <Servo.h>
Servo myservo;
void setup(){
myservo.attach(9);
}
void loop(){
myservo.write(45);
delay(2000);
myservo.write(90);
delay(100);
myservo.write(135);
delay(2000);
myservo.write(90);
delay(100);
myservo.write(80);
delay(2000);
myservo.write(90);
delay(100);
myservo.write(100)... |
b47b8e7ea49ab65b7f1ece8f9e39ddba0e5a92f9 | d2652f73c0c349b8ef14405d2a0fca2e81aabe5e | /UVa_Problems/Chapter7/UVa140_Bandwidth.cpp | 84620d62afa087531dc4cf1906d9f32a0e21e6e8 | [] | no_license | modalsoul0226/NOI-ACM-ICPC | d49b5ca87a97025aa981e6ac68a980bdcb3f7ec0 | bcc5c89121e2031426ecd5bb1f9b7bef350420b3 | refs/heads/master | 2020-03-17T02:35:47.661819 | 2018-08-03T15:32:44 | 2018-08-03T15:32:44 | 133,196,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,211 | cpp | UVa140_Bandwidth.cpp | // __
// ____ / /_ ____ ___ __ __
// / __ \/ __ \ / __ `__ \/ / / /
// / /_/ / / / / / / / / / / /_/ /
// \____/_/ /_/ /_/ /_/ /_/\__, /
// /____/
//
// Macros collected and summarized from online src
// e.g. github, Quora...
//
// Collected mainly from:
// https://g... |
ec42a618906b45a886bf71051b93392e3267f318 | 6b62b0d9727ad3da3d266649086cc3444ae0d9d5 | /src/ECS/Systems/pits.cpp | a2278b669149b10d68e5b156a162f29acdd273c9 | [
"MIT"
] | permissive | dualword/PopHead | 55079a30bf7099b74d6c83e9f1a85ddea0774574 | 2bce21b1a6b3d16a2ccecf0d15faeebf6a486c81 | refs/heads/master | 2023-03-15T21:28:48.545172 | 2020-11-12T16:54:59 | 2020-11-12T16:54:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,579 | cpp | pits.cpp | #include "pch.hpp"
#include "pits.hpp"
#include "ECS/Components/physicsComponents.hpp"
#include "ECS/Components/objectsComponents.hpp"
#include "ECS/Components/charactersComponents.hpp"
#include "ECS/Components/graphicsComponents.hpp"
#include "ECS/Components/simRegionComponents.hpp"
namespace ph::system {
using name... |
3783d265e20ecc4b00c3ee722228b638af608926 | 78b7d3ecff82f996fcf388b49a816f8378196e4d | /Data Structures/Proj5/HashTable.h | 45c69edfb59f7eec31521526e93aa01963a979be | [] | no_license | dohyunroh94/school | 4eb81065fd792c77349b2f6960cff5e650cb3c46 | 35b05494b125cb411e383952ca14237a9046a8ee | refs/heads/master | 2020-03-27T23:04:11.691012 | 2018-10-29T21:43:39 | 2018-10-29T21:43:39 | 147,287,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,992 | h | HashTable.h | /**************************************************************
* File: HashTable.h
* Project: CMSC 341 - Project 5 - Hash table
* Author : Dohyun Roh
* Date : 12/1/2015
* Section: 1
* E-mail: roh1@umbc.edu
*
* Header file for Hash Table class
* Uses vector of vector of strings to imitate actual
* hash t... |
8d03dc67a6f0e1224b9c85dbf63de612cf4da232 | bebf45dec56615282a1ec5a27304442b3dc19f28 | /Codeforces/(Graphe) 445B - DZY Loves Chemistry.cpp | 47fc735fa42107872b15b1fc8628c27186eaa315 | [] | no_license | DgrinderHZ/Competitive-Programming | 8d13c5cbd58dd86baf54a8d6d5633b4545c86d35 | 26258d72888cce232caef41966340a4ec19c7606 | refs/heads/master | 2023-02-03T18:11:54.274166 | 2023-02-03T09:46:02 | 2023-02-03T09:46:02 | 172,159,360 | 1 | 1 | null | 2019-10-22T15:07:56 | 2019-02-23T01:58:23 | C++ | UTF-8 | C++ | false | false | 1,882 | cpp | (Graphe) 445B - DZY Loves Chemistry.cpp | #include <vector>
#include <iostream>
#include <set>
#include <map>
#include <algorithm>
using namespace std;
#define ll long long
#define F first
#define S second
#define loop(n) for(int i = 0; i < n; i++)
#define loopi(i, a, n) for(int i = a; i < n; i++)
typedef vector<int> vi;
typedef pair<int, int> pii;
typedef... |
ebd3afc8aefa48b708863ac17b9db3b617c64b7d | 2f6e9f4007975d446489892c6d36050c3438bc51 | /CPP/module5/ex01/Bureaucrat.cpp | e16da1981bd1f23c00217360dae719851978a821 | [] | no_license | qperrot/qperrot | 10cb3cf7ca86a2ba4c6cdfc9bd8b4cbd9fae2a4e | d9b6d203cefbc069b47a006c356a8c895c8bf698 | refs/heads/master | 2023-03-08T13:12:37.180525 | 2022-02-02T09:14:36 | 2022-02-02T09:14:36 | 216,030,915 | 0 | 0 | null | 2023-03-08T01:47:57 | 2019-10-18T13:31:26 | C++ | UTF-8 | C++ | false | false | 4,335 | cpp | Bureaucrat.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Bureaucrat.cpp :+: :+: :+: ... |
88d95b1fb14a170a60b3f6a078ddd04192fe925c | 2753df35b9cd111b303447fbe1edd38dfb490def | /c0.cpp | 9cda0e11e88796ec45412821dfe8fcd73bdda833 | [] | no_license | xcc620/first | a0693cbfc983f37458171fc428252c88ab4a0b6f | 52ee0878d72db0deb956ca1f42411a40d88ce65f | refs/heads/master | 2021-02-12T13:16:53.596690 | 2020-03-03T13:07:31 | 2020-03-03T13:07:31 | 244,594,928 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11 | cpp | c0.cpp |
456
789
|
a788595ec774577085a814e20f6e9f63c77ec994 | 7ea45377de05a91d447687c53e1a836cfaec4b11 | /Codechef/ext_contests/krks15/d.cpp | 2792a83bf01500240bd6cf2d4e8b912ad2420a7d | [] | no_license | saikrishna17394/Code | d2b71efe5e3e932824339149008c3ea33dff6acb | 1213f951233a502ae6ecf2df337f340d8d65d498 | refs/heads/master | 2020-05-19T14:16:49.037709 | 2017-01-26T17:17:13 | 2017-01-26T17:17:13 | 24,478,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | d.cpp | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define ii pair<int,int>
#define mod 1000000007
#define inf 999999999
#define lim 100010
using namespace std;
int main(){
int t,n;
cin>>t;
while(t--) {
cin>>n;
int n1=n;
int val=-1;
for(int i=2;i*i<=n;i++) {
while(n%i==0) {
... |
399ceeac8283fa386eb60c66bc7b3e3310e8d31e | 7267e98e439670d2bc197e84cfba78902bbbd338 | /26.Remove_Duplicates_from_Sorted_Array/26.Remove_Duplicates_from_Sorted_Array/main.cpp | 318df3b5859c6e74939e12faf948dc79709dbc68 | [] | no_license | Ckend/myLeetcode | 82262a2d420a3e4987de1b995ac329a0fb1486bf | bac1f58d3eb1f57a69252a4a2e7e665a4eb0e6dd | refs/heads/master | 2021-01-22T20:59:34.356625 | 2017-10-12T18:33:33 | 2017-10-12T18:33:33 | 85,380,445 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | cpp | main.cpp | //
// main.cpp
// 26.Remove_Duplicates_from_Sorted_Array
//
// Created by ckend on 2017/1/29.
// Copyright © 2017年 ckend. All rights reserved.
//
#include <iostream>
#include <vector>
class Solution{
public:
int removeDuplicates(std::vector<int>& nums){
int id = 1;
if(nums.size() < 2)
... |
4f0727f98f2077d6f701016e5dfc863e99961679 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_1/C++/hyeonguk/main.cpp | 6fa928a7719cc105fce26c53580960ab76e95be9 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,978 | cpp | main.cpp |
#include <cstdio>
#include <string.h>
#include <algorithm>
#include <climits>
using namespace std;
inline bool isVowel(char c)
{
return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u';
}
int solve()
{
char input[128];
scanf("%s", input);
int n;
scanf("%d", &n);
... |
d54dcc583af240e2bc0b8b3172371f673719cc13 | 568eb464f617548275d6611d6d86914c5263910c | /skia/animator/SkMatrixParts.h | 5fcf1151dd4b96c68b671dd8d2531605c89e56f0 | [
"BSD-3-Clause"
] | permissive | bluebellzhy/chromium | c27cba0ca182189745d282d78cf7b0928f6d47b3 | 008c4fef2676506869a0404239da31e83fd6ccc7 | refs/heads/master | 2021-01-15T19:03:37.018631 | 2008-10-24T21:13:14 | 2008-10-24T21:13:14 | 67,454 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,994 | h | SkMatrixParts.h | /* libs/graphics/animator/SkMatrixParts.h
**
** Copyright 2006, Google Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** ... |
1ec7aa43e237cf012fd54831ba389bf3c933559b | 94527ad9f023b4870a03e7699e4418849ef87113 | /70climbStairs.cpp | af85a0129d722ef33bc0f80a36648c355dad183b | [] | no_license | chenye95071/LeetcodePractice | 915bdc237fce7cd1a0a70f7656c129f9a4dce91f | 401dfbaf65a139b8fcee0d39c0e98165b661ed74 | refs/heads/master | 2020-05-15T10:43:10.643937 | 2019-06-29T06:38:47 | 2019-06-29T06:38:47 | 182,199,262 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,444 | cpp | 70climbStairs.cpp | /*
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Note: Given n will be a positive integer.
Example 1:
Input: 2
Output: 2
Explanation: There are two ways to climb to the top.
1. 1 step + 1 step
2. ... |
8e384aa0e5a6cd7e7ce18d6616d9fd896ff6d9a7 | 30c40d8cae9437fd6b74636c57024a64cdf224cb | /Audio/SocketClient.cpp | 0bfda09909049925b6b8fdc5a2e82361a5e2ba64 | [] | no_license | yanggang2016/c-demo | 7b30026cf97284fb3bfd3b286056aa5f1eba026c | 602747748abace051dce55ab97ebca1402c51ef7 | refs/heads/master | 2021-08-14T09:41:23.394590 | 2017-11-15T07:12:19 | 2017-11-15T07:12:19 | 110,661,107 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,417 | cpp | SocketClient.cpp | #include "stdafx.h"
#include "SocketClient.h"
#include "ptt.pb.h"
#include "myLog.h"
#include <time.h>
#include "Audio.h"
#include "CommendType.h"
#include <iostream>
#pragma comment(lib,"ws2_32.lib")
using namespace std;
//TODO 静态成员变量时序问题,建立新类管理所有全局变量
SocketClient::SocketClient()
{
}
void SocketClient::connect_ser... |
e3f4afdfb94fac3fc3c124b8a053ea81c1d7c0cc | 7cb1572901d19d0333a53426191fd7afdda8d9dc | /pat_1072.cpp | 43d6027f9c27447316ebfb159e547218657ce7ec | [] | no_license | littledou2013/PAT | 39988e8004d2ece947ddf366586206bf6a6c2333 | f09a814aa6d889f3b1f1a63ba8f0dc990f6816a0 | refs/heads/master | 2016-09-03T06:31:05.841463 | 2014-09-15T08:01:16 | 2014-09-15T08:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,192 | cpp | pat_1072.cpp | #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <climits>
using namespace std;
/*
此题属于图论题,求某几个顶点到其他某几个顶点的最短路径,应用dijkstra算法
其顶点分为两种:
房子,最大为1000
汽油站,最大为10
循环遍历每个汽油站点到其他站点的最短距离
*/
struct Edge
{
int distant;
int next;
};
//1-10存放汽油结点,11-1010存放房子结点
vector<Edge> vec[1011];
//每个汽油站离房... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.