1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| #include<iostream> #include<cstdio>
#ifdef __LINUX__ #define getchar() getchar_unlocked() #define putchar(a) putchar_unlocked(a) #endif
#ifdef __WINDOWS__ #define getchar() _getchar_nolock() #define putchar(a) _putchar_nolock() #endif
using namespace std; template <typename T> void input(T &x) { x = 0; char c = getchar(); bool f = false; while (c < '0' or c > '9') f |= (c == '-'), c = getchar(); while (c >= '0' and c <= '9') x = (x << 3) + (x << 1) + (c ^ '0'), c = getchar(); x = f ? -x : x; }
template <typename T, typename... Args> void input(T &x, Args&... args) { input(x), input(args...); }
template <typename T> void output(T x, char ed = ' ') { if (x < 0) putchar('-'), x = -x; static short st[64], top; top = 0; do st[top ++] = x % 10, x /= 10; while (x); while (top --) putchar(st[top] ^ '0'); putchar(ed); } template <typename T, typename ...Args> void output(T x, char ch = ' ', Args... args) { output(x, ch); output(args...); }
int main() { int a, b, c; input(a, b, c); output(a, ' ', b, ' ', c, ' '); return 0; }
|