↓
1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 namespace io { 6 const int SIZE = (1 << 21) + 1; 7 char ibuf[SIZE], *iS, *iT, obuf[SIZE], *oS = obuf, *oT = oS + SIZE - 1, c, qu[55]; int f, qr; 8 // getchar 9 #define gc() (iS == iT ? (iT = (iS = ibuf) + fread (ibuf, 1, SIZE, stdin), (iS == iT ? EOF : *iS ++)) : *iS ++) 10 // print the remaining part 11 inline void flush () { 12 fwrite (obuf, 1, oS - obuf, stdout); 13 oS = obuf; 14 } 15 // putchar 16 inline void putc (char x) { 17 *oS ++ = x; 18 if (oS == oT) flush (); 19 } 20 // input a signed integer 21 template <class I> 22 inline void gi (I &x) { 23 for (f = 1, c = gc(); c < '0' || c > '9'; c = gc()) if (c == '-') f = -1; 24 for (x = 0; c <= '9' && c >= '0'; c = gc()) x = x * 10 + (c & 15); x *= f; 25 } 26 // print a signed integer 27 template <class I> 28 inline void print (I &x) { 29 if (!x) putc ('0'); if (x < 0) putc ('-'), x = -x; 30 while (x) qu[++ qr] = x % 10 + '0', x /= 10; 31 while (qr) putc (qu[qr --]); 32 } 33 } 34 using io :: gi; 35 using io :: putc; 36 using io :: print; 37 38 int v; 39 40 int main () { 41 gi (v); 42 print (v); 43 putc ('\n'); 44 io :: flush (); 45 }