标签:getch cst getchar names color sig namespace iostream math
眼看离复赛越来越近了,最近代码打得越来越熟练了,这些是我平时做题必打的代码,在此总结一下
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> #include<vector> #include<stack> #include<queue> #define R register #define next kkksc03 using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; inline ll read(); int main(){ } inline ll read(){ ll x,t=1;char ch=getchar(); while(ch<‘0‘||ch>‘9‘){ if(ch==‘-‘) t=-1; ch=getchar(); } while(ch>=‘0‘&&ch<=‘9‘){ x=(x<<1)+(x<<3)+(ch^48); ch=getchar(); } return x*t; }
祝2019 CSP-S ++RP,RP++!
标签:getch cst getchar names color sig namespace iostream math
原文地址:https://www.cnblogs.com/ylwtsq/p/11727996.html