blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 986
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 145
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 122
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ba91ce7b2388fbd526b689646ad957c4173e35e | 8dfe4bef840a00972ebe18634bbf28636dec9949 | /TestFKCW/Classes/SubTestWnd/Test_Base_Localization.h | b91f315eae8ce723ce21625f40632b70878ba11e | [] | no_license | pingfanJerry/FKCocos2dxWrapper_2.x | ba644308746557e99f8fa201a832aafa7e806927 | 2ff906f10a030d7a2dbe968ba9d17798e2537a37 | refs/heads/master | 2020-03-10T16:58:40.391923 | 2017-03-16T06:43:05 | 2017-03-16T06:43:05 | 129,487,589 | 1 | 0 | null | 2018-04-14T06:12:13 | 2018-04-14T06:12:13 | null | GB18030 | C++ | false | false | 2,591 | h | //*************************************************************************
// 创建日期: 2014-12-22
// 文件名称: Test_Base_Localization.h
// 创 建 人: 王宏张 FreeKnight
// 版权所有: MIT
// 说 明:
//*************************************************************************
#pragma once
//---------------------------------... | [
"duzhi5368@163.com"
] | duzhi5368@163.com |
8e06c880a01d52d69fa99c07ee25fd4ba5f98f9d | 50ad95cab73dee05b54d1cfaa926bcef97f89669 | /NeoNeuron_Software_Tools/Connectome.cpp | e0846349f24fd0cc5b818463304f9dedb5504a0f | [] | no_license | Acrazt02/NeoNeuron_SoftwareModel_v1 | 2970fbb41417847af7d8dcc26daf9f24df47f948 | 21344c529e6c7c7383db1027dd0ac036f13c1226 | refs/heads/master | 2023-07-30T10:36:35.393228 | 2021-09-09T03:29:06 | 2021-09-09T03:29:06 | 401,512,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,721 | cpp | #include "Connectome.h"
#include "Handler.h"
#include <iostream>
#include <math.h>
#define PI 3.14159265
using namespace std;
vector<vector<int>>& Connectome::getConnections() {
static vector<vector<int>> connections;
return connections;
}
void Connectome::addConnection(int axonNeuronId, int synapticNeruonId, i... | [
"viniciocastillo1956@gmail.com"
] | viniciocastillo1956@gmail.com |
0b0b97d1880912e567587b6b8da1e5c287bbd51b | ddd80bc1939f9e51ab1fd0b883767572fbd5d3b4 | /Week 3/array_17.cpp | 8c875a3e695e96f3c821d12d90d4671e207ccc63 | [] | no_license | preksha121/IPMP | e03c75e5a142557fbd4e05eb31fad4c4532f5c5d | 1b07371bbc9a15f24f2324b89dca3a40d3e2257b | refs/heads/main | 2023-06-05T16:19:05.758340 | 2021-06-25T18:15:03 | 2021-06-25T18:15:03 | 352,301,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp |
int minimum_difference(vector<int>a){
// Code here
int mina=INT_MAX;
sort(a.begin(),a.end());
for(int i=0;i<a.size()-1;i++)
{
if(abs(a[i]-a[i+1])<mina)
{
mina=abs(a[i]-a[i+1]);
}
}
return mina;
} // { Driver Code Starts
| [
"noreply@github.com"
] | preksha121.noreply@github.com |
db4108748b08150294924137b4fe10ed5b939013 | 64d46d1fc5d07995e2bacd270e8ff2c4f9394c2a | /Charcoal/src/Charcoal/ImGui/ImGuiBuild.cpp | 8e9e0c682c2af0b69b0125bdb70a6a631be0ad40 | [
"Apache-2.0"
] | permissive | MayushKumar/Charcoal-Engine | 12657b91dedcfe2df48342fadd3c634eedd51b9e | f2516d4b0632c12424900d576810727c8da4bf67 | refs/heads/master | 2022-11-16T13:52:20.729838 | 2022-10-27T15:43:16 | 2022-10-27T15:43:16 | 202,901,725 | 3 | 2 | null | 2020-06-06T13:04:04 | 2019-08-17T15:54:11 | C++ | UTF-8 | C++ | false | false | 144 | cpp | #include "chpch.h"
#define IMGUI_IMPL_OPENGL_LOADER_GLAD
#include "examples/imgui_impl_opengl3.cpp"
#include "examples/imgui_impl_glfw.cpp" | [
"mayushkumar2004@gmail.com"
] | mayushkumar2004@gmail.com |
7885f8f13d7e6fef576933f293b24908ee83d094 | b69fc7395a3e2b148d413e6d2de4dfab44e0949b | /Source/InfinityBlade/Public/AI/AICharacter.h | 5f1686fd392a82a88ebf1caa0deaf341bb90154f | [] | no_license | Vin-Han/Infinity-Blade | 3ab5bcaa2f9b50864991a8cdff97ddbbf397967c | 93c14d07f804244a6eedde82748e543b8997da06 | refs/heads/master | 2022-07-03T14:56:14.045683 | 2020-05-11T08:23:13 | 2020-05-11T08:23:13 | 262,828,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,553 | h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "Components/WidgetComponent.h"
#include "Components/TextBlock.h"
#include "Animation/AnimMontage.h"
#include "BehaviorTree/BehaviorTree.h"
#include "Weapon... | [
"vinhanyi@gmail.com"
] | vinhanyi@gmail.com |
2583858396b1539299ac6d385a3fc53814524f5d | 6d4398f454ed278c0d3f6e166fa0e1370ebaa0ad | /software/QGroundStation/libraries/qchart/standard/channeldecorator.cpp | 8d700045954ab2d9c64f2428e23cc688edf2d77e | [] | no_license | nongxiaoming/QGroundStation | 4b27cb2165b91b0510210e65a781daf5fc919c64 | 0a491c9d910e465633c232ecd74a7c283def5301 | refs/heads/master | 2020-05-18T11:03:00.538465 | 2014-10-08T16:48:51 | 2014-10-08T16:48:51 | 19,404,192 | 1 | 1 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 7,003 | cpp | /***************************************************************************
* Copyright (C) 2006-2008 by Tomasz Ziobrowski *
* http://www.3electrons.com *
* e-mail: t.ziobrowski@3electrons.com *
* ... | [
"nongxiaoming@gmail.com"
] | nongxiaoming@gmail.com |
838a123c04395543e05f18c788d871af137d42ec | fd03f96ad0d11ed4d4ff3f0d77df45201de0779c | /offline/include/PageLib.h | a523ed248a0e2a7bf96a24e94869155842c8006a | [] | no_license | colinhp/searchEngine-12 | 6589c56315aacc7fe49c6f9b4699fed34a3680bc | 8eb40a14b333f341bb3f4c141f7b6627f4276c62 | refs/heads/master | 2021-05-20T23:15:52.110951 | 2018-10-31T10:35:43 | 2018-10-31T10:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | h | ///
/// @file PageLib.h
/// @author yangyu/Icot(jobyang@163.com)
/// @date 2017-03-28 05:50:52
///
#ifndef __WD_PAGELIB_H__
#define __WD_PAGELIB_H__
#include "tinyxml2.h"
#include "DirScanner.h"
#include "Configuration.h"
#include <string>
#include <vector>
#include <map>
#include <memory>
using std::stri... | [
"604381117@qq.com"
] | 604381117@qq.com |
7930e7618e7bc4f6bbe9b299df4558e7e5e44778 | fbbab5e6d1fb1223717dc5317f877e2238dba014 | /Arduino/beer_bottle_hits/beer_bottle_hits.ino | a56169e4d2d12cee9034b95813837ffb6169484d | [] | no_license | whg/desperados | c35cba097bdb3edb172e061b8c5a6ffcff09fbd7 | 00cc6c8131b08fbad6bbfc98a3c66e3daadfbcf2 | refs/heads/master | 2021-01-10T02:16:04.467828 | 2016-02-23T14:26:19 | 2016-02-23T14:26:19 | 51,906,447 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,856 | ino |
#define NOTE_ON 0b10010000
#define NOTE_OFF 0b10000000
//#define DEBUG
const int hitPins[4] = { 4, 5, 6, 7 };
const int numPins = sizeof(hitPins) / sizeof(int);
const int noteNumbers[] = { 59, 50, 54, 47 };
const int midiChannel = 4;
enum state_t { ON, OFF };
state_t states[numPins];
unsigned long lastHits[numPin... | [
"wgallia@gmail.com"
] | wgallia@gmail.com |
080f4a9140b720f87f805f26493c1f515cb31b6e | d647a6f21c4f580dd22bfaa0ac1801277bfb0058 | /src/server/OutgoingPackages.h | 08469b9a464890b66586f0a75fd8a3a861a36d41 | [] | no_license | ebchandelier/sisop2 | a58ef32ad5709e28179c3b267cb936130f3662c1 | c49fb755260404e2ddb7375e8ef23e581284c325 | refs/heads/master | 2020-03-09T11:54:05.674833 | 2018-07-02T22:29:55 | 2018-07-02T22:29:55 | 128,772,252 | 0 | 0 | null | 2018-06-04T12:57:45 | 2018-04-09T12:59:47 | C++ | UTF-8 | C++ | false | false | 492 | h | #pragma once
#include <netdb.h>
#include "../shared/datagram.h"
#include "ThreadSafeQueue.h"
class OutgoingPackages
{
public:
OutgoingPackages(sockaddr_in receiver, ThreadSafeQueue<std::pair<sockaddr_in, datagram>>* queue)
{
this->receiver = receiver;
this->queue = queue;
}
void prod... | [
"gallegretti@inf.ufrgs.br"
] | gallegretti@inf.ufrgs.br |
4bff4ae00dd8e58af02223e23e644646be8bf777 | 4c0990426380bdc6098303570a94dd14b562895f | /POJ/list/1/2586.cpp | b031a18d4e6d534730a98e95c72153e219ff3082 | [] | no_license | Ir1d/Fantasy | 08e9b2d63eb901e1543a00ea018e3d7682319dce | e4fbe30590fc5177b7ab9119daef5ca76158762e | refs/heads/master | 2020-12-30T10:23:46.750591 | 2018-12-31T17:15:50 | 2018-12-31T17:15:50 | 98,869,098 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,216 | cpp | /**
* @author SCaffrey (srius.caffrey@gmail.com)
* @copyright MIT
*/
#include <cstdio>// NOLINT
#include <cstring>// NOLINT
#include <cmath>// NOLINT
#define x1 x11
#define y1 y11
#define f(x, y, z) for (int x = (y), __ = (z); x < __; ++x)
#define g(x, y, z) for (int x = (y), __ = (z); x <= __; ++x)
#define fd(x, y... | [
"sirius.caffrey@gmail.com"
] | sirius.caffrey@gmail.com |
30e068042e71dc57bde090504b54a99182d6f827 | 062fe73aef5bd087e88320f0f8ce2023c0981713 | /RyujinrokuMobile/RyujinrokuMobile.NativeActivity/src/EnemyAppearMgr.cpp | d06ecdf55392e962a60082e9f89e3eb09b0f406f | [] | no_license | remicalsoft/RyujinrokuMobile | 762c1bc94ab2baf5ebb71ae392f2e1e75c9e9601 | c3bff61dbce2298890954b8bba32da4946c085f9 | refs/heads/master | 2021-05-17T07:39:42.961357 | 2020-04-01T14:42:27 | 2020-04-01T14:42:27 | 250,699,354 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29 | cpp | #include "EnemyAppearMgr.h"
| [
"remicalsoft@gmail.com"
] | remicalsoft@gmail.com |
263c3ab3da53014b6127c1ab167dd65aafdb8acb | b7e97047616d9343be5b9bbe03fc0d79ba5a6143 | /test/core/chemical/AtomICoor.cxxtest.hh | a1e1fd4c85a775a1fe5a4014a9138f8ddf7ade6a | [] | no_license | achitturi/ROSETTA-main-source | 2772623a78e33e7883a453f051d53ea6cc53ffa5 | fe11c7e7cb68644f404f4c0629b64da4bb73b8f9 | refs/heads/master | 2021-05-09T15:04:34.006421 | 2018-01-26T17:10:33 | 2018-01-26T17:10:33 | 119,081,547 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 6,460 | hh | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... | [
"achitturi17059@gmail.com"
] | achitturi17059@gmail.com |
8a7a4d5d4ff6e8f8b2fedb494f041ac42d324c25 | ee8175c7e9fce67b0075988aa91f4468d8f1450e | /src/ofxRKThread.h | d9653856ecfb30966f75a5b06de87cfb67635227 | [] | no_license | roikr/yesplastic | 385398ffa84bacee86015efd7de9617f24678ed6 | 1f8a52022097eb93489e52bad7bbd3518d02035e | refs/heads/master | 2021-01-10T21:27:19.837365 | 2011-07-06T12:50:30 | 2011-07-06T12:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | /*
* ofxRKThread.h
* deadLoops13
*
* Created by Giori politi on 9/8/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
struct threadContainer;
class ofxRKThread {
public:
virtual void threadedFunction() {};
void startThread();
void stopThread();
private:
threadContainer *container;
};
| [
"roikr75@gmail.com"
] | roikr75@gmail.com |
ccac44cf3981079e47d2fbd02addceec1a38adfd | c3bdc6275a9b040f466e1e05da48d367cdc8ef8a | /REC/REC.ino | 45214fbb457d89ab9530248d32522b4721856cfa | [] | no_license | amadues2013/Arduino | 9a6315ca6dc7edbc298d8dba35d521c2d8cd6794 | bf84bf8b191494980b25bfeb77837c82bcf9db48 | refs/heads/master | 2020-05-31T21:19:20.148047 | 2017-02-02T09:14:39 | 2017-02-02T09:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,742 | ino | /*
Analog input, analog output, serial output
Reads an analog input pin, maps the result to a range from 0 to 255
and uses the result to set the pulsewidth modulation (PWM) of an output pin.
Also prints the results to the serial monitor.
The circuit:
* potentiometer connected to analog pin 0.
Center pin o... | [
"git@troykyo.com"
] | git@troykyo.com |
7c203b7f0599109afa740bb6f5afd01190bf16ca | 301ba7367a93275b8c11d0fe77fd6e1aa00870ac | /src/tasks/TaskFactory.h | 317a7f2583c3c1a831658fe265f250a1f18273ba | [
"Apache-2.0"
] | permissive | LiamPilot/LightSaber | 6900489b2d2c6d555f33ecbf523d580bee90954e | 1215097428d9e2122c0b263cd2a9a7224dac5f13 | refs/heads/master | 2022-10-01T02:21:27.149957 | 2020-06-02T21:12:56 | 2020-06-02T21:12:56 | 268,609,589 | 0 | 0 | Apache-2.0 | 2020-06-01T19:10:44 | 2020-06-01T19:10:43 | null | UTF-8 | C++ | false | false | 1,203 | h | #pragma once
#include <atomic>
#include <memory>
#include "tbb/concurrent_queue.h"
#include "tasks/Task.h"
#include "tasks/WindowBatch.h"
/*
* This class implements a pool of @Tasks used from the @TaskDispatcher
* to create new tasks for the system.
*
* */
class TaskFactory {
private:
std::atomic<long> m_co... | [
"giwrgosrtheod@gmail.com"
] | giwrgosrtheod@gmail.com |
47c1295cb260206f3800017ddf66f1249959e9ab | 96e32886a2d46033f6f66a0faed7860e161f2a78 | /src/core/include/ivy/charenc/icu/encoding_traits.hxx | 7fb1fa767589faeb9eb9481c4d6fa82f8e480f52 | [
"MIT",
"BSL-1.0",
"BSD-2-Clause"
] | permissive | sikol/ivy | a89a173c413b55224b54008bfbde76b8648feee3 | 6365b8783353cf0c79c633bbc7110be95a55225c | refs/heads/main | 2023-06-02T10:38:21.842777 | 2021-06-23T15:23:31 | 2021-06-23T15:23:31 | 366,716,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | hxx | /*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#ifndef IVY_CHARENC_ICU_ENCODING_TRAITS_HXX_INCLUDED
#define IVY_CHARENC_ICU_ENCODING_TRAITS_HXX_INCLUDED
#include <ivy/charenc.hxx>
namespace ivy::icu {
template<character_encoding E>
... | [
"felicity@sikol.co.uk"
] | felicity@sikol.co.uk |
e16148162c7af4130d44b07c9d5816943d150e2f | 4ab8b514a63f60929c30ed6ec12c4fddb56fda22 | /includes/pypp/pypp.hpp | 0dc57dccfbab82d3193a3bc95fc3f16c4cd5581d | [] | no_license | pkuleon/jadesoul | 45049c9dece0e7f814c6abbf2726de47b61b5b83 | f1c02ac00bda62e1253b2e0fe7a95e925e595126 | refs/heads/master | 2021-01-19T18:07:40.396164 | 2015-03-27T12:01:28 | 2015-03-27T12:01:28 | 32,983,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63,067 | hpp | #ifndef PYPP_HPP_BY_JADESOUL
#define PYPP_HPP_BY_JADESOUL
/**
* File: pypp.hpp
* Description:
* a simple framework to make C++ programming as easy as python
*
* 谨以这两千行代码纪念曾经逝去的那连续三个美好的通宵
*
* Copyright (c) 2011 Jadesoul (Home Page: http://jadesoul.org)
* Licensed under the GNU General Public Licens... | [
"wslgb2006@d14da3be-4b66-f277-6519-03205fff3048"
] | wslgb2006@d14da3be-4b66-f277-6519-03205fff3048 |
0588b3333b1d2849e6ff9a3c52f43f95b4c56c6a | 5e996a8411bafea1aa7bb6abd3dd5f52bc5e6cdc | /objetos/proyecto/build-proyecto-Desktop_Qt_5_8_0_MinGW_32bit-Debug/ui_registrarse.h | 1857ef37fb3583ee579094e404096aa64f7aa4db | [] | no_license | nialche98/laboratorio | 2094d7469dd5db8a0c8382f0ea442712a2945964 | d4edaa738ffc5206830d17201f5ccfd02400754d | refs/heads/master | 2021-01-17T17:40:47.601987 | 2017-11-13T00:44:29 | 2017-11-13T00:44:29 | 84,130,933 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,938 | h | /********************************************************************************
** Form generated from reading UI file 'registrarse.ui'
**
** Created by: Qt User Interface Compiler version 5.8.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************************************... | [
"8916430@javerianacali.edu.co"
] | 8916430@javerianacali.edu.co |
5a06774266b62d8023737c19638d6888cf9e6fac | aa7937baaae5466d40c485a31ecd222a8fe03c57 | /include/KLibrary3D.inl | 6743a223e74af5ecbc738bbdb4ebd068dc78666b | [] | no_license | shenyczz/KLibrary3D | ab2acfb36bb175abbb8f03bbd866d55827cfb044 | 61156579fccf70b63de78527695f7cd834155308 | refs/heads/master | 2020-11-24T13:47:08.249601 | 2020-07-24T06:38:40 | 2020-07-24T06:38:40 | 228,175,401 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,984 | inl | #ifndef __INCLUDED_KLIBRARY_3D_INL__
#define __INCLUDED_KLIBRARY_3D_INL__
#pragma pack(push,1)
#pragma pack(pop)
#pragma pack(push,1)
#pragma pack(pop)
#pragma warning (disable : 4005) // warning C4005: “DXGI_STATUS_OCCLUDED”: 宏重定义
#pragma warning (disable : 4065) // switch 语句包含“default”但是未包含“case”标签
#pragma warni... | [
"shenyczz@163.com"
] | shenyczz@163.com |
52f94df8e27e9b6d6c5d3eb1aca516b25322a102 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/boringssl/src/crypto/bn/bn_test.cc | 0a359bda816800c921545942b65fc51b6bcac115 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"OpenSSL",
"ISC",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 47,350 | cc | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
deeae3bc43d6b0dc9a71da9a3853d08fa37538bd | e9dc4208e7f42632736e80d9ad7779de82297993 | /src/devices/CGenericDevice.cpp | 189205fd8fe12427269ba482a9a3f9a9bc7c6e02 | [] | no_license | victor29z/haptics-chai3d-demo | 382cd11980d562159e32227663214ce58e4b8d6e | 0c6e85d872d2ad3e1316c4006e0703b87e5efd90 | refs/heads/master | 2021-01-10T01:28:08.878619 | 2015-10-19T07:24:28 | 2015-10-19T07:24:28 | 44,517,914 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,355 | cpp | //===========================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2012, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provid... | [
"zhaoliang@sia.cn"
] | zhaoliang@sia.cn |
7503be9353150c761cba345955426145f9ae8f1a | d1f593e4ea050c9e70177a489d97e4d84c0bcf9d | /src/Svg_element.cpp | 5e5ca7311c6345419259415ac46d9349301aa847 | [] | no_license | RazvanPascalau/SVGRasterizer | 6b1ecd96d4f8955fb5f95fcf2be8d1f82f6fca11 | ec2ca205a8f27074fac5e6b9b503f2c4fd90ffab | refs/heads/master | 2021-01-10T16:14:45.434813 | 2017-06-07T15:22:07 | 2017-06-07T15:22:07 | 49,533,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | //
// Created by Razvan Pascalau on 02/04/2017.
//
#include "Svg_element.hpp"
#include <unordered_map>
#include <experimental/string_view>
namespace {
using el = Svg_elem_id;
using Element_name_map = std::unordered_map<std::experimental::string_view, el>;
const Element_name_map element_name_map{
... | [
"mail@razvan-pascalau.com"
] | mail@razvan-pascalau.com |
7bed7761e303bf348f21b0fd72a90b7bc4680b5b | 0edbcda83b7a9542f15f706573a8e21da51f6020 | /private/shell/ext/cscui/viewer/cscutils.cpp | 24bb5be76b777b4c5ba7d3b6909de8f68e47b4a0 | [] | no_license | yair-k/Win2000SRC | fe9f6f62e60e9bece135af15359bb80d3b65dc6a | fd809a81098565b33f52d0f65925159de8f4c337 | refs/heads/main | 2023-04-12T08:28:31.485426 | 2021-05-08T22:47:00 | 2021-05-08T22:47:00 | 365,623,923 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | //////////////////////////////////////////////////////////////////////////////
/* File: cscutils.cpp
Description: Utility functions related to manipulation of CSC information.
Revision History:
Date Description Programmer
-------- ------------------... | [
"ykorokhov@pace.ca"
] | ykorokhov@pace.ca |
8352fdf1e0a1a8d7882646f5b52f89d3332f825a | 1786f51414ac5919b4a80c7858e11f7eb12cb1a9 | /2019 Shanghai Online/K.cpp | a31f55e8e1e4b44f35f5316d1549f03a715c8342 | [] | no_license | SetsunaChyan/OI_source_code | 206c4d7a0d2587a4d09beeeb185765bca0948f27 | bb484131e02467cdccd6456ea1ecb17a72f6e3f6 | refs/heads/master | 2020-04-06T21:42:44.429553 | 2019-12-02T09:18:54 | 2019-12-02T09:18:54 | 157,811,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll a,b,c,p[31666],up=31622;
map<ll,ll>mp;
vector<pair<ll,ll>>as,bs;
set<pair<pair<ll,ll>,pair<ll,ll>>>ans;
void init()
{
for(int i=1;i*i<=1e9;i++)
p[i]=i*i,mp[i*i]=i;
}
void gao(ll a,vector<pair<ll,ll>>& as)
{
as.emplace_back(0,a);
as.emplace_... | [
"ctzguozi@163.com"
] | ctzguozi@163.com |
e5b14080fbe8b47f20a2e9c87b4a123e122658ba | dafb4f7d1525d70a6cc5d5d2b2506d6573fdf896 | /MapCreator/src/MapCreator.cpp | cb43be4cdb40caff8c4af6015270791b2e9dfd1d | [] | no_license | nama-gatsuo/DailySketch | 5a4d8a2e0acfddedfedcb7f4821c2ece00a16857 | 6ed0254972acfce0484b73f796a99d2855f0959a | refs/heads/master | 2020-12-30T15:22:14.041061 | 2018-06-25T20:31:27 | 2018-06-25T20:31:27 | 91,134,713 | 48 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,727 | cpp | #include "MapCreator.hpp"
MapCreator::MapCreator(){}
void MapCreator::setup(){
ofFile file;
file.open("img/world.svg");
ofBuffer buffer = file.readToBuffer();
ofXml svg;
svg.loadFromBuffer(buffer.getText());
int n = svg.getNumChildren();
float width = ofToFloat(svg.getA... | [
"ayumu.nagamatsu@gmail.com"
] | ayumu.nagamatsu@gmail.com |
b478ed638b02b698825efaaff5df19933b514608 | d3239c2e5652378b17932553f80be1dbcbbdfdbf | /cpp/week1/hola2.cc | d2016b22040fa04b4d7fcc8a91efa77ceef00015 | [] | no_license | jorge-alvarado-revata/code_educa | 673a8b10817c24b3fc2c5792d216837c15a701aa | 241e1e3f43586e486b73cee8f385ab74dd99caf1 | refs/heads/main | 2022-12-25T21:37:36.988225 | 2020-10-13T18:59:38 | 2020-10-13T18:59:38 | 303,801,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cc | #include <iostream>
using namespace std;
int main()
{
int estacion;
cout << "Ingrese numero de estacion (del 1 al 4): ";
cin >> estacion;
switch (estacion)
{
case 1: cout << "Primavera";
break;
case 2: cout << "Verano";
break;
case 3: cout << "Otonio";
... | [
"serviciosplusapp@gmail.com"
] | serviciosplusapp@gmail.com |
632a7e7c7f99cb2c8193bdaf08b588d53fc7db80 | 02ce5cf2fc5b6cd22b5fbe1e6d68eab050dd652b | /core/include/main_loop.hpp | d17a9567b2efc4f41bb4c75478fea4567259e5b6 | [
"MIT"
] | permissive | Positron010/win-vind | 8f09ac0cfef789a3e7bbfbc8292ed9f88c7ee2f0 | 55a19b814684336ea3bc33bc6d523cc82a426702 | refs/heads/master | 2023-06-27T15:57:22.711323 | 2021-08-01T07:55:17 | 2021-08-01T07:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 199 | hpp | #ifndef _MAIN_LOOP_HPP
#define _MAIN_LOOP_HPP
namespace vind
{
namespace mainloop {
void initialize() ;
void reconstruct() ;
void update() ;
}
}
#endif
| [
"pit-ray@outlook.com"
] | pit-ray@outlook.com |
b53c160b756396b5af64bbd28019a01b5f77b66b | a851b6c4fc4321a7a99bd9205e18747c7066beea | /Character/Enemy/Elf.h | ec9a41e28fb9f067c01c45ecaee767c108276ce1 | [] | no_license | rutpatel/DragonCrawl | 7069887a3b320a2f586d529cd7d881de37776414 | b15b417d9aa17c13b1bb23b5295d84d3ae372e99 | refs/heads/master | 2020-03-17T12:44:47.135755 | 2018-05-17T03:08:25 | 2018-05-17T03:08:25 | 133,601,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | h | #ifndef _ELF_H_
#define _ELF_H_
#include "Enemy.h"
class Elf: public Enemy {
public:
void attackPlayer(Player * player);
Elf(int atk = 30, int def = 10, int hp = 140);
};
#endif
| [
"rutpatel010@gmail.com"
] | rutpatel010@gmail.com |
67eb63bf561bf59db2a9878dc335fc9a03a8ff31 | d1d9a5aa2f398f97d3629464dd6c01c86eea7a63 | /src/rgbpixel.cpp | 70eff38c18041871b94897c00c12db1d313ecdee | [] | no_license | cptfinch/region_grow | 187943af0f62de02fc08dceadd246f5e0c828584 | 2a1728cb686163044edd6d03d4aebce02e336755 | refs/heads/master | 2021-09-02T22:51:52.399324 | 2018-01-04T01:18:11 | 2018-01-04T01:18:11 | 116,129,633 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | cpp | #include "rgbpixel.h"
rgbpixel::rgbpixel(unsigned char ARedValue,
unsigned char AGreenValue,
unsigned char ABlueValue){
RedValue = ARedValue;
GreenValue = AGreenValue;
BlueValue = ABlueValue;
}
unsigned char rgbpixel::GetRedValue(){
return RedValue;
}
unsigned char rgbpixel::... | [
"cptfinch@cptfinchs-MacBook-Pro.local"
] | cptfinch@cptfinchs-MacBook-Pro.local |
cb9bfba0de0cbd1bf5d77700b62bffeb3e374d78 | 9393361c9528b8f3d2942218fbad22830c362d1b | /session12/04complex.cpp | 98168a60193b65afa8b906dd84144d6804abe295 | [] | no_license | 007Robin/Practice | 062b661208e2ac3f9e4f675800dc33a20e7e0785 | a619c9d2d3d891d90d1af14dec204a9b53ad8570 | refs/heads/master | 2021-06-09T09:30:54.946624 | 2020-08-24T03:43:46 | 2020-08-24T03:43:46 | 100,123,229 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cpp | //Xin Song -- Complex (template)
#include<iostream>
#include<math.h>
using namespace std;
template<typename Precision>
class Complex{
private:
Precision r, i;
public:
Complex(Precision r = 0, Precision i = 0) : r(r),i(i) {}
friend Complex operator +(const Complex& c1, const Complex c2){
return Complex(c1.r... | [
"noreply@github.com"
] | 007Robin.noreply@github.com |
dffb73688f20c3d425f37a6e41d8a083a6e783c1 | aace13f0b0101f0d2166670a314bead19c89f6b5 | /N Queens/Main.cpp | 471f9c094e00f722ba7797ddec7ca662e5f61ceb | [] | no_license | Katianie/CPP | 46f6f75c0ae47e7b2ab295cdb6ff99ffefaa7994 | c0452a66deb4db4ca52587ccfeddf058ceec4cc7 | refs/heads/master | 2021-08-16T06:19:31.226254 | 2017-11-19T05:15:19 | 2017-11-19T05:15:19 | 105,468,034 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 4,689 | cpp | /** N Queens - Main.cpp
* This program is designed to solve the 8 queens problem
* but for any number of queens specified by the user. I
* also have a way to print out a "fancy" chess board.
*
* This was uploaded to Katianie.com, Feel free to use this
* code and share it with others, Just give me credit ^_^.
*
* Eddie ... | [
"eddieohagan@optonline.net"
] | eddieohagan@optonline.net |
b96465e87cf9aa3e9b95529ef2e149fa0e8252b4 | 89870ca1f16af0f2ba65ec0175cd089da852afbc | /codeforces/educational-round-133-div-2/b.cpp | f1941982d6b13a3acb84bdc9e9c79a92d46568bd | [] | no_license | Merisho/comprog | 3b8ce833f0f16dbcfa252f9c6678c160bf081a11 | fb4829ba93fcb376078a5baccda0c07ce35d6d04 | refs/heads/master | 2023-08-18T00:10:45.535195 | 2023-08-11T07:16:02 | 2023-08-11T07:16:02 | 216,174,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | cpp | #include <iostream>
#include <algorithm>
#include <string>
#include <math.h>
#include <vector>
#include <queue>
using ll = long long;
using namespace std;
void solve(int test_case) {
int n;
cin >> n;
cout << n << endl;
vector<int> a(n + 1);
for (int i = 1; i <= n; ++i) {
a[i] = i;
}
... | [
"merishot@gmail.com"
] | merishot@gmail.com |
4fad9cb0aca672957bebbe176c2a5513cdba6a3f | 5338cd4e316f9ba4b7993c3b4db1b514a4ac6d45 | /Templates/LCA.cpp | 80f3e79c7b708e20593bd04da48723b900b30a9a | [] | no_license | exopeng/Competitive-Programming | 5371ed2ee7b585b36cf232b5557ed30c50ce67de | 5d28c21d3e5df5fe50a86ec6251dbc2b7018da61 | refs/heads/main | 2023-07-08T13:20:23.946747 | 2021-08-15T17:43:28 | 2021-08-15T17:43:28 | 396,431,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,116 | cpp | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
template <class T> using Tree = tree<T, null_type, less<T>,
rb_tree_tag, tree_order_statistics_node_update>;
#define mp make_pair
#define pb push_back
#define lb lowe... | [
"100023497@mvla.net"
] | 100023497@mvla.net |
e2e259b1c948a7f5883dd46826640918a0f4b340 | bc90e70ee2139b034c65a5755395ff55faac87d0 | /libs/random/test/inversive_congruential.cpp | 6e889f82b24f96193e3f37f7b43e823ab5a359ec | [
"BSL-1.0"
] | permissive | Manu343726/Sprout | 0a8e2d090dbede6f469f6b875d217716d0200bf7 | feac3f52c785deb0e5e6cd70c8b4960095b064be | refs/heads/master | 2021-01-21T07:20:16.742204 | 2015-05-28T04:11:39 | 2015-05-28T04:11:39 | 37,670,169 | 0 | 1 | null | 2015-06-18T16:09:41 | 2015-06-18T16:09:41 | null | UTF-8 | C++ | false | false | 1,068 | cpp | /*=============================================================================
Copyright (c) 2011-2015 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx... | [
"bolero.murakami@gmail.com"
] | bolero.murakami@gmail.com |
b313db10185e284a18615ce3a15f1c5550d48833 | c51acc7b1dfaa768f808efb380554c72608e8450 | /screen.cpp | c91c16a13288333ee6a476525742606a6fc90bc5 | [] | no_license | ValentinL/circles | ef82d14d532d569b110c32bd11d17991de6fc2dd | e91baa95da865dc1849ca8617923b3570051dc88 | refs/heads/master | 2021-01-01T17:05:40.401540 | 2014-12-04T02:54:30 | 2014-12-04T02:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | #include "screen.h"
#include <windows.h>
Screen* Screen::_self = 0;
Screen::Screen()
{
HDC hDCScreen = GetDC(NULL);
_width = GetDeviceCaps(hDCScreen, HORZRES);
_height = GetDeviceCaps(hDCScreen, VERTRES);
ReleaseDC(NULL, hDCScreen);
}
size_t Screen::getWidth() const
{
return _width;
};
size_t Screen::getHeight... | [
"valentin.larin@gmail.com"
] | valentin.larin@gmail.com |
61c143dfdb78f52ecce61b1b733ec36a31fa4af7 | 67fc9e51437e351579fe9d2d349040c25936472a | /wrappers/7.0.0/vtkKdTreePointLocatorWrap.cc | 0e4c3409d5a39863214c98175704afb560a10219 | [] | permissive | axkibe/node-vtk | 51b3207c7a7d3b59a4dd46a51e754984c3302dec | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | refs/heads/master | 2023-03-05T07:45:45.577220 | 2020-03-30T09:31:07 | 2020-03-30T09:31:07 | 48,490,707 | 6 | 0 | BSD-3-Clause | 2022-12-07T20:41:45 | 2015-12-23T12:58:43 | C++ | UTF-8 | C++ | false | false | 12,123 | cc | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkAbstractPointLocatorWrap.h"
#include "vtkKdTreePointLocatorWrap.h"
#include "vtkObjectWrap.h"
#include "vtkIdListWrap.h"
#include "vtkPolyDa... | [
"axkibe@gmail.com"
] | axkibe@gmail.com |
47fdf2c4b967bfaca0b5a6e27e7a3bec7fc0369b | 91ba0c0c42b3fcdbc2a7778e4a4684ab1942714b | /Cpp/SDK/BP_Clothing_parameters.h | c50bc18b1ffe739a2f00c759bc63ac5325db324b | [] | no_license | zH4x/SoT-SDK-2.1.1 | 0f8c1ec3ad8821de82df3f75a0356642b581b8c6 | 35144dfc629aeddf96c1741e9e27e5113a2b1bb3 | refs/heads/main | 2023-05-12T09:03:32.050860 | 2021-06-05T01:54:15 | 2021-06-05T01:54:15 | 373,997,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | h | #pragma once
// Name: SoT, Version: 2.1.1
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//-----------------------------------------------------------... | [
"Massimo.linker@gmail.com"
] | Massimo.linker@gmail.com |
bed1238cfbbe5cebb7e69907f0d535f961f95303 | f770641f5fc5314b50adb6c42380105bce0dc8ac | /liveMedia/src/MPEG1or2DemuxedServerMediaSubsession.cpp | 724bc655f3c19fa5f18a4289217f243c9538973d | [] | no_license | cmberryau/live555 | 6cf6a83c167be1b970517738d98bf56f0d3ba995 | 82ba82f2e6ecfba0d707207f1a81a531077a5ddc | refs/heads/master | 2021-03-27T09:40:43.868821 | 2018-01-19T03:34:29 | 2018-01-19T03:34:29 | 71,615,516 | 39 | 22 | null | null | null | null | UTF-8 | C++ | false | false | 5,459 | cpp | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... | [
"chris@chrisberry.com.au"
] | chris@chrisberry.com.au |
c355a9af365bc84fa0f9f8a3d3aa127aca946abb | 02ce904c3a9d7aa35712f679a6165dbb6f457f56 | /cpp_d06_2019/hospital/SickKoala.cpp | 80d368f4a312a22d7d1aff95dcf1b8240502a446 | [] | no_license | mvetois/CppPool | aaedd87fd7246127328a91940c37b9e639a9135c | 01c7b3aa868bc3b283fa7b586a7f195333fd4eca | refs/heads/master | 2022-11-15T10:46:55.424279 | 2020-07-09T10:07:18 | 2020-07-09T10:07:18 | 278,323,585 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,078 | cpp | /*
** EPITECH PROJECT, 2020
** CPP Pool D06
** File description:
** SickKoala
*/
#include "SickKoala.hpp"
SickKoala::SickKoala(std::string name)
{
_name = name;
}
SickKoala::~SickKoala()
{
std::cout << "Mr." << _name << ": Kreooogg!! I'm cuuuured!" << std::endl;
_name.empty();
}
void SickKoala::poke()
{... | [
"matt.vetois@gmail.com"
] | matt.vetois@gmail.com |
6b15c74dfc84c673642b8aa84bd088b1c28a40e4 | 511c1603641596b02a1411efd624d05109ec0f2f | /New BVM/arduinoBVM/flowCount.ino | 22478d781438a01bcfb6203efe2b199c278d095a | [] | no_license | bavensky/-BeerVendingMachine- | 5c4ad3f58a4fc32aa88c0fd38520eb6c3c074d4d | 5d3d88861d7f3797e2119f4706db54cc6571ca5b | refs/heads/master | 2021-01-01T15:20:47.101837 | 2018-10-07T06:09:15 | 2018-10-07T06:09:15 | 97,596,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,425 | ino | void rpm () {
// NbTopsFan++;
pulseCount++;
}
void calFlow() {
// NbTopsFan = 0; //Set NbTops to 0 ready for calculations
if ((millis() - oldTime) > 1000) // Only process counters once per second
{
detachInterrupt(0);
flowRate = ((1000.0 / (millis() - oldTime)) * pulseCount) / calibrationFactor;
... | [
"apiruk_sang-ngenchai@hotmail.com"
] | apiruk_sang-ngenchai@hotmail.com |
1de2184192ab5d297eb42f2182fb6babb52cd341 | 666fed9e8946eb048b7a60a4247f15d5c99fb227 | /software/xtract/xparameter.hpp | fef291a622780dfcb2e0d6a8de916fbb0000563b | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"LicenseRef-scancode-protobuf",
"BSD-2-Clause"
] | permissive | GreenComfyTea/CHaiDNN | dd7847b0066fef517973c895d78d5965d88b3286 | 9dbeac33d45fd40522259b119f77c97cc389a4e9 | refs/heads/master | 2020-09-02T05:57:12.449072 | 2019-11-02T20:56:56 | 2019-11-02T20:56:56 | 219,148,896 | 1 | 0 | NOASSERTION | 2019-11-02T12:12:08 | 2019-11-02T12:12:07 | null | UTF-8 | C++ | false | false | 43,703 | hpp | /*----------------------------------------------------
* Copyright 2017 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | [
"klunics97@gmail.com"
] | klunics97@gmail.com |
4700f24c5e635d9e4226b8fdd04faa2df1961eb0 | c4d88caa442fa2e9fd3ed56360ccd99480b6ee63 | /graph/DialogGLHandlers/stdafx.cpp | 08aeac4f708780aaf6ed7637693583e86a76d2c6 | [] | no_license | zjwork01/graph | c8137062052cd0d9cdc2d1b5f254c57132760ff1 | 5b941bcfb60d3ac7de98dfee2d26716db165df4e | refs/heads/master | 2021-01-25T05:10:23.591965 | 2017-06-07T07:41:16 | 2017-06-07T07:41:16 | 93,518,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 207 | cpp | // stdafx.cpp : source file that includes just the standard includes
// DialogGLHandlers.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
| [
"zj1109929354@163.com"
] | zj1109929354@163.com |
5fd6929bc5adf8056fd4a349aca0ba5e733ed113 | c676bcf38a8e3833699752cf03f361b74fcc3e20 | /tutorials/tut_layout_buttons.cpp | f4c90dddc63286ec430bd2cac310212bbacf29f3 | [
"BSD-3-Clause"
] | permissive | rocee/CanvasCV | 9fa619e9a5f6398f28cad76682f8c9364ac33e15 | 85235e5c6270df0feb6f960254b67a04653f1221 | refs/heads/master | 2021-04-15T10:31:51.462153 | 2017-07-26T11:41:40 | 2017-07-26T11:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,597 | cpp | #include <canvascv/canvas.h>
#include <canvascv/widgets/button.h>
#include <canvascv/widgets/verticallayout.h>
using namespace cv;
using namespace canvascv;
int main(int argc, char **argv)
{
--argc;
++argv;
if (! argc)
{
Canvas::fatal("Must get a path to an image as a parameter" , -1);
}
... | [
"sagi.zeevi@gmail.com"
] | sagi.zeevi@gmail.com |
a3252be11d018594aba93da7bc359fc302305c20 | 88935ce124c354acdb013df9a499067444829ca0 | /solutions/1913.cpp | 621dc027a7414448bf890301dd0509f223c5be23 | [] | no_license | pascal-the-elf/TIOJ-ASE | 6883e4d0d0a23f02d3f2efe58bf5bd9537952384 | 181ba41b732d52f9c8c728be247961dda3bd4398 | refs/heads/main | 2023-06-04T11:40:20.715491 | 2021-06-27T16:35:40 | 2021-06-27T16:35:40 | 377,033,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,005 | cpp | #pragma g++ optimize("Ofast")
#pragma loop_opt(on)
#include <cstdio>
inline char readchar() {
constexpr int B = 1<<20;
static char buf[B], *p=buf, *q=buf;
if(p == q && (q=(p=buf)+fread(buf,1,B,stdin)) == buf) return EOF;
return *p++;
}
inline int nextint() {
int x = 0, c = readchar();
while('0'>... | [
"jacoblincool@gmail.com"
] | jacoblincool@gmail.com |
d73fb22c2c730725bde362fae7f582e617f049ff | b4c0b4a5441d48cd81e9468804b67c083dd3945b | /Tools/Maths.h | d2505eb4dfb79252c8165aee8486e5249caf7e9c | [] | no_license | mikeharfoot/Madingley-1 | 40678438e297eec47eda71c21e214b39415ed9db | 1bb5d9cd57bc5376d2f2fc81304ad493e2a8efa0 | refs/heads/master | 2020-07-14T18:50:58.658564 | 2019-08-30T10:33:46 | 2019-08-30T10:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,541 | h | #ifndef MATH
#define MATH
#include "Types.h"
#include "Constants.h"
#include <typeinfo>
class Maths {
public:
~Maths( );
static Types::MathsPointer Get( );
long double Pi( ) const;
int Floor( const double& ) const;
int Ceil( const double& ) const;
int Round( const double&... | [
"noreply@github.com"
] | mikeharfoot.noreply@github.com |
17fee6cda44bde97c566467855543088d933893b | 8bfc760af6a5dd970a7045a5d9927be251c62bc3 | /Training/train5_NETWORKS.cpp | f084c5098586a77456bd23c5d0633931b8af3177 | [] | no_license | sonnv0812/ttud.20192 | 9a23eff68e25dd74735ea68108c2bb20a71cfbd4 | e0b0443c7e7b729a4ff6e28bc8c5b41379a30c72 | refs/heads/master | 2023-01-08T22:31:01.957357 | 2020-11-05T05:05:07 | 2020-11-05T05:05:07 | 310,195,328 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | cpp | #include<bits/stdc++.h>
using namespace std;
#define ii pair<int,int>
int n,k,m;
vector<ii> adj[10011];
int f[10011];
int ans = __INT32_MAX__;
void dfs(int x, int p, int depth){
if (depth == k)
{
ans = min(ans, f[x]);
return;
}
for(auto i: adj[x]){
int y = i.first;
if (y... | [
"vansonducchinh@gmail.com"
] | vansonducchinh@gmail.com |
e1fa7cce792fcce0a5925c368d83fd9a1eb17e21 | 011006ca59cfe75fb3dd84a50b6c0ef6427a7dc3 | /codeforces/AIM-TECH-5/b.cpp | e91de244e74edf22e22efe1cb3fd9f86f7af88b1 | [] | no_license | ay2306/Competitive-Programming | 34f35367de2e8623da0006135cf21ba6aec34049 | 8cc9d953b09212ab32b513acf874dba4fa1d2848 | refs/heads/master | 2021-06-26T16:46:28.179504 | 2021-01-24T15:32:57 | 2021-01-24T15:32:57 | 205,185,905 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,966 | cpp | /*
____________________________________________________________
| |
| Author: ay2306 |
|____________________________________________________________|
*/
#include <bits/stdc++.h>
#define MOD 1000000007
#define test i... | [
"mahajan.ayush2306@gmail.com"
] | mahajan.ayush2306@gmail.com |
16d61c4579bf93dee9a458e4c822d298e1aee502 | d51f23605ba300af47c5aef5f10282d74b05626a | /Operator Checker.cpp | e80a4870a7ebc31bdecf66614d738de85996d987 | [] | no_license | TarekAhamed-LIV3D/Compiler | b5233d0c3374091b6fa07085d589a0f6d23e5be1 | 199b47e6499eb3d621c6880f8478e8cf43b4a86c | refs/heads/main | 2023-01-03T15:12:52.007277 | 2020-10-28T07:56:55 | 2020-10-28T07:56:55 | 307,935,913 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,471 | cpp | #include <iostream>
#include <cstring>
#include <typeindex>
int main(){
int i,l;
cout << ("Lets");
char c,str[100];
puts("Enter the string and type $ to stop");
while((c=getchar()) != '$')
str[i++] = c;
str[i] = '\0';
i = 0;
while(str[i] != '\0')
{
if(!isalpha... | [
"64723695+TarekAhamed-LIV3D@users.noreply.github.com"
] | 64723695+TarekAhamed-LIV3D@users.noreply.github.com |
213885d32680b8084efc91057d9de4421bc41b56 | 48c387082fe9dd34bd1a6e6ed7b38abfce7cdf11 | /src/headers/MeshGeometry.h | bdfa8b67b98cdbb8cb89afaeebb9d475eb3efd2c | [
"Unlicense"
] | permissive | benpigchu/CG-RayTracing | 279b1400f40838e3bb2f8acd4ea227e67a993667 | 4e5f2bea6e3f537ac0ef109d5b503595c2898516 | refs/heads/master | 2020-12-31T06:10:03.120902 | 2017-06-24T22:51:13 | 2017-06-24T22:51:13 | 80,618,684 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | h | #ifndef MESHGEOMETRY_H
#define MESHGEOMETRY_H
#include <vector>
#include "Geometry.h"
#include "Vector3.h"
#include "Ray.h"
#include "Mesh.h"
#include "Triangle.h"
#include "MeshIntersectOptimiser.h"
class MeshGeometry:public Geometry{
static const bool USE_KDTREE_OPTIMISE=true;
MeshIntersectOptimiser kdTree;
::std... | [
"benpichu@gmail.com"
] | benpichu@gmail.com |
818b3f8ff5d3eb8b3ccb3a5b653566068e8ed58b | 93c44a30e10cd3d8d3785b869cca4ed1f9974ff7 | /Project1/Code/RTS/AI/LuaScript/Commands/ProjectByUnitRange.cpp | c1bb10442e7a8738f7df03aa68434717ffa3acb7 | [] | no_license | AlamoEngine-Tools/GlyphX-Reference | f321c2e74ddac848b20fd7f9d1ef01f9b5537e62 | 9541b8c183e540d05bbcf199921f6d71c33181e9 | refs/heads/master | 2023-02-11T12:14:15.582026 | 2021-01-13T19:20:38 | 2021-01-13T19:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,036 | cpp | // $Id: //depot/Projects/StarWars_Steam/FOC/Code/RTS/AI/LuaScript/Commands/ProjectByUnitRange.cpp#1 $
///////////////////////////////////////////////////////////////////////////////////////////////////
//
// (C) Petroglyph Games, Inc.
//
//
// ***** ** * *
// * *... | [
"63470275+PG-SteveT@users.noreply.github.com"
] | 63470275+PG-SteveT@users.noreply.github.com |
5bb2fd1d79feb2bd69721cc96f36be580ff1ccfb | 67f5d0e6b1a42f8c6151e287087d473f43f0bc2f | /include/ice/base.hpp | 09c970596c7222479d238f45fa6d3c96722d378b | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-ibm-dhcp",
"BSD-3-Clause",
"LicenseRef-scancode-gary-s-brown",
"MIT",
"ISC",
"BSL-1.0",
"BSD-2-Clause"
] | permissive | qis/ice-old | cf5fd48dba8831d8c40718afa653f0f1a47953e7 | 50b5b1ce05b823a501573ed30a9ac6bd62bcc349 | refs/heads/master | 2022-12-18T06:14:39.077931 | 2020-09-18T04:14:53 | 2020-09-18T04:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,684 | hpp | // ISC License
//
// Copyright (c) 2017 by Alexej Harm
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND ... | [
"alexej.h@xiphos.de"
] | alexej.h@xiphos.de |
df2c981e2274f506e27fb381833ffb9f566bf3dc | d6face59a153b062f1a86b75fc377fdb5f5a52d4 | /src/out/linux-x64x11_devel/gen/bindings/browser/source/cobalt/dom/v8c_screen.h | 4ca942640cc6d001facc290c6a106adbba193b57 | [
"BSD-3-Clause"
] | permissive | blockspacer/cobalt-clone-28052019 | 27fd44e64104e84a4a72d67ceaa8bafcfa72b4a8 | b94e4f78f0ba877fc15310648c72c9c4df8b0ae2 | refs/heads/master | 2022-10-26T04:35:33.702874 | 2019-05-29T11:07:12 | 2019-05-29T11:54:58 | 188,976,123 | 0 | 2 | null | 2022-10-03T12:37:17 | 2019-05-28T07:22:56 | null | UTF-8 | C++ | false | false | 1,528 | h |
// Copyright 2019 The Cobalt Authors. All Rights Reserved.
//
// 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 a... | [
"trofimov_d_a@magnit.ru"
] | trofimov_d_a@magnit.ru |
bfe62c8ca27755c8421be4697601a375e66b04b2 | 72ef41c37a0a25c042fd6faaee35fcd8533e9ef8 | /src/serialize.h | ba47cba1ffa487b66d57f60c1248c7b0215105e8 | [
"MIT"
] | permissive | pokecoin/PokeCoin | c42fd85b635d86c49cacc7fd587a1ba55814219b | 116c699c4ec8d33152bcc48d1944e0cc0669ff2a | refs/heads/master | 2021-01-10T19:02:56.577479 | 2014-03-12T06:42:21 | 2014-03-12T06:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 46,499 | h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013-2014 Pokécoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_SERIALIZE_H
#define ... | [
"snowfiregaming@gmail.com"
] | snowfiregaming@gmail.com |
2ac8c236fc531ebfe76ef137688925fcc20fa1de | 8a8744104d9d2b50d350239dbc8a9f09a8ecc03a | /Code/CPlusPlus/Engine/PCEngine.h | cc88c9268a898d6aaa8ddc1a9f4257c20c95744e | [] | no_license | JonnyRivers/rorn | fadd039b13fd95de5033d25e4552c456ab2eaa13 | ea3dab1d42838917c29d81f7ff92c11fc312a62e | refs/heads/master | 2016-08-12T19:55:18.729619 | 2014-09-11T21:20:30 | 2014-09-11T21:20:30 | 52,677,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,352 | h | #pragma once
#include <Windows.h>
#include "Interfaces/IEngine.h"
#include "Subsystems/Diagnostics/PCDiagnostics.h"
#include "Subsystems/FileSystem/PCFileSystem.h"
#include "Subsystems/Input/DirectXInputManager.h"
#include "Subsystems/Physics/BulletPhysicsSystem.h"
#include "Subsystems/Renderer/DirectXRend... | [
"ca6jri@4fafbd65-2c19-2041-7f78-9da6aaec0f04"
] | ca6jri@4fafbd65-2c19-2041-7f78-9da6aaec0f04 |
2656ad10dcddf5a621102b1be1279ddacdb66564 | 6852aaee94c44b8f63fb052d04ceb0d73b4ce196 | /libGME/gme save 20130721/Spc_Cpu.cpp | 26b1139bdcc188d2c46cf5e2aa28a2d0607fa1fd | [] | no_license | QiuZhiFei/modizer | 9c66abf11f3df79dfdc50d17d91272f7f93a256b | 14aace66ea3791dec19b414203780f239d49971c | refs/heads/master | 2020-12-03T00:30:22.433753 | 2015-01-11T18:41:02 | 2015-01-11T18:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,401 | cpp | // Core SPC emulation: CPU, timers, SMP registers, memory
// snes_spc $vers. http://www.slack.net/~ant/
#include "Snes_Spc.h"
/* Copyright (C) 2004-2007 Shay Green. This module is free software; you
can redistribute it and/or modify it under the terms of the GNU Lesser
General Public License as published by the Free... | [
"ymagnien@gmail.com"
] | ymagnien@gmail.com |
a312d49f7751987ac7126d6046b829e6f7596014 | c81744584846f965f02ee62ddf6c1ae69d256d66 | /main.cpp | ce6c575cb7a83d8d50049d52b0f556499a41268b | [] | no_license | ddxxsx/plane | 65a36fb0dea9df3d55ba3a658464d081012a6d7d | ed1d7dbe49f699f38d2cb327901b8dfa5d896d8e | refs/heads/main | 2023-01-09T09:28:16.300650 | 2020-11-12T06:00:42 | 2020-11-12T06:00:42 | 312,180,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,349 | cpp |
/********************************
调用了EGE图形库
*******************************/
#include <iostream>
#include <graphics.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define LENGTH 640
#define WIDTH 800
#define PLANESIZE 70
#define BULLETSIZE 30
#define E_BLOOD 3
#define P_BLOOD 20
#defi... | [
"noreply@github.com"
] | ddxxsx.noreply@github.com |
1c0d3010b139f77cf2ce10718a6cae20c79aa53c | 28ff033953ede63a4440a8c240d6b635c8331b72 | /lib/src/tags/tag.cpp | 481212e7e7b2ce24fe13fc46be3c3bf813eb7476 | [
"Apache-2.0"
] | permissive | QtWorks/imgbrd-grabber | 17f60acc45957b0d6da455b1ac7f385bfeca13e9 | f3f51c56c38765f3c03b61daa3b30c418a9754ec | refs/heads/master | 2021-04-15T08:52:41.861364 | 2018-02-19T22:57:41 | 2018-02-20T15:09:41 | 126,835,586 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,699 | cpp | #include "tag.h"
#include <QTextDocument>
#include <QSettings>
#include <QSet>
#include <QRegularExpression>
#include "models/favorite.h"
#include "models/profile.h"
Tag::Tag()
: m_type(TagType("unknown")), m_count(0)
{ }
Tag::Tag(QString text, QString type, int count, QStringList related)
: Tag(text, TagType(type... | [
"bio.nus@hotmail.fr"
] | bio.nus@hotmail.fr |
a63247056ac37c35bcf4ecfdccd37884cb7988ab | 9e845c388f03e978da93cc5e49011823ff8244ee | /Binary Searcch Tree/2.FindValueInBST.cpp | fef64de8f423782d6de381fb2f3cc9f88cdb743e | [] | no_license | chatu07/Love-Babbar-450-Programing-Course | b57201b8100c6c61c9c5bdc1fd2a62d30d028731 | 3e8ba849f1d9d33f5a02cf030be148e8a8bf9844 | refs/heads/master | 2023-01-31T08:55:57.254507 | 2020-12-05T14:22:41 | 2020-12-05T14:22:41 | 313,627,139 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,910 | cpp | #include<bits/stdc++.h>
using namespace std;
typedef struct Node{
Node* left = NULL;
int data;
Node* right = NULL;
Node(int val){
data = val;
}
}Node;
bool findElement(Node* root,int value){
bool elem = false;
while(root){
if(value == root->data){
return true;
... | [
"chitranshchitransh2018@gmail.com"
] | chitranshchitransh2018@gmail.com |
6b49b6c2cbbb746b23be8f93bc10c6c7c0c98d47 | 6e1ea8d65052f025060453f66819ac446a7592d8 | /codeforces/527a.cpp | a0d894c0946cd8cc8398bc915190322b59d0fbd1 | [] | no_license | csJd/oj-codes | bc38b79b9227b45d34139c84f9ef1e830f6b996c | 2bd65d0070adc3400ee5bee8d1cf02a038de540b | refs/heads/master | 2022-03-21T20:21:40.153833 | 2019-11-28T13:11:54 | 2019-11-28T13:11:54 | 47,266,594 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a, b, ans, t;
int main()
{
while(~scanf("%lld%lld", &a, &b))
{
ans = 0;
while(b)
{
ans += a / b;
t = a;
a = b;
b = t % a;
}
printf("%lld\n", ans);
}
... | [
"ddwust@gmail.com"
] | ddwust@gmail.com |
43bf6d3c4b20dcc9415561185a3118a30bdce07c | b24b4f33dfa16d521ea8a40dd9a0c6a1a1bed4c1 | /Lesson_3_smart_point_stack/Stack_Queue/Stack.cpp | 6907e86dd0995924a91459d9c86e2a7f522d8b4f | [] | no_license | Annushka34/C_Plus_2020 | af31e2405b1df4cf7d2406b8b3c8c674b40442b8 | 648fcad0d6d990d920cb23489f51431b08107bf1 | refs/heads/master | 2022-12-04T05:09:22.934776 | 2020-08-23T10:11:25 | 2020-08-23T10:11:25 | 268,220,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | cpp | //#include"Header.h"
//#include<stack>
//#include"MyStack.h"
//
//void main()
//{
// /*stack<double> st1;
// st1.push(5.2);
// st1.push(3.6);
// st1.push(2);
// st1.push(8.2);
// st1.push(4.6);
// st1.push(3.9);
// cout << st1.top()<<endl;
// cout << "size=" << st1.size()<<endl;
// st1.pop();
// cout << st1.top()<<endl... | [
"annsamoluk82@gmail.com"
] | annsamoluk82@gmail.com |
d8a1fb0574f00825fb2b0aaf11704d8a7e2e66df | 16b142e8cd4a704c0488646c82141716409a698b | /Section3.3/fence.cpp | cf13f46b6e289a6dc7ea141d6003a297eb0f0f56 | [] | no_license | BragCat/USACO | 3ba602c50210e60ebda3653263d27eb34996e31d | db22e56e5d42c462ea38cf656c4dfba619f79265 | refs/heads/master | 2018-11-22T08:42:46.196513 | 2018-10-30T13:46:07 | 2018-10-30T13:46:07 | 100,441,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,582 | cpp | /*
ID: bragcat1
LANG: C++11
TASK: fence
*/
#include <cstdio>
#include <vector>
#include <cstring>
using namespace std;
#define N 500
#define min(a,b) ((a)<(b))?(a):(b)
vector<int> answer;
void ride(int degrees[], int paths[][N], int node) {
for (int i = 0; i < N; ++i) {
if (paths[node][i] > 0) {
... | [
"bragcat.li@gmail.com"
] | bragcat.li@gmail.com |
51adfb3ae93d89de4cc1dacb3f2ce4bdf9e17067 | 5e135c34baf51eb8c17db4b7fa71fb4f21ab8b8c | /src/util/matrix_test.cpp | 8680926966160a275f76c8fee305e61ebb65d0ee | [] | no_license | lmcoy/mypowheg | cd77ae40471272282e28da4a3b21ea12c2d9794c | f9f57e50ebed0d1756b1472e1ef29f4e5bf5dfb9 | refs/heads/master | 2021-01-12T08:07:54.918090 | 2018-09-30T16:53:51 | 2018-09-30T16:53:51 | 76,482,229 | 2 | 0 | null | 2017-04-27T09:28:32 | 2016-12-14T17:34:54 | Fortran | UTF-8 | C++ | false | false | 2,416 | cpp | #include "gtest/gtest.h"
#include "util/matrix.h"
TEST(Matrix,Index) {
Util::Matrix<4,4> m;
for (int i = 0; i < 4; i++) {
for(int j = 0; j < 4; j++) {
m[i][j] = (double)(i*(j+1));
}
}
EXPECT_DOUBLE_EQ( m[0][0], 0.0 );
EXPECT_DOUBLE_EQ( m[1][0], 1.0 );
EXPECT_DOUBL... | [
"oymanns@physik.rwth-aachen.de"
] | oymanns@physik.rwth-aachen.de |
b75bfd585ea67acaeaffeb1e2dae66121bfa857a | 84e14f6522262721cf5a4905aa7d1fc88ebf2cbe | /src/light/slice.h | 4425f9005290cdbffcd37d374a4ef635a90e8dfe | [
"MIT"
] | permissive | chemaoxian/light | 765c0c35d61b02f52e857ce3c4b388bdd1c14a51 | de917d0af2954914de3564ee2f017138c9da21ee | refs/heads/master | 2021-01-02T22:29:44.152747 | 2017-11-22T09:25:48 | 2017-11-22T09:25:48 | 99,330,070 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,451 | h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Slice is a simple structure containing a pointer into some external
// storage and a size. The us... | [
"443224841@qq.com"
] | 443224841@qq.com |
eff7d307132e46386a5b05419596a94dd260b8fe | b703cb4f590af7b5f138f4a383b2f6f31209993b | /mef02-c07/positive.h | 2d7381439219a87cdbcb34fcba1e2756a877364d | [] | no_license | Beasalman/mef | 9d5e28a77d1dd25542174cd2e8a2289ec1167548 | cd08c3b3cf7050fb76c38b7cd74c7e553faca025 | refs/heads/master | 2020-05-29T21:50:22.841664 | 2019-05-31T12:20:08 | 2019-05-31T12:20:08 | 189,392,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | h | #include <iostream>
using std::cout;
using std::endl;
#include <Eigen/Dense>
using namespace Eigen;
/* --------------------------------------------------------------------------- */
#ifndef positive_h_
#define positive_h_
double positive (double);
VectorXd positive (VectorXd);
#endif
/* -*-*-*-*-... | [
"bsm@stromboli.sc.cwi.nl"
] | bsm@stromboli.sc.cwi.nl |
9830206385b435e31dc9e41fa0daec5bbcdb634c | 26cca13846de9bbbe0672fe2a8e3d79368c6c62c | /interview/Trapping Rain Water.cpp | 3bb416d19fe6f83580550d9f43e387fb209bf5f6 | [] | no_license | meizhitu/pojExec | 3531382d9bc1048a9af84a4d7780970e13e44be9 | d86d73b22f5188635693592f70429fd0bcb6980b | refs/heads/master | 2021-01-19T00:29:33.483674 | 2013-08-31T15:45:56 | 2013-08-31T15:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cpp | //先从左往右计算每个坐标左侧的max,然后从右往左计算,计算每个坐标右边的最大值,然后遍历每个坐标点,min(左边,右边)-A[i]即为每个坐标点的面积,求和。
#include <iostream>
using namespace std;
int trap(int A[], int n) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
if(n==0) return 0;
int maxL = A[0];
int maxLeft[n];
maxLeft[0] = 0 ;
fo... | [
"momoliu88@126.com"
] | momoliu88@126.com |
ee324951cd8b755a0c8e1070cdcedaa60e72f8d3 | 6e78e5f322c23c58148774cbef56c9fbdc597063 | /FlexEngine/include/Test.hpp | cfba292a6467dcc7e1595ddef54040460f2e6303 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | templeblock/FlexEngine | 325630251f6ed0be60577a16f7b772943c0f9ad1 | 2d3bb41fb6a3e5e6815a4a2c338d22af1c77e9bf | refs/heads/master | 2022-11-23T20:06:32.772425 | 2020-04-21T17:58:22 | 2020-04-21T17:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,400 | hpp | #pragma once
#include "JSONParser.hpp"
#include "Helpers.hpp"
IGNORE_WARNINGS_PUSH
#include <glm/gtx/euler_angles.hpp>
IGNORE_WARNINGS_POP
namespace flex
{
class FlexTest
{
private:
using TestFunc = void(*)();
#define JSON_UNIT_TEST(FuncName) static void FuncName() \
{ \
const char* FunctionName = #FuncNam... | [
"ajweeks@shaw.ca"
] | ajweeks@shaw.ca |
cb912f922cf5b1dc6428275324cbf5e628256552 | 6f96cbef7eff9750ae0dee888d67d52d296c3fab | /editwidget.cpp | 07138281fc62d88ab8af70857569319bfa2d3fb2 | [] | no_license | AbnerWater/QT-OsgViewer | 3fb9179a1e7d7132d5d14cdb16e6401046beebc7 | 18bd0c41bffffd269209d48b7016234841070e3a | refs/heads/master | 2020-07-28T21:05:34.880250 | 2019-09-19T11:40:29 | 2019-09-19T11:40:29 | 209,537,669 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,136 | cpp | #include "editwidget.h"
#include<QFileDialog>
#include "qdebug.h"
#include<QPixmap>
editwidget::editwidget(QWidget *parent) : QWidget(parent)
{
this->setGeometry(500,500,600,400);
texture.setText("添加纹理");
texture.setGeometry(450,100,100,50);
texture.setParent(this);
texture.show();
... | [
"noreply@github.com"
] | AbnerWater.noreply@github.com |
149f3ad47a9cce6a696e7ac400df3dbcb8680441 | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/Windows-classic-samples/Samples/Win7Samples/winbase/deployment/windowsdeploymentservices/multicast/consumer/main.cpp | faf74a02cb95ba82c59b02b3253a6bdd2acdd33f | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 9,453 | cpp | /*++
Copyright (c) 2007 Microsoft Corporation
Module Name:
main.cpp
Abstract:
Sample code demonstrating the use of the WDS multicast client apis.
Author:
Blaine Young (blyoung)
Environment:
User Mode
--*/
#include <windows.h>
#include <wdstci.h>
#include <stdio.h>
#include <time.h>
//
// Han... | [
"126.org@gmail.com"
] | 126.org@gmail.com |
f38b26a4469e9d2ca2d265a5afe25bb8dfd696cb | 7feafc361420ba68c0df24840e62d18ccfdf11ef | /CSE/New folder/in/m/me j.cpp | 7b3eece7f83349906f0abe2a5e62637cbbd6c4d4 | [] | no_license | omarKaushru/Numb-UV-Life-activites | b7e94645c9bbc52317fcb80cd6c83e95793fcefb | 63a74e875edee6dc5cfe77439247172da009f2c5 | refs/heads/master | 2022-12-05T11:34:12.142216 | 2020-09-01T18:19:41 | 2020-09-01T18:19:41 | 292,070,016 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,412 | cpp | #include<stdio.h>
#include<conio.h>
#include<string.h>
main(){
char str[99];
int vow=0,cons=0,dig=0,com=0,dot=0,spa=0,i=0;
printf(" Please enter a line: ");
gets(str);
while(str[i]!='\0')
{
if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=... | [
"omarkaushru@gmail.com"
] | omarkaushru@gmail.com |
fb13a316dacac3e33b3bc8e3afe2850ef6ce1eab | 2e6daf1b735fe95070b0cc852552b09059de2fee | /Test_Almacen_PAI_11_Down/Test_Almacen_PAI_11_Down.ino | ab0be27ad9b6d60f9c937edb65c44b7fca62d66f | [] | no_license | wdgarzonc/AAUNFII | d8f0eb3241f1761f7e94add7996660485600239e | d86ae8b2412135b681c15424680edbeb55092f11 | refs/heads/master | 2022-09-21T05:57:11.319675 | 2020-05-25T18:31:44 | 2020-05-25T18:31:44 | 266,421,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,123 | ino | /*
ros//Serial::std_msgs::Float64 Test
Receives a Float64 input, subtracts 1.0, and publishes it
*/
#define F_CPU 8000000UL
#include <ros.h>
#include <std_msgs/Int16.h>
//*******************************************************************
//* Librerias para el teclado Matriz 4x4 ... | [
"wdgarzonc@unal.edu.co"
] | wdgarzonc@unal.edu.co |
de8d7164d0db0ef8bc33ee65f0df5a1b103e92a0 | 18832689b5f950d1b4a9b84c731aa0bacac9fc3b | /HomeExercise8.4/HomeExercise8.4.cpp | cce7ca4457e96040c54ee4852c7f764002f234c2 | [] | no_license | pilo309/HomeExercise8 | dafe33f0f4b6742c8716f4498b8df3ef49d59271 | bdef0092d97f314eeb2f6d0d23aaaef1b23a6493 | refs/heads/master | 2023-01-21T13:44:01.538854 | 2020-11-22T19:41:52 | 2020-11-22T19:41:52 | 315,118,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | cpp | #include <iostream>
#include "Dog.h"
#include <string.h>
#include <stdio.h>
int main()
{
using namespace std;
struct Dog Labrador;
Labrador.age_ = 10;
Labrador.weight_ = 15;
strcpy_s(Labrador.breed_,"Labrador");
cout << "Dog breed is " << Labrador.breed_ << endl;
cout << "Dog's age is " << Labrador.age_ << en... | [
"au645645@uni.au.dk"
] | au645645@uni.au.dk |
2da26019a4263d26d8ddf22ca1e6ac4ea4749e05 | 6035de2a8a7880134307ebff71eeec44d7a6d556 | /src/missile.cpp | 651786e076c53782f6306c8929379b0c611b59f7 | [] | no_license | 4jeR/sfml-spaceships | 330c9a1a1bf4bedc72844dc1c307c91133395105 | 9f63e2d78c660990260e5254b93d4fb7964f77cc | refs/heads/master | 2020-07-29T23:32:04.042110 | 2019-10-09T18:57:37 | 2019-10-09T18:57:37 | 210,002,046 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,241 | cpp | #include "missile.h"
Missile::Missile(float x, float y, sf::RenderWindow* winptr, float radius, int foreign)
:Object(x, y, winptr, radius, foreign)
{
_shape = new sf::RectangleShape(sf::Vector2f(2.0f, 8.0f));
_shape -> setPosition(_x, _y );
_shape -> setOutlineColor(sf::Color::Red);
_shape -> setOutli... | [
"bdlugosz98@gmail.com"
] | bdlugosz98@gmail.com |
2e1ef7a011ecc142b0961b428ae7d463af8f6f43 | 96e7347db30d3ae35f2df119a18472cf5b251fa2 | /Classes/Native/mscorlib_System_Reflection_MethodBase591550820.h | 4aac0a6dc3b36fb529b42ece9762e282fb27faa7 | [] | no_license | Henry0285/abcwriting | 04b111887489d9255fd2697a4ea8d9971dc17d89 | ed2e4da72fbbad85d9e0e9d912e73ddd33bc91ec | refs/heads/master | 2021-01-20T14:16:48.025648 | 2017-05-08T06:00:06 | 2017-05-08T06:00:06 | 90,583,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Reflection_MemberInfo1952312350.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragm... | [
"phamnguyentruc@yahoo.com"
] | phamnguyentruc@yahoo.com |
5f77580adc67ed768a9e46395ad0d03e8fe85bb4 | e24a366a7ac5dfb5975a468046c8626a9d56fa6d | /Obfuscator/Source/tools/clang/lib/Driver/ToolChains/NetBSD.h | ae0865fd6573dca63dd49e67bd9cf602ac4cf3c5 | [
"NCSA",
"MIT"
] | permissive | fengjixuchui/iOS-Reverse | 01e17539bdbff7f2a783821010d3f36b5afba910 | 682a5204407131c29588dd22236babd1f8b2889d | refs/heads/master | 2021-06-26T17:25:41.993771 | 2021-02-11T10:33:32 | 2021-02-11T10:33:32 | 210,527,924 | 0 | 0 | MIT | 2021-02-11T10:33:33 | 2019-09-24T06:26:57 | null | UTF-8 | C++ | false | false | 3,035 | h | //===--- NetBSD.h - NetBSD ToolChain Implementations ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | [
"374619540@qq.com"
] | 374619540@qq.com |
132685e5408057ac3e1912009b46a075450ca933 | a48134dac978d181b974b3d19159ddc853ddfc61 | /include/tchecker/variables/intvars.hh | 9cd8485dd9b66dcbf6a07b16fbb15a9a3eebaefe | [
"MIT"
] | permissive | schlepil/tchecker | f65eccfcfb72f9d55478730731dda8f559bd143a | 3ab68fe150d16e3db77db8380c47e02026c7815f | refs/heads/master | 2022-05-02T03:13:55.872205 | 2022-04-14T10:07:50 | 2022-04-14T10:07:50 | 209,299,459 | 0 | 0 | MIT | 2019-09-19T15:04:37 | 2019-09-18T12:10:42 | C++ | UTF-8 | C++ | false | false | 8,960 | hh | /*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#ifndef TCHECKER_INTVARS_HH
#define TCHECKER_INTVARS_HH
#include <iostream>
#include <string>
#include "tchecker/basictypes.hh"
#include "tchecker/utils/allocation_size.hh"
#include "tchecker/utils/ar... | [
"fh@labri.fr"
] | fh@labri.fr |
bf482d77713c4c375f2d737d33a7d1776ba533c3 | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/WebKit/Source/core/xml/XPathParser.h | 0162f0bc104f26b0daa285d789376ffd7623fdf3 | [
"BSD-3-Clause",
"LGPL-2.0-only",
"BSD-2-Clause",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | C++ | false | false | 4,250 | h | /*
* Copyright 2005 Maksim Orlovich <maksim@kde.org>
* Copyright (C) 2006 Apple Computer, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyri... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
0792f1ef7a48ff1a3cd0893dcc664198782c5a58 | 79d31b4ae847b40a9c27d9895a8de3b71d1a09b1 | /FoVProto/Source/FoVProto/Types.cpp | b0a26d473aafd3a3b12d4e97138c1ebbbb1a96d5 | [] | no_license | Milowan/FoVProto | 3e215ff76e7a1a8ddc8be62479c41f111ad1724f | fd29b086b4dfe5848070b0bd15c56d22e1edbf8c | refs/heads/master | 2023-01-03T20:31:43.050217 | 2020-11-01T00:17:05 | 2020-11-01T00:17:05 | 276,907,986 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 101 | cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Types.h"
| [
"44212243+Milowan@users.noreply.github.com"
] | 44212243+Milowan@users.noreply.github.com |
8f25fdf313d76d844b694627979ca60d3b4f66b3 | 3860db035ca76ad830fcba7ce524579179ea5e8a | /2034.cpp | 562d8e84d3e8b1a24352d6f8158fac7fe093f04d | [] | no_license | andongfan/oicode | f9cdec6259a4091cdde4e0f476f9200474ead8b6 | 4af2a53aa8a7e423ed220258a6a7f1606358250b | refs/heads/master | 2021-09-26T19:37:08.248281 | 2018-11-01T15:51:22 | 2018-11-01T15:51:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | cpp | #include<iostream>
#include<iomanip>
#include<cstring>
#include<cmath>
#include<cstdio>
#include<ctime>
#include<cstdlib>
using namespace std;
double sx[20005]={0},sy[20005]={0},n,sumx=0,sumy=0;
double ansx,ansy;
int main()
{
srand(233333333);
cin>>n;
for(int i=1;i<=n;i++)
{
scanf("%lf%lf",&sx[i],... | [
"anthonyfan2018@163.com"
] | anthonyfan2018@163.com |
2c63204773afb3691f0dc196103142f7e117b914 | 03f037d0f6371856ede958f0c9d02771d5402baf | /graphics/VTK-7.0.0/Views/Infovis/vtkIcicleView.cxx | 436d60469f75b497109c1dec5b65ee6375e7cdc5 | [
"BSD-3-Clause"
] | permissive | hlzz/dotfiles | b22dc2dc5a9086353ed6dfeee884f7f0a9ddb1eb | 0591f71230c919c827ba569099eb3b75897e163e | refs/heads/master | 2021-01-10T10:06:31.018179 | 2016-09-27T08:13:18 | 2016-09-27T08:13:18 | 55,040,954 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,668 | cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkIcicleView.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softw... | [
"shentianweipku@gmail.com"
] | shentianweipku@gmail.com |
fe84cc5147889e226797764b80d315c5185ac3e1 | c96ae11059bef7c62a3e7509708c9807e5b7384a | /TriggerEditor/Space/SEditValue.h | 004b6dca5c9c272120fb20a7c672bd6a10f625fe | [] | no_license | liuchunlin/BehaviourEditor | 40a195fa3455402a585152431219a4411119357a | 9ce3217f2bfc5490680e8df414286b95b27382ce | refs/heads/master | 2020-12-25T14:13:16.775271 | 2016-08-25T15:45:49 | 2016-08-25T15:45:49 | 65,906,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | h | #pragma once
#include "SNode.h"
#include "NodeBase.h"
namespace Space
{
class SEditValue: public SNode
{
DECLARE_BLOCK_ALLOCATE
public:
SEditValue();
virtual TiXmlElement* ToXMLElement();
virtual bool FromXMLElement( const TiXmlElement* pXMLElement );
virtual bool GetContextView( Contex... | [
"408354802@qq.com"
] | 408354802@qq.com |
010348671375dfd2082a6e4c1dd69cafaf8033eb | 9d1f6bc7f111e1c5f92a4f800e7db1a4cfbcbbfa | /Test/tetris.ino | 0d9f52637e2e3093364cb7778597ef4a2565e9b3 | [] | no_license | ryujt/arduino | 18c9a42c3016bcadb428b7cf4de63c780ec2b1ce | 53ea33239f1a69fecf726a49bc2df692144e0a5a | refs/heads/master | 2021-03-12T20:28:27.728020 | 2016-03-01T20:35:07 | 2016-03-01T20:35:07 | 33,404,607 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 17,671 | ino | /*
Author: Jae Yeong Bae
UBC ECE
jocker.tistory.com
Date: Jan.18.2013
File: Tetris
Purpose:
killing time.. + for fun
Circuits+Pins:
Led Matrix:
2 74HC575 Shift Registers in order: Green,Blue,Red
pins: Latch = 3
Clock = 2
D... | [
"ryujt658@gmail.com"
] | ryujt658@gmail.com |
688bf7b294b77448bece3ddc6355611d6a1177ce | 518b1a4a209d0e870a7fd1b9cf54c56ecb32cda3 | /STAGE/cpp/smdmonitor/src/test/OperationsTest.cpp | a99acbc1c627ee58fadf43771966b6dd5709b709 | [] | no_license | LRBH10/stageImageau | 85a3afe8a5c8724a1d9949e857bb9c478054a761 | 630b0ba90634b7313fc52f23fd26271a2b3219c8 | refs/heads/master | 2021-01-18T14:33:45.203645 | 2012-11-16T16:05:44 | 2012-11-16T16:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,830 | cpp | /*
* OperationsTest.cpp
*
* Created on: 25 juin 2012
* Author: bibouh
*/
#include "OperationsTest.h"
#include "OperationsIncludes.h"
#include "OperationSvnUpdate.h"
#include "OperationSvnSwitch.h"
#include <cppunit/config/SourcePrefix.h>
using namespace OperationsSMD;
CPPUNIT_TEST_SUITE_REGISTRATION (Oper... | [
"rlaouadi@si95.etu.info-ufr.univ-montp2.fr"
] | rlaouadi@si95.etu.info-ufr.univ-montp2.fr |
ee8e086f458e4eebdabd2ef5cb518fa403d98761 | f2339e85157027dada17fadd67c163ecb8627909 | /Cluster/GuardServer/Src/GuardServer.cpp | 026765d79228c9670ca8492db2a9d22dfd32f23f | [] | no_license | fynbntl/Titan | 7ed8869377676b4c5b96df953570d9b4c4b9b102 | b069b7a2d90f4d67c072e7c96fe341a18fedcfe7 | refs/heads/master | 2021-09-01T22:52:37.516407 | 2017-12-29T01:59:29 | 2017-12-29T01:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,207 | cpp | /*******************************************************************
** 文件名: GuardServer.cpp
** 版 权: (C) 深圳冰川网络技术有限公司
** 创建人: 李界华
** 日 期: 2015-8-17
** 版 本: 1.0
** 描 述: 数据监护服务器主程序
** 应 用:
**************************** 修改记录 ******************************
** 修改人:
** 日 期:
** 描 述:
****************************... | [
"85789685@qq.com"
] | 85789685@qq.com |
95fb47e2405bc3b57b600dbd62af7f755bff54fd | 4fa3ffb1551dfe4867ccafbfbd88ff4fa9902b99 | /android_code/third_party/glm/test/core/core_func_exponential.cpp | 33f16fc7bf6a2b29b1edab03a5e022edc0a4660b | [
"MIT"
] | permissive | occamLab/tango_ros_bridge | 8c8b7845691f7013ff20c7ed19a1d60ea76854c2 | 4d35cf18869a6b52654e467df41b60e18f56b2a2 | refs/heads/master | 2021-04-22T12:36:33.974577 | 2018-07-30T16:14:02 | 2018-07-30T16:14:02 | 31,181,150 | 10 | 9 | null | 2017-06-28T16:28:38 | 2015-02-22T21:21:08 | C | UTF-8 | C++ | false | false | 2,787 | cpp | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2011-01-15
// Updated : 20... | [
"paullundyruvolo@gmail.com"
] | paullundyruvolo@gmail.com |
98a2463be90f01267b58f6c0e17278a3c7cd9fa1 | abb237124c86cec7a9b67f556b9ad0517f7e18b7 | /src/TiffWriter.h | b5e214ed5b0bbd1af57fdf1ddd38178e50da2006 | [
"MIT"
] | permissive | odinsbane/toy-model-cell-gl | 3f80dc85675973eee39a79c2d7e4d6b3b2105c73 | a1e976d51e9673a364f130cf5685d86ed0d50ea4 | refs/heads/master | 2020-04-06T19:53:31.984277 | 2018-11-15T18:52:47 | 2018-11-15T18:52:47 | 157,753,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | h | #ifndef _TIFF_WRITER
#define _TIFF_WRITER
#include "tiffio.h"
class TiffWriter{
int height;
int width;
int count;
TIFF* image;
public:
TiffWriter(const char* filename, int height, int width);
void writeFrame(char* buffer);
void close();
int bpp;
};
#endif | [
"melkor@orangepalantir.org"
] | melkor@orangepalantir.org |
d67f88f910fa34ed848f7f4299f46b06a2229f46 | 0c1f0defb82ba40b7eec1405e78c4b71a3b2b963 | /ClearScript/V8/ClearScriptV8/V8IsolateProxyImpl.cpp | dbd061a64ccb7fadfd998daf882cdb708c93a820 | [] | no_license | jdaigle/ClearScript | 63a51d5e0fd3c572ef0cd96d560a0a5323695589 | f31b05abe0e0253c21a53773bf2194b189fa1e83 | refs/heads/master | 2021-01-13T02:15:01.023876 | 2015-06-15T13:15:42 | 2015-06-15T13:15:45 | 37,464,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,420 | cpp | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Microsoft Public License (MS-PL)
//
// This license governs use of the accompanying software. If you use the
// software, you accept this license. If you do not accept the license, do not
// use the software.
//
// 1. Definitions
//
// The te... | [
"ClearScript@microsoft.com"
] | ClearScript@microsoft.com |
e585f5e5d83257eee1420a2426916927ebad763b | 935a7ffba3674ebb3ac26005b5297393b7c46dd0 | /TP3/ex01.cc | 9178c417de93820f19bd77aaaaa0ec2e99e91644 | [] | no_license | karshann/language-avanc-e | 1277acce9b57e5b55273d352e2d8fdfa0135fc59 | b375a1f3fdb4d7534a6f269b2240c0f4bf4c1dd4 | refs/heads/master | 2020-04-01T23:32:50.232382 | 2018-10-26T09:15:58 | 2018-10-26T09:15:58 | 153,763,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,643 | cc | using namespace std;
#include <iostream>
#include <stdlib.h>
#include <math.h>
class Point {
//variables membres
public:
double abs; //abscisse
double ord; //ordonnee
//fonctions membres
public:
Point() { //constructeur par default
abs = ord = 0;
}
Point(double abs, double ord) { //constructeu... | [
"karshan.ketheeswaran@ens.uvsq.fr"
] | karshan.ketheeswaran@ens.uvsq.fr |
8cd2f2166286fa4489f3d1a701792d3734678069 | 082a8595c95a66408bebc540cda8f66ddc74168f | /src/headers/collision/simpleworld.hpp | d3a671be69e0b7be60ba56380bf5b6f256f8f17f | [
"MIT"
] | permissive | crr0004/terrian_prototype | 6c365cbc9265cbb1fa170d3788b5123db16d7abb | 34b04239ee2fb01e48f1602ff6dd08e8bd26da63 | refs/heads/master | 2021-01-23T09:11:02.236838 | 2018-11-05T01:21:30 | 2018-11-05T01:21:30 | 42,797,408 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | hpp | #ifndef COLLISION_SIMPLEWORLD_H
#define COLLISION_SIMPLEWORLD_H
#include "collision/collider.hpp"
namespace Collision {
class SimpleWorld : public Collider{
public:
virtual void operation();
virtual void add(INode*);
virtual void add(Collider*);
virtual void notifyCollider(Collider*){}
virtual Geometr... | [
"crr0004@gmail.com"
] | crr0004@gmail.com |
aac247f94b1f25756605607f6cb26b7d64d7e062 | 09398a001b68e45148f7379ae65d13dcfc2c8170 | /CH.6/PC7.cpp | f3e3f96bad3c72d358c1d0dffb6789ee5a5aeffa | [] | no_license | dbmartinez/Starting-Out-With-C-plus-plus | 28136324d56a7f8fed11ea3f52797ac3080cd4b6 | 7b89447b4bffd92efeca3f781a1256d04a692eae | refs/heads/master | 2022-01-01T19:40:19.142911 | 2021-12-24T08:54:23 | 2021-12-24T08:54:23 | 241,753,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | // String Compare
#include<iostream>
#include<string>
#include<cctype>
using namespace std;
// Function Prototype
string upperCaseit(string s);
bool sameString(string s1, string s2);
int main()
{
// variables
string string1, string2;
// user input
cout << "Enter in 2 strings and I'll see if they're the same.... | [
"noreply@github.com"
] | dbmartinez.noreply@github.com |
44422d69031ba13dee76733e41c84b0367152351 | ccf95341f16c892905eb31ed5ddd08d40f4168ef | /src/SuiteSDL/SdlJoystickService.cpp | 1bc6050a7a48fdfa305cc2fac0930aaa6346352c | [] | no_license | NicoHartl/astu | c3eac67d3b787b400a4f203390d02274e5028ed0 | 172f195c3c2b44cc92bdf5382a0d176bae3bafff | refs/heads/master | 2023-09-04T06:35:29.541150 | 2021-10-11T05:36:10 | 2021-10-11T05:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,481 | cpp | /*
* ASTU - AST Utilities
* A collection of Utilities for Applied Software Techniques (AST).
*
* Copyright (c) 2020, 2021 Roman Divotkey, Nora Loimayr. All rights reserved.
*/
// Local includes
#include "SuiteSDL/SdlJoystickService.h"
#include "SuiteSDL/ISdlEventListener.h"
#include "SuiteSDL/SdlEventService.h"... | [
"roman.divotkey@gmail.com"
] | roman.divotkey@gmail.com |
912eeb02c250a319982e568e04a91829a8d1c51d | 904a904c55100ec5b79cef0ba6b5029c99025dda | /LyricDlg.h | 8050202e332f6303dcd1b0d130bf83add722a7cc | [] | no_license | l19981260/MyPlayer | adeebe8f24e027e46f2cb581271e6b4efacbc7e2 | 3949d25c4c910e4f5188c5aa823e4458ac2bec35 | refs/heads/master | 2020-04-04T23:04:32.752424 | 2018-11-06T08:03:26 | 2018-11-06T08:03:26 | 156,346,124 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,603 | h | #if !defined(AFX_LYRICDLG_H__8799792B_FAD6_4AC3_B8C2_3C47B0B31778__INCLUDED_)
#define AFX_LYRICDLG_H__8799792B_FAD6_4AC3_B8C2_3C47B0B31778__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LyricDlg.h : header file
//
#include <fstream>
using namespace std;
#define MAXCOUNT 100
//////////////... | [
"2463710878@qq.com"
] | 2463710878@qq.com |
8e4e2d89a5e4212f37f62fd01e25171a6ef08fbe | 0298da594869a4e8e994ea3c3ce4e16add4534ea | /Atcoder/ABC/E/We_Like_AGC.cpp | 14b304d7270fa811825d1c51c472bc4f177ace09 | [] | no_license | tsuyosshi/competitive-programming | 2d5c749aa115e11f8f64e58a2cba6e322a3ffc73 | ed7c696081fd73710ab50b0803153e79159f4eda | refs/heads/master | 2023-08-16T03:10:19.989027 | 2021-10-24T06:19:55 | 2021-10-24T06:19:55 | 264,047,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,289 | cpp | #include<iostream>
#include<algorithm>
#include<bitset>
#include<cmath>
#include<complex>
#include<deque>
#include<functional>
#include<iomanip>
#include<iostream>
#include<iterator>
#include<map>
#include<numeric>
#include<queue>
#include<set>
#include<stack>
#include<string>
#include<unordered_map>
#include<unordered... | [
"koutarou1276@gmail.com"
] | koutarou1276@gmail.com |
f76c8211b58b37300218c3326069aa71ec3a47c7 | 23d8fa17ee99239638bb18ed71d399397176861a | /InteriorDesigner_iOS(UDT)/Classes/Native/Bulk_System.Xml_3.cpp | 5e96ecc8d9c90426c240d21306c9db9fd4860eb8 | [] | no_license | Sanders25/InteriorDesigner | 3bab4a85083325c9769ba285ddc8f6ac90096ef6 | 63792d2887a05ccff4357cfcf56e4123c3457809 | refs/heads/master | 2020-03-15T16:39:18.526487 | 2018-08-02T12:33:27 | 2018-08-02T12:33:27 | 132,239,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,777,299 | cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il... | [
"sondesnort1@gmail.com"
] | sondesnort1@gmail.com |
87969eaeec38861baa6adb95bed5b90386aa820c | a04b8635f48f588c232a0f4b93b1dd40fb12bb71 | /kernel/include/Sigma/mm/vmm.h | a5c4bafa8d1af6195e9fd1b0a270ce7e1747b41d | [
"BSD-2-Clause"
] | permissive | sigma-os/Sigma | 9a6bf0a1ba86d21422cd8bb83d512b13bb53c727 | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | refs/heads/master | 2021-06-27T06:16:46.038653 | 2020-10-27T14:47:03 | 2020-10-27T14:47:03 | 177,304,765 | 52 | 1 | BSD-2-Clause | 2020-01-25T20:28:10 | 2019-03-23T15:20:01 | C++ | UTF-8 | C++ | false | false | 546 | h | #ifndef SIGMA_KERNEL_MM_VMM
#define SIGMA_KERNEL_MM_VMM
#include <Sigma/common.h>
#include <Sigma/misc/misc.h>
#include <Sigma/arch/x86_64/paging.h>
namespace mm::vmm
{
class kernel_vmm {
public:
static x86_64::paging::context& get_instance(){
return _instance();
}
ke... | [
"twoertman@gmail.com"
] | twoertman@gmail.com |
c553af5bdc94d8fe5b49f9fea86340bea0975ef4 | 76cb6d156e27117d3c021aa660814a8e7b9f66f6 | /C++ Code/C++ Primer/ch10/ex10_25.cpp | 2cd2f7dc274e67e1a49fef1b0a33f7ea25b607a3 | [
"CC0-1.0"
] | permissive | CCP101/CPP_Learning_Code | 8258023d726768cb2c7972b12562675703ce706e | ffb95854d001c85129609bf0d930aab31a02935b | refs/heads/master | 2021-04-09T14:39:21.362079 | 2020-12-11T13:14:48 | 2020-12-11T13:14:48 | 125,634,540 | 0 | 0 | null | 2018-04-30T01:32:48 | 2018-03-17T13:58:39 | C++ | UTF-8 | C++ | false | false | 814 | cpp | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
using std::string;
using std::vector;
using namespace std::placeholders;
void elimdups(vector<string> &vs)
{
std::sort(vs.begin(), vs.end());
vs.erase(unique(vs.begin(), vs.end()), vs.end());
}
bool check_size... | [
"liwentao0523@hotmail.com"
] | liwentao0523@hotmail.com |
c549c835f09b7d4c9108c720933ad0f3f64ed898 | e36e9891c9e1d6cc0018a296c5b5191879dc404e | /328.OddEvenLinkedList.cpp | 95543e429737dfd3832fd0d1f7aec3cb2fd0c441 | [
"MIT"
] | permissive | mrdrivingduck/leet-code | ead8673c651390f48da6aeb9b76720264dd8afc4 | fee008f3a62849a21ca703e05f755378996a1ff5 | refs/heads/master | 2021-11-07T19:29:02.729383 | 2021-09-17T15:10:13 | 2021-09-17T15:10:13 | 200,062,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,751 | cpp | /**
* @author Mr Dk.
* @version 2020.11.13
*/
/*
Given a singly linked list, group all odd nodes together followed by
the even nodes. Please note here we are talking about the node number
and not the value in the nodes.
You should try to do it in place. The program should run in O(1) space
comp... | [
"562655624@qq.com"
] | 562655624@qq.com |
4f9e1abb9263d816e915b6f26a9b7909e99df171 | f7f5677245f880a4574fbbd9a3976a3ab1be5a29 | /MiniSysAssembler/Instruction_J_Format.cpp | 3767a2010be31d60aa3c8fabd18bf4a82f98a455 | [
"Apache-2.0"
] | permissive | Joker-vain/MiniSysAssembler | b07430a69aa4f52d25299e1dec8223964b435036 | bd6fcb6ba802619abf1e1283a1904733efa5f509 | refs/heads/master | 2020-09-05T23:23:38.393296 | 2019-07-18T04:09:06 | 2019-07-18T04:09:06 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,566 | cpp | /*
* Copyright 2019 nzh63
*
* 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 writi... | [
"nzh21@outlook.com"
] | nzh21@outlook.com |
f8b70cfedb53bb48ed5e71f5827bee74bc21e8e9 | 8b9448811a58102e2b91a12579e62fbe03fa8aad | /client.cpp | 7777d445e15370961d193914afe8745718957b47 | [] | no_license | TomaszPluta/SqqtClient- | b026fc968844cdb38c767f736aa0920c9ad72252 | f8f165347689fab3d6f982e230af81005592b59a | refs/heads/master | 2020-06-20T17:14:23.964684 | 2019-07-16T08:55:30 | 2019-07-16T08:55:30 | 197,189,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,374 | cpp | #include "ClientSocket.h"
#include "SocketException.h"
#include <iostream>
#include <string>
#include <cstdlib>
#include <unistd.h>
#include <future>
using namespace std;
void asyncCall(void){
std::cout<<"client is running"<<std::endl;
}
int main (int argc, char* argv[]) {
std::cout << "supported cmds:\n"<< ... | [
"tomasz.pluta.g2@gmail.com"
] | tomasz.pluta.g2@gmail.com |
1a9290c2afec6fa1cdcd1ba0920a3c5e133a408d | 17f791c50ca063770e7ab0fbe6adb6e277518eba | /42. Pattern(star)3.cpp | d3b86311c40e06603181b8be342d4469d0d124ed | [] | no_license | mosroormofizarman/Practice-CPP-Programming-of-Anisul-Islam-Tutorials | 376123a94beb3e99343c44f240366fa20899693c | 2babd3eb60485693181ce08b5c7763e35ae61be1 | refs/heads/main | 2023-08-20T00:50:43.082445 | 2021-10-14T13:21:18 | 2021-10-14T13:21:18 | 412,907,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 973 | cpp | #include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int n, row, col;
cout << "Enter number of lines: ";
cin >> n;
for(row=1; row<=n; row++)
{
for(col=1; col<=n-row; col++)
{
cout << " ";
}
for(col=1; col<=row; co... | [
"noreply@github.com"
] | mosroormofizarman.noreply@github.com |
848a0d276431fcd075baa67144d6b39e66cfb445 | 01115167ff3bc0e95f433fbb3b8d63e546b364cc | /Src/Map/Map.cpp | 98522ae442c0a8f14716097580480d0e88da41c0 | [] | no_license | sagachan/team- | a26cbea0ce6c903ad15133fc02925d9cf7ddc894 | 1ef1bc6701d2397c024a29c9e982dd1ac331e5b8 | refs/heads/master | 2023-03-22T14:03:56.159791 | 2021-03-13T13:24:45 | 2021-03-13T13:24:45 | 347,370,822 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 22,304 | cpp | #include <DxLib.h>
#include "Map.h"
#include "../Player/Player.h"
MAP_CHIP mapInfo[MAP_CHIP_NUM][MAP_CHIP_NUM] = { 0 };
MAP_CHIP_SAVE mapInfo_save[MAP_CHIP_NUM][MAP_CHIP_NUM] = { 0 };
int MapLine_Main[MAP_CHIP_NUM][MAP_CHIP_NUM] //最初に設定されたマップ状態
{
1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | [
"sagachan1218@gmail.com"
] | sagachan1218@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.