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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ed15bb7f142b292a9bb46195295046abc7bc858 | bcb1fdd350b7b904cf5fa9d71fff131066c5069d | /benchmark/runtime/float/list.cpp | 321fa7e7cbc696ce5ab0818404fb1179a35d12d3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Cr4shOv3rrid3/scnlib | 97679caa63dbcb73e47da55080a4f649310f5323 | 72a4bab9e32f2b44593137fba40c54710e20a623 | refs/heads/master | 2022-08-13T07:15:35.474495 | 2022-04-26T18:31:41 | 2022-04-26T18:31:41 | 281,186,906 | 0 | 0 | Apache-2.0 | 2020-07-20T17:46:15 | 2020-07-20T17:46:14 | null | UTF-8 | C++ | false | false | 5,181 | cpp | list.cpp | // Copyright 2017 Elias Kosunen
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
4d3d2ed7ef824e677f386f1556fee34626bec81e | a6806e3642faddb0fc257142728988e82ba85f82 | /slist.h | 412c0aeedda28b4f289fade4cb0b4078c34a741b | [] | no_license | JaremKaas/dl-list | fde593b7aedf163c43db5eba604f6e9dee82c7ab | caeb12854991e0e5caa780711ebe934a89783d56 | refs/heads/main | 2023-04-17T09:40:06.793955 | 2021-05-09T14:33:41 | 2021-05-09T14:33:41 | 347,627,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,219 | h | slist.h | #ifndef SLIST_H_INCLUDED
#define SLIST_H_INCLUDED
#include <iostream>
using std::cout;
using std::endl;
//------- Class List-------//
template <typename Key,typename Info>
class List
{
struct Node
{
Key key; //TO DO: unique data
Info info;
Node* previous;
Node* next;
... |
0a9df00097b24903f82454375c53ad5f911dcf6f | 7375b16527b2a52290f3d0e4a7c01064e5cb2291 | /Game/Game/main.cpp | 338b298d31676f9154d34aecdcf5fc6fed3be96a | [] | no_license | pardovot/cpp | a70cc2b859ee2caaee03a653f0c44af01aec1f7b | bda4795a553ca6e2bb63898e9c9ab97ac0937628 | refs/heads/master | 2020-04-06T12:16:39.388022 | 2018-11-13T21:27:39 | 2018-11-13T21:27:39 | 157,449,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cpp | main.cpp | #include "Game.h"
#include <random>
#include <time.h>
#include <chrono>
int main() {
sf::RenderWindow window(sf::VideoMode(800, 600), "My Game");
Game game(window);
return 0;
}
|
ae0b87543a7e2f7241fb3c61376af3ce2bea1626 | 7579107b4bc53472e9a98d0dfdcc40979687a096 | /apps/exercices/cv13_FaceTracking/cv13_FaceTracking.cpp | 9e99aa68c27285a41cd1b70e3318b44c4b4f0f2a | [] | no_license | cpvrlab/SLProject | d29ef6f62c7e044c0718dd6a1186272108607a2a | f624fbeb7fb69f3904c73ab73810734cac6962ce | refs/heads/master | 2023-06-09T17:25:02.193744 | 2023-05-12T16:27:36 | 2023-05-12T16:27:36 | 30,246,579 | 58 | 30 | null | 2021-01-20T09:56:08 | 2015-02-03T14:26:56 | C++ | UTF-8 | C++ | false | false | 3,742 | cpp | cv13_FaceTracking.cpp | //#############################################################################
// File: cv13_FaceTracking.cpp
// Purpose: Minimal OpenCV application for face Tracking in video
// Source: https://docs.opencv.org/3.0-beta/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html
// Date: Auth... |
2c518718081d7913b61ac496fbb3ab8c3d7fe3bc | 9362688c32682b1fbdb103497ac7a127a98a6e36 | /DAA(Maximum Leaf Spanning Tree/mlstp.cpp | 5aeb1216759673e0ec8f0622910146e96f41f53c | [] | no_license | Lingamaneni-Divya/Maximum-Leaf-Spanning-Tree | d4810640d6258efad307a351331102f89e3f97ba | 1e2a5885634d7159ef43505e2c34e9d9c07e955f | refs/heads/master | 2020-11-30T19:30:56.449085 | 2019-12-30T18:21:34 | 2019-12-30T18:21:34 | 230,463,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,545 | cpp | mlstp.cpp | #include<bits/stdc++.h>
using namespace std;
//max leafy forest
int parent[100005]={0};
int d[100005]={0};
int size[100005]={0};
int findparent(int v)
{
if(v==parent[v])
return v;
return parent[v]= findparent(parent[v]);
}
void unionbyrank(int u,int v)
{
int a=findparent(u);
int b=findparent(v... |
38ef68442af0e9b75df8a6e1318a94edeeca3128 | f21d8ab6d204b6df1beefdeb10b1090ab279bb10 | /AppleAD741x.cpp | 7c5fcd51e748b3165ca1dbda5739808d264021b1 | [] | no_license | Quantum-Platinum-Cloud/AppleHWSensor | 498af947edfe181fcd61776f59b2b4cbe52021fc | f0b6963c137069c195947949b6f420f5dcf4ffbb | refs/heads/main | 2023-08-02T02:53:26.568112 | 2010-03-29T18:15:13 | 2021-10-06T04:39:46 | 589,308,259 | 1 | 0 | null | 2023-01-15T18:50:55 | 2023-01-15T18:50:55 | null | UTF-8 | C++ | false | false | 31,661 | cpp | AppleAD741x.cpp | /*
* Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* The contents of this file constitute Original Code as defined in and
* are subject to the Apple Public Source License Version 1.1 (the
* "License"). You may not use this file except in compliance with the
* ... |
ad8883cdb14768f1d72013e9298a66948b5461ba | a07d3a2e13df59bb9b47e0e789b11fa72a2197db | /LRUCache/CPP/LRUCache.cpp | 78202790333ec516f4f794f60ea9d0e3a09fbabd | [] | no_license | wcsanders1/LeetCode | 38647965fd58927f59d375b72bbf38e4c901c3c8 | b569d6cca85e7b2bdb567e3db7422e9b0aa72aa3 | refs/heads/master | 2023-08-27T23:54:48.139831 | 2023-08-22T09:47:16 | 2023-08-22T09:47:16 | 253,105,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,582 | cpp | LRUCache.cpp | // https://leetcode.com/problems/lru-cache/
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include <queue>
using namespace std;
class Node
{
public:
Node *prev;
Node *next;
int value;
int key;
};
class LRUCache
{
public:
LRUCache(int capacity)
{
this->capacity = capacity;
co... |
9d8944b5709d1ca3ee3957d0950fa8e7b63c1dae | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir29315/dir29712/dir29713/dir30015/file30089.cpp | 582c5fa3a29fba8b33b70f4fa582dad45471611f | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file30089.cpp | #ifndef file30089
#error "macro file30089 must be defined"
#endif
static const char* file30089String = "file30089"; |
628366ded23b09c4a178775487ce84039088083c | 08025500a6be10833b54fc3b5ba26af8cd156ecc | /4. Graph/Minimum Spanning Tree/Variants/00534.cpp | fdcff8aa27d4350adcf03634bcbcfeb1142f2aee | [] | no_license | silvercobraa/competitive-programming | 6d597f6e67108e0eb40af8d15d7a6c9007edd884 | da09e2aa4796681a01cc5d3fed71e6f9beac57eb | refs/heads/master | 2022-05-09T01:17:14.010457 | 2020-11-27T15:19:50 | 2020-11-27T15:19:50 | 143,571,603 | 0 | 0 | null | 2020-11-27T15:19:51 | 2018-08-05T00:13:27 | C++ | UTF-8 | C++ | false | false | 1,960 | cpp | 00534.cpp | #include <iostream>
#include <vector>
#include <set>
#include <cmath>
using namespace std;
class UF {
private:
vector<int> parent;
vector<int> size;
public:
UF (int n) {
parent = vector<int>(n);
size = vector<int>(n);
for (size_t i = 0; i < n; i++) {
parent[i] = i;
size[i] = 1;
}
}
int find(int x)... |
59d44ab3698a321165e5bf4b5e64a71e966cd2f1 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_library/medicalsegmentation/test/test_medicalsegmentation.cpp | 8fdf16625f10ae0d41b64892cabe7930d9f8b190 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | C++ | false | false | 3,608 | cpp | test_medicalsegmentation.cpp | /*
* Copyright 2022-2023 Advanced Micro Devices Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
631ea3686daaa603471e4901cc76acabba478cfb | 32aac3f245804748bceba053f0da2838fe7c36de | /bfss_sn/bfss_node.h | aba3329f37053f0bb7a618cd0f06476d8c538698 | [] | no_license | bfss-storage/bfss_server | 68408d547fcb4adc6574c3ace6ec5baa33589d79 | fd3e55e24efe3e788c1d2be7bf35f1481d86db35 | refs/heads/master | 2023-01-07T13:05:12.698807 | 2019-05-28T08:03:58 | 2019-05-28T08:03:58 | 188,982,645 | 2 | 1 | null | 2023-01-03T22:50:51 | 2019-05-28T08:02:14 | C++ | UTF-8 | C++ | false | false | 6,622 | h | bfss_node.h | //
// Created by root on 19-2-8.
//
#ifndef BFSS__SN__NODE__H
#define BFSS__SN__NODE__H
#include <mutex>
#include <shared_mutex>
#include <iostream>
#include <queue>
#include <boost/atomic.hpp>
#include <boost/thread/thread.hpp>
#include <boost/lockfree/spsc_queue.hpp>
#include <openssl/sha.h>
#include <openssl/ev... |
c4040076e0f2e9561502f0150cdef4e77f9cfdd5 | c9b5a2cd00764ee4a0b889b5b602eb28fd08e989 | /cpp/198. House Robber.cpp | bacfc9748d777981c228d41faacfdd78f183526f | [] | no_license | cwza/leetcode | 39799a6730185fa06913e3beebebd3e7b2e5d31a | 72136e3487d239f5b37e2d6393e034262a6bf599 | refs/heads/master | 2023-04-05T16:19:08.243139 | 2021-04-22T04:46:45 | 2021-04-22T04:46:45 | 344,026,209 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,251 | cpp | 198. House Robber.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef pair<int, int> pi;
/*
dp[i] = max(nums[i] + dp[i+2], dp[i+1])
dp[n] = 0
dp[n-1] = nums[n-1]
ans = dp[0]
*/
class Solution {
public:
// int rob(vector<int>& nums) {
// int n ... |
b5cb822beaa695c5c239b9fa96a41f8ed51a5411 | a47f63007ed57518cbe4d3234139f4902a760beb | /Items.h | cf5018d9ae662f071f0941bc5d495df4c74f07b5 | [] | no_license | nhansilva/GameRar | 1f41a6d85d2c989cb00875583229c7f0c9f9c5f6 | d4a71394d0dd1450385939f068bf4987b71d8abf | refs/heads/master | 2020-04-07T05:59:22.694897 | 2018-11-22T03:11:22 | 2018-11-22T03:11:22 | 158,117,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | h | Items.h | #include "GCamera.h"
#include "ILHeart.h"
#include "ISHeart.h"
#include "IFood.h"
#include "IDagger.h"
#include "IWhip.h"
#include "400Coin.h"
#include "600Coin.h"
#include "IFire.h"
#include "2Up.h"
#pragma once
class CItems
{
private:
int whichItem; //Phân biệt items
CLHeart *lheart;
CSHeart *sheart;
CFood *foo... |
22d3089ba4fac325ba207cbacd898aef12b0e2c6 | e0d8f27f590a0b7b2330b5a391319b07ba823635 | /source/main.cpp | 1716d21df234c089cd75274f0eab848fd146f3dc | [] | no_license | FiskNi/Project-Kiddo | 0c2a74b6989ac6236f88d94aa3004d40c5debd50 | 516ef59ea503ccca211d231aa4d2eb14d929e2cc | refs/heads/master | 2021-07-10T02:56:42.479967 | 2020-08-24T13:17:41 | 2020-08-24T13:17:41 | 180,403,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | cpp | main.cpp | #include "GameEngine.h"
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
{
// Debug console
AllocConsole();
AttachConsole(GetCurrentProcessId());
freopen("CON", "w", stdout); //Redirects the string stream to the debug console
cout << "Welcome to the debug console!"... |
9fccbd1811f10a303d4874d52374ff315c441132 | 5acf0552159f9f6d1eab49302c535b1bc853a505 | /ejemplos/funciones/lambda/foreach/main.cpp | 58833bda6163c27d08a007cd6cf4c39dc4bf5c8d | [
"MIT"
] | permissive | Nebrija-Programacion/Programacion-I | b01f04936aded62b5843c6a48a55552d32a6ecb6 | f14996251eb44df420d361e0628628e35fb442a8 | refs/heads/master | 2022-07-23T04:48:24.023017 | 2022-06-21T14:19:18 | 2022-06-21T14:19:18 | 147,667,722 | 21 | 23 | MIT | 2020-10-09T08:44:46 | 2018-09-06T12:07:33 | C++ | UTF-8 | C++ | false | false | 1,619 | cpp | main.cpp | /*
* This file is part of the course "Programacion I" taught at Universidad Nebrija
* https://github.com/Nebrija-Programacion/Programacion-I
*
* Copyright (c) 2019 Alberto Valero - https://github.com/avalero
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU ... |
82764889040fa9a9732d69d205e4291b254bd2d4 | 51130a8ca581cf523e6109f2caef2672d33ba635 | /QtApp/mainwindow.h | a140856dce78b5f4e5e733be29f86950c7df93c0 | [] | no_license | dulangaweerakoon/FYP_Qt_App | 7feaf50a8eec5f864b9125bef6e4ad188c4298e0 | 646b96422fc8484b34c512f518c1f68cdd49245f | refs/heads/master | 2021-09-03T03:45:52.399509 | 2018-01-05T09:07:28 | 2018-01-05T09:07:28 | 115,726,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 780 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QGraphicsScene>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWi... |
76fcd17345597284b96d70e234455f2e8bbbbd4a | 991a4d0729e563387c58de8736d4b7c8c8001f19 | /arduino_codes/drs_neo/drs_neo.ino | 8d67a71b9353181c91b5c2d4d54fdb4b8052fd9e | [] | no_license | itachiuchiha97/dr18_telemetry | 4370d8cfb6403830a7e83f595db785a265729ee4 | e103c7e49c0b066da394addeefbcb661f3f86ba4 | refs/heads/master | 2021-01-07T02:18:00.537988 | 2019-01-06T13:39:47 | 2019-01-06T13:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,367 | ino | drs_neo.ino | // Components: NeoPixel , DRS Actuation Button
#include <Servo.h>
#include <Adafruit_NeoPixel.h>
int PIN = 6 ;
int NUMPIXELS = 10 ;
Servo myservo;
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
int str[2] ;
String data = "0000 22\n" ;
int Button_Pin = 2;
int state = HIGH;
int r... |
ffaad5903eacce12e8dfab0b489d0d48e7d1a7ed | d3b612483b4151b9ed3ab6c61e66760ff7cc7ad4 | /TinyWebServer/src/httpresponse.cpp | b3c1fa3813efaf49de2d37947ee86106103cfc2d | [
"MIT"
] | permissive | Qazwar/Network-Learn | 4aa848f1ffc377fc3ef8cb0edb815276cb818eac | f88a5e2593a307d877d185d2b7ca5759fa508e30 | refs/heads/main | 2023-07-10T00:41:36.388532 | 2021-08-12T14:27:03 | 2021-08-12T14:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,311 | cpp | httpresponse.cpp | /**
* @author Ho 229
* @date 2021/7/26
*/
#include "httpresponse.h"
#include "until.h"
#ifdef _WIN32
# if _MSC_VER >= 1600
# pragma execution_character_set("utf-8")
# endif
#endif
HttpResponse::HttpResponse()
{
this->initializatHeaders();
}
void HttpResponse::setFilePath(const fs::path &path)
{
const ... |
1621d00c5d973efee5b68fd27ae417d48243d9cf | 36693e75f03a3b08038e5850b632496193a73222 | /G5_Lab4/datatypes/headers/DtHora.h | 202e2fca5b534e597d33f0f35ed40c3e60bfb0c4 | [] | no_license | Drolegc/lab4 | fb9b5eea1805d21b6ef382c54b4803f60379cd0c | 2b31c6764681215b823d2a83749526ee72b72ca6 | refs/heads/master | 2020-06-06T00:00:28.113919 | 2019-07-03T15:52:06 | 2019-07-03T15:52:06 | 192,580,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | DtHora.h | #ifndef DTHORA_H
#define DTHORA_H
#include <stdexcept>
class DtHora {
private:
int hora;
int minutos;
bool isValid();
public:
DtHora(int hora, int minutos);
int getHora();
int getMinutos();
void setHora(int hora);
void setMinuto... |
6d3c774f109ade79655338a2b4238196a8fb89dd | 1ef7a9f94a0d206eaa5ce32a9f245119acad0cdb | /Hypercube/MpiLab/Dijkstra/DijkstraMPI/DijkstraMPI.cpp | d0dda723dc96942a31ba7d9f8fb3cd105731b96d | [] | no_license | Andu98/Hypercube-Dijkstra | c69abc2c76caf5df36e0e7e027fb03edc705b452 | d4c6c2f14a294b8a1d0963ad845bdebe0030daab | refs/heads/main | 2023-02-25T14:56:12.846188 | 2021-02-01T15:28:51 | 2021-02-01T15:28:51 | 334,992,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,122 | cpp | DijkstraMPI.cpp | #include "DijkstraMPI.h"
#include "../DijkstraCommon/VertexData.h"
pair<const vector<double>, const vector<int>> DijkstraMPI::run(MPI_Comm& communicator) {
// cat timp nu au fost gasite toate varfurile
while (!m_dijkstraBackend.verificaDacaToateVarfurileAuFostProcesate()) {
//varf care apartine nodului c... |
9bd483425710d1666d82990f6a5d0ab145324717 | c14832c08e325ea3b61b5af5c19be783e767bbaa | /widget.cpp | 92bb61ad9b55894d053e78756e9673fc00183cfe | [] | no_license | cstwhh/Sierpinski | 9b42d4219c0dcd663b1da706f73793cd34cd8c7d | 998649b7852d718d4abae691d381681d8b9036ab | refs/heads/master | 2021-01-10T13:16:00.997907 | 2015-12-16T16:10:23 | 2015-12-16T16:10:23 | 48,119,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,304 | cpp | widget.cpp | #include "widget.h"
#include "ui_widget.h"
#include<QtCore/qmath.h>
#include<QPainter>
#include<QtDebug>
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
//设置界面
ui->setupUi(this);
this->setWindowTitle("Sierpinski");
//初始值设置
length=600;
n=0;
color=Qt::yellow;
... |
c06bcc0ed6511da995d0c3e64f03d5bd7c5bce60 | 9e3e04dfe1d0f5e1994611eb04e290bf9f8a18c0 | /ep1/ep1.cpp | a9bf18d51d373353965b5adb3135b25df4b65141 | [
"MIT"
] | permissive | codingdojotw/CppMiniTutorial | 1e99fcfa47a5e4700381faddcb7f9889d004d29d | dab961768ecc94288daad2db201f59ca71349b18 | refs/heads/master | 2021-01-19T07:42:41.741024 | 2013-11-08T10:08:52 | 2013-11-08T10:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | ep1.cpp | // ep1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <memory>
#include <gtest\gtest.h>
using namespace std;
struct Foo {
virtual int Plus(int left, int right)
{
return 2;
}
};
struct Bar : public Foo {
virtual int Plus(int left, short right)
{
... |
eb18f49b68a76a9fb1ea40e0073665ad5f98b5c9 | 693ec5c4afc3644e1e8559283eab5cee24f58fb6 | /codeforces/1257A.cpp | 61f81a7b5fb54e7c13cbab6ca0e29001bd8dd144 | [] | no_license | AnupamDas054/competitve-programming | 89e72cc8ccf9e738cc9e7d1aec1b0bfb6e696b9d | 9a50b10b9ccdff58c31548eace21e5fced2c5f3c | refs/heads/master | 2023-02-20T12:00:37.680952 | 2021-01-22T18:50:34 | 2021-01-22T18:50:34 | 231,796,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | 1257A.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n,s,a,b;
cin>>n>>s>>a>>b;
if(a>b)
swap(a,b);
if(a-1<=s)
{
s=s-(a-1);
a=1;
}
else
{
a=a-s;
... |
bd7e6366b8198fb8bcf3bc487953b86bd7ea9d6c | 58fa1a4852233ae7133cf191ab6ea8b7f8d2408f | /include/ceres/jet.h | 7f9f5bea66d6ad972355d5c40c451156f29cf454 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | ceres-solver/ceres-solver | 0c4fcbe4f20e6b62bf6c929dc8775ebd9c206780 | ed9921fc2417faeca52ceb4b35287bc9611454eb | refs/heads/master | 2023-08-30T17:25:16.021682 | 2023-08-29T02:53:36 | 2023-08-29T02:53:36 | 15,667,250 | 3,401 | 1,157 | NOASSERTION | 2023-04-30T12:08:50 | 2014-01-06T06:44:59 | C++ | UTF-8 | C++ | false | false | 50,849 | h | jet.h | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2022 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... |
8012c12dd7a5901ac5f976baa0a77f984086c951 | bfdb98cdb95ce47f55157141f4de77cbdb388df4 | /PWSMJ/CpuUsage.h | e4acd7a492391c62cceaa70ec1defc1a0f9fdfd6 | [] | no_license | ruanzx/PSMJ | dda70c1eb935aa7e4e0d745a73d94ad8da714e3b | e621e309ef51c190e13b220e6b871896c8b0e0e7 | refs/heads/master | 2021-01-20T11:23:01.480753 | 2015-07-07T06:52:28 | 2015-07-07T06:52:28 | 38,668,767 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | h | CpuUsage.h | /////////////////////////////////////////////////////////////////////////////////////////////////
// Determine CPU usage of current process
// http://www.philosophicalgeek.com/2009/01/03/determine-cpu-usage-of-current-process-c-and-c/
// Add GetCpuTime function
//////////////////////////////////////////////////////////... |
0e2b4a4bf2477b05070f0b6bc4ee50d81127c426 | 534f1bb6a4cc2ac5d337ea0be7b8f00017b8169c | /motors/ESC.cpp | 92ecabaac6a6b3a903deaf426f0802b0e49dafbe | [] | no_license | KLINKBOT/arduino | 96c99cfd5d121fafe66638e1c957b54d56fea2eb | 129535e10a8aa05a5b2da6ce7b8a4aee4a635864 | refs/heads/master | 2021-01-22T14:46:50.881190 | 2012-03-29T06:57:13 | 2012-03-29T06:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,958 | cpp | ESC.cpp | #include "ESC.h"
#include "MotorController.h"
ESC::ESC(PlatformMotionController &platform, byte pinA, byte pinB) : platform(&platform), previous(0), state(Running) {
memzero(&motorA, sizeof(motor_t));
memzero(&motorB, sizeof(motor_t));
motorA.pin = pinA;
motorB.pin = pinB;
}
void ESC::begin() {
}
void ESC::c... |
b2fd221e551f8043672fee371d954f0fc40b0947 | 7650416e9539e1383ce2882107299f0d3f7d40fb | /eng/wrappers/mbed/platform/plat_oride.h | e03b9c08d9f33ab12402e77300acd099f40c3de5 | [
"Apache-2.0"
] | permissive | OpenNuvoton/NuMaker-mbed-Aliyun-IoT-CSDK | 42737cb7ea900fd0638c0121727653a70d29a266 | 0565717f5b793a6ed6bb633191912ad91a457d31 | refs/heads/master | 2020-11-30T10:33:08.432854 | 2019-12-27T06:41:30 | 2019-12-27T06:41:30 | 230,378,587 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,111 | h | plat_oride.h | /*
* Copyright (c) 2019-2020, Nuvoton Technology Corporation
*
* 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/lic... |
ef6f8b8d044229ebee30a0020f85bbe8753fdb8d | b21bcc5c2203ce4a7d5ceb9bcf0d72cf79db6abc | /thread_study/socket_stream/srv/src/srv.cpp | c9ae33215a4840be1f9ad6e87f8472731e4fa4bd | [] | no_license | zhaoyunfuture/study | 81ad69a4abfedb3d14efa1080a2bcf091ab2e1a8 | ebed9809c84c31ff67b988b3bb3c3289b2b818d7 | refs/heads/master | 2022-01-18T21:33:06.613463 | 2022-01-09T13:19:58 | 2022-01-09T13:19:58 | 47,873,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,261 | cpp | srv.cpp | #include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include "my.pb.h"
#include "data.h"
using namespace std;
int my_read(int fd,char *buffer,int length){
int bytes_left;
... |
d4726a35211acc49ef40ddbcdaca8423b0494608 | cbedce64d34da490d4abe1da40a85952aaeb32b5 | /Camera.h | a50835b58f003967cb3fea7f87a8d2ea7739f76e | [
"MIT"
] | permissive | manueme/the-island | 1a8942d8724bdd53cc39aecf60cdc46675daeb53 | f5100ae45dae48c357926f9df86d35b0b8602677 | refs/heads/master | 2020-08-05T14:40:25.792957 | 2019-10-03T12:47:36 | 2019-10-03T12:47:36 | 212,576,286 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | h | Camera.h | #pragma once
#include "Component.h"
#include <glm/glm.hpp>
class GameObject;
class Transform;
class Camera final : public Component {
public:
explicit Camera(const shared_ptr<GameObject>& parent);
~Camera();
void updateVectors();
ComponentKey getComponentKey() override;
void setLookAt(float x, flo... |
1d63f7e4c9cbb164cac91dd4f9a68f6effdcea6f | 0e650fb278b137e0842817248270e6c7d07606ab | /nemux-test/Cpu-test-loadstore.cpp | cf54304811bae62e704bd8d451c1248ce9fffacb | [
"MIT"
] | permissive | svenzin/nemux | fb83c7f01790c34d4559a071e25fb871dc3157c4 | 087972503c490c8e26f24ff1b39284a4666dc7b7 | refs/heads/master | 2021-12-19T00:03:35.938910 | 2021-12-11T15:53:01 | 2021-12-11T15:53:01 | 10,719,054 | 0 | 0 | MIT | 2021-11-24T18:20:06 | 2013-06-16T11:21:00 | C++ | UTF-8 | C++ | false | false | 13,524 | cpp | Cpu-test-loadstore.cpp | /*
* Cpu-test-loadstore.cpp
*
* Created on: 07 Jul 2013
* Author: scorder
*/
#include "gtest/gtest.h"
#include "Cpu.h"
#include <vector>
#include <map>
#include <array>
#include <functional>
using namespace std;
using namespace Instructions;
using namespace Addressing;
class CpuTestLoadStore : public ::... |
b01bf9d4d6130686cce46550396725ff1d7f2cc7 | 20339f9a40bc6d0a8f474496d04cabf56891daa1 | /include/GameRoom.hpp | 22a0677a92f67a4989a6e1bea06ce638be810d10 | [] | no_license | narongdejsrn/makhos | 1daecfd0946de7084203ad5197f0a2952d99f4d9 | 6514fed5d86e3b922a1290a907f0c7b8016ba663 | refs/heads/master | 2022-11-18T12:09:45.312411 | 2020-06-25T14:52:30 | 2020-06-25T14:52:30 | 270,681,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,356 | hpp | GameRoom.hpp | //
// GameRoom.hpp
// makhos
//
// Created by Narongdej Sarnsuwan on 10/6/20.
// Copyright © 2020 Narongdej Sarnsuwan. All rights reserved.
//
#ifndef GameRoom_hpp
#define GameRoom_hpp
#include <stdio.h>
#include <vector>
#include <memory>
#include "Checker.hpp"
#include "Scene.hpp"
#include "ZTexture.hpp"
#incl... |
50f18af1f6fcb322fca180b6509e4b5167eccbb3 | 9df4cce1240c298e899ca836e36cf7419d9256bb | /parking Management.cpp | ed3cc2f4b2660ee753d2923a25b8aa8f466f116b | [] | no_license | anshulshakya/PracticeRepo | 4753525ca7e6dffa2321d3b659e9166167c04f50 | 75201c7c11109325645a5f89db06fa552b07ffa3 | refs/heads/master | 2023-03-06T16:55:36.214710 | 2021-02-02T20:09:34 | 2021-02-02T20:09:34 | 259,899,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,303 | cpp | parking Management.cpp | #include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int nob=0,nos=0,noc=0,amount=0,count=0;
void bus();
void scooter();
void car();
void status();
void delet();
int menu();
int main()
{
while(1)
{
switch(menu())
{
case 1:
bus();
break;
case 2:
scooter();
break;
case 3:
car();
break;
case ... |
71e55632a94b5a265d4994bad9195265eaeadbaa | ebe36eba494b9ab9bb658686e69c9253c43cb524 | /Practice/a2oj/DIV_B/Slightly_Decreasing_Permutation.cpp | e6a6fde7d75551e8e492478d1db33c36da3189e3 | [] | no_license | Dutta-SD/CC_Codes | 4840d938de2adc5a2051a32b48c49390e6ef877f | ec3652ec92d0d371fd3ce200f393f3f69ed27a68 | refs/heads/main | 2023-07-03T11:46:30.868559 | 2021-08-19T12:03:56 | 2021-08-19T12:03:56 | 316,813,717 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 439 | cpp | Slightly_Decreasing_Permutation.cpp | #include <bits/stdc++.h>
# define print(arr) for(auto i : arr){cout << i <<" ";}
using namespace std;
int main()
{
int n, k;
cin >> n >> k;
int perm[n];
for (int i = 0; i < n; ++i)
{
perm[i] = n-i;
}
// print(perm)
for (int i = 0; i < n-k-1; ++i)
{
for (int j = 1; ... |
a5192181aa7e9dd25553cd8f4718106bbf86daec | bf41e4c5c97bcf416b52cc3d6c77daa1c9d0f0b2 | /util.h | d7ca0e7b98c83fd8bce1caf936ac31e39fc4ec7e | [] | no_license | xptree/grouppp | 2c70c2953a51b88de568a0c3acd3450c3f8747e4 | 7225f67320f384bed753bcd43010b00762be01a9 | refs/heads/master | 2021-01-16T22:37:04.524814 | 2015-08-11T16:25:33 | 2015-08-11T16:25:33 | 39,917,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 371 | h | util.h | #ifndef UTIL_H
#define UTIL_H
#include <vector>
#include <string>
using namespace std;
class Util
{
public:
static vector<string> split(const char* s, char delim);
static vector<long long> string_to_ll(vector<string>& elems);
static bool cmpTime(pair<int, int> first, pair<int, int> second);
static long long getF... |
65bc0350583aeeafc2310b5264a04093d62d832b | 28bdc0bf546582d2488a0fed6f88de488dc792e6 | /strategy/IStrategy.h | 1e1b9127bcf2f614f224c3ba52807bcba92d9cbd | [] | no_license | yiluohan1234/designPattern | a6a13d41fff65813acde62fdf271f5d4ef6cccb7 | ffc9e62ecd40a60d16202004787af9e05fb328e7 | refs/heads/master | 2020-04-06T06:57:50.408571 | 2018-11-28T08:55:43 | 2018-11-28T08:55:43 | 60,152,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | h | IStrategy.h | /*************************************************************************
> File Name: IStrategy.h
> Author: cyf
> Mail: XXX@qq.com
> Created Time: 2016年05月30日 星期一 09时45分13秒
************************************************************************/
#ifndef _ISTRATEGY_H
#define _ISTRATEGY_H
/*
首先定一个策略接口,这是诸葛亮老人家给赵... |
726931df7fa2aa4e0a6ee5584a2635e7df18fb41 | 8f19b63873145658bcc8066723cbb78323ce75c8 | /src/mruntime/ApplicationTaskBlock.h | fd59b5469ca3e974b26135222bb1e59268cd86e8 | [
"Apache-2.0"
] | permissive | 0of/WebOS-Magna | c9dfcd310b3e16c4b4e19f34244d4413a3bf3c89 | a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511 | refs/heads/master | 2021-01-13T13:00:29.907133 | 2016-02-01T07:48:41 | 2016-02-01T07:48:41 | 50,822,587 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,204 | h | ApplicationTaskBlock.h | #ifndef APPLICATIONTASKBLOCK_H
#define APPLICATIONTASKBLOCK_H
#include "basedef/Uncopyable.h"
#include "basedef/Thread.h"
using namespace Magna::Core;
#include "application/Application.h"
#include <QLibrary>
namespace Magna{
namespace Application{
typedef void(MAGNA_CDECL *app_entry)();
type... |
e7f38aac411b84653d29ee4052b9b523eb5b5719 | 491b67c1b3cc8f1963189f28a2582f6f76804b79 | /src/include/parser.h | 9355de27056bb9a452b9a80e7c245438bad6801d | [] | no_license | sschellhoff/s3l | 134719e9197d1198a3973b481c92f56413824dca | 0124c57e023ed3f2cf412233d844cfdb5b7b3dd9 | refs/heads/master | 2021-01-17T22:56:19.816582 | 2016-04-16T17:35:06 | 2016-04-16T17:35:06 | 54,187,124 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,434 | h | parser.h | #pragma once
#include <iostream>
#include <memory>
#include <string>
#include <map>
#include <vector>
#include <stack>
#include "environment.h"
#include "operators.h"
#include "token.h"
#include "lexer.h"
#include "function_prototype.h"
#include "ast.h"
#include "function_definition_ast.h"
using ENV = Environment<Va... |
cdd9713aa79b872519c175058656cb0c98be89c6 | 62d0e23e9ec6cc6b3400131f51c33d775e3e8357 | /Mantle/Source/Layers/ImGuiLayer.cpp | 11b5b467c31896887fa9cec6dccaac048bb6e316 | [
"Apache-2.0"
] | permissive | AiManti1/Graphics | 659c578b9d29098aa15167a40ee23e56d410af93 | 050816bf16202b09440412314338373a4d0d6c04 | refs/heads/master | 2023-02-15T19:51:25.341735 | 2021-01-14T10:41:05 | 2021-01-14T10:41:05 | 329,582,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,671 | cpp | ImGuiLayer.cpp | #include "mtlpch.h"
#include "MEngine.h"
#include "imgui.h"
#include "ImGuiLayer.h"
#include "OpenGL/ImGuiRenderer.h"
// TEMPORARY
#include <GLFW/glfw3.h>
#include <glad/glad.h>
namespace mtl {
ImGuiLayer::ImGuiLayer()
: Layer("ImGuiLayer")
{
}
ImGuiLayer::~ImGuiLayer()
{
}
void ImGuiLayer::OnAttach()
{
... |
d6b159a9798504d779b8f8c23523e0b3a8f72629 | 493ac26ce835200f4844e78d8319156eae5b21f4 | /flow_simulation/ideal_flow/processor0/0.31/phi | 8fca2e57798ee7509f2918100d5a718d429e8110 | [] | no_license | mohan-padmanabha/worm_project | 46f65090b06a2659a49b77cbde3844410c978954 | 7a39f9384034e381d5f71191122457a740de3ff0 | refs/heads/master | 2022-12-14T14:41:21.237400 | 2020-08-21T13:33:10 | 2020-08-21T13:33:10 | 289,277,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,118 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
77a18177997364b1f98fcfca223beb4d008672b0 | 63bdee29ac1d4bb8fd425b75003a10fa98506b27 | /test/gtest/src/transform_double_test.cpp | 156079d54ee57cdce6305a887ce690fb62fd1dea | [] | no_license | rocmarchive/HcSPARSE | ad273991409d9c24b6ed013ca5b4328988cdb90a | ddfe7da9c7b0a41ccf30fbc9eea6debcb1567df2 | refs/heads/master | 2021-10-24T04:37:43.079874 | 2019-03-21T22:41:45 | 2019-03-21T22:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,161 | cpp | transform_double_test.cpp | #include <hcsparse.h>
#include <iostream>
#include "hc_am.hpp"
#include "gtest/gtest.h"
TEST(transform_double_test, func_check)
{
hcdenseVector gR;
hcdenseVector gX;
hcdenseVector gY;
std::vector<accelerator>acc = accelerator::get_all();
accelerator_view accl_view = (acc[1].create_view());
h... |
d94706fa1ecb66f655edc2a123b946d26967297c | dcc945b8be760e948a607dc0dc63b887d4274bc1 | /src/random.cc | 0e3774e99f82394a036c4fb67580b7abdc92ad6a | [] | no_license | joanalza/RK-EDA | ec2995c0027ffae5e72be6d87e7c26acb8b54b4e | f52b0f26dfb540f9dde0ca51b547483065a629de | refs/heads/master | 2021-05-26T08:24:04.561283 | 2019-09-16T16:07:03 | 2019-09-16T16:07:03 | 128,073,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,734 | cc | random.cc | /**
* Copyright 2008, Daniel Molina Cabrera <danimolina@gmail.com>
*
* This file is part of software Realea
*
* Realea 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 Li... |
8ce7227ad6e130ea51b80f1bc09172e118705e78 | c2fba7363aac67c9b340474e3a83184ac8dbc74e | /[기초-조건선택실행구조] 평가 입력받아 다르게 출력하기.cpp | 131af3e8ab2b09dee40d30e52d5ae00ea92a9da3 | [] | no_license | m0vehyeon/Code-Up-Algorithm | 728ae70628bf6c1f04337497537a3ed9980485c8 | c6fd85ac303b0e1afbb02c1b83bcd3528f29b707 | refs/heads/master | 2021-09-18T03:06:41.801357 | 2018-07-09T08:54:42 | 2018-07-09T08:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | [기초-조건선택실행구조] 평가 입력받아 다르게 출력하기.cpp | #include <stdio.h>
int main()
{
char a;
scanf("%c", &a);
if (a == 'A')
printf("best!!!\n");
else if (a == 'B')
printf("good!!!\n");
else if (a == 'C')
printf("run!!!\n");
else if (a == 'D')
printf("slowly!!!\n");
else
printf("what?\n");
return 0;
} |
e9404a8e98d3e8cb7c69a0389dc863c494096546 | b9ac3f216183e3fc7f52845598c8b8e4eee2497d | /xls/codegen/codegen_options.cc | ca7ab14fbc5950273eb8dbd32038ebefcaf8e2d7 | [
"Apache-2.0"
] | permissive | google/xls | ba225b411161836889a41c6d0e3a2fc09edc25ef | c2f3c725a9b54802119173a82412dc7a0bdf5a2e | refs/heads/main | 2023-09-02T06:56:27.410732 | 2023-09-01T22:27:04 | 2023-09-01T22:28:01 | 262,163,993 | 1,003 | 152 | Apache-2.0 | 2023-08-31T14:47:44 | 2020-05-07T21:38:30 | C++ | UTF-8 | C++ | false | false | 8,471 | cc | codegen_options.cc | // Copyright 2021 The XLS Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
cace141fc07a3a3325c3e05bf99fdb7de85aeaa8 | 04afb34356de112445c3e5733fd2b773d92372ef | /Sem2/OOP/Appliances store/Appliances store/Service.cpp | 9ec2cc4a33e04e8be9e361991e0025b498e3c271 | [] | no_license | AndreeaCimpean/Uni | a4e48e5e1dcecbc0c28ad45ddd3b0989ff7985c8 | 27df09339e4f8141be3c22ae93c4c063ffd2b172 | refs/heads/master | 2020-08-21T19:12:49.840044 | 2020-05-15T17:22:50 | 2020-05-15T17:22:50 | 216,222,647 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | cpp | Service.cpp | #include "Service.h"
#include "Refrigerator.h"
#include "DishWasher.h"
using namespace std;
std::vector<std::shared_ptr<Appliance>> Service::get_all_appliances()
{
return this->controller.get_all_appliances();
}
void Service::add_refrigerator(const std::string& id, const double weight, const std::string& electricit... |
d83adaacd0099e905dfd1ced5c16d15aa05cc107 | ed1b62c22616764276f79b39ab549c75d23131ff | /HW_8.cpp | 4b52feaeefa919907911d877624a9c3934fb9599 | [] | no_license | Kidami13/HW_8 | f4f6537d13d5cb3571ad277c4a9349ecee2a310f | ab006280cd2e2264a932fcabdd134dcb5adfb1ff | refs/heads/master | 2023-01-06T14:30:45.256533 | 2020-11-07T13:36:56 | 2020-11-07T13:36:56 | 310,852,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 701 | cpp | HW_8.cpp |
#include <iostream>
using namespace std;
int main()
{
int ulyamass[7][7];
int ulyaMaxVal = 0;
int range = 100;
int ulyaMinVal = range;
for (int i = 0; i < 7; i++) {
for (int j = 0; j < 7; j++) {
ulyamass[i][j] = rand() % range;
}
}
for (int i = 0; i < 7; i++) {
for (int j = 0; j < 7; j++) {
... |
aedbfe5ae96836e51f553ce25fa50427f6d9404f | 564c6c462a972600bb4875618f320f6010e0fb9e | /Zelda/Triforce.cpp | 9a20f128bb4b811303fac386b1cb25beb44cfcbc | [] | no_license | aekruijssen/LegendOfZelda-EagleDungeon | 554f6c739649b3bc5b34974e2f79e65c731650a6 | 6f2140ce5063fd1d4dbd186c642f042ce1ab11ac | refs/heads/master | 2021-10-19T14:45:23.274134 | 2019-02-21T21:26:26 | 2019-02-21T21:26:26 | 171,751,735 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 905 | cpp | Triforce.cpp | #include "CollisionComponent.h"
#include "Collectible.h"
#include "Player.h"
#include "SDL/SDL_mixer.h"
#include "Triforce.h"
#include "AnimatedSprite.h"
#include "Game.h"
Triforce::Triforce(Game* game)
: Actor(game) {
mGame = game;
// Adds itself to the game via AddActor(remember Actor has an mGame member variable... |
8c379cc767fd25fc6e07a7784d28ae563bfc2bfc | 15fca27f60ab7fd42fe21511da4f18f2dae51bc7 | /MatlabWrapper/ks/MEXksint.cpp | ec305b7c23b55ca52316832f1ddfd9d916a6d384 | [] | no_license | dingxiong/research | 1bae45c54a0804c0a3fd4daccd4e8865b9ebebec | b7e82bec1cf7b23cfa840f3cb305a2682164d2f3 | refs/heads/master | 2021-03-13T01:50:57.594455 | 2017-08-30T06:42:46 | 2017-08-30T06:42:46 | 38,164,867 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,498 | cpp | MEXksint.cpp | /* compile command:
* mex CXXFLAGS='-std=c++0x -fPIC -O3' MEXksint.cpp ksint.cc ksintM1.cc
* -I../../include -I/usr/include/eigen3
* */
#include "ksintM1.hpp"
#include "mex.h"
#include "matrix.h"
#include <cmath>
#include <cstring>
#include <Eigen/Dense>
using Eigen::ArrayXXd;
using Eigen::ArrayXd;
using Eigen::Ma... |
287e557c2f3eb2a851a712716da08269e42db835 | aade1e73011f72554e3bd7f13b6934386daf5313 | /Contest/Europe/NWERC/2019/B.cpp | a3d036033826854845fdfec502f95e8511c19660 | [] | no_license | edisonhello/waynedisonitau123 | 3a57bc595cb6a17fc37154ed0ec246b145ab8b32 | 48658467ae94e60ef36cab51a36d784c4144b565 | refs/heads/master | 2022-09-21T04:24:11.154204 | 2022-09-18T15:23:47 | 2022-09-18T15:23:47 | 101,478,520 | 34 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,328 | cpp | B.cpp | #include <bits/stdc++.h>
using namespace std;
int p[500005];
int l[500005], r[500005];
int plug[500005];
int far[500005];
int dp[500005];
void dfs1(int now) {
if (l[now]) dfs1(l[now]);
if (r[now]) dfs1(r[now]);
if (l[now] || r[now]) {
far[now] = max(far[l[now]], far[r[now]]) + 1;
if (far[now] == 1 && l... |
18a5a40f8c37b84235437745587ca6e52d5a8b9f | d74c56a43350f078e9d538d6deb367e7b5b809a5 | /Solar/src/entities/square.h | da4fe738e2757f6057a4974134640c1e6ccbae14 | [
"MIT"
] | permissive | ThaiDuongVu/PongSolar | 6b7bb03f582d105a574d49ed291b8432c2872023 | 4ce5be34a2f79512384651d7e2d12dac0517198c | refs/heads/main | 2023-04-15T20:00:24.994587 | 2021-04-11T22:02:11 | 2021-04-11T22:02:11 | 356,989,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,784 | h | square.h | #pragma once
#ifndef SOLAR_Square_H_
#define SOLAR_Square_H_
#include "../core.h"
#include "../app.h"
#include "game_object.h"
#include "../types/color.h"
#include "../types/color32.h"
#include "../types/vector2.h"
#include "../rendering/shader.h"
namespace Solar
{
class SOLAR_API Square : public GameObject
{
pub... |
7bf1b2a68f1e4b039f3ecec7fe20ba9f87db05e8 | 2a8a90b78f18e87c0049acb094482867756cbfff | /src/adiar/internal/assert.h | 5f4f628ca7981a5e0df0debc1bd3b6cfed47c022 | [
"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 | 2,816 | h | assert.h | #ifndef ADIAR_INTERNAL_ASSERT_H
#define ADIAR_INTERNAL_ASSERT_H
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
namespace adiar
{
// LCOV_EXCL_START
struct assert_error
{
private:
std::string _what;
public:
/////////////////////////////////////////////////////////////... |
912a35c32ea84e7db0d039a2a88dbc4a061adbb3 | 3f98afb462090af7317aaa77a710815fdf074900 | /VisualIB/vibexception.h | e5a0a95d15b86b8313060a62d07714b38492d523 | [
"MIT"
] | permissive | haleyjd/vib | 468be7b4fce0d4ac805461c8a972bd9e59f70010 | f8535608e5c984b1a96bb9ad42d684039fd2b30c | refs/heads/master | 2020-04-07T13:13:37.758555 | 2018-11-20T13:58:12 | 2018-11-20T13:58:12 | 158,398,211 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | h | vibexception.h | /** @file vibexception.h
*
* VisualIB - InterBase wrapper for use in Visual Studio.
* Internal Exception Utilities
* @author James Haley
*
* @warning Internal only. Do not include in user programs!
*/
#ifndef VIBEXCEPTION_H__
#define VIBEXCEPTION_H__
__declspec(dllexport) void __cdecl VIBError_Report(const cha... |
0102eb4ac8ba8bfd31f96420293dcdc66675db91 | f479a96e9902a825fb3106f5f75c0ebd2b99d39a | /ChessTest/board.cpp | 82d4da443dc3b8fbbdac30e87e3f64f28676ba28 | [] | no_license | Omega65536/ChessTest | 9b3a7ee4c004b2218ba628757ee7c59e3e1f34db | 87d39143d7a620a8ad1bae461d9b10c390b60b2a | refs/heads/master | 2023-03-04T06:07:20.795775 | 2021-02-16T11:08:33 | 2021-02-16T11:08:33 | 338,343,101 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | board.cpp | #include <vector>
#include "move.h"
#include "board.h"
void Board::setup() {
addWhitePiece(Piece(A1, Rook));
addWhitePiece(Piece(B1, Knight));
addWhitePiece(Piece(C1, Bishop));
addWhitePiece(Piece(D1, Queen));
addWhitePiece(Piece(E1, King));
addWhitePiece(Piece(F1, Bishop));
addWhitePiece(Piece(G1, Knight));
a... |
62cef0ff7eb305755a0ace567835e42945ff69ae | fa91c297b51e3049c0245cd3fe8333f8b801be0a | /J00/ex01/contact.class.cpp | dcf9be2eef7cdacf099a3b9855e334e57bd3f488 | [] | no_license | Qwesaqwes/Piscine-CPP-42 | 4d6fe766b0a03815834a8afa8f176b99e1b75c7b | 7a172af14b48aeaefeaca1065b6a9481940cace0 | refs/heads/master | 2020-03-06T17:15:15.939641 | 2018-04-09T11:16:52 | 2018-04-09T11:16:52 | 126,986,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,915 | cpp | contact.class.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* contact.class.cpp :+: :+: :+: ... |
8309c2c842cb6114a749426a60ba9b9310f0c902 | 2407762257eaf2c62528be250533e356c2b2b04b | /2_course/2_semester/Mutex/Tree_mutex/main.cpp | e9509cd0bb6a3fe92002dae4f27f8dcdcfd92bc1 | [] | no_license | makci97/Homework | 0fc698045f7c715c45f682fdfb36e06796db8d26 | 4507ebf26efaa903211d550eb314a6ff36c8bd69 | refs/heads/master | 2021-01-09T09:34:19.008037 | 2016-06-27T13:33:14 | 2016-06-27T13:33:14 | 62,057,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,079 | cpp | main.cpp | #include <array>
#include <atomic>
#include <iostream>
#include <math.h>
#include <thread>
#include <vector>
#include "tree_mutex.h"
/*
class peterson_mutex
{
public:
peterson_mutex();
void lock(int t);
void unlock(int t);
private:
std::array<std::atomic<bool>, 2> _want;
std::atomic<int> _victim;... |
b5f90629300cca646795e4ecaaa01e26b9e06abb | 14ee8b8c0669ced2372618405c11e278b8e601d3 | /TextFile/Source.cpp | 49239dfb1f597f97396589e57370c0a6af7f0451 | [] | no_license | miltone92/CPlusPlus-Read-Write-Txt | 79dda7fd9f414286d0237128efcb68b9e44ba7e3 | 4ab259deed2c9b4ffee69d83314fec98325a02dc | refs/heads/master | 2020-09-26T23:25:57.253792 | 2019-12-06T18:24:27 | 2019-12-06T18:24:27 | 226,365,415 | 1 | 0 | null | null | null | null | ISO-8859-2 | C++ | false | false | 3,701 | cpp | Source.cpp | #include <iostream>
using namespace std;
#include <fstream>
#include <string>
void menu();
void write();
void readLines();
void readData();
void modify();
ofstream myFile; //Text file declaration
void main() {
menu();
}
void menu() {
int option = -1;
while (option != 0) {
cout << "\n";
cout << "Menu" <<... |
467a230dd330707dab6a3ab0a373187344684644 | a879bcb6a5dbd40a1c4815dc00291fca458dcc01 | /variadic_bases.cpp | d33e036c03dff1458f7af9232846030852e9bc83 | [] | no_license | hgedek/cpp-samples | 38a5b44c43589bf441f4205bff2cb8a1e9f2c136 | 2f69954de8627fe2065a9958f997eee56d48f135 | refs/heads/main | 2023-04-20T06:24:36.931213 | 2021-05-01T14:41:20 | 2021-05-01T14:41:20 | 329,326,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | variadic_bases.cpp | #include <iostream>
template <class ...Ts>
struct S: Ts...{};
// redirecting params as base types
// forwarding template types from params
template <class ...Ts>
S(Ts...)->S<Ts...>;
struct A{};
struct B{};
int main() {
// {} initializer a need here...you cant use normal !
S{[]{}, [](int){}, [](int, float){}... |
3cb432bb22b521b2812504a4776656c022edf162 | 46b41563d38101185194f1c79575490513c54d43 | /lane.cpp | 0664e073160f3b1e583182e2c60f700ed0b53c24 | [] | no_license | zouwen198317/lane | bfc13b894678d38a98bdc9d9d66df785f6a0c2c1 | a35fa08f346df89d110bd6f9463fb15c161cad84 | refs/heads/master | 2020-12-25T12:46:47.507872 | 2014-12-21T06:14:10 | 2014-12-21T06:14:10 | 60,313,796 | 1 | 0 | null | 2016-06-03T02:56:55 | 2016-06-03T02:56:54 | null | UTF-8 | C++ | false | false | 15,394 | cpp | lane.cpp | /*************************************************************************
> File Name: lane.cpp
> Author: onerhao
> Mail: haodu@hustunique.com
> Created Time: Thu 07 Mar 2013 02:44:22 PM CST
************************************************************************/
#include <iostream>
#include <algori... |
5f81ca9d484b0793296bd55224a1226fc158dd9f | 93278aa111ef7053751f156280b807a8abe298fb | /src/Elements/AngleSpring.h | 5bdb2d4a2063c1ea221e376c649d287f9a8379d1 | [
"MIT"
] | permissive | wsklug/voom | 29c091dc8e90f1f913c389a4f04ded9a7c294252 | 43260b955a6cf11ba8e14e79c80b3618088a880b | refs/heads/master | 2020-04-05T21:12:05.821811 | 2017-10-13T21:05:51 | 2017-10-13T21:05:51 | 21,869,008 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,547 | h | AngleSpring.h | // -*- C++ -*-
//----------------------------------------------------------------------
//
// William S. Klug
// University of California Los Angeles
// (C) 2004-2008 All Rights Reserved
//
//----------------------------------------------------------------------
#... |
863dbe6857eeb962e4a2aeeec02d02b27fd6b624 | 1351f48d45c2c05e322c29c5f68da0d4590888c1 | /codeforces/aimr3B.cpp | 777e16b709e3f0cff2d50c9dc754d13b346b0bd0 | [] | no_license | laziestcoder/Problem-Solvings | cd2db049c3f6d1c79dfc9fba9250f4e1d8c7b588 | df487904876c748ad87a72a25d2bcee892a4d443 | refs/heads/master | 2023-08-19T09:55:32.144858 | 2021-10-21T20:32:21 | 2021-10-21T20:32:21 | 114,477,726 | 9 | 2 | null | 2021-06-22T15:46:43 | 2017-12-16T17:18:43 | Python | UTF-8 | C++ | false | false | 662 | cpp | aimr3B.cpp | /************************************************************************/
/* Name: Towfiqul Islam */
/* uva id: 448714 */
/* email id: towfiq.106@gmail.com */
/* institute: IIUC */
/* address: Chittagong, Bangladesh */
/* */
/*******************... |
fc5e03bc0e208ed324847e0222da1614499e6428 | 26f474b0ff8508710d0dfa65c3c15faa0e490a90 | /src/UserInterface.hpp | 3de44da9e4d470ca6b68445522fab97abe1ce2a3 | [] | no_license | denizakcal/Winter-2018_Project | b935e544e0c78d8191ec4631863f03b0e723e2fb | 055a18f3a80b7f934c96562df60f88ac0239d8af | refs/heads/master | 2021-05-09T15:35:18.923565 | 2018-04-12T03:02:23 | 2018-04-12T03:02:23 | 119,094,854 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 855 | hpp | UserInterface.hpp |
#ifndef USERINTERFACE_H_
#define USERINTERFACE_H_
//#include "TheGame.hpp"
class TheGame;
#include "Graph.hpp"
#include "Player.hpp"
#include "UserInterfaceCodes.hpp"
#include <vector>
class UserInterface {
protected:
int numberOfPlayers;// = 0;
bool* isPaused;// = false;
std::vector<Player*> players;
int* ... |
541df110620a94e07fef3259466a6c4986f305fb | b00995ef1f42a3ee4f523afb594eb14f9ef9d01d | /stringtok.h | 9d5dc0111f9f5d1ee7c1f12efcf9d6e66a67d886 | [] | no_license | dstl1128/vmdkparse | 3c1cb48bb2f5da9f524e618ad9eb8f4055766ad0 | b5c675c9b264fabaefbfac76e2d466da7df40f46 | refs/heads/master | 2023-01-11T05:22:00.283863 | 2020-11-16T14:46:03 | 2020-11-16T14:46:03 | 313,333,445 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,463 | h | stringtok.h | //
// String Tokenizer
// Split std::basic_string with delimiter for each iteration.
// Tokenized strings are new strings and does not refer to original.
// Also does not modify original string during tokenizing.
//
// Author: Derek Saw
//
// Copyright (c) 2009. All rights reserved.
//
#ifndef __STRINGTOK_H
#define __... |
dd960baf37178175708935a7fae21a7c5178bcce | 7b4134efae43198d30e4d862460c243efe5fe668 | /Plugins/AI_Plugin/Intermediate/Build/Win64/UE4Editor/Inc/AI_Plugin/MyTargetPoint.generated.h | 75338e39df63141342531be9d578391c44f49df5 | [] | no_license | RomanSolomatin/Unreal-Engine-4-AI-Plugin | 606b0d7cb5666918a97fbf11b8083440b180f9cd | 993df879f65bd4b46c0933ed4c0f63df77a97885 | refs/heads/master | 2020-03-10T16:22:05.527835 | 2017-06-15T23:05:31 | 2017-06-15T23:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,971 | h | MyTargetPoint.generated.h | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
C++ class header boilerplate exported from UnrealHeaderTool.
This is automatically generated by the tools.
DO NOT modify this manually! Edit the corresponding .h files instead!
=... |
a84f67a9b97dd05e28543583d03be9c4be75ebe2 | a13e7993275058dceae188f2101ad0750501b704 | /2021/2049. Count Nodes With the Highest Score.cpp | 860bc9c8b37aee87a8a0586d868096bf9fb2c22d | [] | no_license | yangjufo/LeetCode | f8cf8d76e5f1e78cbc053707af8bf4df7a5d1940 | 15a4ab7ce0b92b0a774ddae0841a57974450eb79 | refs/heads/master | 2023-09-01T01:52:49.036101 | 2023-08-31T00:23:19 | 2023-08-31T00:23:19 | 126,698,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,615 | cpp | 2049. Count Nodes With the Highest Score.cpp | class Solution {
public:
int countHighestScoreNodes(vector<int>& parents) {
int n = parents.size();
vector<int> degrees(n, 0), left(n, 0), right(n, 0);
for (int i = 1; i < parents.size(); i++) {
degrees[parents[i]]++;
}
priority_queue<int, vector<int>, greater<int... |
aeb66cb486a2a0aba04e7b61ea6fc58e549159eb | 24d31a065991ff16cf435d937ed91e37c7d6afad | /producto.h | 4df1b7aba2a8b9cfc0a751354d25525dd91fb431 | [] | no_license | AlexPadi/Tienda | 505f8dd225903327ec50cda79823316bf12ee39f | 782aa085451627c7b969f56a8d9110c0857dcddc | refs/heads/main | 2023-08-31T22:10:29.815985 | 2021-07-12T14:10:37 | 2021-07-12T14:10:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | h | producto.h | #ifndef PRODUCTO_H
#define PRODUCTO_H
#include <QObject>
#define IVA 12.0;
class Producto : public QObject
{
Q_OBJECT
Q_PROPERTY(int codigo READ codigo WRITE setCodigo)
Q_PROPERTY(QString producto READ producto WRITE setProducto)
//Q_PROPERTY(int cantidad READ cantidad WRITE setCantidad)
Q_PROPER... |
3bb2d1589e39002a6e9f4b2421ecdd27a80ab7c3 | 7b00a9bf8c28e2c302466b40d51da00637fc0c28 | /lab03/lab03/cabin.cpp | dbeba05c280ed867a1d42f7248f8a2b9f68f4176 | [] | no_license | OverldAndrey/iu7-4sem-oop | 999b7100d552f5a88aa7ab2fc9fc7c19abbbc6aa | 4efc3fcb15ef97a2595ec89cadec28260965db8c | refs/heads/master | 2020-06-01T03:51:38.431246 | 2019-06-06T18:06:07 | 2019-06-06T18:06:07 | 190,622,126 | 1 | 0 | null | 2019-06-06T18:06:09 | 2019-06-06T17:27:01 | C++ | UTF-8 | C++ | false | false | 1,929 | cpp | cabin.cpp | #include "cabin.h"
#include <iostream>
#include <QThread>
#include <QTimer>
Cabin::Cabin() : QObject()
{
}
void Cabin::on_move(int floor)
{
this->target_floor = floor;
if (this->target_floor == this->current_floor)
{
return;
}
// std::cout << this->current_floor <<... |
deee7acad79218b66429f733d1c016e105aaafea | 69470f251bb45953ba4dd884d1c2db4b6ec3052d | /recursif.cpp | f44b94b56c9c11dfb32ca78becf065fdfa75a235 | [] | no_license | mustafakurt07/Algorith-DataStruct | f3d356f2fba45b4b2bce9d938123e98626a37520 | a211534c3cce454e06eaa1e1cb1866f244376540 | refs/heads/main | 2023-02-01T17:49:32.802897 | 2020-12-20T21:53:51 | 2020-12-20T21:53:51 | 323,164,569 | 0 | 0 | null | null | null | null | ISO-8859-9 | C++ | false | false | 278 | cpp | recursif.cpp | #include<stdio.h>
int us(int x,int y)
{
int sonuc=1,i;
if(y==0) return 1;
else return x*us(x,y-1);
}
main()
{
int x,y;
printf("us alıncak sayiyi girin\n");
scanf("%d %d",&x,&y);
getchar();
printf("\n ussun degeri=%d",us(x,y));
getchar();
}
|
8b769617cbb26934b216c5a629ebf8bc051318c2 | 958dcb5201620519392264e0458545066a07432a | /labs/lab-00/code/Inventory.hpp | 780f509c2a6be967a268c676a25257b89dc2f2d2 | [] | no_license | ryanfish17/csc-212-fall2021 | 9023be933ffbab66226eb0fdc77a8f6cf0ad55f8 | db63a53661f946a1f111d7541317275ee4225eff | refs/heads/master | 2023-08-27T12:17:59.903911 | 2021-11-04T16:28:57 | 2021-11-04T16:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | hpp | Inventory.hpp | #pragma once
#include <iostream>
#include <vector>
// Forward declaration.
// Cannot include 'Item', as 'Item' includes 'Entity' & that would cause a circular dependency (compiler would crash with many, many errors.)
// This allows 'Entity' to *know* that 'Item' exists, but *not* how to use it.
class Item;
class Enti... |
e74087d98f5df6499ac60702c7dd08d83430adb6 | 13b14c9c75143bf2eda87cb4a41006a52dd6f02b | /AOJ/0227/solve.cpp | 2b31b388ea2179c65a54ae8beeb0a58c46c8bcae | [] | no_license | yutaka-watanobe/problem-solving | 2c311ac856c79c20aef631938140118eb3bc3835 | f0b92125494fbd3c8d203989ec9fef53f52ad4b4 | refs/heads/master | 2021-06-03T12:58:39.881107 | 2020-12-16T14:34:16 | 2020-12-16T14:34:16 | 94,963,754 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | solve.cpp | #include<iostream>
#include<algorithm>
#include<cassert>
using namespace std;
const int MAX_SIZE = 1000;
const int MIN_SIZE = 1;
const int MAX_PRICE = 10000;
const int MIN_PRICE = 1;
main(){
int n,m;
while(cin >> n >> m && n){
int price[n];
assert(MIN_SIZE <= n && n <= MAX_SIZE);
... |
26caff3b306f38ee19a4c2db99e6a5401c7846cb | 28d25f81c33fe772a6d5f740a1b36b8c8ba854b8 | /IFHLC/IFHLC'3/A/main.cpp | ddfbee04e2392f4f7efad5d649ddec539628f493 | [] | no_license | ahmedibrahim404/CompetitiveProgramming | b59dcfef250818fb9f34797e432a75ef1507578e | 7473064433f92ac8cf821b3b1d5cd2810f81c4ad | refs/heads/master | 2021-12-26T01:18:35.882467 | 2021-11-11T20:43:08 | 2021-11-11T20:43:08 | 148,578,163 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | main.cpp | #include <iostream>
using namespace std;
int T, n, k, no;
int main(){
cin >> T;
while(T--){
cin >> n >> k;
bool found=0;
for(int i=0;i<n;i++){
cin >> no;
if((no+k)%7==0&&!found) {cout << "Yes\n";found=1;}
}
if(!found) cout << "No\n"... |
5795c07112efe9bbefb996681cf00fd100152d9d | b9c4a6bd1788c40f10eeda32bff73b60825a983c | /C++ Programs/leetcode-questions/Minimum Window Substring.cpp | 3b9c9620676134cb4fa9f4bfb98922318c02f8bc | [] | no_license | Lakshit-Chiranjiv/hacktoberfest2021-4 | 008c5bfe36906a8f7e3938df8645e7e9c4e42682 | 8ee733884bc6b172e9242bc90f4c65279df40435 | refs/heads/main | 2023-08-23T02:06:39.712540 | 2021-10-19T05:03:29 | 2021-10-19T05:03:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 990 | cpp | Minimum Window Substring.cpp | class Solution {
public:
string minWindow(string s, string t) {
unordered_map<char,int> mp;
for(auto ch:t)
{
mp[ch]++;
}
int dist=mp.size() ;
unordered_map<char,int> window;
int count = 0 , ll = 0 , rr = 0 ;
int l = 0 , r = 0 , ans = INT_MAX... |
c6b159d90bc3d414ed0d41f91e9f4b81198e2deb | dce0a22a899c20b85070a6f117b169bab3be848e | /Classes/Scene/NormalBattleScene.cpp | 12cdd9b3fa50f76d50ee1276a5d1d724ca015afd | [] | no_license | Ryougi-Shio/CHEN | 3d8d24717bf34551c85f898181267f2c325a1ea6 | 398555f129f4b6401b3d8abb78f8f5824b32ddfc | refs/heads/main | 2023-06-03T18:52:45.569102 | 2021-06-19T14:00:39 | 2021-06-19T14:00:39 | 363,114,561 | 5 | 6 | null | 2021-06-19T14:00:40 | 2021-04-30T11:06:40 | C++ | GB18030 | C++ | false | false | 12,532 | cpp | NormalBattleScene.cpp | #include"NormalBattleScene.h"
#include"Player.h";
#include"music/music.h"
#include"PlayerMove.h"
#include"TreasureBoxes.h"
#include"AllTag.h"
#include"Weapon.h"
#include"BossInterlude.h"
USING_NS_CC;
MusicManager* NormalBattleScene::getmusicManager()
{
return m_musicManager;
}
void NormalBattleScene::bindPlayer(Playe... |
f62ca8c52c48ff6ae5c25b9bae81809351bd2364 | 92359d30ffe2ecde047a4f42e6db9df8d722cda1 | /numCon/CalcDisplay.cpp | b3f94d1059c7a64f22a8f65348cf4e80cf7f1b49 | [] | no_license | avinal/numCon | 474eccfd08d2ecda5a28ccda824b2bbddf912460 | 4e4defb51329e38342f21e4dd51199148d682692 | refs/heads/master | 2021-07-04T03:45:02.454502 | 2019-06-28T00:05:18 | 2019-06-28T00:05:18 | 193,968,280 | 1 | 1 | null | 2019-06-28T00:16:27 | 2019-06-26T19:49:47 | C++ | UTF-8 | C++ | false | false | 275 | cpp | CalcDisplay.cpp | #include "CalcDisplay.h"
#include "converter.h"
using namespace System;
using namespace System::Windows::Forms;
void main()
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
numCon::CalcDisplay form;
Application::Run(%form);
}
|
e71ce1b00d1f32f57903e1b26ff5212ef6fd01a5 | 68d31a190fa86d6452405f6277f3ff2d384e3941 | /quickhull_any_dim/quickhull_any_dim_3.cpp | c8872523db0fb5065077518fcdba2aa492726e6d | [] | no_license | jkulesza/cgal_play | 39381a4c1d2e5ee00bd675448573253c08a791dc | 4c9c6721c1d4b893592dba11619e31aaf710083c | refs/heads/master | 2021-01-01T16:43:07.162201 | 2017-07-31T00:03:06 | 2017-07-31T00:03:06 | 97,900,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,450 | cpp | quickhull_any_dim_3.cpp | #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/convex_hull_3.h>
#include <vector>
#include <fstream>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Polyhedron_3<K> Polyhedron_3;
typedef K::Point_3 ... |
87efa5e203d79c0fe562b16291e986fa1dc4eaed | bce19d047cca665b1227d2c4caf94d16ed8ef54b | /Labyrinth/labyrinth.cpp | f80bf22a9ae9965e35b91a3f85a3f55d71b1db8d | [] | no_license | merckuriy/CppProjects | 9e325f2d49113d2e328104f587be0d6774d90ad4 | a23d09815d640dae0caa02d291c270002b0763ed | refs/heads/main | 2023-06-19T16:46:41.085681 | 2021-07-20T16:14:58 | 2021-07-20T16:14:58 | 387,846,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,916 | cpp | labyrinth.cpp | #include "stdafx.h"
#pragma comment(lib, "Winmm.lib")
//#include <Mmsystem.h> //mci
//#include <Winbase.h> //.ini
#include <fstream>
#include <conio.h>
#include "Labirinth.h"
#include "Hero.h"
#include "Menu.h"
using namespace std;
bool runGame();
bool runMenu();
void startGame();
void sh... |
7417c00239105ed495b184c452aac8b9115a7437 | 04b64b6ef60d9f344d54a68a51dda19fc5c5a0e0 | /cds-0.8.0/tests/unit/stack/stack_push_mt.cpp | e3541e304db68e721ede7aad10752bde0e76210a | [] | no_license | rrnewton/temp-data-structure-benchmark | 93923a6f6927d26b29b18765905a03f7c8e9b79a | 3fa73e15b08d6d869a6d200dbdabb784cdbb4c75 | refs/heads/master | 2020-04-13T05:15:10.869475 | 2012-08-10T21:02:39 | 2012-08-10T21:02:39 | 20,885,751 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,673 | cpp | stack_push_mt.cpp | /*
This file is a part of libcds - Concurrent Data Structures library
See http://libcds.sourceforge.net/
(C) Copyright Maxim Khiszinsky [khizmax at gmail dot com] 2006-2011
Version 0.8.0
*/
#include "cppunit/thread.h"
#include "stack/stack_type.h"
// Multi-threaded stack test for push operation
... |
483fe9d5878b56b42f961df887fa966240c7307c | 4837dd2ad0d7e70e7265f18aadfd58f8a006e3ff | /20181120/nvm提取相机轨迹.cpp | fd0e0f186a54cefbadf183f3a8bc32004caab337 | [] | no_license | wzxchy/code_c | 0c23d253e1a9ccac74649e82c391398bb904dcd8 | 39c4de815dd1344a5e1e15e55d8f16aea79bcab2 | refs/heads/master | 2020-07-27T19:18:39.421816 | 2019-09-18T03:34:17 | 2019-09-18T03:34:17 | 209,194,387 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,892 | cpp | nvm提取相机轨迹.cpp | #include <iostream>
#include <string.h>
#include <stdio.h>
#include <string>
#include <fstream>
#include <algorithm>
#include <vector>
#include <cmath>
using namespace std;
const int maxn = 1e6+5;
int flag[maxn];
int cnt[maxn];
int main()
{
memset(cnt,0,sizeof(cnt));
ifstream ifile;
//ifile.open("E:\\data\... |
e4740c8e46ac41e6c83892ca97fd59fd011c41f7 | d1895a5024d1a319838fa66c8072379bfb3fb811 | /xlFunction/object/leg/xlInitiateFloatLegUnitedStates/register_xlInitiateFloatLegUnitedStates.hpp | 4b83836503ec1d67c9662b6ec42fb3b085c79b51 | [] | no_license | vermosen/xlObjectTools | 9b5b47e4a0176bf34d92567142d26656a5ef7985 | e43210c73076b7fb226d70716e9946eba72b1edd | refs/heads/master | 2021-07-03T17:43:32.741980 | 2020-10-28T16:33:15 | 2020-10-28T16:33:15 | 18,273,901 | 4 | 2 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,474 | hpp | register_xlInitiateFloatLegUnitedStates.hpp | /*
* xlObjectTools
*
* Created by Jean-Matthieu VERMOSEN on 31/05/09
* Copyright 2009. All rights reserved.
*
*/
#include <xlsdk/xlsdkdefines.hpp>
inline void registerxlInitiateFloatLegUnitedStates(const XLOPER & xDll) {
// Enregistre la fonction xlInitiateFloatLeg
Excel(xlfRegister, 0,... |
6bbf8c80dd9013d9711833ba9570cfc3a17c2da7 | 368691750f71a28de79c4c5c72516c0c623aebf4 | /src/c_practise_C练习/just_play/w2.cpp | 057b97a3f1c36199fc6410e9a14cece70a2a2270 | [
"Apache-2.0"
] | permissive | huangrichao2019/ZJUT-958-C-Plus | 654bc5c6458d81ee27d1db9a1b6f277e717d26c0 | 134ff23a237a8ab80a3e3306e8e2eb69bd55d4f5 | refs/heads/master | 2020-05-31T17:23:23.708053 | 2019-07-20T12:25:51 | 2019-07-20T12:25:51 | 190,405,906 | 1 | 0 | null | 2019-06-23T11:14:21 | 2019-06-05T14:02:45 | C | UTF-8 | C++ | false | false | 719 | cpp | w2.cpp | //
// main.cpp
// test1
//
// Created by 黄日超 on 2018/5/22.
// Copyright © 2018年 黄日超. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
int a,b,c,aa,bb,cc;
void sort(int ,int ,int );
cout<<"input three numbers and sort them little to large:";
... |
3540df4c2fd79d8956fe0456d15c2a8ea2f3c329 | 48d4b7004f7e0c7b27ca8dbe35eeee24a8253905 | /class.cpp | 7bf588d3a272754623d0cccaade521a232993544 | [] | no_license | vapvin/C | 5545406708dcaf9b777d80fad7b320f670764498 | 9d59d74a9ccd8d88daa2ada4957cf1d9e9bb1b4e | refs/heads/master | 2023-01-21T12:11:14.883698 | 2022-02-07T01:56:44 | 2022-02-07T01:56:44 | 231,113,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 325 | cpp | class.cpp | #include <iostream>
#include <string>
using namespace std;
class Student {
private:
string name;
int score;
public:
Student(string n, int s) {name = n; score=s;}
void show() { cout << name << ":" << score << "점\n";}
};
int main(void) {
Student a = Student("Vins", 100);
a.show();
return 0... |
ad5a6ed95d04d9e47cbc6a4367981c4d991fcd49 | fcd04e0604b35151cd0d913ddf72ad70606c2b69 | /ASSAR.h | 72bbc223c59dafddb45ab9e0f92ff04aeb46cf66 | [] | no_license | xperjon/Assar-cpp | 5ae82ed84cd3e394dbe710c46683e02a09f5ce6e | 253a1bc96e881badb7764d03abbf25b35585c930 | HEAD | 2016-09-10T21:33:52.201823 | 2015-02-18T19:50:49 | 2015-02-18T19:50:49 | 25,877,059 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,570 | h | ASSAR.h | // ASSAR.h : main header file for the ASSAR application
//
#if !defined(AFX_ASSAR_H__9FDB0BC6_AE31_4417_8C9A_7BDB68F7F6EA__INCLUDED_)
#define AFX_ASSAR_H__9FDB0BC6_AE31_4417_8C9A_7BDB68F7F6EA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
... |
36252e26b7a8d2bebcd5582a5ca5fc7a6e1c0e19 | 9f9660f318732124b8a5154e6670e1cfc372acc4 | /Case_save/Case10/case7/1600/k | 869ed9bd80bb4d2733bd6be6d7301ff156de4037 | [] | no_license | mamitsu2/aircond5 | 9a6857f4190caec15823cb3f975cdddb7cfec80b | 20a6408fb10c3ba7081923b61e44454a8f09e2be | refs/heads/master | 2020-04-10T22:41:47.782141 | 2019-09-02T03:42:37 | 2019-09-02T03:42:37 | 161,329,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,545 | k | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
cd7bee2aa66e50b7fcfbdf6c8582bebfbb1c76ff | d3e0c4004c2b071aebedcfa216fbb0c719dc7d77 | /inputmanager.cpp | ada33827a7f0c2db656b562c14572cc9031f7e42 | [
"MIT"
] | permissive | lewisclark/zombie-game | 38efd5dd228ba4476ab91b37a23361a2aa9af803 | fdfefc312aaac4848a025c150e0862ca37a71fca | refs/heads/master | 2021-10-11T00:28:40.582175 | 2019-01-19T21:33:50 | 2019-01-19T21:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,458 | cpp | inputmanager.cpp | /* MIT License
Copyright (c) 2019 Lewis Clark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... |
4a930e12b9db7c5ce84bb4eeab5745599b3456b9 | b902ac842165b5482876ec5b7907ac4e40775fa9 | /Widget/addcomputermenu.cpp | f4b09fbf74cd1a61fc39218dcf2c1abafed03df7 | [] | no_license | ladanviniblocked/VLN1-Hopur-5 | 821917808e31bacfeafbdf4db058162300a35170 | 48dfa4537f384a69df1f90383ff5f41c59111fc3 | refs/heads/master | 2021-06-09T12:31:53.157267 | 2016-12-16T14:19:26 | 2016-12-16T14:19:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,675 | cpp | addcomputermenu.cpp | #include "addcomputermenu.h"
#include "ui_addcomputermenu.h"
AddComputerMenu::AddComputerMenu(QWidget *parent) :
QDialog(parent),
ui(new Ui::AddComputerMenu) {
/* _dbpath = QCoreApplication::applicationDirPath() + "/create.sqlite";
_cs = CompService(_dbpath);
_ps = appservice(_dbpath);
_ls = L... |
e7e03c0820d850f974da890fd4a63c80b933ffac | 66d1cfc53f88bff8ef3a6cf7d8a7833f5bac6bfd | /PlayerStrategies.cpp | bada2ebfe56dd1acfd0b62b1dc06a641e7760416 | [
"MIT"
] | permissive | dadaatom/risk-warzone-game | ca96dd32ae7e9dbd472e67b3ace4746c893fcdb1 | ae541c3c930645ca0484a3a03bd09f18a500766c | refs/heads/main | 2023-04-11T21:03:51.040218 | 2021-05-19T16:56:08 | 2021-05-19T16:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,832 | cpp | PlayerStrategies.cpp | #include "PlayerStrategies.h"
using std::cout;
PlayerStrategy::PlayerStrategy(Player* player) {
this->player = player;
}
PlayerStrategy::PlayerStrategy(PlayerStrategy& PS)
{
this->player = PS.player;
}
vector<Territory*> PlayerStrategy::sortTerritories(vector<Territory*> list) {
vector<Territory*> sortedList = li... |
e8a0fd91b62475a3cf4a8835fe30ee5d93af51d1 | 26c52dcbc5095b64e51a5fdf2e08e29c065ad3f3 | /cpsc457/asg2/scan1.cpp | d78f97a9f3a2417a1ebfe9866af8bec2002f5276 | [] | no_license | ScanonA/HW | d17dba390f2ce5ea54c456fdca0ba96c6661f482 | 453c7b4335b03309ca4cf916fca8080381f917d1 | refs/heads/master | 2020-04-24T12:19:44.730119 | 2019-07-02T00:54:31 | 2019-07-02T00:54:31 | 171,951,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,288 | cpp | scan1.cpp | /****************************
Last Name: Kharfan
First Name: Lamess
Student ID: 10150607
Course: CPSC 457
Tutorial Section: T02
Assignment: 2
Question: 8
File name: sum.c
To compile: gcc sum.c -l pthread -o sum -lm
To run: ./sum <filename> <T>
*****************************/
#include <pthread.... |
70439c5dd7aa7f88d785847fe51948ae41bb84d9 | 19ed4c1bb2c4386eb98201e1b50ffc91549174dc | /Source/Core/Number/NumberHalf.h | b666d78b653d8eeb9357a864993acbac4d214892 | [] | no_license | mRooky/Rooky | 81742fffd72700b3423802702ffc9e5658151f75 | 401bd515e42873b268395c1bc96fbb4982c83875 | refs/heads/master | 2020-04-19T11:43:43.985899 | 2019-08-27T06:27:46 | 2019-08-27T06:27:46 | 168,174,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,020 | h | NumberHalf.h | /*
* RenderHalf.hpp
*
* Created on: Apr 2, 2019
* Author: rookyma
*/
#ifndef SOURCE_CORE_GHI_RENDERMATH_RENDERHALF_H_
#define SOURCE_CORE_GHI_RENDERMATH_RENDERHALF_H_
#include "NumberFloat.h"
namespace Number
{
class Half
{
public:
Half(float value = 0.0f)
{
SetFloat(value);
}
Half(const Half& oth... |
362459d2289c096bf01292e4b23ad1fd1e39de5d | 5de361652aef8e153d1bda9aff5ff6211f59516c | /UVA/UVA12405.cpp | bb0267702bcc9d1220e20a033991dd4950df37fe | [] | no_license | carlosngo/CompetitiveProgramming | bcffb49aaf8a9d30d86b0233dbb8b88b203d105b | 82f6186d8d15952063de001213d8c97f722ef263 | refs/heads/master | 2020-05-17T14:55:31.544504 | 2020-02-01T14:35:00 | 2020-02-01T14:35:00 | 183,777,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | cpp | UVA12405.cpp | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <utility>
#include <string>
#include <cstring>
#include <cmath>
#include <bitset>
using namespace std;
typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef long long ll;
int main() {
FILE *pFile = fop... |
5e53c15bb66d38784d58a4fb48e61146e26ec42f | bf007dec921b84d205bffd2527e376bb60424f4c | /Codeforces_Submissions/991D.cpp | e25e15417fbf30701d8b7f9878166fbd4f0ef9e6 | [] | no_license | Suvrojyoti/APS-2020 | 257e4a94f52f5fe8adcac1ba4038cc66e81d9d26 | d4de0ef098e7ce9bb40036ef55616fa1f159f7a5 | refs/heads/master | 2020-12-21T19:27:59.955338 | 2020-04-22T13:27:49 | 2020-04-22T13:27:49 | 236,534,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,424 | cpp | 991D.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
char l[105],arr[2][105];
int i,c=0,k=0;
cin>>l;
arr[0][0]='X';
arr[1][0]='X';
for(i=0;l[i]!='\0';i++)
{
arr[0][i+1]=l[i];
k++;
}
arr[0][k+1]='X';
arr[1][k+1]='X';
cin>>l;
for(i=1;i<=k;i++)
{
... |
5cead052b6f9fd846053dd5020b8e36907263b20 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/wmi/wbem/providers/msiprovider/dll/msiprov.cpp | 70e0fc5a8afab5a580a6c7de36b9dd87611f0688 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 28,854 | cpp | msiprov.cpp | //***************************************************************************
//
// MSIProv.CPP
//
// Module: WBEM Instance provider for MSI
//
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
//
//***************************************************************************
... |
3caf715a05c92baaf8d57ba5d101769108f7563b | 33fb48fea58ed38ad9a9479dbad3075227b1bbea | /Code/Game/Entity.cpp | a9fbcb2da6fe3e947610307c8cacda0ca33664e6 | [] | no_license | pronaypeddiraju/ProtoPhysX | e73a0441f03199e8f00e8d6305676f4d418a5847 | c132714081e874712b802bf19ae2aaa4b778fb6d | refs/heads/master | 2020-05-31T03:45:38.849966 | 2019-10-16T05:23:22 | 2019-10-16T05:23:22 | 190,086,152 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | cpp | Entity.cpp | #include "Game/Entity.hpp"
void Entity::Render()
{
//m_game->
}
void Entity::RunFrame()
{
}
void Entity::Update(float deltaTime)
{
UNUSED (deltaTime);
if(m_position.x >= 0.f && m_position.x <= 200.f && m_position.y >= 0.f && m_position.y <= 100.f)
m_isOffScreen = false;
else
{
m_isOffScreen = true;
}
}
... |
1fb31520664f5e43a6ed8a72f27a3865e0e12ec7 | 8ab670bb0d19d1b9bf409910a96dfbee1113bd53 | /osquery/logger/logger.cpp | 1865908887ea461048bf24d3272c882cffe37152 | [
"BSD-3-Clause"
] | permissive | zglx2008/osquery | 2c36865b68384f2528374de65d02d2766f2980bf | dd7f8b6fd193c331eece0d172dd0d804fd332598 | refs/heads/master | 2021-01-16T23:14:03.850317 | 2015-02-05T04:46:37 | 2015-02-05T04:46:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,121 | cpp | logger.cpp | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <... |
f850ef715ed38ae6560c9b6dc08f9323cefac3a3 | cecfda84e25466259d3ef091953c3ac7b44dc1fc | /UVa Online Judge/volume117/11742 Social Constraints/program.cpp | 09d37cd332f9c3440e60d8b231e45fa138a4b0cf | [] | no_license | metaphysis/Code | 8e3c3610484a8b5ca0bb116bc499a064dda55966 | d144f4026872aae45b38562457464497728ae0d6 | refs/heads/master | 2023-07-26T12:44:21.932839 | 2023-07-12T13:39:41 | 2023-07-12T13:39:41 | 53,327,611 | 231 | 57 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | cpp | program.cpp | // Social Constraints
// UVa ID: 11742
// Verdict: Accepted
// Submission Date: 2017-11-11
// UVa Run Time: 0.000s
//
// 版权所有(C)2017,邱秋。metaphysis # yeah dot net
#include <bits/stdc++.h>
using namespace std;
struct constraint
{
int a, b, c;
} constraints[24];
int main(int argc, char *argv[])
{
cin.tie(0), c... |
f13324ff369faa7c4aa3233a86db479c0df45f6a | fb4eacf0a4608b10f49721963f81756959b03305 | /dsaclarno.20.cpp | 6eff54d759062ae88f97fca26d8635da359e2388 | [] | no_license | abhiyankmishra/data-structure | 8de92ba1574ac0ec90723339cd9c0d6e9a4056fd | 1165d797b492a924de2e5e22a52f59c4338797b8 | refs/heads/main | 2023-04-03T03:01:47.934786 | 2021-04-16T19:42:37 | 2021-04-16T19:42:37 | 358,700,377 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | cpp | dsaclarno.20.cpp | // ############solved on leet code
class Solution {
public:
void nextPermutation(vector<int>& a) {
int idx=-1;
int n=a.size()... |
c251ac39579f16295e2b347b3c2bad63efe08988 | 319a96494cb60f76baeb7db98b284169729f700f | /src/http_message.cpp | eabf212ea958da12cd79a9263888227c69d3606a | [
"BSL-1.0"
] | permissive | splunk/pion | d082bfd112ab515971a2217103c7d130d3e9031d | e5a258b271ed25be5e08b729568927febc288b41 | refs/heads/develop | 2023-08-13T03:54:30.761585 | 2020-01-31T00:15:56 | 2020-01-31T00:15:56 | 5,138,891 | 209 | 72 | BSL-1.0 | 2020-04-09T07:57:15 | 2012-07-22T03:57:23 | C++ | UTF-8 | C++ | false | false | 8,734 | cpp | http_message.cpp | // ---------------------------------------------------------------------
// pion: a Boost C++ framework for building lightweight HTTP interfaces
// ---------------------------------------------------------------------
// Copyright (C) 2007-2014 Splunk Inc. (https://github.com/splunk/pion)
//
// Distributed under the ... |
912dd919ea65b5394139d47e4babe44b72ca49d5 | e8a3c0b3722cacdb99e15693bff0a4333b7ccf16 | /Uva Oj/11609 Teams.cpp | 032219d8a0b73dd023fdc44ba259fcce57212ad8 | [] | no_license | piyush1146115/Competitive-Programming | 690f57acd374892791b16a08e14a686a225f73fa | 66c975e0433f30539d826a4c2aa92970570b87bf | refs/heads/master | 2023-08-18T03:04:24.680817 | 2023-08-12T19:15:51 | 2023-08-12T19:15:51 | 211,923,913 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp | 11609 Teams.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
ll bm(ll n)
{
if(n == 0)
return 1;
if(n % 2 == 0){
ll p = bm(n/2);
return ((p % mod) * (p % mod))%mod;
}
else{
return (2 * (bm(n - 1) % mod)) % mod;
}
}
int ... |
3ce66491b2c7f4cd263f94d63b78e9a12b5592a1 | 443437c7a9feef8d55ca133986c9298c23bfbbeb | /cpp_practice/prog04.cpp | ab12f60fae64b64d2a579a27471d3871ab304446 | [] | no_license | jj1and/program_practice | 8ed65b069ce3a0c37910428423d8fcf2561e3f38 | 3a6015b0915635886fc4e77ba30fd3eed891ee8f | refs/heads/master | 2020-03-17T09:43:28.934488 | 2018-10-27T13:58:53 | 2018-10-27T13:58:53 | 133,485,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | cpp | prog04.cpp | #include<iostream>
using namespace std;
class base{
protected:
int a, b;
public:
void setab(int n, int m){a =n; b=m;};
};
class derived : public base{
private:
int c;
public:
void setc(int n){c=n;}
void showabc(){
cout << a << ' ' << b << ' ' << c ... |
d4c7182d854e983d99fcd1b90963fb76439b334d | 188db56162f616f5ed2972ab5f6c594c1793b5db | /src/c++/include/io/FastqLoader.hh | 9777bfda25f2f634acc1869a8d797bfc452c8872 | [
"BSD-3-Clause",
"BSL-1.0",
"BSD-2-Clause"
] | permissive | simplelive/isaac_aligner | c1833d8a14c3ffd75f611b9e4df8b609269433a1 | fd092ec20d82548a90c53eafdaed7d617328a6a4 | refs/heads/master | 2021-01-18T06:39:40.867905 | 2015-04-07T10:12:05 | 2015-04-07T10:12:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,606 | hh | FastqLoader.hh | /**
** Isaac Genome Alignment Software
** Copyright (c) 2010-2014 Illumina, Inc.
** All rights reserved.
**
** This software is provided under the terms and conditions of the
** BSD 2-Clause License
**
** You should have received a copy of the BSD 2-Clause License
** along with this program. If not, see
** <h... |
eafdaef671e369dbd10a3488ac37b8e734112ef9 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-securityhub/source/model/Adjustment.cpp | da8c10b68681e982dd0721bdab95314f3fd75574 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 1,218 | cpp | Adjustment.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/Adjustment.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namesp... |
90f48c5ed83178ea652b4a96ae66de538b768a8c | 539bd4489cc30c25a806b2de9816ca354ebb4abf | /include/hypergraph/VertexNode.hpp | a28ffbed785b56c589ea50c809a8eb81f520ca37 | [
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | kittobi1992/parkway | f4debf2826f73c5df55572a806d907f81ddb9f52 | 6501c96268acc1997894bb577cbca0e21c5e2ac8 | refs/heads/master | 2021-05-18T15:04:36.085704 | 2020-03-31T10:35:29 | 2020-03-31T10:35:29 | 251,291,502 | 0 | 0 | null | 2020-03-30T11:59:54 | 2020-03-30T11:59:53 | null | UTF-8 | C++ | false | false | 434 | hpp | VertexNode.hpp | #ifndef _VERTEX_NODE_HPP
#define _VERTEX_NODE_HPP
// ### VertexNode.hpp ###
//
// Copyright (C) 2004, Aleksandar Trifunovic, Imperial College London
//
// HISTORY:
//
// 30/11/2004: Last Modified
//
// ###
#include "data_structures/dynamic_array.hpp"
typedef struct VertexNode {
int vertexID;
VertexNode *next;
} ... |
1437c03000f7a9fc089e15eeada5932f9993403c | be21b569d9a0cbe5736caf1a205faa3f5c2f515d | /Project2/LabeledGraph.cpp | 49f9f24e667d6e76a88c0a1e0dff2d29034c2669 | [] | no_license | nusratha2016/CS312 | a9939e8cbc2d74086ad8cf05ba952096d0e469cc | 1f3ecde5a2c3109e06345c459b548ff068ccb1e2 | refs/heads/master | 2020-08-31T05:54:39.580129 | 2020-03-20T01:09:07 | 2020-03-20T01:09:07 | 218,613,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,672 | cpp | LabeledGraph.cpp | #include <set>
#include <map>
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
#include "LabeledGraph.h"
using namespace std;
void LabeledGraph::add_vertex(string vlabel) {
labels.push_back(vlabel);
indexedLabels.insert(pair<string, int>(vlabel, V()));
set<int> s;
vertices.push_bac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.