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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
698b1adaa4d625e9582100e9d9426c0f468efafc | ab930dc08fd3139d9e24797217b2f63b5d6a2eac | /proj.win32/speedplayer.h | 61e454a0f4c743180e1e9254bf1d0da1fc1becff | [] | no_license | eoqn/cookierun | 1029bb14134351117e75881495bab3ad297bb5d5 | 69ad1ce3af3bdc60c4b92f251e72818afd26a327 | refs/heads/master | 2023-03-24T08:11:50.154859 | 2021-03-26T04:08:27 | 2021-03-26T04:08:27 | 350,956,003 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156 | h | speedplayer.h | #pragma once
#include <cocos2d.h>
USING_NS_CC;
class speedplayer:public Node
{
public:
CREATE_FUNC(speedplayer);
bool init();
void update(float dt);
};
|
5623379236f84834c25e627043648faf4d6772dd | ffb9f6b80c3f2ed668bcbb17b6f56ad81cc1981b | /src/DataProviders/Resource.h | 2e13bf339e57d7e877462b915ee197eaea96d89c | [] | no_license | GhevondW/Game | 3d526d6700a464225dfdb3a40af8a830d5928b41 | 96a76f763bf4beae29af3fb861e49f3969a329cf | refs/heads/main | 2023-04-20T03:39:33.135101 | 2021-04-26T13:31:23 | 2021-04-26T13:31:23 | 358,872,388 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | h | Resource.h | #ifndef _RESOURCE_H_
#define _RESOURCE_H_
#include <string>
#include <vector>
namespace game
{
struct ElementInfo
{
std::string name{};
std::string image_path{};
std::string code{};
};
struct TileInfo
{
std::string name{};
std::string image_path{};
std::string code{};
};
struct Resource
{
std:... |
52f0640d9b8cc461498c83cafe911f12b579dd84 | 2e83755617e502f4f0ea3dccaf62c1f951a955e4 | /Visualizer/src/Config/Config.cpp | f8d57fd9929757f7e2bbdd899f6c245e9dd01a95 | [] | no_license | KamilChowaniec/AudioVis | ee3d81a42dc0976f21ea38815ed2237018f150d7 | 76718b0225d182fe5899ab3af205c2a05850a306 | refs/heads/master | 2022-04-02T07:30:26.720311 | 2019-12-07T23:20:12 | 2019-12-07T23:20:12 | 220,535,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,963 | cpp | Config.cpp | #include "Config.hpp"
#include "Types/Vec.hpp"
#include "Viewers/ColorPicker.hpp"
#include "Viewers/Slider.hpp"
#include "Logger.hpp"
#include "FileDialog.hpp"
Config::Config()
{
resetToDefault();
}
void Config::resetToDefault()
{
setEntry("lineColor", Color<float, ColorPicker4>({ 1, 1, 1, 1 }));
se... |
ef46e6086dec1ff7c7da60a9c379e8b696e8ddbd | 0a080dd71ae5a34ced094d747b017c37d8f4ad2a | /include/ClientLib/Scripting/ClientElementLibrary.hpp | f3db9960531a36dac02a9bbd479c0aa9abe72f65 | [
"MIT"
] | permissive | DigitalPulseSoftware/BurgWar | f2489490ef53dc8a04b219f04d120e0bc9f7b2cb | e56d50184adc03462e8b0018f68bf357f1a9e506 | refs/heads/master | 2023-07-19T18:31:12.657056 | 2022-11-23T11:16:05 | 2022-11-23T11:16:05 | 150,015,581 | 56 | 21 | MIT | 2022-07-02T17:08:55 | 2018-09-23T18:56:44 | C++ | UTF-8 | C++ | false | false | 980 | hpp | ClientElementLibrary.hpp | // Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#pragma once
#ifndef BURGWAR_CLIENTLIB_SCRIPTING_CLIENTELEMENTLIBRARY_HPP
#define BURGWAR_CLIENTLIB_SCRIPTING_CLIENTELEMENTLIBRARY_HPP
#include <CoreLib/Scrip... |
6a4fb6d9c1c9b4da249d15aeaed415df3ffa19e6 | 1951d40de692fa6c4bb122c117ccbcd404bea1e2 | /day20/main.cpp | aa8fbfba933d54af2e0bd83dc503a0f080de71c4 | [] | no_license | pfaltynek/advent-of-code-2016-cpp | cea32e95f85e82b9f1ebdb884039fb181041da44 | 7ca11074b7ae79ccc2c957af0226f9feec87ab6e | refs/heads/master | 2020-06-15T16:41:07.037042 | 2017-11-20T10:07:38 | 2017-11-20T10:07:38 | 75,279,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,489 | cpp | main.cpp | #include <cstring>
#include <fstream>
#include <iostream>
#include <regex>
#include <string>
#include <vector>
#define TEST 0
typedef struct {
uint32_t first, last;
} IP_RANGE;
typedef std::vector<IP_RANGE>::iterator IT;
void InsertRange(IP_RANGE new_range, std::vector<IP_RANGE> &ranges) {
IT it1;
it1 = ranges.b... |
43670f66b0a9d25d238edb694dc96fd7bf10be2b | d3be4f176970d2e65e540f8e195e22fe5e56835b | /tp1/exercice3.cpp | ad1124c213d7534787ad384e4f01c6452cbadc8f | [] | no_license | MartzolfTom/M3103-Algo | 4c1fafe889ec3d262f837ba62f87e06fd34e2186 | e053da72829388d82be98ef8d889ec046c9e890b | refs/heads/master | 2020-07-28T06:20:21.656292 | 2019-10-21T11:56:46 | 2019-10-21T11:56:46 | 209,320,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,669 | cpp | exercice3.cpp | #include <iostream>
using namespace std;
///////////////////////////
/// fonction SaisieEntierPositif qui permet de saisir
/// un entier positif et de le controler
///
/// entrée : rien
/// sortie : un entier positif
/////////////////////////
int SaisieEntierPositif(){
int n = 0;
cin>>n;
while(n<0){
cou... |
7724ffbfc32d757fa8d9443a869ed0fa289b7a66 | 898c8528a70321dffedb8f37bbaebbae9b81fc89 | /aura/user/control_event.cpp | 20685dd67dffd7f209726e5da55b715f4e05b890 | [] | no_license | ca2/app | b1de035566d9664aa7c5c9a94378cc352b1836ec | d916307f8b47f04fbd48068868a57b62d5bbf705 | refs/heads/master | 2023-08-27T07:19:45.584624 | 2023-01-07T02:50:50 | 2023-01-07T02:50:50 | 98,031,531 | 19 | 7 | null | 2017-08-14T11:13:14 | 2017-07-22T12:59:27 | C++ | UTF-8 | C++ | false | false | 1,787 | cpp | control_event.cpp | #include "framework.h"
#if !BROAD_PRECOMPILED_HEADER
#include "aura/user/_user.h"
#endif
namespace user
{
control_event::control_event()
{
set_layer(LAYERED_USER_CONTROL_EVENT, this);
m_bOk = true;
m_bRet = false;
m_pmessage = nullptr;
m_puie = n... |
9e3dc4667709c2d8981a84eaad64bdd0d6ca27c8 | 5376f9d9730b55b5377936b1b08d424349d88f16 | /指针数值定义.cpp | 7cfddebdbd6460d2bce8ba027b16a4326693764c | [] | no_license | ranrangong/CStudy | 5e4c99aa0b7f130f840e485c4db6f506e1fcaf3e | d94ecb33a305ced3fa4ace88b73088c2c2833168 | refs/heads/master | 2021-06-16T15:16:46.258303 | 2017-05-06T09:54:41 | 2017-05-06T09:54:41 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 217 | cpp | 指针数值定义.cpp | //argc
//任何编译习惯都有可能在这里产生
///May/6/2017
#include<stdio.h>
int main(int argc,char const *argv[] )
{
int i=0;
for(i;i<argc;i++){
printf("a[%d]:%s\n",i,argv[i]);
}
return 0;
}
|
27176191689424d34ae1cefd8417c7cef90ec223 | 9ff3b530c713fd84154a5f3fc7fe32bc653ed8aa | /3rdparty/sgl/src/sgldisplay_qt_internal.h | bca46dcfc96007e8475b75fa55cb484ae9972277 | [
"BSD-2-Clause"
] | permissive | HSarham/automatic-ar | f43d0f2e7ccc5b75d3d76468a9908d2ff3ac4b50 | ae495352cc870464c08c263d6dd10e15cd365469 | refs/heads/master | 2023-01-22T13:44:33.136703 | 2023-01-15T14:04:12 | 2023-01-15T14:04:12 | 214,856,958 | 18 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 861 | h | sgldisplay_qt_internal.h |
#ifndef _SglDisplay_QT_Internal_H
#define _SglDisplay_QT_Internal_H
#include <QWidget>
#include <QLabel>
#include <memory>
#include "sgldisplay.h"
namespace sgl{
class SglDisplay_QT_Internal : public QLabel
{
Q_OBJECT
public:
SglDisplay_QT_Internal(QWidget *parent = nullptr);
void setParams(std::share... |
16d1df4557d3578225202f5a21a77a6be8b8e3a5 | f20d2c4399b42aea860db597938b476c522ad512 | /examples/inverse_pendulum/modelIP.cpp | 0b2d3135f15ac89838bd4d9a2977c91b1b6787ec | [] | no_license | flforget/ddp-actuator-solver | 76da7546c00c65e32c0b99ce1e175d384baef168 | 5587fc857f5a336f63f541cbdc4c3b4656f12728 | refs/heads/master | 2018-12-11T06:16:10.244662 | 2018-10-31T12:42:28 | 2018-10-31T12:42:28 | 39,523,545 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,327 | cpp | modelIP.cpp | #include <math.h>
#include <eigen3/unsupported/Eigen/MatrixFunctions>
#include <sys/time.h>
#include <iostream>
#include "modelIP.hh"
/*
* x0 -> actuator position
* x1 -> actuator speed
* x2 -> motor temperature
* x3 -> external torque
* x4 -> ambiant temperature
*/
ModelIP::ModelIP(double& mydt, bool noiseOn... |
4aefbae0852d8000722265aab36a4f2d4e49b9e4 | 40d76c084205b75132ca23b44ce0ebd05da1172a | /ast.hpp | 6a2af6ea3c3e0459fd4d5161a755260466875ebc | [] | no_license | isaacjensen/python-ast-visualizer | 014233a3dcc9f7c9ffb6f1a1f01e617d6b096374 | fb6d6e24b8023d5d434d3ff049f0458dd3dfda48 | refs/heads/main | 2023-07-03T01:44:36.984697 | 2021-07-28T15:42:47 | 2021-07-28T15:42:47 | 380,008,100 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 265 | hpp | ast.hpp | #include <vector>
using namespace std;
struct Node {
string* type;
string* value;
vector<struct Node*> children;
public:
Node(string* n, string* v) { //constructor for struct Node
type = n;
value = v;
}
}; |
55c6a64ad60ced4a9d9d847f8e15c6c1f34fdee9 | a1809f8abdb7d0d5bbf847b076df207400e7b08a | /Simpsons Hit&Run/game/libs/radmusic/inc/radmusic/schema.hpp | f034c23cc0f1acc3676fea46eee85e392a27b593 | [] | no_license | RolphWoggom/shr.tar | 556cca3ff89fff3ff46a77b32a16bebca85acabf | 147796d55e69f490fb001f8cbdb9bf7de9e556ad | refs/heads/master | 2023-07-03T19:15:13.649803 | 2021-08-27T22:24:13 | 2021-08-27T22:24:13 | 400,380,551 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 255,875 | hpp | schema.hpp |
// Generated by Schema+ V1.0 (C) Radical Games
#ifndef __6239
#define __6239
#include <ods/ods.hpp>
namespace ods {
//
// class types
//
struct _comp; typedef pointer_templ<_comp> comp;
struct _group; typedef pointer_templ<_group> group;
struct _fade_transition; typedef pointer_templ<_fade_transitio... |
65cb77bf66f802b1cdf8c1e4fa1ac2a4b0bdb7eb | cc85f1bf6879b4c427f3ac62e09f280cf53566dd | /scripts/DSLinkedList.h | 0155b050e6cc957318faa14e12a6631ca7e4e8a2 | [] | no_license | MagicKey23/Search-Engine | b37d6b68c43f1003c1788f9b52366f018444f763 | 7b3b7c47355c61d6c982999945d6a03090b05445 | refs/heads/main | 2023-04-22T01:56:41.272386 | 2021-05-18T03:59:53 | 2021-05-18T03:59:53 | 367,250,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,700 | h | DSLinkedList.h | #ifndef DLLINKEDLIST_H
#define DLLINKEDLIST_H
#include <iostream>
using namespace std;
template <typename T>
class DLListNode {
public:
DLListNode() {
next = prev = nullptr;
}
DLListNode(const T& el, DLListNode *n = nullptr, DLListNode *p = nullptr) {
data = el; next = n; prev = p;
}
... |
801058e075d5f6639e32bc9d3281a44bb8dbb204 | 4aa341a8f6da468b1887aaf89aa5a91c03a2e6ef | /kernel/modules/sysinfo/CpuSpeedEstimator.h | a3433ccb685bbf00270e1a573579b7f9eeaa2b24 | [] | no_license | GNUDimarik/OsDev-3 | a7e978394b339c3a471648140c89315c1e66afc2 | f7c00aa98637a4a6c0228552eb08a57c8a7647b6 | refs/heads/master | 2022-01-18T14:13:45.737169 | 2019-07-13T13:57:26 | 2019-07-13T13:57:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | h | CpuSpeedEstimator.h | /*
* CpuSpeedEstimator.h
*
* Created on: Dec 21, 2018
* Author: Mateusz Midor
*/
#ifndef KERNEL_MODULES_SYSINFO_CPUSPEEDESTIMATOR_H_
#define KERNEL_MODULES_SYSINFO_CPUSPEEDESTIMATOR_H_
#include "kstd.h"
#include "Optional.h"
namespace sysinfo {
namespace cpuspeedestimator {
cstd::Optional<u32> estimate_p... |
0c54c503b9527bc8dc3a3788ea275dee9b870c49 | b6879a9bb5e0966d4ef9a112ec2b1af6cdaaeec0 | /gettimeofday.cpp | fa3df077d70df9473ce75fc1f208a22c9765dc34 | [] | no_license | shino-312/TimeOnPosixSample | da513846cca5e990730df8f7dc8ac26080d15511 | 0f7ac5e454e5a9edce6bc5925e7605ea882220e6 | refs/heads/master | 2020-06-01T17:26:36.418114 | 2019-06-08T10:50:52 | 2019-06-08T10:50:52 | 190,865,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | cpp | gettimeofday.cpp | #include <iostream>
#include <cassert>
#include <sys/time.h>
int main(void) {
struct timeval tv;
// Success: Returns 0
// Failure: Returns -1
// Second arg should be always NULL (see man page)
int ret = gettimeofday(&tv, NULL);
assert(ret == 0);
std::cout << "Seconds : " << tv.tv_sec << std::en... |
92a3f634a15a764bf16f21a6329e20c9987664f0 | 4a0c500e3f95828275b7ffe07ea373ba492b0b14 | /2518.cpp | fea353d811d36d0fdd7e9e07d699328bbbcb7204 | [] | no_license | Ezekieldor/Problems-URI | af720a8e8a1db6b753724b01eeca1b6cf5aec1f8 | 5ad24acd7967456a673b67d8a71ccccc237095c0 | refs/heads/master | 2020-03-25T06:09:24.161403 | 2019-10-15T00:31:34 | 2019-10-15T00:31:34 | 143,485,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | cpp | 2518.cpp | #include <bits/stdc++.h>
using namespace std;
int main ()
{
int n, h, c, l;
while (scanf ("%d", &n) != EOF)
{
scanf ("%d%d%d", &h, &c, &l);
double H = (sqrt (c * c + h * h)) * n;
printf ("%.4f\n", ((double)l * H) / 10000);
}
}
|
bedb5efdd834159803259b88992cde5fca0e9b8e | b5dce5523723e8cd7b1d1c8ecaeae1593574d073 | /c小练习/100例/92.cpp | 75b6aa9c9d8925fbe6122ccc6d4472d93b9f48d1 | [] | no_license | Silvia-man/test- | f19c428ef9983eab185c69f3531a98cee7f48bd4 | 8159c368a4d8c37a69e80a6046e0e000ebbb1fd2 | refs/heads/master | 2023-08-10T10:13:58.205128 | 2023-07-25T12:59:12 | 2023-07-25T12:59:12 | 164,847,443 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 395 | cpp | 92.cpp | //92. 题目:如何组合1、2、5这三个数使其和为100.
#include<stdio.h>
int main()
{
int record=0;
int x,y,z;
for(x=1;x<=100;x++) //注意,x从1开始,不是0
for(y=1;y<=50;y++) //注意,y从1开始,不是0
for(z=1;z<=20;z++) //注意,z从1开始,不是0
if(x+2*y+5*z==100)
record++;
printf("1、2、5构成100,总共有%d种方法\n",record);
return 0;
}
|
5e80a54de8e713bedf26ed20e6d215c42927f934 | 2aa493a7012909b3908e9cd232c91355218eaec1 | /src/BlockRegister.cpp | c2f49b13ca41358e08ce19b5df9a6ee3fee7cb8a | [] | no_license | CheeseSoftware/Cheese_Multiplayer_Fix | 4f7308e7aca4e35d45c5fbfef9ad3b9a7a3a6ffa | d7765745a81f1e512bc258f28a8935ae32adb89a | refs/heads/master | 2016-09-06T20:08:00.146531 | 2014-04-23T16:47:33 | 2014-04-23T16:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,132 | cpp | BlockRegister.cpp | #include "BlockRegister.h"
#include "ITextureContainer.h"
#include "Block.h"
#include "BlockSolid.h"
#include "BlockBackground.h"
#include "BlockGravity.h"
#include "BlockChest.h"
#include "Stone.h"
#include "Dirt.h"
#include <typeinfo>
#include <iostream>
#ifdef CLIENT
#include "App.h"
#endif
BlockRegister::BlockRegi... |
cef23ce245378c7e2ecb9892bbc7151b27b2b0e5 | fb03995d5807509a66d35a2f3e366849f4184f05 | /OOP/Quiz1/main.cpp | c0c79444dbebb84673a7e21a87eda2cd016d8c44 | [
"MIT"
] | permissive | calee0219/Course | 2b641c6d4c6fa49e87c1d600ea3927a96b8b5252 | 10bd72fcb57aae34a7ee99b0daf8c2efbd29d8dc | refs/heads/master | 2021-01-23T20:57:06.353586 | 2018-03-27T15:15:59 | 2018-03-27T15:15:59 | 90,666,096 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 203 | cpp | main.cpp | #include <iostream>
#include "quiz1.hpp"
int main(){
std::vector<float> Pa({1, 2, 3});
std::vector<float> Pb({4, 5, 6});
std::cout << quiz1::EuclideanDistance(Pa, Pb) << std::endl;
return 0;
}
|
a082416c7aa3e2eecbd4fb0850fd66734d0db613 | 64bb79337ab4da58a45bbfb322f054f196825b4f | /Special___Competitive Programming/XOR/Finding___Single_number.cpp | 62c3474b1402f2e67f26ac558b1486f63c46ac7f | [] | no_license | kokfahad/Problems-Solving- | 08f2caa9344e53f0aab10af121563c43207c0ab6 | 4e0eca18c6b609d8d9eb13d2bb6591b425e58fa2 | refs/heads/main | 2023-06-07T15:57:51.366088 | 2021-05-28T17:30:33 | 2021-05-28T17:30:33 | 371,772,636 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | cpp | Finding___Single_number.cpp | //Finding single number from array from other double repititive number
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,arr[1000];
cin>>n;
for(int i=0;i<n;i++)
{
cin>>arr[i];
}
int z=0;
for(int i=0;i<n;i++)
{
z=z^arr[i];
}
cout<<"The Single Occured ... |
a97c5ef7d4a8b108d9e2a2eca0a5d95dc73fc3ca | cb7dfeafa6b6e8288c9e08e08908bf610622bbb7 | /napiLCD/distancewidget.h | 1bdc93621187dc33e1daf01cf8c4d9cbb0b6e840 | [] | no_license | levanhong05/NapiEmbedded | d0d4186346c3c5b4b459937adee1ef45bfd17d32 | 8f365fb927c17e1bd3e5d839b79cad6c3aafafb3 | refs/heads/master | 2021-01-12T17:38:25.977610 | 2016-11-01T08:32:26 | 2016-11-01T08:32:26 | 71,622,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | h | distancewidget.h | #ifndef DISTANCEWIDGET_H
#define DISTANCEWIDGET_H
#include <QWidget>
#include <QDialog>
namespace Ui {
class DistanceWidget;
}
class DistanceWidget : public QDialog
{
Q_OBJECT
public:
explicit DistanceWidget(QWidget *parent = 0);
~DistanceWidget();
public slots:
void setHorizotalDi... |
9262ed03b2a76284b217c736f1ca61bae33ad1c9 | b7cd4872d7d4eee37475451f4ffdb43342f52a28 | /SpecializationAndInstantiate/specialization_test.cc | 123d3c3afb2ae0d4fc0b18b5a248295d547ab147 | [] | no_license | MarkRepo/CppTemplate | 7046ce4da61bfb8a91050c9675dfa253a6d86369 | f307fef1649731cdd139bec184f57d62a946358a | refs/heads/master | 2021-03-21T03:59:44.144507 | 2020-04-06T03:55:36 | 2020-04-06T03:55:36 | 247,261,432 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cc | specialization_test.cc | //
// Created by markfqwu on 2020-02-08.
//
#include "gtest/gtest.h"
#include "SpecializationAndInstantiate/specialization.h"
using namespace tpl::specialization;
TEST(SpecializationTest, MapCmp){
Compare_test();
}
TEST(SpecializationTest, tplarg){
tplarg_test();
}
TEST(SpecializationTest, LessTest){
i... |
a396477ff181502b061bb4b3b44dd2b930c6d1f8 | bebdef83edff1cc8255785369e140ce84d43350a | /Codes/2231_Decomposition_Sum.cpp | adf6922ad4010e5f77416ecb141377b18d7032c8 | [] | no_license | SayYoungMan/BaekJoon_OJ_Solutions | 027fe9603c533df74633386dc3f7e15d5b465a00 | b764ad1a33dc7c522e044eb0406903937fe8e4cc | refs/heads/master | 2023-07-05T13:47:43.260574 | 2021-08-26T11:42:21 | 2021-08-26T11:42:21 | 387,247,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | 2231_Decomposition_Sum.cpp | #include <iostream>
int main() {
long int n, sum, tmp;
std::cin >> n;
for (long int i = 1; i<n; i++) {
tmp = i;
sum = i;
while(tmp > 10) {
sum += tmp % 10;
tmp /= 10;
}
sum += tmp;
if (sum == n) {
std::cout << i;
... |
7aaf32d1d6b3e1767321676eb2209f09b343ffcf | 5a7832ebfd2b8bc8ad7eb7c91bd03ea197b19cd9 | /CommandHandler.h | e55279db52b0e57b4bd6694198dd7bd65c6dac2b | [
"MIT"
] | permissive | Noele/Cherri | fbcdf3363872c57389afed092f01f82bbcbb032f | f840ce99bc35e97777205f200dc5dca154b03b74 | refs/heads/main | 2023-02-03T17:51:53.283101 | 2020-12-22T23:23:19 | 2020-12-22T23:23:19 | 320,363,151 | 3 | 0 | MIT | 2020-12-13T16:27:27 | 2020-12-10T18:57:23 | C++ | UTF-8 | C++ | false | false | 229 | h | CommandHandler.h | #include "Response.h"
#include "sleepy_discord/sleepy_discord.h"
#include <fmt/core.h>
#include "Toolbox.h"
class CommandHandler {
public:
static Response avatar(SleepyDiscord::Message message, SleepyDiscord::User user);
};
|
7da5d3802eff328c99e103703170eacca22cc951 | 1ea801dd4704e160c75bac3bc88b8df9c2f36368 | /translator/src/instructions/inc.h | 7be6e5513523cfb47643a0bc3512caa21c2a04ad | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | fcccode/xbyak_translator_aarch64 | e37e02038c9737564bff0319f7e1f514390c1452 | 11e976d859e519d94a62acb245902e57ba4f39c8 | refs/heads/main | 2023-04-22T02:12:28.889408 | 2021-05-14T11:16:17 | 2021-05-14T11:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,260 | h | inc.h | /*******************************************************************************
* Copyright 2020 FUJITSU LIMITED
*
* 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.a... |
125fbc2e76b3cc51321e400af3d306bc5b63c2bc | 0e268cfe31ca712edbd8990403f9dcd25d9e5d31 | /ParmDB/Box.cc | a93d93e0e13109d0fb9e27f5a98f79839d296835 | [] | no_license | drhpc/DP3 | 6bd4d61e06a4d8c7e9696951f082984d5de9d2b4 | 6d66554bcd1e6fbd0362d6805ccc0f0ca19e518d | refs/heads/master | 2022-10-05T12:00:28.232024 | 2020-06-09T15:32:41 | 2020-06-09T15:35:48 | 267,670,874 | 0 | 0 | null | 2020-05-28T18:52:46 | 2020-05-28T18:52:46 | null | UTF-8 | C++ | false | false | 2,794 | cc | Box.cc | //# Box.cc:
//#
//# Copyright (C) 2008
//# ASTRON (Netherlands Institute for Radio Astronomy)
//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
//#
//# This file is part of the LOFAR software suite.
//# The LOFAR software suite is free software: you can redistribute it and/or
//# modify it under the terms of the GNU Ge... |
c92481d848c466e770e806ee6a19adae2f1c9e1a | 8bd2e73aedd84de2a935c5b7f4b0a7c7fab83330 | /lib/Core/ExternalDispatcher.h | 931cabad858a370eadf751af43c03928d79876d6 | [
"NCSA"
] | permissive | srg-imperial/klee-float | c6208a158b3904105346e1b9f0b7c95d7b6e3cb8 | aa907655cd9ec030036424acf88d9cb41a93a93b | refs/heads/tool_exchange_03.05.2017_rebase_extra_bug_fixes | 2022-03-12T20:19:41.514369 | 2021-12-08T06:42:47 | 2022-02-15T13:59:55 | 55,293,904 | 18 | 14 | NOASSERTION | 2022-02-15T13:59:56 | 2016-04-02T12:43:01 | C++ | UTF-8 | C++ | false | false | 1,511 | h | ExternalDispatcher.h | //===-- ExternalDispatcher.h ------------------------------------*- C++ -*-===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
329b1a04cd9af7674d3195fb4d3d77141a4c6f71 | cf701f7909661b5ab89babef3535b263b8b0ddd4 | /SubCategory.cpp | 4d939c1f710113f538b51e3271d7e1e0bc380d34 | [] | no_license | simuowCSCI222a7/GroupA7_A2 | 25881b7e8747b92b3b7f39528ca6ace9a2612c0a | 6bbb44e305fadc077bcd6b5539954e612d5efdab | refs/heads/master | 2021-04-30T00:55:05.274494 | 2018-02-14T12:53:12 | 2018-02-14T12:53:12 | 121,468,560 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,266 | cpp | SubCategory.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: SubCategory.cpp
* Author: vmw_ubuntu
*
* Created on February 14, 2018, 11:46 AM
*/
#include "SubCategory.h"
// d... |
bb9e2839a6de2f2dbf06b5043bc3496c98c325ae | eb34128b8b8f8ec04724c440b50f942fd69baa5e | /LCS.cpp | acdc8be1ccf99f2387ce5d9e396f41425c0faf9d | [] | no_license | ashish-254/C-Codes | 18ac8d155328d3ab0f9e9fb6f19fa6307e3800cc | 8ecea1c0c7ff0ba52789191bc028444aca701477 | refs/heads/master | 2023-08-31T05:48:57.433260 | 2021-09-28T14:54:23 | 2021-09-28T14:54:23 | 411,322,435 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | LCS.cpp | //use of associative array or vector
#include<iostream>
#include <vector>
using namespace std;
int p=0;
//global int p=0;
typedef struct values
{
int v;
const char *s;
} data;
//struct values data;
vector<data>stack;
//vector<stack>stack2;
void tekeinput()
{
//struct
values ashish,sagar;
ashish.v=... |
7fdbe7505536a31ba0f236f8c5031c0254a966b0 | 4cff56cfb609a712003fbd09e8fc6cde520a9147 | /sln/Biu/src/biu/src/Runtime/scmm.cpp | b177e2effa39d7ff88823b5b00aa488e005463b3 | [] | no_license | teerta/Biu | 19fb29c8ab14ae2fdabad784e87d85f0c3fbd074 | 7fc55d7aed902ea208412552b2c965f819d53961 | refs/heads/master | 2020-12-03T03:45:35.479530 | 2017-06-29T18:38:53 | 2017-06-29T18:38:53 | 95,769,553 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,816 | cpp | scmm.cpp |
#include "stdafx.h"
#include "bscm.h"
using namespace Biu;
#define SCMM_ARG_INS_SERVICE _T("-Service")
BSCMManager::BSCMManager()
: m_hSCM(NULL)
, m_hService(NULL)
, m_strServiceName("")
{
}
BSCMManager::~BSCMManager()
{
ServiceClose();
CloseSCM();
}
bool BSCMManager::OpenSCM(DWORD rights)
{
m_dwRights = ... |
c214f9fa40812212e999a36bec17aff5a4bffbc9 | 6ed319c8af7836e36b4ac622a9a8215b62aaa595 | /Code/Chapter-13/reflection.cpp | 9b526ca573e49f9837042d6fc2a804bbf36f4028 | [
"MIT"
] | permissive | steps3d/graphics-book | de8ef40a120711962015d90597c8fbba32878bc0 | c19c7caf415dc59397d7ea6f459f52b57704f9b9 | refs/heads/master | 2023-03-09T10:49:46.444654 | 2023-03-08T15:46:56 | 2023-03-08T15:46:56 | 66,971,146 | 24 | 8 | MIT | 2022-05-03T16:26:10 | 2016-08-30T19:28:32 | C | UTF-8 | C++ | false | false | 4,279 | cpp | reflection.cpp | //
// Planar reflection example
//
// Author: Alexey Boreskov <steps3d@gmail.com>, <steps3d@narod.ru>
//
#include "GlutCameraWindow.h"
#include "Program.h"
#include "BasicMesh.h"
#include "Texture.h"
#include "Framebuffer.h"
class ReflectionWindow : public GlutCameraWindow
{
Program program, program2;
Texture ... |
a668c3c4bf2e751ffe8ff09769e5e9132eec7e78 | de7e771699065ec21a340ada1060a3cf0bec3091 | /spatial3d/src/test/org/apache/lucene/spatial3d/geom/SimpleGeoPolygonRelationshipsTest.h | bc2ae42cf17e8fff211eea278d30ea8213e2511a | [] | no_license | sraihan73/Lucene- | 0d7290bacba05c33b8d5762e0a2a30c1ec8cf110 | 1fe2b48428dcbd1feb3e10202ec991a5ca0d54f3 | refs/heads/master | 2020-03-31T07:23:46.505891 | 2018-12-08T14:57:54 | 2018-12-08T14:57:54 | 152,020,180 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,779 | h | SimpleGeoPolygonRelationshipsTest.h | #pragma once
#include "stringhelper.h"
#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
#include <memory>
#include <deque>
// C++ NOTE: Forward class declarations:
#include "core/src/java/org/apache/lucene/spatial3d/geom/GeoPolygon.h"
#include "core/src/java/org/apache/lucene/spatial3d/geom/GeoShape.h... |
c464726afec0405671b9ed35e39915fe6ce57f8e | b1d074d3c904fcc71897a9249640c032217a4de6 | /Observer.h | 5d0777f925bfc5b33ab22c79b0b8df0a1ab7b280 | [] | no_license | Deste-user/Project_List | 07aa95a6e6aeef0ec0e943ae710dfefaf7a7fe1a | e3744453d7b9a4db18fd0124cb1cf286e308840a | refs/heads/master | 2023-06-26T06:11:50.872676 | 2021-07-28T16:04:55 | 2021-07-28T16:04:55 | 382,081,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | h | Observer.h | //
// Created by Marco De Stefano on 15/04/21.
//
#ifndef LISTA_OBSERVER_H
#define LISTA_OBSERVER_H
#include <memory>
class Subject;
class Observer : public enable_shared_from_this<Observer> {
public:
virtual void update() = 0;
};
#endif //LISTA_OBSERVER_H
|
706176672d82cc56df9dbd2006f45e31d538aaac | 041fb0422422342f3408feb2733cba58c79d03a9 | /lib/suloki_interface.h | 057d529da9b4a50df92fd9c1c5bd38e93e71c29d | [
"MIT"
] | permissive | suloki/suloki_urc_github | 364201d561b5a539bc23f1e12b75f38983fd169c | 53310568185fda3cb9f1e8c31b26ce94b7ed4858 | refs/heads/master | 2022-11-07T23:31:50.109794 | 2019-12-24T07:53:03 | 2019-12-24T07:53:03 | 229,897,735 | 0 | 2 | NOASSERTION | 2022-10-04T23:55:25 | 2019-12-24T07:54:08 | C++ | UTF-8 | C++ | false | false | 6,593 | h | suloki_interface.h | #ifndef _SULOKI_ESF_INTERFACE_H_
#define _SULOKI_ESF_INTERFACE_H_
#ifdef SULOKI_WINDOWS_OS_SULOKI
#define SULOKI_STDCALL __stdcall
#else
#define SULOKI_STDCALL
#endif
#define SULOKI_IN
#define SULOKI_OUT
#define SULOKI_INOUT
#include "suloki.pb.h"
//about proto buffer define
//business id
const long SULOKI_SYSTEM_B... |
1c2c94e11b9b254871c92a4b5d5610f2e263f28d | 9c9c6b8deca524c9401dd24d19510d3843bebe4b | /ROBOTIS/ROBOTIS-Framework/robotis_device/src/robotis_device/sensor.cpp | ba7bf29aa5e8c1c6a942367f0f96347da49f389d | [
"Apache-2.0",
"MIT"
] | permissive | tku-iarc/wrs2020 | 3f6473c2f3077400527b5e3008ae8a6e88eb00d6 | a19d1106206e65f9565fa68ad91887e722d30eff | refs/heads/master | 2022-12-12T20:33:10.958300 | 2021-02-01T10:21:09 | 2021-02-01T10:21:09 | 238,463,359 | 3 | 8 | MIT | 2022-12-09T02:09:35 | 2020-02-05T14:00:16 | C++ | UTF-8 | C++ | false | false | 1,233 | cpp | sensor.cpp | /*******************************************************************************
* Copyright 2018 ROBOTIS CO., LTD.
*
* 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.a... |
a4d29488e6b6312764e2aaba7ec302fdd5cf674c | eccc7e990f2c3e7a1f6facf96016666ed6910961 | /Recursions/subsetsEasy.cpp | 887589b985a576bf84dd60859c86d505b1aa475f | [] | no_license | diyamahendru/Data-Structures-Challenges | 3617e34306528a0e8993c498958bec38afa1a135 | c0445e9a985f4d7b81216f5717f509001ace8b2f | refs/heads/master | 2023-01-29T19:48:16.469864 | 2020-12-09T10:20:09 | 2020-12-09T10:20:09 | 265,329,457 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | subsetsEasy.cpp | //To print Yes if the sum of any subset is 0.
#include<iostream>
using namespace std;
bool subsets(int *in, int n, int i, int sum, int cnt){
if(i == n){
if(sum == 0 && cnt > 0)
return true;
else
return false;
}
return subsets(in, n, i+1, sum, cnt) || subsets(in, n... |
84bc376b214944ece777c0526c603d08910884d6 | 1b6e2624235063cddfef23b9d04dc7f4c5a7925b | /src/Amf.cpp | a076b58625ec45087083d9de56934ebe75576abd | [
"Unlicense"
] | permissive | elnormous/rtmp_relay | a4d0c7a55e10a7f140efbd39c66d707a1a786062 | af5446861df763e2dfe68fb8a3114677f6f32d2c | refs/heads/master | 2022-12-13T02:33:46.850184 | 2022-09-24T02:45:20 | 2022-09-24T02:45:20 | 52,972,953 | 68 | 15 | Unlicense | 2022-09-22T16:57:06 | 2016-03-02T15:19:15 | C++ | UTF-8 | C++ | false | false | 41,090 | cpp | Amf.cpp | //
// rtmp_relay
//
#include <iostream>
#include "Amf.hpp"
#include "Utils.hpp"
namespace relay
{
namespace amf
{
static const std::string INDENT = " ";
static std::string typeToString(Node::Type type)
{
switch (type)
{
case Node::Type::Unknow... |
2589972394e7c3f75437500563f7cfbb40a0851a | 905a59f2bf9f0ce2497c33b8688c723e2e98a27a | /build-SkinTemplate-Desktop-Debug/src/Applications/moc_mainwindow.cxx | 3e8da57a0281410374a30e97d7ad0bd2c74a3cd1 | [] | no_license | VDimovaEdeleva/social_touch_classification_for_artificial_skin | f5e02e3b7b8da086bfd2d20f9f0c4cbc75eb5c73 | ad604b35ddf38b689cff28d622907f4f7549c8d0 | refs/heads/master | 2021-10-14T08:33:25.696630 | 2019-02-03T10:36:23 | 2019-02-03T10:36:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,993 | cxx | moc_mainwindow.cxx | /****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.7)
**
** WARNING! All changes made in this file will be lost!
**********************************************************... |
fcf885c05f1c594db32c42789d7d34b54b1d425b | 95089ad249da8d5f0eab8f69229f4a44d10ff7fb | /src/Interpreter/Scanner.hpp | ecd5319b9b7e928ab32072ddbf07ac98d4ebbbcc | [] | no_license | dydxh/SimpleSQL | b607156c56a3546cff3aab07109cb729e4dd00ad | 58cc2e767a66530400d8294c7c5d68888e4dc17d | refs/heads/master | 2020-06-01T17:42:24.112377 | 2019-06-16T10:53:10 | 2019-06-16T10:53:10 | 190,868,703 | 5 | 1 | null | 2019-06-10T05:35:28 | 2019-06-08T09:20:49 | C++ | UTF-8 | C++ | false | false | 590 | hpp | Scanner.hpp | #ifndef minisql_scanner_header
#define minisql_scanner_header
#ifndef yyFlexLexerOnce
#include <FlexLexer.h>
#endif
#include "Parser.hpp"
#include "location.hh"
namespace interpreter {
class Scanner: public yyFlexLexer {
public:
Scanner(std::istream* in) : yyFlexLexer(in) {}
virtual ~Scanner() {}
using... |
dc7c0e2e7f39f767cae0c8b538c41e7be8122ba2 | 88f1cd9bfa5fc7b3899055485101b6b91ba59152 | /src-arduino/selvkj_rende_bil.ino | 221d7207f41a4eaa73f7635ab7f0bee7de2a500a | [] | no_license | vetstr14/tof-car | 63b692bd1e93cbeeebe25dd410426df28a42be36 | 9fd36c8ba45e4ec80e2baf221ca046f701873615 | refs/heads/master | 2020-04-16T18:29:28.119700 | 2019-01-14T15:57:08 | 2019-01-14T15:57:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,788 | ino | selvkj_rende_bil.ino |
/*#include <Servo.h>
//Servo
Servo styring;
const byte styrePin = 9;
int styringPos;
Servo sensorServo;
const byte servoSensor = 44;
int sensorPos;
//Motor
const byte motorPin = 46;
int fart = 0;
//Sensorer
const byte venstreEcho = 7;
const byte venstreTrig = 6;
float durationV, lengdeV;
const byte midtenEcho = ... |
5e90d5fbaed5a5750350df1eff908fa5a5be160f | 8548f6053cca1c93db90b6f1c80f750a52c76be4 | /src/model/source/eventrate/NormallyDistributedSourceEventRate.h | 9b7af299d2531c6838937552bccab1a52e44f933 | [] | no_license | lukasbm/ECSNeTpp | d6d11cf691babc6c12204bce283f487be77c83e2 | 913ef5ca7e6dd034c758373b5044aa16003baa1d | refs/heads/master | 2023-07-22T07:53:24.583557 | 2021-08-28T02:00:33 | 2021-08-28T02:00:33 | 359,004,021 | 0 | 0 | null | 2021-04-17T23:35:08 | 2021-04-17T23:35:08 | null | UTF-8 | C++ | false | false | 634 | h | NormallyDistributedSourceEventRate.h | #ifndef MODEL_SOURCE_EVENTRATE_NORMALLYDISTRIBUTEDSOURCEEVENTRATE_H_
#define MODEL_SOURCE_EVENTRATE_NORMALLYDISTRIBUTEDSOURCEEVENTRATE_H_
#include "omnetpp.h"
#include "ISourceEventRateDistribution.h"
using namespace omnetpp;
namespace ecsnetpp
{
class NormallyDistributedSourceEventRate : public ISourceEventRa... |
6107cf5d43a1e298471dc4f1e2d9c286711d9a51 | 4e3b017d4adb7c1bb556097147b54dde20494215 | /OpenFileMessage.h | f5e1f5a354b5ce5bda3aeb734d976876d17afd31 | [
"MIT"
] | permissive | DmitrySibert/virtual-folder | 627ee09c5e7e2d7d8a4b2f34b62c09aed8efe66a | 9016fc2a9f5980f7e201b39494fae6f52f88a9a3 | refs/heads/master | 2021-01-18T23:08:06.367943 | 2016-02-02T16:29:36 | 2016-02-02T16:29:36 | 44,751,119 | 4 | 1 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 607 | h | OpenFileMessage.h | #pragma once
#include "BaseMessage.h"
#include <rapidjson\writer.h>
#include <rapidjson\stringbuffer.h>
using namespace rapidjson;
class OpenFileMessage : public BaseMessage
{
private:
string file;
protected:
//Можно использовать в потомках для получения сериализованной части родительского класа
virtual void pre... |
da8a797f7f7e73bf79b7eb9b3929b121b0e30483 | f87fc667217bc1a75d14094bae002e41872ea65f | /st.h | aa8cab2fbea0079e76b953b1e0ec33a37d123283 | [] | no_license | kimsh0713/DirectX | 2268432de0a584697b6e68f64aa3fcf4d4f59ce4 | 1d7f346aebe95f82755a03d464d1e2f76c60327a | refs/heads/main | 2023-07-17T11:31:18.567498 | 2021-09-01T05:50:19 | 2021-09-01T05:50:19 | 374,978,284 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 222 | h | st.h | #pragma once
template<typename T>
class st
{
public:
static T* p;
static T* G()
{
if (!p)
p = new T;
return p;
}
static void D()
{
delete p;
p = nullptr;
}
};
template <typename T>
T* st<T>::p = nullptr; |
b0a00a7c680d58b38f3956888f80c643228b71d5 | e6954e446eeeea366b9b307cc9a27d73d0bdb664 | /stadium.hpp | a1b95e77e5b8729c269a70b4afb42147fec570ec | [] | no_license | piotrku91/stadium-system-res | c619126a29cad76a6460b6141fd12ad313d9acb8 | 28755325e08dea1dce41f83576c9ef8c4208c83d | refs/heads/master | 2023-04-26T19:10:29.938003 | 2021-05-31T19:07:54 | 2021-05-31T19:07:54 | 367,417,953 | 3 | 2 | null | 2021-05-26T05:56:29 | 2021-05-14T16:17:49 | C++ | UTF-8 | C++ | false | false | 2,417 | hpp | stadium.hpp | #pragma once
#include <map>
#include <vector>
#include "person.hpp"
#include "seat.hpp"
// Main stadium class file - Stadium object should be completely modular and prepared to move to another project or GUI
// This class is only demo version - need to be rebuild
using TRow = std::vector<std::vector<std::unique_ptr<sea... |
dd6b0b22956b3583b2881f265949bdb8e1b7b889 | 3193f5be61e4bacdfa3dfb73a837b475d8dbd6df | /src/solver/convdiffvg.cpp | c98078f2ac5bec0d51be0ab4d986f9700a65d07c | [
"MIT"
] | permissive | BO136775579/aphros | ffd64f9c88a4c64a5680b3479ffc1c4b3ee5979f | db8dfd7ff83ef13d66d2e15e83868d33d4825889 | refs/heads/master | 2023-02-27T12:40:25.998178 | 2021-01-29T00:17:14 | 2021-01-29T00:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | convdiffvg.cpp | // Created by Petr Karnakov on 20.11.2019
// Copyright 2019 ETH Zurich
#include "convdiffvg.ipp"
#include "convdiffe.h"
#include "convdiffi.h"
using M = MeshStructured<double, 3>;
using EB = Embed<M>;
template class ConvDiffVectGeneric<M, ConvDiffScalImp<M>>;
template class ConvDiffVectGeneric<M, ConvDiffScalExp<M>>... |
f0fb5d00351241f8202059d1f8001e2822b85be2 | 49df3f33b58159b410ff82bfa04a1a8eacf5e737 | /lib/math/conversions.hpp | 2ccb17687fa651fa62499daf5bca7f43c0712a7f | [] | no_license | scryver/scrutils | 17d6a6d04a6e203ff28bcdb91284d266ffde286b | c004145af13d8c4c7f7d55edaac240e5387509a8 | refs/heads/master | 2021-01-22T06:23:01.926616 | 2017-04-28T23:28:14 | 2017-04-28T23:28:14 | 81,754,682 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | hpp | conversions.hpp | #ifndef SCRYVER_MATH_CONVERSIONS_HPP
#define SCRYVER_MATH_CONVERSIONS_HPP
#include "Scryver/Math/Constants.hpp"
namespace Scryver {
namespace Math {
template <typename T>
constexpr inline T toRadian(const T& degree) { return degree * PI<T>() / static_cast<T>(180.0); }
template <typename T>
constexpr inline T toDeg... |
34746d32d84bcece7da996b329c28aacece87a0c | a794247214443257ab37a69b5f4cb203e6db75c8 | /lab3-triangle1 | 962c170e2ad368820f3d39dd9cb234bc2eb1ac28 | [] | no_license | xLOWer/C-projects | 1f0982dd25a3d8c9198c939eee7695edfc7997ea | e70e611acda0788c86784cb6ff106577f629af25 | refs/heads/master | 2021-01-20T11:35:50.895568 | 2015-09-21T11:46:17 | 2015-09-21T11:46:17 | 31,428,003 | 0 | 0 | null | 2017-04-02T15:01:23 | 2015-02-27T16:22:20 | C++ | UTF-8 | C++ | false | false | 320 | lab3-triangle1 | #include <math.h>
class __TRIANG{
public: double a, b, c;
double _perimeter()
{
return a + b + c;
}
double _square()
{
double p = _perimeter() / 2;
return sqrt(p * (p - a) * (p - b) * (p - c));
}
bool __triangle(){
if(a + b > c && a + c > b && b + c > a){return true ;}else{return false;}
}
};
| |
adb046f0ce67de5503d9154dc6ca39587dc07453 | 21da8e3490769f0062fad806abc119ed0334b7cc | /CodeChef/SEPT16/DIVMAC.cpp | 8792ff386f93b35c89cb287e1deba2aa47e2e672 | [] | no_license | nikhilhassija/CompetitiveProgramming | d2e0606c1badd3209452d670a99234a3ef0d5d6c | 794deb2ef26d03471e78c6fb77f3a72d810d19f1 | refs/heads/master | 2020-04-05T23:06:20.363385 | 2017-12-22T21:19:16 | 2017-12-22T21:19:16 | 42,791,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,959 | cpp | DIVMAC.cpp | #include <bits/stdc++.h>
using namespace std;
struct node
{
int offset;
int L[20];
};
node T[400005];
int A[100005];
vector <int> P;
void init();
void assign(int *, int);
void segtree_build(int, int, int);
int segtree_query(int, int, int, int, int);
void segtree_update(int, int, int, int, int);
int main()
{
io... |
4d017c65044777a31e8e2ce2491c85c519711f5a | 332e0c3c2189c73c51a9422ab4f9e07ed7d5134e | /11917.cpp | 685bbe81dd8ce0bae568aafd459eb8969ea6db6b | [] | no_license | ksaveljev/UVa-online-judge | 352a05c9d12440337c2a0ba5a5f1c8aa1dc72357 | 006961a966004f744f5780a6a81108c0b79c3c18 | refs/heads/master | 2023-05-24T23:08:48.502908 | 2023-05-16T10:37:37 | 2023-05-16T10:37:37 | 1,566,701 | 112 | 80 | null | 2017-01-10T14:55:46 | 2011-04-04T11:43:53 | C++ | UTF-8 | C++ | false | false | 685 | cpp | 11917.cpp | #include <iostream>
#include <string>
#include <map>
using namespace std;
int main(void) {
int t, n, d;
string input;
map<string,int>::iterator it;
cin >> t;
for (int c = 0; c < t; c++) {
cin >> n;
map<string,int> subjects;
while (n--) {
cin >> input >> d;
subjects[input] = d;
... |
a30cff7402f96d6fd1b18c2af060c350192b0f3b | 50fc832396b2a1fe35ba89fd30b3a0988f4b5827 | /19. Remove Nth Node From End of List.cpp | 6062ee3f5825057ebc083a2fac08a30dd0a9cc53 | [] | no_license | peter88037/LeetCode | 7feb28f0909da229f496aae82f76a955e3261d5a | 1871434bcdd21b075d86bf8f00e349e34ac66be2 | refs/heads/master | 2020-05-09T22:33:31.116185 | 2019-04-15T11:46:13 | 2019-04-15T11:46:13 | 181,473,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 661 | cpp | 19. Remove Nth Node From End of List.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* removeNthFromEnd(ListNode* head, int n) {
ListNode* front=new ListNode(-1);
front->next=head;
... |
186a06375e7622fc3bc2630a7b8850e62fd6168a | ef307b85663a56accf58544ccb8a27ac3b4353df | /mainMin.cpp | 7fdf24ca533bf10e0ba749939edc00775d83f545 | [] | no_license | hutchinsonsh/minHeap | ca28e70e57a38bdc3cc5cac8b9f8d2866cb8dc00 | c5d3af2e3c1042b762ff264f925406ada1e7282e | refs/heads/master | 2022-08-04T12:23:42.055859 | 2020-05-22T23:41:16 | 2020-05-22T23:41:16 | 266,227,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,327 | cpp | mainMin.cpp |
#include <stdio.h>
#include <stdlib.h>
#include "heapMin.h"
int main()
{
// creates objects heap and k from heap.cpp
struct HEAP heap;
struct ELEMENT k;
heap = Initilize(10);
int arr[10] = {2, 4, 11, 8, 10, 49, 17, 250, 13, 32};
BuildHeap(&heap, arr, 10);
printf("Original min heap:");
Pr... |
85ceff5c8bb57a54626c133014200e676530b02c | 26fa522956d199883ab232de3aa09f9082a55b54 | /calculate_pi.cpp | 17d0ef5c61a5142dc702858bc256848b42a5c287 | [] | no_license | marotzke/SuperComputing | 9c67c447d715fcffa5a4cb5be54beeb64bf4f528 | 0b4b911a9b551e39e1177699c302c329d2687706 | refs/heads/master | 2021-09-21T12:49:48.984655 | 2018-08-26T22:32:39 | 2018-08-26T22:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,739 | cpp | calculate_pi.cpp | /*
This program will numerically compute the integral of
4/(1+x*x)
from 0 to 1. The value of this integral is pi -- which
is great since it gives us an easy way to check the answer.
The is the original sequential program. It uses the timer
from the OpenMP runtime library
History: Written by... |
b3a410be2cd409a9564020385a0231f2c4a1275d | affa71d8df4f5a7f882053ad61a69abc77a957d9 | /advancedC++/project/inc/outgoingEvent.h | 6422f3043a5206a64cefd8f80b23113c0e7bc19e | [] | no_license | sashatim125/Experis-H50 | e34396c7f91ee518d90ff04bc380057db5388119 | 94c834cac93729fe5cf1b3c9a40db2a2a035d4bc | refs/heads/master | 2020-04-03T02:04:12.189571 | 2018-10-27T09:23:36 | 2018-10-27T09:23:36 | 154,946,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,452 | h | outgoingEvent.h | #ifndef __OUTGOINGEVENT_H__
#define __OUTGOINGEVENT_H__
//
// @file outgoingEvent.h
// @brief outgoing event (with destination)
//
// @details see comments
//
//
// @author Alexander Timoshenko sashatim125@gmail.com
//
//
#include "eventsReceiver.h"
namespace advcpp
{
struct OutgoingEvent
: public Event... |
de9328b0b99d178d4b01bbd07eb6884fc428d2f7 | 095b7832c29a9225b83f9f4ff8355ef6a6543b0d | /Graph/MinimumTimeTakenByDAG.cpp | 13cca0e45cfda62648e29bec698a176439b6e848 | [] | no_license | I-Venkatesh/Data-structures-and-algorithms | a459b2a45fe0b5d2399e4f287bb83ea5d1742fac | 0d05ee80d0e6dd5f376b843975f3c70abac1457f | refs/heads/master | 2023-08-13T20:19:52.214023 | 2021-09-11T14:36:30 | 2021-09-11T14:36:30 | 323,447,201 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,670 | cpp | MinimumTimeTakenByDAG.cpp | using namespace std;
#include<bits/stdc++.h>
vector<int> graph[100005];
int inDegree[100005];
int job[100005];
void addEdge(int x,int y)
{
graph[x].push_back(y);
inDegree[y]++;
}
void topologicalSort(int n,int m)
{
queue<int> q;
for(int i=0;i<=n;i++)
{
if(inDegree[i]==0)
{
... |
2cd59a4232dd87b9cfc76b97e25a4b27a8f4cb01 | ec55e2cf115c26054ff315b1d406f2b45b38443e | /src/modules/communication/http_client.cpp | c05b5455f78841de7ac79c78d2ec556b2c8aa419 | [] | no_license | gruut/enterprise-merger | 2007be71fce847560c389272507e7bff0825d8fd | 73b849ede88420b7fa4c5ac63c75d2033d602256 | refs/heads/develop | 2020-04-07T07:32:33.977349 | 2019-06-03T05:34:08 | 2019-06-03T05:34:08 | 158,180,298 | 6 | 3 | null | 2019-07-19T01:07:34 | 2018-11-19T07:34:56 | C++ | UTF-8 | C++ | false | false | 2,553 | cpp | http_client.cpp | #include "http_client.hpp"
#include <iostream>
using namespace std;
namespace gruut {
HttpClient::HttpClient(const string &m_address) : m_address(m_address) {
el::Loggers::getLogger("HTTP");
}
CURLcode HttpClient::post(const string &packed_msg) {
try {
m_curl.setOpt(CURLOPT_URL, m_address.data());
m_curl... |
202f1cb4721f0fe981df255581c3c817b0915965 | 1fe5cf3c6966363118b8bbe7042853288b81060a | /习题3-2.cpp | d324daf946785df1762923f8e399e4dfb1237764 | [] | no_license | Cccceb/UvaCode | a2c415ca4c09b6ec3b5c03f92175fb06568b829d | 75e538b65c60eb49a4dff0f974ce30af580029b7 | refs/heads/master | 2020-12-18T18:45:04.717896 | 2020-01-22T03:08:12 | 2020-01-22T03:08:12 | 235,487,730 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,208 | cpp | 习题3-2.cpp | #include<iostream>
#include<cstring>
#pragma warning(disable:4996)
#define LOCAL
#ifdef LOCAL
FILE *fin = freopen("习题3-2in.txt", "r", stdin);
FILE *fout = freopen("习题3-2out.txt", "w", stdout);
#endif
double xigema(const char a, const int b);
int main() {
using namespace std;
int T;
char s[105];
cin >> T;
while (... |
ddf61fb918af153d0557649b797c09a5c215dd2b | 4fd8ac5f1931df93ffdbe1f568d514e0cc6ca92c | /projet_selimbenaich/afficher_joueur.h | ae7b2b0499648b35c742ed9a655d21d3c4a94a5d | [] | no_license | TheRealSumpark/QT_Project | 4b0b5cf92de136be0ff933ba869094f5a81954b2 | b58f722806a085d0e2662272fe9f53571f48654d | refs/heads/master | 2021-05-21T14:02:17.330330 | 2020-04-23T14:47:28 | 2020-04-23T14:47:28 | 252,674,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | h | afficher_joueur.h | #ifndef AFFICHER_JOUEUR_H
#define AFFICHER_JOUEUR_H
#include <QDialog>
#include <QVariant>
#include <QAction>
#include <QApplication>
#include <QButtonGroup>
#include <QDialog>
#include <QHeaderView>
#include "statclass.h"
#include <qcustomplot.h>
namespace Ui {
class Afficher_joueur;
}
class Afficher_joueur : publi... |
658b0e18ed833f9978a557eff8089739e3c1e2a1 | a73540d3fd6d41db453a1e9fba40b276722b4476 | /src/Viewer/PickHandler.cpp | 3acf9cc4ae816e7c80876ab29f994c59f78d01f2 | [] | no_license | kapecp/3dsoftviz | 2293ab9506e884f175a5f0e868049b87c568dcb9 | 8d425301eb361d64ad6c67dac91f24412118828f | refs/heads/master | 2020-12-25T16:53:34.605091 | 2016-10-02T17:55:21 | 2016-10-02T17:55:21 | 970,455 | 4 | 9 | null | 2018-02-10T10:44:15 | 2010-10-07T20:23:20 | C++ | UTF-8 | C++ | false | false | 40,993 | cpp | PickHandler.cpp | #include "Viewer/PickHandler.h"
#include "Viewer/DataHelper.h"
#include "Viewer/CoreGraph.h"
#include "Viewer/CameraManipulator.h"
#include "Util/ElementSelector.h"
#include "Manager/Manager.h"
#include "Network/Client.h"
#include "Network/Server.h"
#include "Core/Core.h"
#include "Layout/LayoutThread.h"
#include "... |
891c622197baf4ca8ee18184588e1f74d560609a | e2631c740dff4cce35b1e0f6dfbeb24aad5b3371 | /src/ofEye.hpp | 987985a6a4a189b4a812ad07190f7e1857429a3e | [] | no_license | zalavariandris/Greyout | 66d9b50c0857f861489050354a35afd7394a8899 | 9f4802f2072864b6b973b88057f4e8173816ee2e | refs/heads/master | 2020-03-14T21:58:22.442222 | 2018-05-05T15:29:46 | 2018-05-05T15:29:46 | 131,810,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,247 | hpp | ofEye.hpp | //
// Camera.hpp
// Greyout
//
// Created by András Zalavári on 2018. 04. 30..
//
#pragma once
#include "ofMain.h"
#include "ps3eye.h"
class ofEye{
public:
void setup();
void update();
shared_ptr<ofImage> buffer;
// properties
bool getAutogain() const;
void setAutogain(bool val);
bo... |
911c67737a404d8f3928bebdeeca464429364661 | 793c8848753f530aab28076a4077deac815af5ac | /src/dskphone/logic/talk/vqrtcp/src/modvqrtcp.cpp | 56fd1207be5b4df430fc168f9382c81b2e8cfaf7 | [] | no_license | Parantido/sipphone | 4c1b9b18a7a6e478514fe0aadb79335e734bc016 | f402efb088bb42900867608cc9ccf15d9b946d7d | refs/heads/master | 2021-09-10T20:12:36.553640 | 2018-03-30T12:44:13 | 2018-03-30T12:44:13 | 263,628,242 | 1 | 0 | null | 2020-05-13T12:49:19 | 2020-05-13T12:49:18 | null | UTF-8 | C++ | false | false | 2,532 | cpp | modvqrtcp.cpp | #include "vqrtcp_inc.h"
#ifdef IF_FEATURE_RTCPXR
static LRESULT OnMSGReceive(msgObject& msg)
{
switch (msg.message)
{
case TM_TIMER:
{
return _VQReportManager.OnTimer(msg.wParam);
}
case IPVP_MSG_AUDIO_VQREPORT:
{
return _VQReportManager.ProcessVQReportM... |
e366a0a818848b86a8ff9cb74219817325dadb35 | 9176fbc27068cf206b2d774fa20929bc0c46c6e9 | /Source/Penguin.h | bb195a7de72f025d2dd3a056398aacd74922d0ae | [] | no_license | IsaacMulcahy/PenguinPanic | c42b92a22501105be1e6f8736747e2eaf526b4f1 | 7b9f48011cba1b50d8d3fd15c6e2e5051292312e | refs/heads/master | 2020-03-14T13:27:13.341270 | 2018-04-25T22:20:11 | 2018-04-25T22:20:11 | 131,633,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | Penguin.h | #pragma once
#include "GameObject.h"
class Penguin : public GameObject
{
public:
Penguin() { penguin = std::make_unique<GameObject>(); };
~Penguin() = default;
void setFired(bool value) { fired = value; };
bool getFired() { return fired; };
private:
std::unique_ptr<GameObject> penguin;
bool fired = false;
}; |
c4a8ed306fbc9459315d92536c16db3226ca864d | 0f35faad9616119366fd97c91ca0a1e5ecfdb3e4 | /cpp/jsonpack/json_pack_types.h | 22bb6d38dfb70c314727a57f495296647a9c52a2 | [] | no_license | nonstop/sandbox | 374d8dca8809aee1da74f48fc427eb0adf1649bc | 43008f6123dfd88c35f9ff42abcd99d21f5119ce | refs/heads/master | 2022-05-27T22:40:55.322107 | 2022-05-01T04:16:33 | 2022-05-01T04:16:33 | 123,214 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | h | json_pack_types.h | #ifndef SERVERLIB_JSON_PACK_TYPES_H
#define SERVERLIB_JSON_PACK_TYPES_H
#include "json_packer.h"
namespace json_spirit
{
JSON_PACK_UNPACK_DECL(int);
JSON_PACK_UNPACK_DECL(unsigned);
} // json_spirit
#endif /* SERVERLIB_JSON_PACK_TYPES_H */
|
e6b04c85c205bf3458fdb2c4c0ba5c37f031e375 | 1ff23a8ab92db305e1f9ee92c92a4c853ab1f05e | /GameTest/Object/Controllable.h | 243b0e97bd854e647453020e8b7be60f95ca1804 | [] | no_license | kevin791129/Capman | 5766c056998379b2247b85283837d1bb656490dc | e4aca706ceb2400ba86ac2ef28ea4dc9af1df516 | refs/heads/master | 2020-05-09T20:33:17.565709 | 2019-04-15T04:27:22 | 2019-04-15T04:27:22 | 181,411,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | h | Controllable.h | #pragma once
class Controllable
{
public:
bool _AIControl;
public:
void SetControl(bool manualInput);
}; |
3bbace5d7980fb6ac336c0be1dba0873eac20e28 | 73ace3445303a0f3ee26f798204105ebac407a8f | /src/mlpack/core/optimizers/lrsdp/lrsdp_function.hpp | 7eeaf146a236bedcd75f2a88af47c21229dec51e | [
"BSD-3-Clause"
] | permissive | jaskaran1/mlpack | 9214f7689994223b3b86a9cdbfc1854f127fe523 | 53ceb3163539354a19a2de209b4067a514f4b4ba | refs/heads/master | 2020-11-30T12:31:25.587276 | 2015-02-03T09:16:02 | 2015-02-03T09:16:02 | 30,118,377 | 0 | 0 | null | 2015-01-31T16:41:47 | 2015-01-31T16:41:47 | null | UTF-8 | C++ | false | false | 5,042 | hpp | lrsdp_function.hpp | /**
* @file lrsdp_function.hpp
* @author Ryan Curtin
* @author Abhishek Laddha
*
* A class that represents the objective function which LRSDP optimizes.
*/
#ifndef __MLPACK_CORE_OPTIMIZERS_LRSDP_LRSDP_FUNCTION_HPP
#define __MLPACK_CORE_OPTIMIZERS_LRSDP_LRSDP_FUNCTION_HPP
#include <mlpack/core.hpp>
#include <mlpa... |
0ff74fa37ae19c7cc83593a21b9c15bebbdb1963 | 7ca93ff5c2cf84c003a7afe2d5f40711499f992a | /CSV_SEXPEN.cc | b03ec49dd34eb2a68edc1e6ae3fae6976cfbfe6e | [
"MIT"
] | permissive | ycwu1030/CS_GGM | 32ed567be8d954cd40f8ceb2dca54848464e8eed | 702dabafc5c15f7e395c0af4df9ca6aed93496a6 | refs/heads/master | 2023-07-31T12:54:38.493550 | 2021-09-20T02:50:52 | 2021-09-20T02:50:52 | 408,291,020 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,893 | cc | CSV_SEXPEN.cc | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include "SM_GAC_SEXPEN.h"
#include "multinest.h"
/******************************************** loglikelihood routine
* ****************************************************/
// Now an example, sample an egg box likelih... |
127d30a372514f871a07a8ed5df0addcd5062cb4 | 14c1096c42544a694d33dcb3a0120f50434a1e4e | /lib/src/histogram.cpp | bacd3a9e775f562f8228018b19bb0929fdf65976 | [
"Apache-2.0"
] | permissive | shazam/prometheus-cpp | 36e3d7c39a310bacb22b93d3a250fc486c6d8390 | 8add28a57262bd39fae9bac72b43991cdd799b42 | refs/heads/master | 2021-01-22T05:47:30.565220 | 2017-11-30T00:09:53 | 2017-11-30T00:09:53 | 103,313,423 | 3 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | cpp | histogram.cpp | #include <prometheus/histogram.h>
#include <prometheus/check.h>
#include <functional>
using namespace std;
namespace {
vector<double> &addPosInf(vector<double> &bounds) {
bounds.emplace_back(numeric_limits<double>::infinity());
return bounds;
}
template<typename Func>
prometheus::histogram::bounds make_bounds(... |
fb598347a061dc45fe8c405df4f1b18515cad8ef | e0904d35f0b89fed8ebdeb6e08864c0208006954 | /Applications/Utils/GeoTools/MoveGeometry.cpp | d7a971a60458a707dce5d7cd2d1acfd51454eaa9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ufz/ogs | e3f7b203ac960eeed81c3ad20e743b2ee2f4753e | 073d0b9820efa5149578259c0137999a511cfb4f | refs/heads/master | 2023-08-31T07:09:48.929090 | 2023-08-30T09:24:09 | 2023-08-30T09:24:09 | 1,701,384 | 125 | 259 | BSD-3-Clause | 2021-04-22T03:28:27 | 2011-05-04T14:09:57 | C++ | UTF-8 | C++ | false | false | 3,256 | cpp | MoveGeometry.cpp | /**
* \file
* \author Karsten Rink
* \date 2015-08-04
* \brief A small tool to translate geometries.
*
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* ... |
cdf904a94bb524312e36d975196d4a53f9c7d32d | 01aabb4a7a36d397b2f4a58255840749227043f1 | /Beginner126/b.cpp | e07d7977e6e7a525a972f880204cb189629f8597 | [] | no_license | higher68/atcoder | 1c8e562a21d043827912d27b032b55b71399e6b6 | a089b4a096fde6ca0be28b220af55c48210e7966 | refs/heads/master | 2021-06-17T04:02:22.189387 | 2019-09-22T07:36:27 | 2019-09-22T07:36:27 | 137,625,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 801 | cpp | b.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
string S;
cin >> S;
int S_left = atoi(S.substr(0, 2).c_str());
int S_right = atoi(S.substr(2, 2).c_str());
bool left_judge_m = (1 <= S_left) and (S_left <= 12);
bool left_judge_y = 0 <= S_left;
bool right_judge_m = (1 <= S_right) and... |
a84d0d3bf53648c82553112a5dbbe2ef0158b98b | 63fadaa93caca22ca6b6546584243daf24e0e3fd | /sangwon/ch24_SegmentTree/24-3.cpp | d2644a05e7252dc5af52dc5a7e1a1decf0da4b78 | [] | no_license | snulion-study/algorithm-int | 60e69f58d0a94560798881ef98bd7a434c472733 | 7ac1cefe7b1e77b5ade9a28f302b5db0bb67a427 | refs/heads/master | 2023-03-14T09:52:47.139136 | 2021-02-27T05:13:02 | 2021-02-27T05:13:02 | 293,447,189 | 0 | 5 | null | 2021-02-27T05:13:03 | 2020-09-07T06:57:35 | C++ | UTF-8 | C++ | false | false | 1,021 | cpp | 24-3.cpp | // 24.3 RMQ 문제를 푸는 구간 트리에서 갱신 연산의 구현
struct RMQ {
// array[index]=newValue 로 바뀌었을 때, node를 루트로 하는
// 구간 트리를 갱신하고 노드가 표현하는 구간의 최소치를 반환한다.
int update(int index, int newValue, int node, int nodeLeft, int nodeRight) {
// index가 노드가 표현하는 구간과 상관없는 경우엔 무시한다.
if(index < nodeLeft || nodeRight < inde... |
cdab8d7950f39fd27005ac9954fb599126bbe09b | 9a55a1ac7ab096bd7c92820f2ccddcda5e0d7977 | /Master BT/src/MIMU.cpp | f1d6484712ff80e437b292f6dda2385c6cc47759 | [] | no_license | Dom0798/SensorsFIV | aa1b11dece3bb3bc4326cbc1e1f42c522fb47fca | 2d4cf4da0aaf2306525818cba51570fb8a5e9487 | refs/heads/main | 2023-01-14T17:43:29.328784 | 2020-11-20T02:26:42 | 2020-11-20T02:26:42 | 314,423,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,629 | cpp | MIMU.cpp | #include <Arduino.h>
#include <Wire.h>
#include "SparkFun_BNO080_Arduino_Library.h"
#include <BluetoothSerial.h>
#include <esp_now.h>
#include <WiFi.h>
typedef struct Hall{
int pos;
} Hall;
BNO080 myIMU2; //Closed I2C ADR jumper - address 0x4A
Hall Pos;
BluetoothSerial SerialBT;
String payload1;
Stri... |
109fa4d6f4457b7ac0bb074d89431a99fee2e19d | 3cf484db295a891f86e390fb58c33218112834be | /fakeflow/action.hpp | d8ce46a949eab13c94dcd702f07f14a87acc7126 | [
"Apache-2.0"
] | permissive | flowgrammable/steve | 5aae9706818df107edb03b88929ad6b9e6cd8b86 | 7057c90a9e2ee422fde4956b114d8ddfc4f8f031 | refs/heads/master | 2021-01-21T05:03:09.911103 | 2016-07-29T17:45:25 | 2016-07-29T17:45:25 | 39,910,789 | 2 | 1 | null | 2016-07-27T22:06:38 | 2015-07-29T18:56:08 | C++ | UTF-8 | C++ | false | false | 5,077 | hpp | action.hpp | // Copyright (c) 2015 Flowgrammable.org
// All rights reserved
#ifndef FP_ACTION_HPP
#define FP_ACTION_HPP
#include "types.hpp"
#include <vector>
#include <iostream>
namespace fp
{
struct Context;
// Defined address spaces for fields.
constexpr int Packet_memory = 0;
constexpr int Metadata_memory = 1;
// A ... |
3e689d6397ffb35ee5b527ad35b00acc163400eb | f154525a08770ab1805e6b72a75422228e04f36a | /taglist.cpp | e365a0ecce5bdddb9bfc3f43c3fb1bb5e0f185b8 | [] | no_license | ygorg/Tagulous | 4cbbd5e964ccb5dfb3b485e6a49c99d3b813a696 | 07ca464beabeb51be2423018dcfa6b94d9329efc | refs/heads/master | 2021-06-18T01:21:00.363275 | 2017-05-16T18:43:23 | 2017-05-16T18:43:23 | 83,132,047 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,890 | cpp | taglist.cpp | #include "taglist.h"
#include <QDebug>
TagList::TagList()
: QList<Tag *>()
{}
void TagList::fromXML(QXmlStreamReader *reader) {
Tag *currentTag;
TagFile *currentFile;
bool inFile = false;
while (!reader->atEnd()) {
reader->readNext();
if (reader->isWhitespace()) {
co... |
23e370f5e66d022c26568fd3e2bb8c90c3a41500 | ee4f5d10eda69aa44319ad77bda99fbfa6da81b1 | /src/format.cpp | f2be1a4a4345afd7a73175030845e9da6674ab5d | [
"MIT"
] | permissive | halogen7/system-monitor | 8386b0426b5aeca408aa09b4366183c77cf92ba7 | 19ef12132f9401ff74a33e1869a996d3ed500081 | refs/heads/master | 2023-09-01T12:35:22.695821 | 2021-10-17T17:22:28 | 2021-10-17T17:22:28 | 390,564,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | cpp | format.cpp | #include "format.h"
#include <iostream>
#include <string>
using std::string;
// Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
string Format::ElapsedTime(long seconds) {
// Get initial remainder
int mod = seconds % 3600;
// Get hours, minutes, seconds
string hours = s... |
aa2528d99e851cfd4fce07fb818722b2c2cbcc72 | db917eacf28355caddda00fd09613bc54bcca2b3 | /src/twister.cpp | 24a19f21372c20a6ec8bf3fc928dbb14827b3827 | [
"MIT",
"BSD-3-Clause"
] | permissive | djmaze/twister-core | 758bbbb953183f75266a12b8ca70ea7e8b7d9aed | 2d96c08f498ef82a60d3efe447ebf4df639c0063 | refs/heads/master | 2021-01-18T13:41:52.363008 | 2014-07-04T15:58:10 | 2014-07-04T15:58:10 | 21,539,310 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 83,282 | cpp | twister.cpp | #include "twister.h"
#include "twister_utils.h"
#include "dhtproxy.h"
#include "main.h"
#include "init.h"
#include "bitcoinrpc.h"
#include "txdb.h"
#include "utf8core.h"
#include "libtorrent/peer_info.hpp"
using namespace json_spirit;
using namespace std;
#include <boost/shared_ptr.hpp>
#include <boost/filesystem.h... |
92f1a647dadc984f97c782714ee436e93104b9d4 | 157c466d9577b48400bd00bf4f3c4d7a48f71e20 | /Source/ProjectR/UI/DeckManagement/UP_DeckManager_CS.cpp | c395147bac37245980e8bf6afeb5dd9f8203fa26 | [] | no_license | SeungyulOh/OverlordSource | 55015d357297393c7315c798f6813a9daba28b15 | 2e2339183bf847663d8f1722ed0f932fed6c7516 | refs/heads/master | 2020-04-19T16:00:25.346619 | 2019-01-30T06:41:12 | 2019-01-30T06:41:12 | 168,291,223 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,913 | cpp | UP_DeckManager_CS.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "ProjectR.h"
#include "UP_DeckManager_CS.h"
#include "Global/RGameInstance.h"
#include "Global/RealTimeModManager.h"
#include "Network/HttpRequestClient.h"
#include "Network/RTSManager.h"
#include "UI/Common/ScrollView/UP_HeroSc... |
5661322ce15847aa407ca7861ee321d1baa2b6fe | bd019e187f56dc637dd5b695ed1c6fc36547d403 | /cMouseCursor.cpp | 0b6a18a70532fabc1266e02b85c317f2ae15ffea | [] | no_license | JaeHyunKim02/-Change-clothes | 48fa3d8f12b9ff7bd576e03f1a66a56bb84e8475 | dc5a8a25197b5cda5de20df9b984d4d24a08a496 | refs/heads/master | 2021-04-16T10:18:00.395404 | 2020-03-23T06:14:38 | 2020-03-23T06:14:38 | 249,349,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | cpp | cMouseCursor.cpp | #include "stdafx.h"
#include "cMouseCursor.h"
cMouseCursor::cMouseCursor()
{
g_MNomal = IMAGE->FindImage("MouseCursor_nomal");
g_MOnCursor = IMAGE->FindImage("MouseCursor_onclick");
g_MClick = IMAGE->FindImage("MouseCursor_upclick");
//x = INPUT->GetMousePos().x;
//y = INPUT->GetMousePos().y;
}
cMouseCursor::~cM... |
f74522c04dbca42d9c0a3e04a209ada91da1c034 | d5688d21d8084a628446d8101ba3dee571a6ac30 | /src/item.h | c7d299424875650ec1bbcc2c582d29884735c9d3 | [
"CC-BY-ND-4.0",
"MIT"
] | permissive | hiro-dot-exe/super-morio-bros | 959c6dcd34b1e90cb0f0432d13d47e78e32c27a4 | 0ec6b54350a3ebe0c055f346d797d13ded5dc248 | refs/heads/master | 2022-07-27T01:54:15.798475 | 2020-05-18T19:35:37 | 2020-05-18T19:35:37 | 265,028,035 | 0 | 0 | MIT | 2020-05-18T18:46:02 | 2020-05-18T18:35:39 | C++ | UTF-8 | C++ | false | false | 879 | h | item.h | //-----------------------------------------------------------------------------
// Copyright (c) 2013 @hirodotexe. All rights reserved.
//-----------------------------------------------------------------------------
#ifndef SUPER_MORIO_BROS_ITEM_H_
#define SUPER_MORIO_BROS_ITEM_H_
#include "moving_object.h"
... |
b79f178694a145af248bc4bd903cd1f1b102202a | 259329665605d26dd12e3e99896d20a46ff6ae8b | /Capter02/0206.cpp | 7a41a0add3ab7779ef0f5f2835d0179b8140ff8f | [] | no_license | wada811/MeikaiClangNyumon | 55cc45ae9411347d6d57d176dab3946db2f17a0f | b68a426a783654ca0a5f5c7b5676321f751dcbc6 | refs/heads/master | 2021-01-20T11:25:21.724263 | 2012-02-23T14:18:32 | 2012-02-23T14:18:32 | 3,524,224 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 497 | cpp | 0206.cpp | /*
演習2-6:右に示すように、新調を整数値として読み込んで、標準体重を実数で表示するプログラムを作成せよ。
標準体重は(身長-100)×0.9によって求め、その小数点以下は、1桁だけ表示すること。
*/
#include <stdio.h>
int main(void){
int tall;
printf("身長を入力してください:");
scanf("%d", &tall);
printf("標準体重は%.1fです。\n", (double)(tall - 100) * 0.9);
return (0);
} |
08744686acfb1e3369676c81fd9f58d5d8afdf05 | e96afcf8a6a90066c47df4409b85a9dadb88dad6 | /lab9/task_B.cpp | 102bd58ce636e6b41e45cce116d84f1b36266d43 | [] | no_license | Pronomuos/Algorithms_and_DS_ITMO | 26ec80902f6a338e5e98599d56d343a481a08786 | 80c23ccc8cac7af16574d1c6ebd07d974cf8ef23 | refs/heads/master | 2023-03-11T18:16:38.326199 | 2021-02-21T20:03:50 | 2021-02-21T20:03:50 | 294,238,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,665 | cpp | task_B.cpp | #include <iostream>
#include <fstream>
#include <vector>
using namespace std;
void dfs (int v, vector<int> &used, vector<vector<int>> &g, bool &cycle, vector<int> &p,
int &cycle_end, int &cycle_start) {
used[v] = 1;
for (int to : g[v]) {
if (used[to] == 0) {
p[to] =... |
b3ac1caaba19138cb0ba808e26f3c1de8bd68c7a | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/sharing/sharing_device_source.h | 6d1537f0b32a9f219881f5a4c3196d5a43f77ba5 | [
"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,745 | h | sharing_device_source.h | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SHARING_SHARING_DEVICE_SOURCE_H_
#define CHROME_BROWSER_SHARING_SHARING_DEVICE_SOURCE_H_
#include <memory>
#include <string>
#include <vector>
#include... |
47008dd9a4b01182777be82652073f8ab8a5bc12 | 5ad3ef3e114cf13f3e4c3cf5e9883a72d83a62ef | /include/gvki/Logger.h | 849c2065a5e6381fb580e3fd4577653e4b0d7a10 | [
"BSD-3-Clause"
] | permissive | giuliojiang/gvki-giulio-p | 1cce78d61431dcfec0acfe20b1da1e92980f8d97 | b6aca081bca5ae9e7e4cd93878ff2a3a04c8b7ed | refs/heads/master | 2016-09-06T17:35:51.180949 | 2015-07-27T09:27:56 | 2015-07-27T09:27:56 | 38,763,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,826 | h | Logger.h | #ifndef SHADOW_CONTEXT_H
#define SHADOW_CONTEXT_H
#include "gvki/opencl_header.h"
#include <map>
#include <string>
#include <vector>
#include <fstream>
namespace gvki
{
struct BufferInfo
{
size_t size;
void* data;
cl_mem_flags flags;
BufferInfo() : size(0), data(0), flags(0) {}
};
struct ImageInfo
{
... |
ee08b88dbc1272db8bb6791c11a903f50e6beafd | 717d5d687221c642bb1f74a276976033499ab453 | /backend/inst-selec/tree-match-graphs/src/lib/rules.cc | ecae3cc54b925c9106ecd15fd3d162d9340f2a79 | [
"MIT"
] | permissive | obs145628/cle | 1dbb4f9c99366cb2376c10a2115312f7443b9879 | 4a4a18b2ab5a6fbf26629f6845147541edabd7c9 | refs/heads/master | 2023-02-08T00:21:54.944759 | 2020-12-30T14:17:41 | 2020-12-30T14:17:41 | 288,396,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,255 | cc | rules.cc | #include "rules.hh"
#include <fstream>
#include <iostream>
#include <logia/md-gfm-doc.hh>
#include <logia/program.hh>
#include <utils/cli/err.hh>
#include <utils/str/format-string.hh>
#include <utils/str/str.hh>
namespace {
constexpr const char *DEFAULT_RULES = ""
"@b ; __block... |
3d09319205e565085142bb02aa8ed345bdde75ed | 9da8e84a6d6df1e64f8ee3355a2580e43f5dc752 | /Server/server.cpp | ab2296e379b28b0e554a0a7feb620f54afe1dc6c | [] | no_license | game-works/Hangman | 3adad126a7511031efa956d04fe4a44574fe313d | 43167d9d6f7e182fa39d91b9b2dd5bfe8d966f7b | refs/heads/master | 2020-05-09T15:00:23.955917 | 2019-04-08T21:11:37 | 2019-04-08T21:11:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,149 | cpp | server.cpp | #include <sys/types.h> // socket, bind
#include <sys/socket.h> // socket, bind, listen, inet_ntoa
#include <netinet/in.h> // htonl, htons, inet_ntoa
#include <arpa/inet.h> // inet_ntoa
#include <netdb.h> // gethostbyname
#include <unistd.h> // read, write, close, usleep
#include <strings.h> ... |
67755ada66e182fd820ae62a3bbf4524abc1ff21 | 6799592f780197259b8217c70c7f905da233a2ed | /misc/fexcept/execdump/xxlib/Std/std_mem.cpp | 470579196a253decd42b1d7aa728f6e0c4fbc849 | [
"BSD-3-Clause"
] | permissive | FarGroup/FarManager | 22b1f754a4cf4bcc6e1822a6ce66408fabf140d5 | da34b0c6da3e03518b8ce7e53783e9fda518bac4 | refs/heads/master | 2023-08-20T04:52:54.443453 | 2023-08-12T20:53:56 | 2023-08-12T20:53:56 | 107,807,404 | 1,691 | 228 | BSD-3-Clause | 2023-09-14T20:07:19 | 2017-10-21T18:55:45 | C++ | UTF-8 | C++ | false | false | 870 | cpp | std_mem.cpp | #include <all_lib.h>
#pragma hdrstop
#if defined(__MYPACKAGE__)
#pragma package(smart_init)
#endif
#if defined(__GUARD_MEMORY__)
#define CHK(v) TraceAssert( _HeapCheck() && v );
#else
#define CHK(v)
#endif
LPVOID MYRTLEXP MemSet( LPVOID Buff, BYTE Val, size_t sz )
{
if ( !Buff || !sz ) return Buff;
C... |
161d940d6e1439195af7cf119c19e7bd3d38c521 | cb93344d0495fbe889e4f97a8cbf9e296cfd2ae4 | /Algo/1937_욕심쟁이판다.cpp | 8f62c22d50ec9093d690bb086f033f45fe69cbad | [] | no_license | jason967/algorithm | 30e101a7bf9cb1d30ac2c3703f843893b1cc08e7 | 840fb5b8804fa6b0a5dcc2b31f4dae7c0683be8f | refs/heads/master | 2023-02-16T23:45:38.263806 | 2021-01-10T15:09:12 | 2021-01-10T09:51:32 | 282,450,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cpp | 1937_욕심쟁이판다.cpp | #include<cstdio>
using namespace std;
int A[500][500], d[500][500];
int N,ans;
int dy[] = { 0,0,1,-1 };
int dx[] = { 1,-1,0,0 };
bool oob(int y, int x)
{
return y < 0 || y >= N || x < 0 || x >= N;
}
int dfs(int y,int x)
{
if (d[y][x] != 0) return d[y][x];
d[y][x] = 1;
for (int i = 0; i < 4; i++)
{
int ny = ... |
f69ec29edddbdc4054653dc5a7851f733aabe766 | ec78819541307aecce7b38dc8f3c711a595864cb | /Assignment 10/persistency/basket_file_repo.cpp | e60eadf090d7ae76cd2efa19cc95a3015bba6ab5 | [] | no_license | BVlad917/Object-Oriented-Programming | 8c35fcd48a6e4cdddd596718b488480681ec719b | 2506bd59e2e3c2b04a7c551ac329ac00256f9835 | refs/heads/main | 2023-07-28T23:22:22.287290 | 2021-09-20T19:54:23 | 2021-09-20T19:54:23 | 408,197,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,460 | cpp | basket_file_repo.cpp | //
// Created by VladB on 17-Apr-21.
//
#include <fstream>
#include <algorithm>
#include "basket_file_repo.h"
#include "../errors/exceptions.h"
BasketFileRepo::BasketFileRepo(std::string &file_name) : FileRepo(file_name) {
std::ofstream fout(this->file_name);
if (!fout.is_open()) {
throw R... |
6ccb858226ef63e06ca3113ae67ddbb41f3d176f | df22b3e68eb70d60164c43e9b951cdc3b5ad1dc4 | /code/types.hpp | d7d50de8dfeee8229eb80885a259a43e6bd0e9cf | [] | no_license | shellpicker/Simple-Pascal-Language-SPL-compiler | e0e4b44f24be47838aa4ea67b08f6a0be968b9cd | 8b8762e5d23b0cb516730129f159f09ef8dbc550 | refs/heads/master | 2020-06-03T13:51:11.622716 | 2019-06-19T04:17:20 | 2019-06-19T04:17:20 | 191,592,677 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | hpp | types.hpp | #ifndef TYPES_H_
#define TYPES_H_
#include <vector>
#include <string>
enum Type_t {e_integer, e_char, e_boolean, e_real,
e_enum, e_subrange, e_array, e_record, e_userdefined};
class BasicType{
public:
enum Type_t type;
BasicType(enum Type_t type = e_integer) : type(type){}
};
class Enu... |
4478b9c0790bf50831552eed0eb949874b01825d | 6a5096e93b14ab9e00e55cc28980d5d896a1185e | /RFIDoor/RFIDoor.ino | a8080d9a2ddbe823959a33490f0f455b84664089 | [] | no_license | JochiPochi/RFID-Door | 525930471fc7603eccc5ba350204929a6989f78c | b33fd9036f5b4c43ff7f7600bcb38e96f69148c7 | refs/heads/master | 2016-09-09T23:12:43.999811 | 2015-03-11T13:19:25 | 2015-03-11T13:19:25 | 32,018,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,508 | ino | RFIDoor.ino | /*******************************************************
* Code for the RFID door lock Mechanism
* Author: John R Aleman
* Version: 1.0
* Notes: This piece of code saves roomates cards into the EEPROM, useful for initialization
*
*******************************************************/
#include <SPI.h>
#include ... |
42221a72f7eda6daec229cb6348ac537a52c7eab | 373417d6a94399c53836328af870b305b8e9521c | /LaplacianSmoother/src/MayaEigen.cpp | bb42ce320a17a75d882bd4199a0dfbe9fdc91377 | [
"MIT"
] | permissive | tody411/MayaPluginSamples | e3ef6cc03aa7a485d72557af22888cf7e134fc6a | 785f1b1425e202f42d77622290c3faf80d7bd06f | refs/heads/master | 2021-01-25T05:35:01.457697 | 2015-12-17T05:13:32 | 2015-12-17T05:13:32 | 40,001,402 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,471 | cpp | MayaEigen.cpp | #include "MayaEigen.h"
#include <maya/MFnMesh.h>
#include <maya/MPointArray.h>
#include <maya/MFloatVectorArray.h>
//! Returns the position matrix P of the target mesh.
const Eigen::MatrixXd MayaEigen::getPositionMatrix ( MObject& mesh )
{
MFnMesh meshFn ( mesh );
MPointArray vertexArray;
meshFn.getPoint... |
6f73ec98aa279cb67dc055a948ecce51854173de | d78cea93f8eb92d5f89800a09edcaa0778b3894e | /bazar.cpp | a3c520ec50504a6c8623205210ceb67a6a5a5b8b | [] | no_license | trueVrael/old_university_projects | 4fe4de55e58a569757f781ad2ac9be4ac5d7f054 | 18654325c3fc15d63f044512d1f643dbdf3116d1 | refs/heads/master | 2020-07-10T15:29:40.760455 | 2019-08-25T13:45:03 | 2019-08-25T13:45:03 | 204,298,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,639 | cpp | bazar.cpp | #include <iostream>
#include <cstdio>
using namespace std;
const int N = 1000000;
int par[N+7][2]; //tab[][0] najwieksze od lewej, tab[][1] najmniejsze od prawej
int npar[N+7][2];
long long int bazar[N+7];
int main(){
ios_base::sync_with_stdio(0);
long long int suma,tmp1,tmp2;
int n,j,k,m,p,x;
... |
c7582c76b5059121610914a8116acafb6f68533b | 8d8b618bed48595e2475cfef3ddc502810024026 | /Array/Rotate_Matrix_90_Degrees.cpp | a14ec6de839ef19a9055ec7a3687eebe276b4275 | [
"MIT"
] | permissive | AABHINAAV/InterviewPrep | acef002b69be61ca1ff0858559f1b4bd24ce2203 | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | refs/heads/master | 2022-01-09T20:06:41.828170 | 2019-05-21T09:33:52 | 2019-05-21T09:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | Rotate_Matrix_90_Degrees.cpp | //Given a Matrix of NXN .Rotate it by 90 degrees
#include<iostream>
#include<vector>
using namespace std;
template <class T>
void disp(T arr){
for (int i = 0; i < arr.size(); ++i)
{
for(int j =0; j<arr.size(); j++)
cout<<arr[i][j]<<" ";
cout<<endl;
}
cout<<endl;
}
//rotates the matrix by 90 degrees
/*
Wor... |
b2de0a6882e33d993d69ade9806e9d8fb9978e5b | 8cf8bb79464a7d8d1d4a84b3eab4613fbc98149f | /3dtest/src/App.cpp | db9a19446f8d537268650a933dfdd97feacaadb7 | [] | no_license | nikki93/spe | 52910a06d89635902bb834b96977ca5e4453bf59 | d4070bb54f9400ce0865680c0b6a5af99248a8b4 | refs/heads/master | 2021-01-22T23:26:21.230055 | 2012-07-13T18:33:39 | 2012-07-13T18:33:39 | 4,665,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,356 | cpp | App.cpp | #include "App.h"
#include <ofGraphics.h>
#include <of3dUtils.h>
#include <ofAppRunner.h>
#include "Frame.h"
#include "Settings.h"
#include "GUI.h"
static void drawQuad(const ofVec2f &start, const ofVec2f &size, const ofVec2f &texSize)
{
ofVec2f end = start + size;
glBegin(GL_QUADS);
glTexCoord2f(0,... |
df80ee10025a028e2743b3bd41923b6f22e92b2b | 906ee1ad46a9315216527fa844b004ba46605d4a | /PS2_touchpad_controlled_model_railroad.ino | 3a17347fdc029d45be48d31951e4aa444356bb48 | [] | no_license | KushagraK7/ArduinoTouchpadModelRailroad | 4849d65f44fea5c95cd321b69ffb66588282a9e4 | 3c363563f45876b523287bbcb7555837234ba248 | refs/heads/main | 2023-06-09T09:45:36.675980 | 2021-07-06T05:53:32 | 2021-07-06T05:53:32 | 383,354,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,772 | ino | PS2_touchpad_controlled_model_railroad.ino | /*
* Arduino code to control a model railroad layout using a PS/2 touchpad.
*
* Using a tochpad, three turnouts and one track power can be controlled.
* The code can be modified to control more than one track power at a cost of a turnout.
*
* Watch the video:-https://youtu.be/CZaF_8HFH-k
*
* Made by ... |
570d1a9fea459017381acc481fa29cc623b2907e | 8066845f914355359e18e8b664a78077e13942f8 | /hw2/gcd.cpp | 369bbbe30e6cea0255d3a02413c841d4f0dbbdd1 | [] | no_license | danielpclin/NCU_Algo_HW | e99cd57c689217f8456bd09bf9b8467dd916221e | 512657a5424445956019cccef10aaa38233f5fd8 | refs/heads/master | 2023-06-01T07:01:46.236408 | 2021-06-20T18:00:37 | 2021-06-20T18:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | cpp | gcd.cpp | #include <iostream>
int main()
{
int T;
std::cin >> T;
for (int t = 1; t <= T; t++){
int first, second;
std::cin >> first >> second;
int temp;
while (second != 0){
temp = second;
second = first%second;
first = temp;
}
std::... |
587a5539db694b6a35a7e88cba1069600219a43e | e6429c1e23f60002a1f8f4cddfb5d94db9954d97 | /server/StreamLog.cpp | 660d48dd41d6f8571a5f42033610fb8848e7cbce | [] | no_license | datalinkE/yet-another-server | aed3ff8e292488c1bd8c406797b3ab04572c527f | 782f768ab70b5494b7409c3ede15d8025b3fc7f9 | refs/heads/master | 2021-01-22T14:45:01.097811 | 2013-11-20T14:33:55 | 2013-11-20T14:33:55 | 14,475,102 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 844 | cpp | StreamLog.cpp | #include "StreamLog.h"
#include <cstring>
using namespace std;
StreamLog::StreamLog(::string ident, int facility)
{
_facility = facility;
_priority = LOG_DEBUG;
::strncpy(_ident, ident.c_str(), sizeof(_ident));
_ident[sizeof(_ident)-1] = '\0';
openlog(_ident, LOG_PID, _facility);
}
int StreamLog... |
e333b16c666a1406fe2ab7e321e3fa344151d74b | 149a20eaaa0aff24daed7f3ad5d80b39a048eff0 | /Tarea3/include/Nodo_Actividad.h | 47e83e8e9b8757af0256e8aa83a3315a170dcc6c | [] | no_license | SelvinLP/EDD2019 | 88aee9df57a73dca3dc1448fdb689c80ddeb6c82 | eb81cb6dd1e39e6c32d0285874edde18ba65760b | refs/heads/master | 2022-02-23T18:04:33.531169 | 2019-09-06T23:08:07 | 2019-09-06T23:08:07 | 198,132,789 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | h | Nodo_Actividad.h | #ifndef NODO_ACTIVIDAD_H
#define NODO_ACTIVIDAD_H
class Nodo_Actividad
{
public:
Nodo_Actividad();
virtual ~Nodo_Actividad();
protected:
private:
};
#endif // NODO_ACTIVIDAD_H
|
4c2e68bbada0212bffb3f3c2363eb3e4ab62a1ec | c7c0ece47912c77f919241537b2a7b3a9347b862 | /Lab 3/OutputResults.cpp | 145d1495d159561546cc7123a964a528405fcb4e | [] | no_license | KermiteO/CS1D | b06d27002b910307d797a6618e3cd17ab42b2be0 | 0335fcef3d2b3c9872125a890f059c2aea121475 | refs/heads/master | 2021-01-01T10:56:48.704473 | 2020-02-09T05:54:46 | 2020-02-09T05:54:46 | 239,248,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,572 | cpp | OutputResults.cpp | /**********************************************************************
* AUTHOR : Kermite & User
* Lab #3 : Supplement: Coin Flip
* CLASS : CS1B
* SECTION : MW 8:00a - 11:50a
* DUE DATE : 2/3/15
*********************************************************************/
#include "HeaderFile.h"
/*********... |
ec9e2782c993dbb80bbf22ade7b1473ee328fd4f | 7e523ebd21dd89488b1b8c8e058874d9d013bc29 | /sem 2/segtrees, range queries/TaskJ.cpp | e0e6263c9d75803c074e1ad1564442faa9ebf30e | [
"MIT"
] | permissive | greenIrina/ITMO-algo-labs | 151736f5458396b106e0baf3d895ec681387a890 | 30517a91cf5b9231aa6bbc93db60df6186cd01d1 | refs/heads/main | 2023-01-04T10:40:23.245489 | 2020-10-20T17:49:21 | 2020-10-20T17:49:21 | 305,187,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,641 | cpp | TaskJ.cpp | #include <iostream>
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include <set>
#include <limits>
using namespace std;
#define mp make_pair
typedef long long ll;
class SegmentTree
{
public:
int n, x;
ll inf = numeric_limits<ll>::max();
vector<pair<ll, int>> t;
vector<ll> d;
... |
d6cea1e9602da71a72ca798ffa195e316b3dbb5d | 0a3a0da7358c55ebbfc3e1904e53409c6397ec1a | /Excel/mainwindow.h | b0dbb19b2fa1f868bdab313b186f8ddfd0bdc054 | [] | no_license | Sokolov-Dmitriy/RPM | ab7aeb65153b9216b70b7828143a2f843ae301ca | 7bb72026c5840b672608e62957d2707c441b7065 | refs/heads/master | 2022-11-15T05:17:26.327354 | 2020-07-07T09:32:30 | 2020-07-07T09:32:30 | 275,368,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,699 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "QHBoxLayout"
#include "QVBoxLayout"
#include "QWidget"
#include "QTableWidget"
#include "QPushButton"
#include "QString"
#include "QFileDialog"
#include <ActiveQt/qaxobject.h>
#include <ActiveQt/qaxbase.h>
class MainWindow : public QMainWindo... |
5a98749c51e85fd581e664251bf75034f5372b8e | ac2c7256e7b2f65a214ed92becf208283c6a34c8 | /[DP]AmericanFootball.cpp | f4086d13084d0ecbf26d2f86a6fa1e196e6407d6 | [
"MIT"
] | permissive | alchemz/mission-peace | 6681e945c81b6f2be5e144aa86986f162f8f6faf | 59a44b1e7a8fdfdf1f6743c0e6965b49e5291326 | refs/heads/master | 2020-03-15T23:07:34.260933 | 2018-06-29T15:44:39 | 2018-06-29T15:44:39 | 132,387,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | [DP]AmericanFootball.cpp | /*
American football game
safety: 2 pts
filed goal: 3 pts
touchdown: 7 pts
Write a program that takes a final score, and returns the number of combo
*/
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int NumComb(int score, const vector<int> &plays){
int size_ = plays.size();
vector<vect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.