From a5cbcc6ca974182f6a3e5a9ab550b9cb19c79453 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Thu, 19 Sep 2024 15:06:14 +0800 Subject: [PATCH] update --- 20240917/P1991/P1991.cpp | 13 +++-- include/bits/stdc++.h | 118 +++++++++++++++++++++++++++++++++++++++ test.cpp | 15 ++++- xmake.lua | 4 +- 4 files changed, 141 insertions(+), 9 deletions(-) create mode 100644 include/bits/stdc++.h diff --git a/20240917/P1991/P1991.cpp b/20240917/P1991/P1991.cpp index 69757cc..ab57578 100644 --- a/20240917/P1991/P1991.cpp +++ b/20240917/P1991/P1991.cpp @@ -1,9 +1,10 @@ -#include -#include -#include -#include -#include -#include +// #include +// #include +// #include +// #include +// #include +// #include +#include const int MAX_P = 500+5; diff --git a/include/bits/stdc++.h b/include/bits/stdc++.h new file mode 100644 index 0000000..abf218d --- /dev/null +++ b/include/bits/stdc++.h @@ -0,0 +1,118 @@ +// C++ includes used for precompiling -*- C++ -*- + +// Copyright (C) 2003-2014 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// Under Section 7 of GPL version 3, you are granted additional +// permissions described in the GCC Runtime Library Exception, version +// 3.1, as published by the Free Software Foundation. + +// You should have received a copy of the GNU General Public License and +// a copy of the GCC Runtime Library Exception along with this program; +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +// . + +/** @file stdc++.h + * This is an implementation file for a precompiled header. + */ + +// 17.4.1.2 Headers + +// C +#ifndef _GLIBCXX_NO_ASSERT +#include +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if __cplusplus >= 201103L +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +// C++ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if __cplusplus >= 201103L +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + + diff --git a/test.cpp b/test.cpp index d495611..07b6330 100644 --- a/test.cpp +++ b/test.cpp @@ -47,13 +47,24 @@ // println(NAME_VALUE(std::gcd(41184, 65208))); // } #include +#include #include +#include +#include void print(){ } +using std::ranges::views::iota; + + int main(){ - std::string s; - std::cin>>s; + // std::string s; + // std::cin>>s; + std::vector v = {1,2,3,4}; + for(auto p:v){ + std::cout<