#include<algorithm>
#include<iostream>
#include<cstdlib>
#include<cstring>
#include<cstdio>
#define For(a, b, c) for(a = b; a <= c; ++a)
#define Forr(a, b, c) for(a = b; a >= c; --a)
#define set(a, b) memset(a, b, sizeof(a))
using namespace std;
//陈诺
int read(){
char x;
while((x = getchar()) > '9' || x < '0') ;
int u = x - '0';
while((x = getchar()) <= '9' && x >= '0') u = u * 10 + x - '0';
return u;
}
//肖皓
int read()
{
char c = getchar();register int fg = 1, sum =0;
while(c < '0' || c > '9')
{
if(c == '-')fg = -1;
c = getchar();
}
while(c >= '0' && c <= '9')
{
sum = sum * 10 + c - '0';
c = getchar();
}
return fg * sum;
}
//脑文
template <class T>
T read(T sum = 0, T fg = 0)
{
char c = getchar();
while(c < '0' || c > '9') { fg |= c == '-'; c = getchar(); }
while(c >= '0' && c <= '9') { sum = sum * 10 + c - '0'; c = getchar(); }
return fg ? -sum : sum;
}
/* ※罗旅洲~~~~~~~~~~~~~~~~~~
scanf("%d",&n);
*/
int main(){
return 0;
}
三种读入优化
最新推荐文章于 2024-04-15 00:30:00 发布