1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 #include <cstring> 5 #include <cmath> 6 #define REP(i, s, n) for(int i = s; i <= n; i ++) 7 #define RAP(i, n, s) for(int i = n; i >= s; i --) 8 using namespace std; 9 inline void read(int &x){ 10 x = 0; int sig = 1; char ch = getchar(); 11 while(!isdigit(ch)) { if(ch == ‘-‘) sig = -1; ch = getchar(); } 12 while(isdigit(ch)) x = 10 * x + ch - ‘0‘, ch = getchar(); 13 x *= sig; return ; 14 } 15 inline void write(int x){ 16 if(x < 0) putchar(‘-‘), x = -x; 17 int len = 0, buf[20]; 18 while(x) buf[++ len] = x % 10, x /= 10; 19 RAP(i, len, 0) putchar(buf[i] + ‘0‘); return ; 20 } 21 void init(){ 22 23 return ; 24 } 25 void work(){ 26 27 return ; 28 } 29 void print(){ 30 31 return ; 32 } 33 int main(){ 34 init(); 35 work(); 36 print(); 37 return 0; 38 }
时间: 2024-11-06 09:44:02