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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eee0fbdc812b77eb40d3317b7204c445ab4b19f4 | 98a28d1727be1ad2cdc60aa08e6c1a48c42c950b | /source/utilities/tarjan.hpp | a5cf968feed218f8541e99e57a8d8da93d48c372 | [
"BSD-3-Clause"
] | permissive | coder0xff/Plange | 154b926fa9be2bf52d3575272548cedd7e3cb9f3 | 26535f6c72d7ab0aaf753218ddbf3f4ad16283f7 | refs/heads/master | 2021-01-24T06:02:47.900282 | 2020-06-08T16:02:34 | 2020-06-08T16:02:34 | 45,961,377 | 16 | 5 | BSD-3-Clause | 2018-11-06T00:40:22 | 2015-11-11T05:17:50 | C++ | UTF-8 | C++ | false | false | 423 | hpp | tarjan.hpp | #ifndef INCLUDED_UTILITIES_TARJAN_HPP
#define INCLUDED_UTILITIES_TARJAN_HPP
#include <functional>
#include <vector>
//See https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm
std::vector<std::vector<size_t>> tarjan(size_t const vertexCount, std::function<std::vector<size_t> (size_t)> cons... |
675beaa166aef2423c3cb9f0316fe710aa7c61e6 | 547a8e01b0b9748090b727a3cb0484b6245f9a23 | /uri/2904.cpp | 3eaa2dac000f2f5fbf144542dd6f3a2295d8d85c | [] | no_license | qf-jonathan/competitive-programming | 0dac39e8bf47c2cb27d630bcbf971e4b83b8c075 | cae97cb2c52433b4a26917dcb8293893c82daaa6 | refs/heads/master | 2021-12-26T13:27:17.067149 | 2021-12-23T04:32:58 | 2021-12-23T04:32:58 | 180,682,665 | 0 | 2 | null | 2021-11-01T01:26:36 | 2019-04-11T00:11:44 | C++ | UTF-8 | C++ | false | false | 736 | cpp | 2904.cpp | // Problem link: https://www.urionlinejudge.com.br/judge/en/problems/view/2904
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, a;
long long sm = 0;
set<long long> st;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
sm += a;
st.insert(sm);
}
if (... |
46ee08ca5623ec95dd8ce2b6d705dfdef28e7ea8 | f0b7bcc41298354b471a72a7eeafe349aa8655bf | /codebase/apps/mdv_utils/src/MdvMosaic/OutputFile.cc | 0860b114978bf57bbd8fb7b6d34dbd063768cd81 | [
"BSD-3-Clause"
] | permissive | NCAR/lrose-core | 23abeb4e4f1b287725dc659fb566a293aba70069 | be0d059240ca442883ae2993b6aa112011755688 | refs/heads/master | 2023-09-01T04:01:36.030960 | 2023-08-25T00:41:16 | 2023-08-25T00:41:16 | 51,408,988 | 90 | 53 | NOASSERTION | 2023-08-18T21:59:40 | 2016-02-09T23:36:25 | C++ | UTF-8 | C++ | false | false | 8,538 | cc | OutputFile.cc | // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1990 - 2016
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Bo... |
d7174b700b1fb0e0f9576b032d064aaf95cbb57e | 0afea3ca82b733d0fba977561da8900cf73e8f0b | /src/PreviewPage.cpp | da50e83249a07cb901a937f735ba899c1397da64 | [
"MIT"
] | permissive | lnrsoft/qtc-markview | d8c751329443a2ef9e0c971f5492d7cd4004da56 | c5c1547210cc153ee8d5e6d0c7e55fdad47cab14 | refs/heads/master | 2020-03-13T09:42:17.589476 | 2018-03-29T19:06:56 | 2018-03-29T19:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | PreviewPage.cpp | #include <QDesktopServices>
#include "PreviewPage.h"
PreviewPage::PreviewPage (QObject *parent) : QWebEnginePage (parent) {
}
bool PreviewPage::acceptNavigationRequest (const QUrl &url, QWebEnginePage::NavigationType /*type*/,
bool /*isMainFrame*/) {
QDesktopServices::ope... |
1460d78329b02463a82ec1f46def10e6cfa05be6 | 1a3d9fda52c764cdb2988f79d13861ae7151ca25 | /source/Utils/include/Utils/Math/FixedPoint.h | b787df742dadde844e775aaa3077064d53062fb1 | [
"BSD-3-Clause"
] | permissive | mamaheux/apb | 3859ddd57b3fad2569c3cc08e2dc994b3587ec0b | 44e3a80c3c67c3516a7a1ac046c666fd7baafb4a | refs/heads/main | 2021-06-23T15:11:14.619016 | 2019-01-03T22:10:42 | 2019-01-03T22:10:42 | 142,214,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,158 | h | FixedPoint.h | #ifndef FIXED_POINT_H
#define FIXED_POINT_H
#include <Utils/Bit/BitMask.h>
#include <cstddef>
#include <cstdint>
#include <iostream>
#include <type_traits>
namespace apb
{
template <std::size_t IntegerSize, std::size_t FractionSize>
class FixedPoint
{
public:
typedef typename std::conditional... |
dd95b785d9fc83e01137b5342d9e00907721fdce | 52460598dcdbab9cc6d7e0a48c1b62e73126d3e6 | /SpaceRocksFromSpace/game/KioskHelper.h | 6acbf0a73d6eccff84343cea60bd7974779357d7 | [] | no_license | seggiepants/SpaceRocksFromSpace | 74bca7d8e822207251d9642d3e74eaccdb3f7f51 | ed4f655450217302049c337e9bf143b624fd8068 | refs/heads/master | 2023-07-28T01:54:43.904744 | 2021-09-14T04:57:45 | 2021-09-14T04:57:45 | 387,280,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | h | KioskHelper.h | #pragma once
#ifndef __KIOSK_HELPER__
#define __KIOSK_HELPER__
#include <string>
#ifdef KIOSK_MODE
namespace game
{
class KioskHelper
{
public:
std::string GetHighScores();
void SetHighScores(std::string value);
static KioskHelper* Instance() {
if (!instance) {
instance = new KioskHelp... |
94547bb2cdf3df5d41c9ffea1e083f5ba5fea7b2 | 5fb1eceef8adf85899ce2b5aa9f4d9c2d4a49d6d | /C++/Templates/DisjointSet.cpp | ff8087e4e710ed340a615b8e61a1689a23c0d26e | [] | no_license | alexz429/CompetitiveProgramming | e52346186aad9cf76b9b1b35b00527175a5f0f9a | 474475d053c93b2038b52e58299caadbfc4fa379 | refs/heads/master | 2022-01-19T20:18:52.373649 | 2022-01-03T23:34:00 | 2022-01-03T23:34:00 | 184,585,704 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | DisjointSet.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int parents[5];
int findParent(int a){
if(parents[a] == a)return a;
return parents[a] = findParent(parents[a]);
}
bool isConnected(int a, int b){
return findParent(a) == findParent(b);
}
void merge(int a, int b){
parents[findParent(... |
e5f138429ab43d0f448822efa1d79e4d9d681ed5 | 880c39ed090a9d0fa07214fe9e56a519c26741e1 | /kernel/processControlBlock.cpp | 2872d2dc3468500bcc73f78d69b6226b20c08c65 | [] | no_license | Munodi/toyOS | 2238455dde8f3668dd95d0f2f437f5bfc797f347 | 62a8d77abe6365c8bf004c121c63d680c72425e8 | refs/heads/master | 2021-05-04T10:18:53.031381 | 2018-08-19T11:15:08 | 2018-08-19T11:15:08 | 55,147,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | processControlBlock.cpp | /*#include <toyOS/processControlBlock.hpp>
#include <toyOS/essentialServers.hpp>
pid_t processControlBlock::choosePid()
{
static pid = 1;
std::size_t i = 0;
for(;;)
{
for(i = 0; i < processControlBlock::allProcesses; i++)
{
if(processControlBlock::allProcesses[i].pid == pid)... |
82cda80f9ee39acec8d65c1a4e7a5c8559915ca8 | 60359e93b6a33aefe6c1222a7bc09c84085ae07c | /sdk/Internet/OPenPlatform/OPShareAlbum.h | f34568c73e81ee64f025ddc1e2ab2c928e9288cd | [] | no_license | 15831944/ncdb | 6d57eb9adc5eb4100ebde71e1421eb2e97ee39d9 | 5dabeaa0692af9bede5a4878bf5307cda667538f | refs/heads/master | 2021-07-05T11:03:47.811347 | 2017-09-29T09:23:47 | 2017-09-29T09:23:47 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,242 | h | OPShareAlbum.h | #pragma once
#include "OPSharePA.h"
#include "OpenPlatformDef.h"
#include "ResCommon.h"
template<class AlbumList>
class COPShareAlbum:
public COPShareBase
{
public:
COPShareAlbum(void);
~COPShareAlbum(void);
public:
//Ïà²á·ÖÏí
bool QuestAlbumInfo(int nNoUse = 0);
template<class CBObj, class C... |
e0ff32070b2d22414907a5f658b2889247a132df | 4bf4d0d02cdddc354de34062df2d27182e1053d1 | /Codeforces/1406B.cpp | 9cb822b911f6201f7559b0bcc9138e41c7db4704 | [
"MIT"
] | permissive | DT3264/ProgrammingContestsSolutions | d61fbac7145d82b3262c41a880ac89a1a813f231 | e94f344602b22d84751b1e0503bb6fbe389dcf77 | refs/heads/master | 2022-02-23T02:37:43.144589 | 2022-02-06T21:47:53 | 2022-02-06T21:47:53 | 160,301,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,342 | cpp | 1406B.cpp | // Problem : B. Maximum Product
// Contest : Codeforces - Codeforces Round #670 (Div. 2)
// URL : https://codeforces.com/contest/1406/problem/B
// Memory Limit : 512 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include<bits/stdc++.h>
#define y1 yy
#define f first
#define s... |
c17c1e235b17c767e966dd965224ab7441e33a18 | 556f436c7780e5f1888864547ba7d450d9a8a0cc | /asdbCAR/setup.ino | fd3b3012e692e6500354a2610e2631ab8eb5e58a | [] | no_license | jdice/asdb | ae81e39d69ccfe443f1ead42a7c0924786662f0c | 861bff083422bc2e78c5f6daebabde7c4328d680 | refs/heads/master | 2021-01-23T15:42:04.825660 | 2013-07-08T01:56:07 | 2013-07-08T01:56:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | ino | setup.ino | void setup(){
// Serial.begin(9600);
Serial.begin(57600);
Serial2.begin(115200); // GPS
// Serial3.begin(57600); // XBee
Wire.begin();
imuSixDOF.init();
compass = HMC5883L();
compass.SetScale(1.3);
compass.SetMeasurementMode(Measurement_Continuous);
debugInfo = "asdb is running.";
steeringServo.atta... |
5b30f561ad92baddabd38e2fedcc8b4aff33e4c7 | 383a7f7ba693f695146d64652545af6520acdc1c | /c++/stack/main.cpp | ec8ddc1c68a940a9393e8aeb9dc2b018a982ba49 | [] | no_license | kunal266/DataStruct_algo | 3d0ea78edd71609b091f03b80bed86dd881b95e3 | 05579a2525b61afe07bd6ab0b6105d511bcc60c9 | refs/heads/master | 2022-12-27T00:04:40.608090 | 2020-10-02T06:26:50 | 2020-10-02T06:26:50 | 254,811,543 | 0 | 1 | null | 2020-10-02T06:26:51 | 2020-04-11T06:59:04 | null | UTF-8 | C++ | false | false | 1,525 | cpp | main.cpp | #include <iostream>
#include <cstring>
using namespace std;
struct stack {
char *arr ;
int top;
int size;
};
//void create(struct stack *st){
// cout<<"enter the size of the stack \n" ;
// cin>>st->size ;
// st->top = -1 ;
// st->arr = new int[st->size];
//}
void display(struct stack st){
... |
72b4dc61d23be3e53abaf03f4626346c43dcb2ec | 5bec212ae9f4b10008d10a26051d6ae9a5b80c2e | /OOP_Lab_04/OOP_Lab_04/AdvertisingTV.h | a87956d4f17eb5d1ca17f7bbeb5ae7ae78fa68a0 | [] | no_license | ivannatadash/Lab_OOP_01 | c5b684ebe1cb95b0e58fbfa0426ac6d4d2e3ae90 | cfd67ac69dc428fef3710fc400adfc342b0ab4b2 | refs/heads/master | 2021-02-18T21:43:27.209939 | 2020-10-26T17:24:19 | 2020-10-26T17:24:19 | 245,240,823 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,004 | h | AdvertisingTV.h | #pragma once
#include "Advertising.h"
#include <iostream>
using namespace std;
class AdvertisingTV :public Advertising
{
private:
char* tv_title;
double video_duration;
int impressions_per_week;
double cost_per_minute;
public:
AdvertisingTV(
const char* customer, //замовник(назва фірми... |
3188684fc18fa187e984c0d0315b4f252e61f556 | 6405afd77b729254442bfa07e6fbe8ab748ad814 | /QAsys/qtxiagao/signup.cpp | e5fbfb0e9701e793de3863dfe82815ac10f91f0c | [] | no_license | YiwenSu/QAsys | a44872daa9f8e0a8655660cbfee7f5b450e35d7b | 6ae3257891e18dc2e665f7263a16e6efd5f6616e | refs/heads/master | 2020-04-01T19:41:13.999075 | 2018-10-18T05:10:56 | 2018-10-18T05:10:56 | 153,566,562 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,218 | cpp | signup.cpp | #include "signup.h"
#include "ui_signup.h"
signup::signup(QWidget *parent) :
QWidget(parent),
ui(new Ui::signup)
{
ui->setupUi(this);
this->resize(500,400);
}
signup::~signup()
{
delete ui;
}
void signup::on_pushButton_clicked()
{
user u;
userlist ulist;
ulist.outofuserfile();
Q... |
8a859456cd587f914ef09bbb29ba4c273dcc1ae9 | c76dc04ab30acb663990aeff842436f2d4d1fcb5 | /net/url_request/url_fetcher_impl_unittest.cc | b3d6336d590264119270936aa338898ac727ba1f | [
"BSD-3-Clause"
] | permissive | tongxingwy/chromium-1 | 1352c851a18a26645d69741ed6fc540fabcc862e | 9e3ebd26fa69a2e2fdf5d5f53300bbf1e2f72b8c | refs/heads/master | 2021-01-21T03:09:12.806702 | 2015-04-30T17:32:56 | 2015-04-30T17:33:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 50,712 | cc | url_fetcher_impl_unittest.cc | // Copyright (c) 2012 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 "net/url_request/url_fetcher_impl.h"
#include <algorithm>
#include <string>
#include "base/bind.h"
#include "base/files/file_util.h"
#inclu... |
0e8056ac4687b1a9a9ce6b7c02834a2f26d35ff4 | e3c03bb58f899934b555f75eec50ca3a93bd2227 | /below2.1/backspace.cc | 8e0c54ad37cd8136b84b8146f0bd31d3695316a9 | [
"Apache-2.0"
] | permissive | notwatermango/Kattis-Problem-Archive | 62ab0ab85abc2d86d8b3c96ca6cf652eb9242c0a | bce1929d654b1bceb104f96d68c74349273dd1ff | refs/heads/main | 2023-07-30T09:52:55.535275 | 2021-09-22T13:24:03 | 2021-09-22T13:24:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cc | backspace.cc | #include <iostream>
#include <stack>
using namespace std;
int main()
{
stack<char> wow;
string s;
cin >> s;
for (int i = 0; i < s.length(); i++)
{
if (s[i] == '<')
{
if (!wow.empty())
{
wow.pop();
}
}
else
{... |
156d5fd972196af7f854e7692bf299241d84e7bd | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/taocpp-json/include/tao/json/binding/versions.hpp | 5759c5e93b7310521e239e8ed33b59ccf5a64141 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"BSL-1.0",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"GPL-2.0-only",
"CC0-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 4,118 | hpp | versions.hpp | // Copyright (c) 2018-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_BINDING_VERSIONS_HPP
#define TAO_JSON_BINDING_VERSIONS_HPP
#include <exception>
#include <stdexcept>
#include "../forward.hpp"
#include "../internal/format.hpp"
#inc... |
5dbfae86e25e70c128036688a3e74b05ec55632f | ba612716fe47a0d7373365fee7d877f0b7c1fd62 | /21_c++_tutorials/02_travel_cost/travel_cost.cpp | e093a233b5be55e3995e5882f4d3b0cdbc0bdf38 | [] | no_license | haibianshifeng/6_thevisualroom | 181d736c72cdcc250a83d9e3955fdff7d90b35c5 | b1eadee0f68b51fe8c99b81ea949dcc43d12f2f5 | refs/heads/master | 2020-07-06T11:12:51.597768 | 2019-03-03T22:16:34 | 2019-03-03T22:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | cpp | travel_cost.cpp | /*
File name: travel_cost.cpp
Date: 9 Dec 2016
Author: Andrew Roberts
*/
// to allow cin, cout, fixed:
#include <iostream>
// to allow setprecision:
#include <iomanip>
// standard namespaces:
using namespace std;
// main function:
int main()
{
// variables:
double mpg, distance, gallons, pricePerGallon, totalCost... |
771a3fd6f311f78356f752f6a8d188f538108d42 | 3707c3888a9f6d4572a61fb80dbb5f0026dbc968 | /src/Strategy.cpp | 8845d0841cd21ed41bddd95832f653a368f0cb64 | [] | no_license | jedrak/fifteen | 29b7b5da9348e5b6fe48e1288ec785bddbb43cb2 | c1e28bf3de4a864e5fff3562370e8733d5f88d89 | refs/heads/master | 2021-05-19T06:11:38.697257 | 2020-04-28T23:12:54 | 2020-04-28T23:12:54 | 251,561,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 683 | cpp | Strategy.cpp | #include <utility>
#include <fstream>
#include "../include/Strategy.h"
Strategy::Strategy(std::string checkingOrder, std::string strategyName) : checkingOrder(std::move(checkingOrder)), strategyName(std::move(strategyName)){
queue = std::deque<Node*>();
stats = Stats();
}
void Stats::clear() {
numberOfMov... |
05ebcf1206cfd5accde34ee98afe87dad40d4414 | 7d2c40da3b6a9d536cbd15a3c04b93a632f89ea7 | /include/game/systems/renderer/renderer.hpp | 0ed4863128867a4eb6ba760fbc389b943d35da92 | [] | no_license | JonathanPicques/symbiote | 1545efe5adc1e6a5d149398ffc475234488b2881 | cee29fe77ae34f65515d1157bb28dd967b61e97b | refs/heads/master | 2020-04-19T13:52:32.141976 | 2019-02-22T17:22:36 | 2019-02-22T17:22:36 | 168,227,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | hpp | renderer.hpp | #pragma once
#include <string>
#include <glm/fwd.hpp>
#include "core/ecs/system.hpp"
#include "game/systems/renderer/vulkan/vulkan.hpp"
struct SDL_Window;
namespace Symbiote {
namespace Game {
class RendererSystem final : public Symbiote::Core::System {
public:
DECLARE_SYSTEM(Symbiote::Game::RendererSyste... |
20e5a4e0f3802ef8caf3bc072f2f45e726a2bbaa | caaf83a106024abe2004fd16ea8b4c54c8da7ea7 | /src/DesignCompile/UhdmWriter.cpp | bf944dfb28ebc2a853edd662ace7151a2c5129ad | [
"Apache-2.0"
] | permissive | mithro/Surelog | a8bca0e02a132b4a603389bc5268f024cf8fe035 | 5f8da4159e4f64902e30de06c236f0ca1e4f2cca | refs/heads/master | 2022-11-07T12:39:17.277377 | 2020-06-23T01:51:13 | 2020-06-23T01:53:24 | 257,389,556 | 1 | 0 | Apache-2.0 | 2020-04-20T19:57:33 | 2020-04-20T19:57:32 | null | UTF-8 | C++ | false | false | 40,850 | cpp | UhdmWriter.cpp | /*
Copyright 2019 Alain Dargelas
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 to in writing, softwar... |
0cd51d1aa4fd7b3944cd86d458b70178a6fafc7a | ba76ff053e4ad23b3ecd7e41d42be8b805743e66 | /src/modules/directx11/swap_chain.hpp | 7fadbfc566386109440954129040260605955cc3 | [
"MIT"
] | permissive | mge-engine/mge | c6b45216fe327d279c6b86b3764abcda74a7f7d4 | 36ce18d0602d14e216405d00e2debe0dd117f7fb | refs/heads/main | 2023-09-03T15:28:34.874064 | 2023-08-16T15:30:00 | 2023-08-16T10:28:45 | 174,581,225 | 0 | 0 | MIT | 2023-03-11T14:46:07 | 2019-03-08T17:34:06 | C++ | UTF-8 | C++ | false | false | 775 | hpp | swap_chain.hpp | // mge - Modern Game Engine
// Copyright (c) 2017-2023 by Alexander Schroeder
// All rights reserved.
#pragma once
#include "dx11.hpp"
#include "mge/graphics/swap_chain.hpp"
#include "mge/win32/com_unique_ptr.hpp"
#include "render_context.hpp"
namespace mge::dx11 {
class swap_chain : public mge::swap_chain
{
... |
81276ccf5806708ea706fbaf616a479f96813dc8 | 7e9f3af77973eeadf2162824d7b18bde319ccbf8 | /include/ds/graphics/gil/jpeg_io.hpp | 13b95efcf00f199d9cdd659d02f747035591a22d | [] | no_license | duzy/ds.ge | 575ee21b9bed11632ff47cc2debbe01484cef1b4 | c6e81b5cb783015f32119a90b9711fec41df0884 | refs/heads/master | 2021-01-10T12:24:28.057062 | 2016-02-26T10:17:21 | 2016-02-26T10:17:21 | 52,596,286 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | hpp | jpeg_io.hpp | #ifndef __DS_GRAPHICS_GIL_JPEG_READER__HPP____by_Duzy_Chan__
#define __DS_GRAPHICS_GIL_JPEG_READER__HPP____by_Duzy_Chan__ 1
// TODO: ...
#endif//__DS_GRAPHICS_GIL_JPEG_READER__HPP____by_Duzy_Chan__
|
726bfc01aab21a3b45658fdc4b022d8d698e8254 | b93cebbaff40f91ceb472a3308d3169a9b51de62 | /mico_new/util/datadecode.cpp | c46fd9dc39dd59c310165a54c1890f5f21ef42e9 | [] | no_license | coderbingcang2357/mico | 49e640b14bd223b4e795ecbcce6e83edeadc7c9e | c28c2f83165e43f0d568fd3047cecbc445a021c4 | refs/heads/master | 2023-03-03T17:55:38.145210 | 2021-02-01T03:33:08 | 2021-02-01T03:33:08 | 334,810,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,155 | cpp | datadecode.cpp | #include "datadecode.h"
bool Util2::readUint8(char **buf, int *len, quint8 *v)
{
if (*len < 1)
return false;
*v = quint8(**buf);
(*buf)++;
(*len)--;
return true;
}
bool Util2::readUint16(char **buf, int *len, quint16 *v)
{
if ((*len) < 2)
return false;
*v = ... |
a56cef47f1b4382bbe914f8bc8fdfafbde4f18c9 | 0e796d76ae8a8108c9a0e466911289d081e01e67 | /HW-ElectionRoundProject/citizen.h | c115c4f41321bbce3f22571167e4145e9b929835 | [] | no_license | ShaniGavish/College-Projects | e793f31c68ed8744a7021919bd651790009e908c | 5689a841ca0d7eb9d196bb96bda5c857a722f491 | refs/heads/main | 2023-06-24T21:18:49.452691 | 2021-07-26T10:26:46 | 2021-07-26T10:26:46 | 340,763,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,396 | h | citizen.h | #pragma once
#include <iostream>
#include <fstream>
#include <string.h>
#include <string>
#include "district.h"
using namespace std;
class Citizen {
private:
string _name;
string _Id;
int _birthYear;
District* _district;
//validation
void validateId(const string Id) noexcept(false);
vo... |
f5e2378da4659e871b47eaa6e0da9643e1cbe83b | 47f12af0fd4f1496c6ad94846bbd93d9f18dc953 | /Company/cmdeditdepartment.h | b1267b96e96d1b0b12d4bd650f30eacb3ba71ab9 | [] | no_license | qNickq/AVSoft | 97e0df6ddbd3ffabe411642604b5f39383a93f16 | 200e416edf9f0e5ec3bc8c6e9b79c705bee86a21 | refs/heads/master | 2020-09-12T02:54:52.578167 | 2019-12-05T16:33:48 | 2019-12-05T16:33:48 | 222,278,170 | 0 | 1 | null | 2019-12-04T16:05:46 | 2019-11-17T16:32:56 | C++ | UTF-8 | C++ | false | false | 371 | h | cmdeditdepartment.h | #ifndef CMDEDITDEPARTMENT_H
#define CMDEDITDEPARTMENT_H
#include "command.h"
#include "department.h"
class CmdEditDepartment : public Command
{
public:
CmdEditDepartment(Company * company, Department* dep, QString newName);
void execute() override;
void undo() override;
private:
QString _name;
Q... |
645c478209dab62b1bfb41db15480afe82956c1b | 7db9a1fc3ab9894ad03275da423500f08a47ef7b | /bobcat/csv4180/field.cc | 404e1f814a94ae1fc47d8d5380eee6f06b8005e3 | [] | no_license | ckok77/bobcat | 47fbe724f403a22fd81f3c1ca4aa2fa1f5002f9c | e9b94f461150fa6470cee25d2b41a3f1f54c7cd8 | refs/heads/master | 2023-03-15T19:20:03.486988 | 2018-06-25T12:31:42 | 2018-06-25T12:31:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | cc | field.cc | #include "csv4180.ih"
bool CSV4180::field()
{
//cerr << __FILE__ "\n";
++d_begin; // skip the comma
d_last.push_back(move(d_field)); // add the field to d_last,
// preparing d_field for the next
... |
9640e98f54f7b968b1d90d12f8689736307478fa | 6bd9ae59ecd9065e74ff26130134b00a43495349 | /1701. Cannonball Pyramids.cpp | 17aa2365449c93aae5eac2b6316548370d20f9bb | [] | no_license | dragonir/Sicily | 3b9b3d584537cb5d28d5d362aa4b27b2b10e7bc3 | 1ed0d298445f7a2196bdc3a90aff87c53857739e | refs/heads/master | 2021-09-02T01:14:09.146553 | 2017-12-29T15:26:30 | 2017-12-29T15:26:30 | 114,475,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | cpp | 1701. Cannonball Pyramids.cpp | #include<iostream>
#include<iomanip>
#include<cstdio>
#include<cctype>
#include<cstring>
#include<string>
#include<vector>
#include<stack>
#include<ctime>
#include<cmath>
#include<algorithm>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int cas;
int sum=0;
for(int i=n; i>=1; i-... |
5a7d2dca65bc65d1d46a10142dae484b2d1ff0e1 | 2861e4dc100f86c5c79d154426bf5e891e7201a6 | /includes/ft_retro.hpp | d604f4d9e34bd39f31018bf0f5bf1bfdbe33e0ad | [] | no_license | alelievr/md5 | 67434ae2001e49a38b2179ae74cccd81c7c74ca4 | 7100b90fd9c5b6d08711cf16537d2e78902413c5 | refs/heads/master | 2016-09-05T22:23:50.566011 | 2015-06-21T10:24:08 | 2015-06-21T10:24:08 | 37,749,561 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,900 | hpp | ft_retro.hpp | #ifndef FT_RETRO_HPP
# define FT_RETRO_HPP
# define BIT_ON(x, y) (x = x | (1 << y))
# define BIT_OFF(x, y) (x &= ~(1 << y))
# define BIT_TEST(x, y) (((x & (1 << y)) == 0) ? 0 : 1)
# define INTER_FIRE_ENEMY 4000000
# define INTER_MOVE_ENEMY 800000
# define INTER_MOVE_OBSTACLE 2000000
# define INTER_MOVE_PROJECTILE 7... |
1d952d1344aa780740266f824ad6023b93eed0f6 | e50ac350b6ea75ea728074e173a0450afda05318 | /ACM/Prictise/HDU/Max Sum Plus Plus HDU - 1024 (DP).cpp | b989e745cc4bda5e07fdc162a5c50ad705300f97 | [] | no_license | G-CR/acm-solution | 9cd95e4a6d6d25937a7295364e52fa70af4b3731 | 7026428ed5a2f7afd6785a922e1d8767226a05e8 | refs/heads/master | 2021-07-23T14:30:18.107128 | 2021-07-15T14:54:57 | 2021-07-15T14:54:57 | 226,522,759 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | cpp | Max Sum Plus Plus HDU - 1024 (DP).cpp | #include <bits/stdc++.h>
using namespace std;
const int N = 1000006;
int n,m;
int a[N],dp[N],last[N];
int main() {
while(~scanf("%d %d", &m, &n)) {
for(int i = 1;i <= n; i++) {
scanf("%d", &a[i]);
}
memset(dp,0,sizeof(dp));
memset(last,0,sizeof(last));
int Max;
for(int i = 1;i <= m; i++) {
Max =... |
99ff4d25193e7897c67b1d0485d07d3a26bbcee5 | f3a729d3588f6c31975d44b37f1b3a29c01db3cd | /1105B.cpp | 71d2cf262f7b1f3bca956219bf9cff34e646fc1d | [] | no_license | yongwhan/codeforces | 887e7cca0b47aa2ba65b1133300c63a808a15590 | aa8fa27ca1a07fcb7f9dac5b1ce908b7bfcd49e2 | refs/heads/master | 2020-11-28T01:47:52.239077 | 2019-12-23T04:16:29 | 2019-12-23T04:16:29 | 229,671,486 | 0 | 0 | null | 2019-12-23T04:05:28 | 2019-12-23T03:43:38 | C++ | UTF-8 | C++ | false | false | 426 | cpp | 1105B.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> ii;
int main() {
cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
int n,k; cin>>n>>k;
string s; cin>>s;
s+='@'; n++;
int ret=0;
for (char ch='a'; ch<='z'; ch++) {
int cur=0, val=0;
for (int i=0; i<n; i++) {
if(... |
6b9dae9766d1f76ef7cfdef3ca10c6f32cc4d653 | 06fee45a8cd9f5391bb89e0dcbd81a374ea3593b | /Libraries/NtlLib/Shared/PathEngine-5.07/code/libs/PathEngine_Core/GraphedStateSpace.h | c5257db56b27c7e982dbabe1812f1a299b991820 | [] | no_license | ivanlamega/dragon-ball-online-tw-server | 3afde0aae0c8a15370559670e58ec509fa680147 | 31e432f208d725cb4c71d91d0292b4056819d075 | refs/heads/master | 2022-03-03T14:57:27.590250 | 2022-02-16T17:49:51 | 2022-02-16T17:49:51 | 208,133,340 | 33 | 37 | null | 2019-10-15T10:33:29 | 2019-09-12T19:44:55 | Perl 6 | UTF-8 | C++ | false | false | 8,659 | h | GraphedStateSpace.h | //**********************************************************************
//
// Copyright (c) 2002-2004
// PathEngine
// Lyon, France
//
// All Rights Reserved
//
//**********************************************************************
#ifndef GRAPHED_STATE_SPACE_INCLUDED
#define GRAPHED_STATE_SPACE_INCLUDED
#include ... |
e291fd8cae5a8c47356a02273dd8abfeab9d0bf4 | 13064a8616cb26abb103f046ffe563d5a66876c6 | /EmploymentExam/2017nexon/2017nexon/5.cpp | 3d289ec0afc8e7933e3823fb848e895000a091b6 | [
"MIT"
] | permissive | PuppyRush/Algorithms | edfb9ea3745342ebfe24e0c92c3cce59f6e461c7 | 9adfa86b915e50ca25e610db3f3bb66d602ec0e7 | refs/heads/master | 2022-10-09T12:05:56.530860 | 2022-09-28T14:41:18 | 2022-09-28T14:41:18 | 88,719,709 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,835 | cpp | 5.cpp | //#define _CRT_SECURE_NO_WARNINGS
//
//#include <iostream>
//#include <sstream>
//#include <cstring>
//#include <cmath>
//#include <algorithm>
//#include <vector>
//#include <map>
//#include <stack>
//#include <bitset>
//#include <algorithm>
//#include <functional> // std::multiplies
//#include <numeric> // std:... |
9f7b19484d05527c647970c49460ffd4d751d97a | 9d3b64f9d1c10aaa2a390108bed84835d62be0f8 | /include/readonly_clau_parser.h | 525b5cb742bf9faf86ed88adebd12e8741f15f56 | [
"MIT"
] | permissive | ClauText/ReadOnly-ClauParser | 1250e11de7a8a1e051a816a991353c9f75e4e180 | 2a162b24bdabc7a4367c4ec8abda6e7535c423ae | refs/heads/master | 2020-08-06T11:11:42.721353 | 2020-03-07T05:07:52 | 2020-03-07T05:07:52 | 212,955,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,247 | h | readonly_clau_parser.h |
#ifndef READONLY_CLAU_PARSER_H
#define READONLY_CLAU_PARSER_H
#include <iostream>
#include <vector>
#include <set>
#include <stack>
#include <string>
#include <list>
#include <fstream>
#include <algorithm>
#include <thread>
namespace wiz {
template <typename T>
inline T pos_1(const T x, const... |
2b92688603e67f4aa774b871bad9af666f5e5ad1 | 45de91b49a197dd086c39d54ad4d9c245ef58761 | /Meridian 2D Game Engine/Src/Engine/Core/Asset.hpp | d2acc6f824c536bc3996e10da14f859be70996fc | [] | no_license | Neuroticcheeze/Meridian-2D-Game-Engine | 94dffba0cebeb778a32e748009c0ef6bab382476 | 16230f678035f38eff8093b3f8f35100a1d49dbc | refs/heads/master | 2021-01-01T05:27:24.928249 | 2016-05-27T06:21:20 | 2016-05-27T06:21:20 | 58,901,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,256 | hpp | Asset.hpp | /*===================================================================
// (Copyright, 2016) Jesse Farag.
// Distributed under the Meridian Technologies License, Version 1.0.
// (See included file MERIDIAN_LICENSE.txt)
-------------------------------------------------------------------
//
//Header File: Asset.hpp
//... |
b2e1b0f339bb8739dc340b7be000619afeb79a8d | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_patch_hunk_368.cpp | 8ae9a496a913b25de014922aa05e534c5c93dc4a | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | httpd_patch_hunk_368.cpp | /* cache filters
* XXX The cache filters need to run right after the handlers and before
* any other filters. Consider creating AP_FTYPE_CACHE for this purpose.
* Make them AP_FTYPE_CONTENT for now.
* XXX ianhH:they should run AFTER all the other content filters.
*/
- cache_in_fil... |
1a3ca2ee15fb45a09b96911c0a3b4153062b45e5 | 70d08f804309bd286abbdec88b1fefd6f7769b6c | /BI/5/22_3197.cpp | cab4b1ff60e55bb159673115cb59917d68dcde45 | [] | no_license | jiho5993/algorithm-study | 733cdc8b37470e8200e61535570d2b8f5c6345e5 | 34fff0289b32e32a67fe526af7eed2ac77b63e61 | refs/heads/master | 2020-06-15T04:24:29.010865 | 2019-07-31T16:46:04 | 2019-07-31T16:46:04 | 195,202,554 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,131 | cpp | 22_3197.cpp | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
using namespace std;
typedef pair<int,int> pii;
typedef long long ll;
const int INF = 987654321;
const ll mod = 1000000007;
const double PI = acos(-1);
char lake[1505][1505];
bool visited[1505][1505],melted[1505][1505];
int melt_day[1505][1505],dir[4][2... |
0941d4e92b4a522f8992c8d3ae31a07dc58b0848 | 631dd6db65445f979bf33ffea8357ce2fe535729 | /CAD_PowerLand/OutputGCode.h | c761b8de4721e19b1ecc45902ce12b82d4e61ffe | [] | no_license | Spritutu/CAD-2 | 5117449f600baf43db3ca11d3cef081d32808ba0 | adf366ae642e4d5b9c626896a29f2e0aad402d0a | refs/heads/master | 2022-09-15T03:19:18.897844 | 2020-05-27T23:19:42 | 2020-05-27T23:19:42 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,541 | h | OutputGCode.h | // OutputGCode.h: interface for the COutputGCode class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OUTPUTGCODE_H__12BA7076_6221_4B62_85C3_289D8B04C37D__INCLUDED_)
#define AFX_OUTPUTGCODE_H__12BA7076_6221_4B62_85C3_289D8B04C37D__INCLUDED_
#if _MSC_VER > 1000
#pra... |
f0a2b73276fd0a3105a47e7eed8a97789debe96d | 1bfefe31f2bca91052272326f5f5f07a19eb8344 | /MaxCam/MaxCamTrackCint.h | 190e320d3f90d34d850507bf38678e59fb98da19 | [] | no_license | tjjjjjjj/OLIVIA-DCTPC | d1e4279519d25014a29793888ac1b92b3b02672d | d25c4896c8fb44e838593bcc5c7da42838713259 | refs/heads/master | 2020-12-25T10:35:53.368417 | 2016-08-22T17:24:52 | 2016-08-22T17:24:52 | 60,537,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,244 | h | MaxCamTrackCint.h | /********************************************************************
* MaxCamTrackCint.h
* CAUTION: DON'T CHANGE THIS FILE. THIS FILE IS AUTOMATICALLY GENERATED
* FROM HEADER FILES LISTED IN G__setup_cpp_environmentXXX().
* CHANGE THOSE HEADER FILES AND REGENERATE THIS FILE.
*************************... |
1dd04c6d500cc6348ed7d698df65e0a892daf217 | 882d3591752a93792bd8c734dd91b1e5439c5ffe | /common/ImClient/ImClient.cpp | 3fa14330f24bf7e122784f100e079034094d2147 | [] | no_license | KingsleyYau/LiveClient | f4d4d2ae23cbad565668b1c4d9cd849ea5ca2231 | cdd2694ddb4f1933bef40c5da3cc7d1de8249ae2 | refs/heads/master | 2022-10-15T13:01:57.566157 | 2022-09-22T07:37:05 | 2022-09-22T07:37:05 | 93,734,517 | 27 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 86,845 | cpp | ImClient.cpp | /*
* author: Samson.Fan
* date: 2017-05-09
* file: ImClient.cpp
* desc: IM客户端实现类
*/
#include "ImClient.h"
#include "TaskManager.h"
#include <common/KLog.h>
#include <common/CommonFunc.h>
#include <common/CheckMemoryLeak.h>
const int IMCLIENT_VERSION = 100; // IM客户端内部版本号
const long long HEAR... |
7c91f9441755711df6e4e5afb1cef20949b5c0c3 | f7b2b9c4231dc482353d8f29ae7906052bfb6cdc | /Reverse String II/Reverse String II.cpp | 6edb2af87b30aa9b053d701d8722436c411ef529 | [] | no_license | llluiop/cppleetcode | e18c25e5d83629792bfab48a5252eb6407a2a650 | 249e5731515065352d91efe689385636e8553894 | refs/heads/master | 2020-04-04T05:50:30.660708 | 2019-11-24T02:53:55 | 2019-11-24T02:53:55 | 46,335,048 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 760 | cpp | Reverse String II.cpp | // Reverse String II.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <string>
#include <algorithm>
using namespace std;
class Solution {
public:
string reverseStr(string s, int k) {
string ret;
int i = 0;
while (i + k <= s.size())
{
auto tmp = s.substr(i, k);
reverse(tmp.begin(),... |
a92bf8ac27f5c9f1c33c232bce14cb789bc84698 | f9530bffb62e2c9a6d03b2f04ba0e4a86fd41b65 | /src/kis/kis_date.cpp | 205f2abb970c05468b8bb2638f8ec554a2c81953 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | kawari/kawari7 | 38dea3ff8bba989a395cc8fdf76caee0aa323b5b | 6b2586c4579e6071b5bedc58fc091d1b46a3c8af | refs/heads/master | 2021-01-18T23:50:09.560599 | 2016-08-08T03:34:15 | 2016-08-08T03:34:15 | 36,898,819 | 0 | 1 | null | 2016-08-08T03:34:15 | 2015-06-04T22:31:43 | C++ | SHIFT_JIS | C++ | false | false | 2,686 | cpp | kis_date.cpp | //---------------------------------------------------------------------------
//
// "華和梨" for あれ以外の何か以外の何か
// KawariInlineScript -- 日時 --
//
// Programed by NAKAUE.T (Meister)
//
// 2001.05.14 Phase 0.50 First version
// 2001.05.19 Phase 5.1 少し強化
// 2001.06.17 Phase 6.0 もう少し強化
// 2001.08.08 Phas... |
f41ccc07a2bbdf43da834bc4357facf3af1959f5 | 29ff71b52fd54e257183ba90bd89153f8e7523a5 | /quicksort.cpp | a9acfc9aa7431f8d033d4f005ef8caf7febca4b7 | [] | no_license | sammulllx/data_structure | 63794ef38967d3c8117703ee0ce76eb948d5b0ad | b0010bf590bd3fb276dfbd6ea8d9051ae0f67692 | refs/heads/master | 2020-12-04T14:15:21.452541 | 2020-01-04T16:50:39 | 2020-01-04T16:50:39 | 231,795,990 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,544 | cpp | quicksort.cpp | #include "quicksort.h"
#include <QApplication>
#include "ui_quicksort.h"
#include <iostream>
using namespace std;
int data_size = 12;//数组里元素的个数
quicksort::quicksort(QWidget *parent) :
QWidget(parent),
ui(new Ui::quicksort)
{
ui->setupUi(this);
}
quicksort::~quicksort()
{
delete ui;
}
template<class... |
bf417ce311ab50c8735bed1a140bf56da055b8b1 | 9fbff544471056f0816fa52d1bbf0c4db47c1f24 | /algorithm/sort/heapSort.cpp | 30f678598a379a39d0c0301f3531befb37d1225e | [] | no_license | theDreamBear/algorithmn | 88d1159fb70e60b5a16bb64673d7383e20dc5fe5 | c672d871848a7453ac3ddb8335b1e38d112626ee | refs/heads/master | 2023-06-08T15:47:08.368054 | 2023-06-02T13:00:30 | 2023-06-02T13:00:30 | 172,293,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,890 | cpp | heapSort.cpp | #include <assert.h>
#include <climits>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
class heap {
private:
vector<int> _data;
function<bool(int, int)> cmp;
int _size;
bool _swap_if(int i, int j) { return cmp(i, j); }
bool _swapUp(int cur, int parrent) { return... |
f24335cca7226c58a5776f64d13b2adee8c7f6fe | 1dd0a3df52d8c134cd9ab73e9f6b8c104ef4329a | /CSE240Project/Collision.cpp | ffe440ebeaa452442200624fa52beedd51e173f3 | [] | no_license | smrutled/SDL-Jezzball | a4f02dedc058dccef126e2fcd5e9b449fdb65375 | 14950ac6c80c6f82511bfd4f29ce41ed7d27313d | refs/heads/master | 2022-05-12T18:17:35.881723 | 2022-04-25T01:43:39 | 2022-04-25T01:43:39 | 8,550,720 | 2 | 0 | null | 2022-04-19T04:36:10 | 2013-03-04T07:48:21 | C++ | UTF-8 | C++ | false | false | 2,839 | cpp | Collision.cpp | #include "Collision.h"
/*This piece of code was originally from Lazy Foo' Productions
(http://lazyfoo.net/)*/
bool Collision::BoxCollision(SDL_Rect& A, SDL_Rect& B)
{
//The sides of the rectangles
int leftA, leftB;
int rightA, rightB;
int topA, topB;
int bottomA, bottomB;
//Calculate the sides of rect A
left... |
3f12c6e81d76ab0503da91f4ccceb27d1e753a97 | 230fb8845f39bef0f30f5d3541eff5dc0641de14 | /Connect3/Export/windows/obj/src/haxe/ui/components/_HorizontalSlider/Builder.cpp | da211f84b0b050c3cf7a7b25789e6271f9d803fb | [] | no_license | vhlk/AlgoritmoMinMax | 76abd62a6e2859ed229e5831264b6d8af27e318d | 40eded4948794ca48d50d16d2133a9ab21207768 | refs/heads/main | 2023-06-30T15:16:17.492478 | 2021-08-02T13:29:32 | 2021-08-02T13:29:32 | 390,493,745 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 8,498 | cpp | Builder.cpp | // Generated by Haxe 4.2.0
#include <hxcpp.h>
#ifndef INCLUDED_haxe_ui_backend_ComponentBase
#include <haxe/ui/backend/ComponentBase.h>
#endif
#ifndef INCLUDED_haxe_ui_backend_ComponentImpl
#include <haxe/ui/backend/ComponentImpl.h>
#endif
#ifndef INCLUDED_haxe_ui_components_HorizontalRange
#include <haxe/ui/component... |
c87093fff98ff7692935f88f73b3ce1406f6f185 | 00051160582a5e25f7bb2bcd327ad605c99e20e8 | /[水题]成绩归类.cpp | a4738ca925c4067b49793e311e174a69433894ed | [] | no_license | Arvinhahaha/C | 9a53ed8cca550b83f3f0d429f4fbeb861ca170e6 | 7d6a2f66c3a76882a23120072aa590cb446849ce | refs/heads/main | 2023-03-22T08:15:48.496046 | 2021-03-18T13:51:35 | 2021-03-18T13:51:35 | 346,649,811 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 225 | cpp | [水题]成绩归类.cpp | #include<stdio.h>
int main()
{
int a=0,b=0,c=0,d;
while(scanf("%d",&d)){
if(d==0) break;
if(d>=85) a++;
else if(d>=60&&d<=84) b++;
else c++;
}
printf(">=85:%d\n60-84:%d\n<60:%d",a,b,c);
return 0;
}
|
3e616187afc90c2c0db4e8ec201efdb0d75b01ea | 1bbcbb1ddc9140d969e0901e5958674d14e70b6b | /include/bwsl/Lattice.hpp | d1b203a1731d222197553276a8289bb1ab3823a0 | [] | no_license | gdmsl/bwsl | 7a89d4ac0dac8b9aac592ca95e7c8cc7912381f2 | a2380a4ab1815528a908acdb4b602e64dd97fb75 | refs/heads/main | 2023-05-26T13:30:56.740470 | 2022-08-31T12:18:18 | 2022-08-31T12:18:18 | 91,703,129 | 0 | 1 | null | 2022-08-31T12:18:19 | 2017-05-18T14:28:25 | C++ | UTF-8 | C++ | false | false | 14,469 | hpp | Lattice.hpp | //===-- Lattice.hpp --------------------------------------------*- C++ -*-===//
//
// BeagleWarlord's Support Library
//
// Copyright 2016-2022 Guido Masella. All Rights Reserved.
// See LICENSE file for details
//
//===---------------------------------------------------------------------===//
///... |
377f7d31d75a6fe7b291f42715cdd8606a556c36 | 11d68bf6cdf8caf170016b478601bef4fa8a3cee | /userland/flower_test/flower_test.cpp | 699f89af066cb77183b602dc5a9b65705e139076 | [
"BSD-2-Clause"
] | permissive | mehrdad-shokri/cosix | 8491c92797ca4352768ce3fd0cbeec77d1493750 | 60cf9ab3f81687fe79f5329d461f2a4e4f8b8df9 | refs/heads/master | 2021-07-02T04:11:06.061465 | 2019-07-12T13:03:27 | 2019-07-12T13:03:27 | 133,213,086 | 0 | 0 | NOASSERTION | 2020-08-19T23:04:25 | 2018-05-13T06:53:23 | C++ | UTF-8 | C++ | false | false | 4,580 | cpp | flower_test.cpp | #include <argdata.h>
#include <atomic>
#include <errno.h>
#include <program.h>
#include <pthread.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <thread>
#include <unistd.h>
#include <arpc++/arpc++.h>
#include <flower/protocol/server.ad.h>
#include <flower/protocol/switchboard... |
04228ddee39a3184e6affe2576cf3fa40f4bddfc | 125ae0adb562478b184bbb35d40f2c43b335415c | /FusionControl/Transports/GroupFunctions/tLibraryDataGroupGF.cpp | d55f569de3cde8d8af46d5cb4fc5dbeb7b8975c6 | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | WINDOWS-1252 | C++ | false | false | 1,832 | cpp | tLibraryDataGroupGF.cpp | /*****************************************************/
// Copyright © 2007-2013 Navico
// Confidential and proprietary. All rights reserved.
/*****************************************************/
#include "tLibraryDataGroupGF.h"
#pragma warning(push, 1)
#include <QDebug>
#pragma warning(pop)
//----------------... |
744502e12adef4ad8d405e2845b85a002a0fdd80 | c12532cb25b1325c98145e420316ca9cdb4cb797 | /tech_tests/detect_blobs.cpp | 847309ca96c812ea836fde87f091c3553d96a694 | [] | no_license | jchuahtacc/mixed_reality_table | a610d2d10d923dc779355159c6985acfe95a9654 | 9f31780a31aaff411b56cbceb9bbb909e4777c20 | refs/heads/master | 2021-01-12T08:46:29.104631 | 2017-12-31T05:23:24 | 2017-12-31T05:23:24 | 76,681,505 | 0 | 0 | null | 2017-12-27T03:33:25 | 2016-12-16T19:54:21 | C++ | UTF-8 | C++ | false | false | 8,555 | cpp | detect_blobs.cpp | /*
By downloading, copying, installing or using the software you agree to this
license. If you do not agree to this license, do not download, install,
copy or use the software.
License Agreement
For Open Source Computer Vision Library
(3-clause BSD License... |
9f087589c8e30d05dac3920bc7738ff25ff22bde | 39a82eac0b6eefbe64886e7682423823a9259461 | /ScaledImage.h | 273d17ea6a110b239e743605480442d071cae158 | [] | no_license | Manonmaie/Image-Processing-Tool-Kit | 241caa46913a31174c0831b25a159571298752b1 | 4328243ec64ec3ab518fb40d04ea0e8271c93323 | refs/heads/master | 2020-07-25T20:15:27.325146 | 2019-09-14T09:12:46 | 2019-09-14T09:12:46 | 208,413,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | h | ScaledImage.h | #ifndef ScaledImage_H_
#define ScaledImage_H_
#include "Image.h"
using namespace std;
class ScaledImage:public Image{
public:
ScaledImage();
~ScaledImage();
ScaledImage(int wt, int ht);
Image& Images(Image& i1);
};
#endif
|
63df7e4c6178982de1c32aff86d7c6bf0fc52c36 | 3c4ab54eb2741974f9d68fa4c02745cf681c8433 | /src/init/isr.cpp | 58c953366b15fd17732cbac856425a552434df24 | [] | no_license | ammubhave/os-goddard | a4ad4b14a156bd3f67a796dc2843cec4f6b4252c | bd34191a30756abbbb257610c87d905dc444ba66 | refs/heads/master | 2021-01-13T01:29:54.793747 | 2014-09-24T19:56:07 | 2014-09-24T19:56:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | isr.cpp |
//
// isr.c -- High level interrupt service routines and interrupt request handlers.
// Part of this code is modified from Bran's kernel development tutorials.
// Rewritten for JamesM's kernel development tutorials.
//
#include "stdint.h"
#include "isr.h"
#include "iostream.h"
// This gets called f... |
42b433205f9e0df8896b85121707546fe1e56f77 | da7ad84936816cbf9388df36ec18aa2c2d789325 | /src/Demographic/event-UpdateHouseholds.cpp | aa8121f5daa47a44722e9d26f3328f37054807e2 | [] | no_license | yaesoubilab/TBABM | 14fbf673c9b4fc8b8b1462d30dc3782ae6c7aa18 | 7c8165db1a86f2f011a10601602c46b85a7bdc90 | refs/heads/master | 2023-08-09T02:27:45.410474 | 2023-07-26T01:26:40 | 2023-07-26T01:26:40 | 114,150,710 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 721 | cpp | event-UpdateHouseholds.cpp | #include "../../include/TBABM/TBABM.h"
#include <Uniform.h>
#include <Empirical.h>
#include <cassert>
#include <fstream>
#include <iostream>
template <typename T>
using Pointer = std::shared_ptr<T>;
using std::vector;
using EventFunc = TBABM::EventFunc;
using SchedulerT = EventQueue<double,bool>::SchedulerT;
using ... |
2a8018b38e2a4d3f51ab75ccbfb0ca2279c96774 | 82475431a89051ace159d94ad9f65076c6ac7a60 | /BigInt.cpp | 60c42d8ddd0867a7bca99637c9657500deece4e5 | [] | no_license | neytMont/StandardTemplateLibrary | 107c1854957c38e063f8e0c1d443c0164f7b2808 | f5a6fc53e4fed429fdc5217afc543a5ba10c87e5 | refs/heads/main | 2023-03-01T19:44:56.340898 | 2021-02-11T05:49:51 | 2021-02-11T05:49:51 | 337,941,633 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,451 | cpp | BigInt.cpp |
#include "BigInt.h"
BigInt::BigInt()
{
storage.push_back(0);
}
void BigInt::stripLeadingZero(BigInt& bigN)
{
while (bigN.storage.front() == 0 && bigN.storage.size() > 1)
{
bigN.storage.pop_back();
}
}
BigInt::BigInt(int n)
{
if (n == 0)
{
storage.push_back(0);
}
while (n != 0)
... |
51282a95c5d1e754e45c466a9292ef52b79c1762 | ff524bd92a95ee13b5045856d744904e8e7f67ed | /core/cpp/ds/ratInMaze.cpp | ce97021a047e92047d420f9432e787ff47ac8290 | [] | no_license | sfrias/pandora | b9aacbbcd9c3a86b8acb03b19f40fcb6174ee96f | 9171370e2ead6a7cfd057bcf57f2355d4e6002e2 | refs/heads/master | 2021-04-30T22:59:29.904822 | 2013-07-29T18:47:40 | 2013-07-29T18:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,415 | cpp | ratInMaze.cpp | #include<iostream>
#include<algorithm>
#include<stack>
using namespace std;
void printMatrix(int** matrix, int rows, int cols )
{
for( int i = 0 ; i < rows ; i++ )
{
for( int j = 0 ; j < cols ; j++ )
{
cout << matrix[i][j] << "\t" ;
}
cout << "\n";
}
}
struct offset... |
9cae0d95377988f58f81a452b6d27b63cbc710ed | de8d221dc2286fd8f016b1e89092e994e044e550 | /CPP_AIO/BookVI/Chapter05/ForEach/main.cpp | 2092d654e8f74066ae1f8849abfba0aaef32ac25 | [] | no_license | joshlikespics/CPP_examples | 593890e26819ed928c2088df6e4a2d8a01f75615 | 4fe5af12d53b3bfb83db617b797302c582f8260f | refs/heads/master | 2020-03-25T15:58:58.719802 | 2018-08-07T17:43:22 | 2018-08-07T17:43:22 | 143,909,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | cpp | main.cpp | #include <iostream>
#include <vector>
#include "boost/foreach.hpp"
using namespace std;
using namespace boost;
int main()
{
// Create a vector and store values in it.
vector<string> names;
names.push_back("Tom");
names.push_back("Dick");
names.push_back("Harry");
names.push_back("April");
... |
037424563adf05111fb1b8f4fe108a389757efd1 | 1d59d3947408c825666281e19941e18ecdc4c9cf | /BAEKJOON/Step/8. math1/1712_break_even_point.cpp | de0355d150ffc4db1412fd6b13fba6e4ee887cc0 | [] | no_license | dbwls89876/Ru | ac23a0f6a3e146211ec1590078d9b37450b1aafa | 2594998049a8c1a9f471387c688bc3f0f429fba4 | refs/heads/master | 2023-01-12T07:09:44.478949 | 2023-01-12T01:05:46 | 2023-01-12T01:05:46 | 220,790,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 211 | cpp | 1712_break_even_point.cpp | #include <cstdio>
using namespace std;
int main(){
long a, b, c;
int cnt = 0;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if(b>=c) cnt=-1;
else{
c-=b;
cnt = (a/c)+1;
}
printf("%d", cnt);
}
|
f35703d8dfc029aa172c0f78358c4e507c83185d | de1a47164ce9bc80f604a984c195c6917c0f57fd | /Worker/src/tankDrive.cpp | 6412d91b17f2622377318d7156656039dd96972f | [] | no_license | Impact2585/VEX-AI2021 | 5a26ec809f2a9a86ce377a762198e0a7ad1b3a83 | d0f53350a3032a2809a964607b00a24b2fe3b30b | refs/heads/main | 2023-06-03T16:39:20.876547 | 2021-06-27T05:11:29 | 2021-06-27T05:11:29 | 308,757,559 | 2 | 16 | null | 2021-06-27T05:11:56 | 2020-10-30T22:32:20 | C++ | UTF-8 | C++ | false | false | 5,900 | cpp | tankDrive.cpp | #include "vex.h"
#include "robotMap.h"
#include "tankDrive.h"
#include <cmath>
using namespace vex;
using namespace std;
#define PI 3.14159265
#define DISTANCE_BUFFER 3.0
#define TURNING_BUFFER 3.0
#define turn_kP 0.3 // TO-DO: Tune kP
#define move_kP 0.5 // TO-DO: Tune kP
#define moveConst 21
#define rotateConst 2... |
0d0d141b944c89dfc9237b5574dc85615e08cccd | eceae66751dd55401f5d241bb55f70761a37ef61 | /ImplementationPhase/Model/NeuralNetworkModelModule/src/LeakyReLuLayer.cpp | 915c4618248b105292455bf4c51684b22b7be3e3 | [] | no_license | JohannesHaering/PSE | 541ec622a35915bd2fbc397f6184fea6391ed965 | 0b068c37925c99dcba25ae178db4376dc47601ba | refs/heads/master | 2022-04-16T23:43:34.421768 | 2020-03-13T10:05:24 | 2020-03-13T10:05:24 | 220,481,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 989 | cpp | LeakyReLuLayer.cpp | #include "LeakyReLuLayer.hpp"
#include <vector>
#include "LeakyReLuLayerCPP.hpp"
#include "MatrixDefine.hpp"
//ActivationFunctions work on net[j], so a size does not need to be set on init
LeakyReLuLayer::LeakyReLuLayer()
{
layerType = LayerType::LEAKYRELU;
layerStrategy = new LeakyReLuLayerCPP();
}
TENSOR(float... |
f8df3d02e28ad42d29331bacb19f4221e6f8da20 | 90d39aa2f36783b89a17e0687980b1139b6c71ce | /Codechef/aug12cook/YNOUTPUT.cpp | 48cbddcfd936d8fe6303249744b566590b0b87fc | [] | no_license | nims11/coding | 634983b21ad98694ef9badf56ec8dfc950f33539 | 390d64aff1f0149e740629c64e1d00cd5fb59042 | refs/heads/master | 2021-03-22T08:15:29.770903 | 2018-05-28T23:27:37 | 2018-05-28T23:27:37 | 247,346,971 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,517 | cpp | YNOUTPUT.cpp | /*
Nimesh Ghelani (nims11)
*/
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<map>
#include<string>
#include<vector>
#define in_T int t;for(scanf("%d",&t);t--;)
#define in_I(a) scanf("%d",&a)
#define in_F(a) scanf("%lf",&a)
#define in_L(a) scanf("%lld",&a)
#define in_S(a) scanf("%s",&a)
#define new... |
9f09f6b216c2949daf6a3eac4d1885290731dc17 | 65c8f053c911302fd0ac422e6a6df73b6e074577 | /section 3 1/question_1.cpp | cddd7b57019b70076005dea63650bf029bcc998a | [] | no_license | tonyfloatersu/usaco-solutions | 4e3fe4163904895a728ae160af632db777caa20a | 0f7a00e4cc0f4c107cdb3c8bd3ca1c45e07b3e6a | refs/heads/master | 2021-03-24T14:02:12.017233 | 2017-07-06T02:20:06 | 2017-07-06T02:20:06 | 84,721,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 101 | cpp | question_1.cpp | /*
ID: suhangt1
PROG: agrinet
LANG: C++11
*/
using namespace std;
int main() {
return 0;
}
|
c65eadc26cba282c4b6739caf8de860d40ea1100 | 8d70a335927e7f60252b4fee0895583bba8e5634 | /Homework3/EE569_hw3_5715388761_Li/Homework3/Homework3/Kernel.cpp | 1f4c7bb527a4845f8e8921cae21098aefae6ae69 | [] | no_license | jiazhi412/Digital-image-processing | 21e65340c1e4803fffbf19f924dc04a33a447dd3 | 71e2bc0e7bf80413730dfaa06a1943451f29d1dc | refs/heads/master | 2022-02-23T04:37:20.758804 | 2019-09-18T00:41:19 | 2019-09-18T00:41:19 | 207,951,430 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,303 | cpp | Kernel.cpp | // Jiazhi Li
// 5715388761
// jiazhil@usc.edu
// 2019.3.1
#include <vector>
#include <algorithm>
#include <math.h>
#include <iostream>
#include "Kernel.h"
using namespace std;
Kernel::Kernel(int h, int w) {
height = h;
width = w;
vector<vector<double>> temp(h);
data = temp;
for (int i = 0; i < h... |
01f1a804c7a820275f8d6da303aa745de657ffe6 | 8f6fe14ce94be0c45add596b7f0a2ac29548eb11 | /10406_Vito'sFamily.cpp | d104f7988c09cb6bfe9ae2d8dd75c85ad171a0a0 | [] | no_license | kevin70613/NCTU_CPE | 7af197e895815a4bf02a6c206b355482eceeb36b | 90cadbab7399be1a689e952ea4d13305095de732 | refs/heads/master | 2021-01-19T07:41:22.971560 | 2017-04-07T16:01:13 | 2017-04-07T16:01:13 | 87,563,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | 10406_Vito'sFamily.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int caseNum, r, s[30001];
cin >> caseNum;
while( caseNum-- ){
int sum = 0;
cin >> r;
for(int i = 0; i < r; i++){
cin >> s[i];
}
sort(s, s+r);
for(int j = 0; j < ... |
e33d0042af75ad249ae3351e60818930bff009c0 | 1bfc7c9acb8f6007e1063ae7af36736306a25562 | /strtoint.cpp | 73f5779179fac1a0ceb344fe50b80136ed6ca042 | [] | no_license | Bhaskarrai7/CPP | 4acb5324d063e5179e4919bf48e78ab847a3e9bf | 03b85ead4507ae52023026988e12e98bd8c1326e | refs/heads/master | 2023-06-26T06:44:15.151883 | 2021-07-24T13:15:22 | 2021-07-24T13:15:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | strtoint.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
int convert(string s, int idx)
{
if(idx == 0)return(s[0]-'0');
else
{
int digit = s[idx]-'0';
int sa = convert(s,idx-1);
return (sa*10)+digit;
}
}
int main()
{
string s ="1234";
//cout<<s.length();
... |
9f24967d7e8e128a9fe0ce55c67b46d0711ab804 | c34796ca57256f0bc52535457404ce9389647d13 | /src/CodingInterviews024.cpp | e0a2acc9acbf9022d1700035e10bb00bd08acad6 | [] | no_license | Chesterfun/CodingInterviews | 2df069f1b1446810a80e75e8cd948e95132a6a8a | 368da03cc85ece1cbb6784384fd8231f0d7d8408 | refs/heads/master | 2022-07-12T05:54:58.947278 | 2022-06-11T15:08:06 | 2022-06-11T15:08:06 | 185,116,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,093 | cpp | CodingInterviews024.cpp | //
// Created by chester on 19-7-24.
// 反转链表,剑指offer24题,leetcode206
//
#include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
ListNode* reverseList(ListNode* head) {
ListNode * reversedHead = nul... |
30cf1989966a6e0f3c9aefede90de30effd7d876 | a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e | /codeforces/gym/101081G.cpp | 2fa591dfd5c6b8ef76e9d5cf127d7d2979760bcd | [
"Apache-2.0"
] | permissive | tangjz/acm-icpc | 45764d717611d545976309f10bebf79c81182b57 | f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d | refs/heads/master | 2023-04-07T10:23:07.075717 | 2022-12-24T15:30:19 | 2022-12-26T06:22:53 | 13,367,317 | 53 | 20 | Apache-2.0 | 2022-12-26T06:22:54 | 2013-10-06T18:57:09 | C++ | UTF-8 | C++ | false | false | 1,789 | cpp | 101081G.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long i64;
const int maxn = (int)1e2 + 1, maxd = 11, mod = (int)1e9 + 7;
int n;
inline void mergeSol(int &ret, int const &lft, int const &rht) {
if(lft == -1 || rht == -1)
return;
if(ret == -1)
ret = 0;
ret = (ret + (i64)lft * rht... |
a40c515164779c79b0f3d20a40eaf64c0c7e3c6c | 59761ea6e3abf50c0405c9dcc47c61546e382a55 | /CS32_proj1/CS31_proj1/globals.h | 85b5896b5719a0a00b3b789fc495e4202716418d | [] | no_license | eglouberman/CS32 | 861c360eb75461c8ff481fee8b9ddfa0880cd060 | 77a45a21f3b9d36fcf57c5b0e4eb55222cdabbd6 | refs/heads/master | 2020-03-22T19:38:41.320876 | 2018-07-11T08:50:45 | 2018-07-11T08:50:45 | 140,542,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 944 | h | globals.h | //
// globals.h
// CS31_proj1
//
// Created by Elon Glouberman on 1/11/18.
// Copyright (c) 2018 Elon Glouberman PIC10b. All rights reserved.
//
#ifndef CS31_proj1_globals_h
#define CS31_proj1_globals_h
#include <string>
#include <iostream>
#include <utility>
#include <cstdlib>
int decodeDirection(char dir);
int ... |
f8b0538a40f27d3dc33204f9a919db63b2db00a0 | 33035c05aad9bca0b0cefd67529bdd70399a9e04 | /src/boost_vmd_seq_remove.hpp | eb849aa97cd4e9da50d59544669d1d2200160a32 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | elvisbugs/BoostForArduino | 7e2427ded5fd030231918524f6a91554085a8e64 | b8c912bf671868e2182aa703ed34076c59acf474 | refs/heads/master | 2023-03-25T13:11:58.527671 | 2021-03-27T02:37:29 | 2021-03-27T02:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36 | hpp | boost_vmd_seq_remove.hpp | #include <boost/vmd/seq/remove.hpp>
|
9b9e06114fb2e06a8b57eb4a1786e5f159f9d956 | f9070a67c35b237a0b58215727075b3bc43621d4 | /RestoreIpAddresses.cpp | ea5ff21acffff56b9da0b28b16192aea4565c62a | [] | no_license | shivratangupta/Algorithm | 8b9023504332a9807eb79c8ad5a6c430971c73f9 | fb9fd0485036ba4accb092ea7cdea806238b1c2a | refs/heads/master | 2020-09-09T08:55:05.264060 | 2019-10-13T11:21:17 | 2019-10-13T11:21:17 | 94,441,450 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 924 | cpp | RestoreIpAddresses.cpp | #include<iostream>
#include<vector>
#include<string.h>
#include<stdlib.h>
using namespace std;
vector<string> restoreIpAddresses(string s){
vector<string> result;
int n;
n = s.size();
for(int i=1; i<=3; i++){
for(int j=1; j<=3; j++){
for(int k=1; k<=3; k++){
for(int l=1; l<=3; l++){
if(i + j + k + l... |
b66370f6f65e0090e5a5085384acc54e3fb4f5df | 5f43802f395c77bffeff14902579f96656efdb64 | /vdbedit.cpp | c81086c0a641e4a1def6fbefd6dc68b66c41db34 | [
"MIT"
] | permissive | balfieri/vdbedit | 8aecf63a448439cd039d020397f8247a3b777817 | 0da1b26db44d8290caba7ff91c192e7d596030cf | refs/heads/master | 2023-04-10T10:21:04.249585 | 2021-04-21T16:51:30 | 2021-04-21T16:51:30 | 288,501,089 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,980 | cpp | vdbedit.cpp | // Copyright (c) 2020 Robert A. Alfieri
//
// 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, pub... |
698f150145b6eb5867d9e9fe597fc1fbf5b5a9c0 | f57e2b3749ed0880d954b98a448dc0bb0b1fb5d0 | /1-1.cpp | 6a939f4034aedf48324b8ed04bea4ed5cb0fb750 | [] | no_license | kagangtuya-star/C-Learning_assignments | d753dc43e560d2a07ac503553534f8103e2c4956 | e97a2354bbf8e67254efb889b853705e99092f1a | refs/heads/master | 2023-09-02T17:18:55.994300 | 2021-11-18T02:17:54 | 2021-11-18T02:17:54 | 348,227,969 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | cpp | 1-1.cpp | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
float a,b,c,p,s;
scanf("%f %f %f", &a, &b, &c);
p = (a+b+c)/2;
s = sqrt(p*(p-a)*(p-b)*(p-c));
printf("the area of triangle is %.2f", s);
return 0;
}
|
3fde8f59aec41b0217a491e5d70ffdaba8769f58 | 707faf9498b106f93305321b2f1ee9c31784506f | /university-work/utcn/sisteme de operare/linux/so/include/driver/InodeMap.h | fda7e2056ac9c4cf509ff6ac49f56878f133db56 | [] | no_license | bdumitriu/playground | 489479996fd3c8a83f456d08c01de5e09acb18d8 | 22a67f59832f0367806e50c84f2aec1ebba18150 | refs/heads/master | 2023-07-31T13:53:37.833865 | 2023-07-18T23:06:28 | 2023-07-18T23:07:24 | 2,675,737 | 1 | 0 | null | 2022-11-24T03:00:56 | 2011-10-30T15:39:47 | Java | UTF-8 | C++ | false | false | 8,004 | h | InodeMap.h | /*
* Project: File System Simulator
* Author: Bogdan DUMITRIU
* E-mail: bdumitriu@bdumitriu.ro
* Date: Thu Nov 7 2002
* Description: This is the interface of the InodeMap class.
*/
/***************************************************************************
* ... |
f3cc6508cae6e253d9ca90174e575c72579c5b52 | f5d618c9115a80c5299a817a4f27ad409a6d40d6 | /IRemote_Ultrasonic/IRemote_Ultrasonic.ino | c82ea1e120a0c8d8dc469091d773cc0ffb3fd71e | [] | no_license | emmaskychuks/infrared_arduino_robot | 53faee63f92daeeb454be48b3c7cb2e31a954211 | d5133f2bfa9f2ae534b9dba23154d6b7f7a1f7be | refs/heads/master | 2021-03-16T07:44:22.126008 | 2016-11-15T23:41:39 | 2016-11-15T23:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,306 | ino | IRemote_Ultrasonic.ino | // This code is created for drving an arduino powered robot with IR remote and ultrasonic sensors
#include "IRremote.h"
int receiver = 11; // Signal Pin of IR receiver to Arduino Digital Pin 11
IRrecv irrecv(receiver); // create instance of 'irrecv'
decode_results results; // create instance of 'decode_resul... |
9e194cff2cabc3565583f42ef78dbba47d53de14 | d303456904476943e58433e65677ee391466b9c9 | /constants.hh | 4583adcefcaa952fc1675133fc4c6a616a251f9b | [] | no_license | grundler/cmspxltb-ana | 6ed5dbf6bce77782c2a7445ea7c3956e3b7e8d7f | 278ff341c46dd828eab10de0f9ac7185c0317ff9 | refs/heads/master | 2020-04-15T17:22:14.752323 | 2014-08-06T10:06:41 | 2014-08-06T10:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | hh | constants.hh | #ifndef CONSTANTS_HH
#define CONSTANTS_HH
//Directory where trees are found (in heirarchy <board>/<treeSubDir>)
static const char subdir[128] = "/afs/cern.ch/work/g/grundler/public/testbeam/cmspxltb-submission";
//Place to put output
static const char outDir[64] = "output";
//extension for plots, probably want pdf o... |
0024731fe6c302f9b60e9f0c9314fc967f70d1f4 | 1ad1b5f6935db453a1295c5f5add92bec9ff6592 | /Playground/MyString.cpp | 78b7f6647a41972934d0cebbd4c3bd859bcf1011 | [] | no_license | linwang/CPlusPlusPlayground | 51ca705a5ec7aca494931b8a4d60ea10d1e2cf0f | 6249ce85bfa4a5ff3d8607b9d81132136660c154 | refs/heads/main | 2023-08-27T09:04:37.560406 | 2021-11-02T20:25:40 | 2021-11-02T20:25:40 | 423,987,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,312 | cpp | MyString.cpp | #pragma once
#include "pch.h"
#include "MyString.h"
void MyString::cleanUp()
{
delete[] m_buf;
m_size = 0;
}
MyString::MyString() : m_buf(nullptr), m_size(0) {};
MyString::MyString(const char* const buf) : MyString()
{
if (!buf) return;
m_size = strlen(buf);
m_buf = new char[m_size + 1];
strcpy... |
105c9531177d9e7adc8b238da24700c66cf091f7 | 79200e4a1fd2be46e41d2bff46420cc160ebb125 | /Autoencoder/autoencoder.h | a67d75b57b47751efe72268fe13e13a7bc6c87b2 | [] | no_license | daniel-marsh/senior_project | 0b61d0e28ddea5cf02f62049d30f9a881165b526 | 7d0b1d736655f76e81604b94d872a2089070389e | refs/heads/main | 2023-04-25T02:13:04.870488 | 2021-05-11T16:18:18 | 2021-05-11T16:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | h | autoencoder.h | /*
Author: Daniel Marsh
Project: Yale CPSC 490 Senior Project
Description: Header file for the autoencoder move agent.
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cstring>
#include <cmath>
#include "../board.h"
using namespace std;
Board make_autoencoder_move(Board game_b... |
8d90be61881f0d024ef84619dad8c2f9dd7771e4 | 7c7d727511823fb46c11af87006358b56d668c8a | /Classes/Knight.cpp | 68e9a0c41d43c6d5010605ecc4271c31f1091f0a | [] | no_license | billysprout/Arena | 4344b8d8a9f8e778367bccf6239137659e1c79d8 | 1f694377a19a66ecfeb200aa7ce8cf735f9660cf | refs/heads/master | 2021-01-18T14:18:30.718735 | 2015-05-08T21:15:34 | 2015-05-08T21:15:34 | 32,198,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | Knight.cpp | #include "knight.hpp"
//constructor
Knight::Knight(int team, string name="Knight")
{
//assign default Knight statistics
_hp = 50, _armor = 25, _atkRange = 1, _atkType = 0, _atk = 22, _recovery = 1, _blkChance = 80;
_chp = _hp, _carmor = _armor, _catkRange = _atkRange;
_name = name;
_class = "Warrior";
_posX = ... |
a2b2240cb6e65227195a3e11af611b17ebf6f09a | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /DP/1212.cpp | f92f9bd9b816a874e682af011b9ed409e803514f | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | 1212.cpp | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
#define TRvii(c, it) for(vii:: iterator it = (c).begin(); it != (c).end; ++it)
#define REP(i, a, b) for(int i = int(a); i < int(b); ++i)
#define ll long l... |
c98c893c12fb86e1ea5669f26f5392e77be08eea | 1cd80a11c264ffee3314e5660dc51076c1076543 | /rocketman/Classes/CheatsSceneView.h | 16e4b329feed8639e8b40900804428d778c22340 | [] | no_license | nitaigao/wonderpants | 8d5bf50a2dc9d7606e05f7a6697f7b73bdac5d44 | f4a8c37bf7ee6e74530a0a93eceba564751b2c9e | refs/heads/master | 2018-09-11T20:52:20.817270 | 2018-06-05T15:47:58 | 2018-06-05T15:47:58 | 15,709,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | h | CheatsSceneView.h | #ifndef CheatsSceneView_H_
#define CheatsSceneView_H_
#include "cocos2d.h"
class CheatsScene;
class CheatsSceneView : public cocos2d::CCNode {
public:
static CheatsSceneView* nodeWithController(CheatsScene* controller);
void initWithController(CheatsScene* controller);
};
#endif
|
081e20764fd470c97a2d024794d09f2aa94e90e5 | 684cd7096ff7428173ff524d4020bfe86f79eaf0 | /inc/algo/MapLoader.hpp | a2f2fba8bee224da927d333e9f7a032c59559d66 | [
"Apache-2.0"
] | permissive | Aracthor/pathfindingplusplus | 04978128c59bdae4c88d11da64c54deab8d4ef74 | 628516348906c808a866579a41bd2184fa140b8c | refs/heads/master | 2016-09-01T11:35:02.041967 | 2016-03-29T01:28:06 | 2016-03-29T01:28:06 | 53,559,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | hpp | MapLoader.hpp | #ifndef ALGO_MAP_LOADER_HPP_
# define ALGO_MAP_LOADER_HPP_
# include <istream>
# include <string>
# include <vector>
# include "algo/Map.hpp"
namespace algo
{
class MapLoader
{
public:
MapLoader();
~MapLoader();
public:
Map* loadFromFile(const std::string& fileName);
Map* loadFromStream(std::istrea... |
23a3b29e256cc01f575f0a3fc225d3a960622eb2 | 32b14d7b16cf9ea56af58baf729c50bd1baad694 | /SourceCode/Tile.cpp | 2b67613c3935c3782788fd2bff6c4d34d492204c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | antoniorivera/Aftermath-Game | ad4681a056d626f21e4b574b5783d549e253cfc9 | 3a758623015e51e2d7d40bcc35bf39118b21f61e | refs/heads/master | 2020-05-18T19:21:12.722407 | 2014-09-29T17:27:36 | 2014-09-29T17:27:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | Tile.cpp | #include "Tile.h"
Tile::Tile(){
defaultTexture.loadFromFile("brick.png");
sprite.setTexture(defaultTexture);
passable = true;
sprite.setPosition(0, 0);
}
Tile::Tile(int x, int y, bool p, sf::Texture & t){
passable = p;
sprite.setTexture(t);
sprite.setPosition(x%640, y%640);
}
sf::Sprite * Tile::getSprite(){
... |
5eba65a049a5c397ce8364d0712e9ddc228ce4c7 | 304efe8c9f52f0a433039237340210fd6c631448 | /Lab4/tempCodeRunnerFile.cpp | 087a8889c3db31584c17f22fc74332e3e3240403 | [] | no_license | ahmedesoliman/CSC111-Lab | 1bcccfcd86a80db891480f77081f403182907d6d | 0f6fb37440fc878f2ac7088911e7bb9ebaf38c99 | refs/heads/master | 2022-12-14T19:20:36.214043 | 2020-09-16T00:43:15 | 2020-09-16T00:43:15 | 273,648,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | tempCodeRunnerFile.cpp | else
{
cout << "Sorry you are not qualified for the loan\n"
<< "You must be employed\n"
<< "A recent Graduate\n"
<< "Have a $30000 salary or more\n"; |
b1c71c3350a683280c7282cf5dca188a4c64949c | 57ed9e48787464d69ba03d784017b938290a2057 | /src/net/net.h | f8b7039dfbb3f8f0cc85291b8e4ac1f9e5d47be5 | [
"Apache-2.0"
] | permissive | blockspacer/liblily | fd5c061ecc6f70c089c8f5543c48ce3e2496ae30 | 1e5708304606173f6e807e802ccc6602133222b2 | refs/heads/master | 2022-03-12T03:36:16.866739 | 2019-11-04T13:34:19 | 2019-11-04T13:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,023 | h | net.h | #ifndef LIBLILY_SRC_NET_NET_H_
#define LIBLILY_SRC_NET_NET_H_
#include <memory>
#include <iostream>
#include <unistd.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/un.h>
#include "../common/slice.h"
#include "../common/common.h"
namespace lily {
// 一个对TCP/UDP客户端/服务端的简单封装
enum AddressFamily {
V4 = AF... |
3679e1c947180e11a33b5230338f4904af018d3f | 9e4fc24455fcc5c87d1ced88180caaac92ec2271 | /periodic/Compound.cpp | 11331e0d506485022d343dff82f6527c535de48c | [
"CC-BY-3.0",
"MIT"
] | permissive | PathogenDavid/Periodic | ca04c17c0b5143c497df3f24239ad4a36a6812f5 | 19b01727f374652b7eb725ca42d60b056ac8b1a0 | refs/heads/main | 2022-10-16T17:09:18.063073 | 2022-09-29T00:09:19 | 2022-09-29T00:09:47 | 24,345,012 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 856 | cpp | Compound.cpp | #include "Compound.h"
#include "Reaction.h"
#include "Element.h"
#include "Bond.h"
Compound::Compound()
{}
Compound::Compound(int index)
{
this->index = index;
elements.Clear();
}
void Compound::AddElement(Element* element)
{
elements.Add(element);
}
int Compound::GetElementCount()
{
return elements... |
4dfdde49cbfce03db65727e7fbe860a80773f720 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/signin/signin_ui_delegate_impl_dice.cc | b23f1ccaaf8d0c1fb8038773e042d3184d40e4f6 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,728 | cc | signin_ui_delegate_impl_dice.cc | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/signin/signin_ui_delegate_impl_dice.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui... |
8bf1b06cce5bf0e4ce4135c67ed5c169cccf1c73 | 72107d0fa59a6d6c539aca47a8806eab5e2ab9ff | /SkypeComm_WindowsAPI/SkypeComm_winapi.h | 040d1284fe610fa53913b23b8885959ff493adb1 | [
"BSD-3-Clause"
] | permissive | OpenMORA/uma-dev-pkg | fc190d42bc8138437e6127a3c975f793f4a49482 | 5c44c2d294f0db14ad95e30d671c944afd5ce056 | refs/heads/master | 2020-06-02T13:23:39.890776 | 2016-03-03T10:14:59 | 2016-03-03T10:14:59 | 20,448,443 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,932 | h | SkypeComm_winapi.h | /* +---------------------------------------------------------------------------+
| Open MORA (MObile Robot Arquitecture) |
| |
| http://sourceforge.net/p/openmora/home/ ... |
b18f0d967afefcb588f225701d2254fe9f3d4d4b | 931e4ea605ac6007f0925fdc0f814012fa3b205b | /src/coding-and-sync.cpp | 6b90b4d87aae0ceded63988e17e0779872ba9415 | [] | no_license | jarmokivekas/proximity-1 | 4b0396902aa0bcf4d7994063e8ab868abdab37dc | 572425074205e354faef12110c8a9fcec2df3819 | refs/heads/master | 2020-03-09T01:08:53.894303 | 2018-04-07T12:38:06 | 2018-04-07T12:38:06 | 128,506,400 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,216 | cpp | coding-and-sync.cpp | #include <stdint.h>
#include <iostream>
#define TRANSFER_FRAME_MAX_LEN 256
#define CRC32_LEN 4
#define ASM_LEN 3
#define CNS_OVERHEAD_LEN (CRC32_LEN + ASM_LEN)
#define PLTU_MAX_LEN CNS_OVERHEAD_LEN + TRANSFER_FRAME_MAX_LEN
#define FRAME_START_OFFSET 3 // verison 3 frame strart in PLTU
enum encoding {
CNS_ENCODIN... |
53ed37e48d4baaa81d40d2a158bfc70a3a1162d3 | 143656a4b44212c9f8b3e24069a0c285dabe5a80 | /server/project/logic_lib/Utilities/LogicFileHandler.h | 5cac68c77685d1d1436a0e513bb945e190b6b99f | [] | no_license | Bra26ey/Full-House | 706c3f4260ea99c4e0fbb49883f43a726a920cdc | dcf70638b93b01789e03aa19273f317ece2b1cb9 | refs/heads/main | 2023-08-11T01:00:33.420147 | 2021-09-29T22:22:16 | 2021-09-29T22:22:16 | 357,504,833 | 2 | 3 | null | 2021-09-29T00:22:09 | 2021-04-13T09:58:37 | null | UTF-8 | C++ | false | false | 454 | h | LogicFileHandler.h | //
// Created by aleksandr on 15.04.2021.
//
#pragma once
#include <fstream>
#include <string>
#include <sstream>
#include <iostream>
namespace logic {
class FileHandler {
public:
explicit FileHandler(const std::string& input, const std::string& output = "");
void Read();
void Write();
~FileHandl... |
af545a1f2a0167cc59f2616d4fad1a2d50133375 | c38ec9b612cb38371c9a120a631c3f00d22e0af3 | /AtCoder Beginner Contest/ABC142/D.cpp | b7c66c33e8eb48383daea7e8801da92aca08b2d1 | [] | no_license | KatsuyaKikuchi/AtCoder | 9a076e9d779b3d7b5e2b2d91b3b4ec2942b8c9fd | d7e1a4bbc24a3a51566d74bdfd24b2bb946df84e | refs/heads/master | 2020-04-12T22:22:54.503127 | 2019-11-23T15:37:21 | 2019-11-23T15:37:21 | 162,788,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,478 | cpp | D.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> pll;
#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)
const ll MOD = 1000000007;
const ll INF = (ll)1e15;
struct PrimeList
{
PrimeList(ll n)
... |
9fffcf451ee6a0096e61283410a7bcaefff53b3c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/C++/Krwlng/proA.cpp | 01be5ccfe67a01c505952465c0c33f6930a5ac99 | [] | 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 | 878 | cpp | proA.cpp | #include<iostream>
#include<cstdio>
#include<string>
#include<cstring>
#include<cstdlib>
#include<ctime>
#include<cmath>
#include<climits>
#include<algorithm>
#include<map>
using namespace std;
#define L 1000010
char str[L];
int v[L], valid[26];
int n, l;
void init() {
memset(valid, 1, sizeof(valid));
valid[0]=vali... |
5c401013663de55e15e3b60cfbf326fa8fb5d7bc | 237899819cb0bb403f040ea93ab3fe7e512ad95f | /plugins/toolbar/dmzMBRAPluginFileToolBar.h | 1a90aedb722c71a4222db5e8250c90d25f2a8768 | [
"MIT"
] | permissive | ashok/mbra | 77831d8745135ca146032bbdb72949c3e4227ae8 | b431bf1b6485d7066b30c60b566adfce035f364b | refs/heads/master | 2021-01-18T09:29:50.826922 | 2009-01-04T20:01:55 | 2009-01-04T20:01:55 | 106,182 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,352 | h | dmzMBRAPluginFileToolBar.h | #ifndef DMZ_MBRA_PLUGIN_FILE_TOOL_BAR_DOT_H
#define DMZ_MBRA_PLUGIN_FILE_TOOL_BAR_DOT_H
#include <dmzApplicationState.h>
#include <dmzRuntimeExit.h>
#include <dmzRuntimeLog.h>
#include <dmzRuntimeMessaging.h>
#include <dmzRuntimePlugin.h>
#include <dmzRuntimeUndo.h>
#include <dmzQtVersion.h>
#include <QtCore/QObject>
... |
6ec99bdbfa33719ca1d78f6b29b6350d36d5fb0f | 2c6c7ba5399b5a4d87061bf4206a853cd33f351c | /tools/circt-lsp-server/circt-lsp-server.cpp | 9213741d04d99d46b9b67b4c53b8ede9ed046361 | [
"LLVM-exception",
"Apache-2.0"
] | permissive | llvm/circt | fbd479f869f296be2e1db95fa6a2808538f24703 | e6057090973eb8a428dce9d3e9ddb63ec4088b55 | refs/heads/main | 2023-09-02T06:34:28.649450 | 2023-09-01T22:25:38 | 2023-09-01T22:25:38 | 245,072,514 | 1,242 | 275 | NOASSERTION | 2023-09-14T20:25:58 | 2020-03-05T04:57:42 | C++ | UTF-8 | C++ | false | false | 1,024 | cpp | circt-lsp-server.cpp | //===- circt-lsp-server.cpp - CIRCT Language Server ---------- ------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
42f26b3db065cb63357eb36cb2dd3331b3e6ee8a | e8625a8de7974565441c68c4a1b9996ad6b84cba | /plugins/net_difchain_plugin/net_difchain_plugin.cpp | 59f9f5488a165685e819a6a06aad9163ec758235 | [
"MIT"
] | permissive | tianyalangzi/eocs | 319b31870e8bc1715f3db71b3d2d7e3db375dccd | 83ba0a8cdcdcdac0aad6726ffffd87f558133e0f | refs/heads/master | 2020-04-12T09:45:14.390577 | 2019-01-03T07:36:20 | 2019-01-03T07:36:20 | 162,406,603 | 0 | 0 | MIT | 2019-01-03T07:36:21 | 2018-12-19T08:29:17 | C++ | UTF-8 | C++ | false | false | 13,820 | cpp | net_difchain_plugin.cpp | /**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include <eosio/chain/types.hpp>
#include <eosio/chain/controller.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/net_plugin/protocol.hpp>
#include <fc/network/message_buffer.hpp>
#include <fc/network/ip.hpp>
#incl... |
fe44a7f3087f3b3930a3423f8694edd3e89b4ff9 | b2f00bb847a7f4f3093bb8127d19b1baa6d3be45 | /app/src/main/cpp/native-lib.cpp | 6bcea480e760cfb30974317a8f0967fc1142608b | [] | no_license | jmyakdd/RadioCommunitApp | 620b7f93e74bac0172bd443c8a38bd1819524814 | 33975b06c832ced31f7ed06ab1f3493ba200f6e1 | refs/heads/master | 2020-03-25T04:35:57.888294 | 2018-12-17T07:52:26 | 2018-12-17T07:52:26 | 143,403,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,645 | cpp | native-lib.cpp | #include <jni.h>
#include <string>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <cstring>
#include <unistd.h>
#include <cstdio>
using namespace std;
extern "C" JNIEXPORT jstring
JNICALL
Java_radio_crte_com_radiocommunitapp_util_SocketConnectUtil_stringFromJNI(
JNIEnv *env,
... |
15307fefac38b8ac1b3c7099272668930be76837 | 6f27c01df5b7c248293213c326df18e3c1593753 | /Tercer Parcial/Proyectos/Lopez Zambrano/SFML_visual/ejercicios/ejercicio 32/Triangulo.cpp | 7e0a498ddf9c3ee63c36d7194dadac26e2512f75 | [] | no_license | rengarcia/Data-Structure | ded6d6c4759cd01dc30fb61e1b25aa47a13b0708 | d9cc01d028a083f7cf2130952c1180b045c46476 | refs/heads/master | 2023-06-18T04:52:39.250613 | 2021-07-20T12:35:24 | 2021-07-20T12:35:24 | 220,644,703 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 813 | cpp | Triangulo.cpp | #include "Triangulo.h"
void Triangulo::setBase(double newBase)
{
this->base = newBase;
}
double Triangulo::getBase()
{
return base;
}
void Triangulo::setAltura(double newAltura)
{
this->altura = newAltura;
}
double Triangulo::getAltura()
{
return altura;
}
void Triangulo::setPuntoA(double newPuntoA)
{
this->pu... |
694f213072db974389f4e501545aafc3e592e321 | 4a87f5e7372f7d0312f8e08ac58274cd500008bd | /Backtracking/solveSudoku.cc | 1d3e7fba644483d9453464ebf922eafa480152b9 | [] | no_license | mahimahans111/cpp_codes | b025c214ab3ce6a8c34bf0e23384edb74afb1818 | fe6f88aca79cb8366107f3dcd08cff7f532c2242 | refs/heads/master | 2021-06-28T07:48:35.400033 | 2020-10-31T17:34:12 | 2020-10-31T17:34:12 | 211,819,858 | 1 | 4 | null | 2021-02-02T13:15:02 | 2019-09-30T09:05:21 | C++ | UTF-8 | C++ | false | false | 2,052 | cc | solveSudoku.cc | #include<bits/stdc++.h>
using namespace std;
// void inputMat(int mat[][100], int m, int n) {
// for (int r = 0; r < m; ++r) {
// for (int c = 0; c < n; ++c) {
// cin >> mat[r][c];
// }
// }
// }
// void outputMat(int mat[][100], int m, int n) {
// cout << "\n-----MAT Begins----\... |
28186a54e82560642597ada9f31838efc2f34238 | e85938516de0af1df2214fd33e618b4d8138a5ee | /include/wolf/ecs/entity/entityfactory.hpp | 282a459ec8dfaa9a0c4038e58cbf6a51a8ad2e4b | [] | no_license | cppdvl/wolfimporter | a8b860f7c8e2da0ea4d0a932963ce4595ebaa6b7 | a5f7875577659e1d3a35cd2e84a6b5dbafdd9166 | refs/heads/master | 2021-07-07T18:23:28.196726 | 2021-07-01T05:00:47 | 2021-07-01T05:00:47 | 241,488,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 328 | hpp | entityfactory.hpp | //
// Created by User on 9/7/2020.
//
#pragma once
#include <string>
#include <nlohmann/json.hpp>
#include <wolf/ecs/entity/entity.hpp>
namespace Wolf::ECS{
class EntityFactory {
public:
static Wolf::ECS::SPEntity CreateEntity(const std::string& entityName, const nlohmann::json& jsn);
... |
6c1d386a146eee34fdc1032344f9eb905d6f2fb9 | b60a67e2d9df676b23d69641e87997b4bfbd7741 | /server/src/main.cpp | 86ee44f0dbb45e5aefa5d9fb6f9cbf3d0434fba9 | [] | no_license | LLDay/quotes | 5594908b5aaf050039dc33b10632157dc63fbd43 | bfd3acf39a412070c7ce093bd12cc8e485e36c4f | refs/heads/master | 2023-02-22T19:11:57.304607 | 2021-01-18T12:12:36 | 2021-01-18T12:12:36 | 324,216,110 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,146 | cpp | main.cpp | #include <exception>
#include <iostream>
#include <string>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/post.hpp>
#include <boost/asio/signal_set.hpp>
#include <boost/asio/thread_pool.hpp>
#include <boost/bind/bind.hpp>
#include <boost/cstdlib.hpp>
#include <boost/make_sha... |
66775f7c6a1b992a2bcb723744ea620ce91d494e | 287385e320476235c83b0db60036099ca8121d4e | /common/IntArray.cpp | c248dea88b3ec222bab65f164d7569c10d659781 | [] | no_license | 91Eric/cplusplus-study | a66d7f278d4ab5edfed6dd87804deac38438f0e7 | d085d40d18092a42874b5f1d8037c236edfec34e | refs/heads/master | 2020-09-07T10:24:41.723043 | 2020-01-05T12:29:47 | 2020-01-05T12:29:47 | 220,751,517 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,746 | cpp | IntArray.cpp | /**
* @author Eric
* @file Description 数组类对象实现
* @desc Created on 2019-11-24 4:42:41 pm
* @copyright
*/
#include "IntArray.h"
#include <cstdio>
#include <cstdlib>
#include <new>
#include <iostream>
using namespace std;
IntArray::IntArray(int len)
{
m_len = len;
}
bool IntArray::init()
{
m_pointer = new... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.