类似于快读快写
1 inline __int128 read() 2 { 3 __int128 x=0,f=1; 4 char ch=getchar(); 5 while (ch<'0' || ch>'9') 6 { 7 if (ch=='-') f=-1; 8 ch=getchar(); 9 } 10 while (ch>='0' && ch<='9') x=x*10+ch-'0',ch=getchar(); 11 return x*f; 12 } 13 14 inline void write(__int128 x) 15 { 16 if (x<0) putchar('-'),x=-x; 17 if (x>9) print(x/10); 18 putchar(x%10+'0'); 19 }