text
stringlengths
7
961k
#include <iostream> #include <fstream> using namespace std; int main() { int m, n, v[101], u[101], nr, i, j; nr = 0; ifstream f("bac.txt"); f >> m >> n; for(i=1; i<=m; i++) { f >> v[i]; } for(j=1; j<=n; j++) { f >> u[j]; } f.close(); i = 1; j ...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // This file contains tests for extension loading, reloading, and // unloading behavior. #include "base/run_loop.h" #include "base/strings/stringprintf...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <memory> #include "ngraph/node.hpp" #include "ngraph/op/op.hpp" namespace ngraph { namespace op { namespace v0 { /// \brief Permutes data in the channel dimension of the input class NGRAPH_API ShuffleChannel...
// file : mod/database-module.hxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #ifndef MOD_DATABASE_MODULE_HXX #define MOD_DATABASE_MODULE_HXX #include <odb/forward.hxx> // database #include <libbrep/types.hxx> #include <libbrep/utility.hxx> #include <mod/module.hxx> #include <mod/module-optio...
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #in...
#pragma once #include <mbgl/style/image_impl.hpp> #include <mbgl/renderer/image_atlas.hpp> #include <mbgl/util/noncopyable.hpp> #include <mbgl/util/immutable.hpp> #include <mbgl/util/optional.hpp> #include <mbgl/gl/texture.hpp> #include <mapbox/shelf-pack.hpp> #include <set> #include <string> namespace mbgl { name...
#ifndef OPENPOSE_NET_RESIZE_AND_MERGE_BASE_HPP #define OPENPOSE_NET_RESIZE_AND_MERGE_BASE_HPP #include <openpose/core/common.hpp> namespace op { template <typename T> OP_API void resizeAndMergeCpu(T* targetPtr, const std::vector<const T*>& sourcePtrs, const std::array<int, 4>...
double f(double x) { return 4*x*(1-x); }
// DRUNKWATER TEMPLATE(add description and prototypes) // Question Title and Description on leetcode.com // Function Declaration and Function Prototypes on leetcode.com //226. Invert Binary Tree //Invert a binary tree. // 4 // / \ // 2 7 // / \ / \ //1 3 6 9 //to // 4 // / \ // 7 2 // / ...
#include<iostream> using namespace std; int sum_int_arr(int arr[], int n); void quickSort(int arr[], int left, int right); int nth_largest(int arr[], int n); int main(){ int ox, oy; //Total orders taken by both finally int sum_ai, sum_bi, total_sum = 0; int n, *ai, *bi, x, y, t; cin>>t; for(int ...
// Copyright (c) 2014-2018, The Monero Project // // All rights reserved. // // 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 copyright notice, this list of /...
#include "Precompiled.h" #include "UUID.h" namespace Engine { std::random_device UUID::s_RandomDevice; std::mt19937_64 UUID::s_Gen{ s_RandomDevice() }; std::uniform_int_distribution<u64> UUID::s_UniformDistribution; UUID::UUID() { m_UUID = s_UniformDistribution(s_Gen); } }
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2005, 2006 Theo Boafo Copyright (C) 2006, 2007 StatPro Italia srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib...
/* * QHistogramWhiteBalanceSettings.cc * * Created on: Aug 7, 2021 * Author: amyznikov */ #include "QHistogramWhiteBalanceSettings.h" const QHistogramWhiteBalanceSettings::ClassFactory QHistogramWhiteBalanceSettings::classFactory; QHistogramWhiteBalanceSettings::QHistogramWhiteBalanceSettings(const c_hist...
/* // License Agreement (3-clause BSD License) // Copyright (c) 2015, Klaus Haag, all rights reserved. // Third party copyrights and patents are property of their respective owners. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following c...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ash/borealis/borealis_context.h" #include "base/memory/ptr_util.h" #include "base/scoped_observation.h" #include "chrome/browser...
/* * Copyright 2009-2017 Alibaba Cloud 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...
//===- ARMTargetTransformInfo.cpp - ARM specific TTI ----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#pragma once #include <boost/multiprecision/cpp_int.hpp> #include <crypto/cryptopp/osrng.h> namespace cga { /** While this uses CryptoPP do not call any of these functions from global scope, as they depend on global variables inside the CryptoPP library which may not have been initialized yet due to an undefined ord...
int main(int argc, char* argv[]){ bool proceed = true; cv::Mat frame(10, 10, 0); while(proceed) { cv::imshow("tuto1", frame); char k = (char) cv::waitKey(10); switch (k) { case 'q': std::cout << "EMERGENCY BUTTON" << std::endl; proceed ...
// (C) Copyright David Abrahams 2002. // (C) Copyright Jeremy Siek 2002. // (C) Copyright Thomas Witt 2002. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_ENABLE_IF_23022003THW_HPP #define BO...
#include "libop/op.h" int main(int argc, char** argv) { op::print(op::totient(100)); return 0; }
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
#include "AL/event/EventHandler.h" #include <maya/MFileIO.h> #include <maya/MGlobal.h> #include <gtest/gtest.h> using namespace AL; using namespace AL::event; //---------------------------------------------------------------------------------------------------------------------- static const char* const eventTypeSt...
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, ...
#include <mbgl/storage/file_source_manager.hpp> #include <mbgl/storage/resource.hpp> #include <mbgl/storage/resource_options.hpp> #include <mbgl/util/async_request.hpp> #include <mbgl/util/logging.hpp> #include <atomic> #include "file_source.hpp" namespace mbgl { std::atomic_size_t requestCount{0}; std::atomic_size...
#include <vtkActor.h> #include <vtkActor2D.h> #include <vtkCoordinate.h> #include <vtkLineSource.h> #include <vtkLookupTable.h> #include <vtkNew.h> #include <vtkPlaneSource.h> #include <vtkPolyDataMapper.h> #include <vtkPolyDataMapper2D.h> #include <vtkProperty.h> #include <vtkProperty2D.h> #include <vtkRenderWindow.h>...
#include<bits/stdc++.h> #include<stdint.h> using namespace std; #define IOS {cin.tie(0);ios_base::sync_with_stdio(false);} #define N 1000000 #define int uint_fast64_t int powmo(int a,int b,int n){ int r = 1; for(;b;b>>=1){ if(b&1) r = r*a%n; a = a*a%n; } return r; } bool isprime(int n){ if(n < 2 || n % 2 == ...
// Generated by Haxe 4.2.1+bf9ff69 #include <hxcpp.h> #ifndef INCLUDED_flixel_input_FlxInput #include <flixel/input/FlxInput.h> #endif #ifndef INCLUDED_flixel_input_IFlxInput #include <flixel/input/IFlxInput.h> #endif #ifndef INCLUDED_flixel_input_gamepad_FlxGamepad #include <flixel/input/gamepad/FlxGamepad.h> #endif ...
#include "config.h" #include "nn_api.h" #include "graph.h" #include "tensor/tensor_all.h" #include <random> #include <algorithm> #include <cstdlib> #include <signal.h> using namespace gnn; #define inf 2147483647/2 INet* net = nullptr; std::vector<int> batch_idxes; void Predict(std::vector< std::shared_ptr<Graph> >&...
/* * Copyright © 2021 Nikita Dudko. All rights reserved. * Contacts: <nikita.dudko.95@gmail.com> * Licensed under the Apache License, Version 2.0 */ #pragma once #include <filesystem> #include <memory> #include <string_view> #include "jvm.hpp" class Env { public: // Sets home directory for a program so // a...
#include "Person.h" void Person::SetAge(int age) { if (0 < age && age < 100) { this->age = age; } } //First const modifier means the returned value cannot be modified OUTSIDE of the function //Second const modifier means there can not be modification of member variables WITHIN the function const i...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2019 The BCZ Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php....
#include "SS5UserData.h" #include "SSPlayerImplement/DataArrayReader.h" #include "SSPlayerImplement/ToPointer.h" namespace ss{ void UserData::init() { m_flags = 0; m_partIndex = 0; m_integer = 0; m_rect[0] = m_rect[1] = m_rect[2] = m_rect[3] = 0; m_point[0] = m_point[1] = 0; m_strSize = 0; m_str = nullptr; ...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "mojo/public/bindings/lib/connector.h" #include <assert.h> #include <stdlib.h> #include <algorithm> namespace mojo { // ---------------------...
// Copyright (c) 2015 The Bitcoin Core developers // Copyright (c) 2016-2017 The PIVX developers // Copyright (c) 2020-2021 The Caskback developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "platformstyle.h" #inc...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__wchar_t_environment_w32CreateFile_15.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-15.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: environment Read input from ...
//This code is under MIT licence, you can find the complete file here: https://github.com/kwiato88/sock/blob/master/LICENSE #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif #include <cstring> #include "SockNative.hpp" #include "SockListeningSocket.hpp" #include "SockSocketError.hpp" #include "SockClientSocket.h...
// main.cpp // UVa // // Created by Zhejian Peng on 7/13/16. // Copyright (c) 2016 Zhejian Peng. All rights reserved. // // // or.cpp // // // Created by Zhejian Peng on 7/18/16. // // #include <iostream> using namespace std; int main(){ int counter=0; while(1){ int count=0; int a=0; ...
#include "Networking/API/NetworkChallenge.h" namespace LambdaEngine { uint64 NetworkChallenge::Compute(uint64 clientSalt, uint64 serverSalt) { return clientSalt & serverSalt; } }
// Copyright (c) 2014 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018 The LRMcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "networkstyle.h" #include "guicon...
// // BundleFactory.cpp // // $Id: //poco/1.7/OSP/src/BundleFactory.cpp#1 $ // // Library: OSP // Package: Bundle // Module: BundleFactory // // Copyright (c) 2007-2014, Applied Informatics Software Engineering GmbH. // All rights reserved. // // SPDX-License-Identifier: Apache-2.0 // #include "Poco/OSP/BundleFactor...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparamsbase.h" #include "util.h" #include <assert.h> #include <boost/assig...
#include "GLTexture.hpp" #include <GL/glew.h> #include <cstdlib> #include <cassert> namespace GLRenderer { TextureInternalFormatEnum GetBaseInternalFormat(TextureInternalFormatEnum Format) { switch (Format) { case TextureInternalFormatEnum::R: case TextureInternalFormatEnum::R8: ...
// Copyright (c) 2018 The Gem Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "batchedlogger.h" #include "util.h" CBatchedLogger::CBatchedLogger(const std::string& _category, const std::string& _hea...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/autofill/core/browser/form_processing/label_processing_util.h" #include "base/feature_list.h" #include "base/strings/utf_string_conv...
// Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #include "IrrCompileConfig.h" #include "IBurningShader.h" #ifdef _IRR_COMPILE_WITH_BURNINGSVIDEO_ // compile flag for this file #und...
/* * IRToyDeviceHandler.cpp file written and maintained by Calin Cocan * Created on: Aug 12, 2014 * * This work is free: you can redistribute it and/or modify it under the terms of Apache License Version 2.0 * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; withou...
/* Copyright 2017 The TensorFlow 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 applicable law or a...
#include "Precompiled.hpp" #include "Graphics/Sprite.hpp" using namespace Graphics; Sprite::Info::Info() : texture(nullptr), transparent(false), filter(true) { } bool Sprite::Info::operator==(const Info& other) const { return texture == other.texture && transparent == other.transparent && filter == ot...
/* * Copyright 2009-2017 Alibaba Cloud 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...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; #define rep(i, n) for(int i=0;i<n;i++) #define rep2(i, m, n) for(int i=m;i<n;i++) #define rrep(i, n, m) for(int i=n;i>=m;i--) using Graph = vector<vector<int>>; const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1...
#include "Poison.h" #include <iostream> #include "Vole.h" #include "FemaleVole.h" Poison::Poison(int height, int width) { nextGenerationHeight = height; nextGenerationWidth = width; } void Poison::NextGeneration(std::vector<std::vector<std::unique_ptr<Cell>>>* field, unsigned generation, int height, int width) { n...
////////////////////////////////////////////////////////////////////// // Mesh.cpp - Represent a model as a mesh. // // Copyright David K. McAllister, Aug. 1999. #include "Model/Mesh.h" #include "Model/AElements.h" #include <map> using namespace std; // The factory functions create an item of the correct type, // bu...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/email/model/DeleteReceiptFilterResult.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <aws/...
#include <limits> #include "log.h" #include "searcher.h" namespace apollo::search { SearchResult Searcher::Search(Position& pos, int depth) { nodes_ = 0; Move best_move = Move::Null(); bool seen_a_legal_move = false; double best_score = -std::numeric_limits<double>::infinity(); double alpha = best_score; ...
#include "ImageLoaderInterface.h"
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Completed includes // Begin forward d...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/login/login_web_dialog.h" #include "base/strings/utf_string_conversions.h" #include "chrome/browser/chromeos/login/...
#ifndef __RAND_ACTIVITY_COLLECT_ITEMS_HPP__ #define __RAND_ACTIVITY_COLLECT_ITEMS_HPP__ #include "global/randactivity/randactivity.hpp" class RandActivityItemCollection : public RandActivity { public: RandActivityItemCollection(RandActivityManager *rand_activity_manager); virtual ~RandActivityItemCollection(); pri...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include ...
/*F*************************************************************************** * This file is part of openSMILE. * * Copyright (c) audEERING GmbH. All rights reserved. * See the file COPYING for details on license terms. ***************************************************************************E*/ /* openSMIL...
// ***************************************************************************** // Module..: Leddar // /// \file LdResultProvider.h /// /// \brief Base class of results. /// /// \author Patrick Boulay /// /// \since March 2016 // // Copyright (c) 2016 LeddarTech Inc. All rights reserved. // *******************...
/** * @file cl2_render.hpp * * CL2 rendering. */ #pragma once #include <array> #include <cstdint> #include "engine.h" #include "engine/cel_sprite.hpp" #include "engine/point.hpp" namespace devilution { /** * @brief Apply the color swaps to a CL2 sprite * @param p CL2 buffer * @param ttbl Palette translation ...
// Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O. // This file is part of the "Nabla Engine". // For conditions of distribution and use, see copyright notice in nabla.h #include "nbl/ext/MitsubaLoader/ParserUtil.h" #include "nbl/ext/MitsubaLoader/CElementFactory.h" #include "expat/lib/expat.h" #incl...
// // Created by lintong on 2018/4/11. // #include "hash.h" static Table hash_table; static size_t hash(size_t address); static int find(size_t address, size_t* found_pos) { size_t pos = hash(address); size_t check_pos = pos; int found = -1; while (hash_table.table[pos].frame_number != -1) { ...
// // ASTUnary_CG.cpp // Emojicode // // Created by Theo Weidmann on 03/09/2017. // Copyright © 2017 Theo Weidmann. All rights reserved. // #include "ASTUnary.hpp" #include "Generation/Declarator.hpp" #include "Generation/FunctionCodeGenerator.hpp" #include "Lex/SourceManager.hpp" #include <llvm/Support/raw_ostrea...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "n...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* //@HEADER // ************************************************************************ // // Kokkos v. 3.0 // Copyright (2020) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Govern...
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on the * source. * */ #include "stdafx.h" #include "FRED.h" #include "CreateWingDlg.h" #inclu...
#include "md5.h" #include <iostream> using namespace std; int main() { md5 m("sefslxjjdeedfs"); char buf[33]; m.digest(buf); cout<<buf<<endl; return 0; }
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <amount.h> #include <chain.h> #include <chainparams.h> #include <consensus/co...
/**************************************************************************** ** Copyright (c) 2021, Fougue Ltd. <http://www.fougue.pro> ** All rights reserved. ** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt ****************************************************************************/ #includ...
/* LodePNG version 20140823 Copyright (c) 2005-2014 Lode Vandevenne This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purp...
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "quic/core/quic_error_codes.h" #include <cstdint> #include "third_party/boringssl/src/include/openssl/ssl.h" #include "quic/platform/api/qu...
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. 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...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/shell.h" #include "ash/test/ash_test_base.h" #include "ash/test/test_shell_delegate.h" #include "ash/wm/window_util.h" #include "base/me...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2018-2018 The Gdc developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addr...
/*! version.cpp */ /* Copyright (c) 2017 Aaditya Kalsi */ #include "datatools/version.hpp" #define __stringify(x) #x #define stringify(x) __stringify(x) namespace dt { cstring version() { return stringify(DATATOOLS_VER_STRING); } } // namespace dt
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "android_webview/browser/scoped_app_gl_state_restore.h" #include "base/debug/trace_event.h" #include "base/lazy_instance.h" #include "ui/gl/gl_c...
/************************************************************************/ /* */ /* Copyright 2008 by Ullrich Koethe */ /* */ /* This file is p...
/* * Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
#include <algorithm> #include <iostream> using namespace std; int N; int A[2002]; int B[2002]; int DP[2002][2002]; int main() { cin >> N; for (int i = 1; i <= N; i++) cin >> A[i]; for (int i = 1; i <= N; i++) cin >> B[i]; for (int i = 0; i <= N; i++) { for (int j = 0; j <= N; j++) { if (i == 0) DP[i][j] = -1; ...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/editing/relocatable_position.h" #include "third_party/blink/renderer/core/editing/testing/editing_test_base.h" ...
/*========================================================================= Program: Visualization Toolkit Module: vtkLookupTableItem.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 softwa...
#include <LEDTableApps/boardGameApp.hpp> #include <LEDTableEngine/core/baseController.hpp> using namespace led; namespace ledApps{ BoardGameApp::BoardGameApp() { } BoardGameApp::~BoardGameApp() { } void BoardGameApp::initialize(BaseController *ctrl) { ShaderApplication::initialize(ctrl, 2); } void BoardGameApp:...
#include <map> #include <cstdlib> #include <glib-object.h> #include <json-glib/json-glib.h> #include "Helpers.h" #include "MailOrder.h" using namespace std; using namespace Tizen::ArtikCloud; MailOrder::MailOrder() { //__init(); } MailOrder::~MailOrder() { //__cleanup(); } void MailOrder::__init() { //id = int...
//===-- ConvertUTFWrapper.cpp - Wrap ConvertUTF.h with clang data types -----=== // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (c) 2014-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypto/ripemd160.h" #include "crypto/sha1.h" #include "crypto/sha256.h" #include "crypto/sha512.h" #include "crypto...
/* * Copyright 2012-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
// Copyright (C) 2002-2012 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h // TODO: second UV-coordinates currently ignored in textures #include "IrrCompileConfig.h" #ifdef _IRR_COMPILE_WITH_COLLADA_WRITER_ #include "CCol...
// $Id$ // // Simulation EMCal task. // // Author: Saehanseul Oh #include "AliAnalysisTaskSOH.h" #include <TH1F.h> #include <TH2F.h> #include <TH3F.h> #include <THnSparse.h> #include "TChain.h" #include "AliAnalysisManager.h" #include "AliAnalysisTask.h" #include "AliEMCALRecoUtils.h" #include "AliEMCALTrack.h" #inc...
/* Copyright 2011 John Selbie 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 wri...
/*========================================================================= Program: Visualization Toolkit Module: vtkCoreGraphicsGPUInfoList.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Thi...
/* * Copyright (C) 2019 The Android Open Source Project * * 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 app...
/*------------------------------------------------------------------------- * Vulkan CTS Framework * -------------------- * * Copyright (c) 2015 The Khronos Group Inc. * Copyright (c) 2015 Imagination Technologies Ltd. * Copyright (c) 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "Lic...
// Copyright 2021-2022 Lawrence Livermore National Security, LLC and other // krowkee Project Developers. See the top-level COPYRIGHT file for details. // // SPDX-License-Identifier: MIT #ifndef _KROWKEE_UTIL_MPITESTS_HPP #define _KROWKEE_UTIL_MPITESTS_HPP #include <krowkee/util/ygm_tests.hpp> #include <ygm/comm.hpp...
#include <cstdio> using namespace std; int main(int argc, const char *argv[]) { int N, result = 0, temp, dif; scanf("%d", &N); bool flag; for (int i = 1; i <= N; i++) { if (i < 10) { result++; continue; } flag = true; temp = i / 10; dif = i % 10 - temp % 10; while (temp >= 10) { if (dif != tem...
/* * Copyright (C) 2021 Patrick Mours. All rights reserved. * License: https://github.com/crosire/reshade#license */ #if RESHADE_GUI #include "version.h" #include "dll_log.hpp" #include "runtime.hpp" #include "hook_manager.hpp" #include "dll_resources.hpp" #include "imgui_widgets.hpp" #include "vulkan/vulkan_impl_...