OVSolitario-io

导航

快读

快读:只支持标准纯整形读入

define大法:

#define read(a) {char c;while((c=getchar())>47) a=a*10+(c^48);}

函数式:

inline int read()
{
	char c = getchar();
	int x = 0, f = 1;
	for( ; !isdigit(c); c = getchar()) if(c == '-') f = -1;
	for( ; isdigit(c); c = getchar()) x = x * 10 + c - 48;
	return x * f;
}
使用
int T = read();

posted on 2025-09-07 07:29  TBeauty  阅读(16)  评论(0)    收藏  举报