求助__int28
查看原帖
求助__int28
1051647
fight_for_humanity楼主2024/10/13 15:53

代码:

#include<bits/stdc++.h>
using namespace std;
using Int = __int128;
template <typename T>
inline void write(T x){
//	puts(x == 0 ? "YES" : "NO");
	static short st[40];
	static bool f = 0;
	f = 0;
	if(x < 0)f = 1, x = -1;
	do st[++st[0]] = x % 10;
	while(x /= 10);
	if(f)putchar('-');
	while(st[0])putchar(48 | st[st[0]--]);
}
int main(){
	Int x;
	write(x);
	return 0;
} 

xx 有赋初值,则正常输出 xx 的值。 若没有,打开注释输出 YES 和 0;不打开注释不输出。

2024/10/13 15:53
加载中...