读入输出挂

//读入挂
inline ll read() {
    
    
	ll c = getchar(), Nig = 1, x = 0;
	while (!isdigit(c) && c != '-')c = getchar();
	if (c == '-')Nig = -1, c = getchar();
	while (isdigit(c))x = ((x << 1) + (x << 3)) + (c ^ '0'), c = getchar();
	return Nig * x;
}
//输出挂
void out(int n)
{
    
    
	if (n > 9)
		out(n / 10);
	putchar(n % 10 + '0');
}
#define read read()

猜你喜欢

转载自blog.csdn.net/qq_45739057/article/details/106457329