Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define SZ (32000 << 10)
- int _i0, _o0;
- char _, _n, __[22], _i[SZ + 5], _o[SZ + 5];
- #define su(x) do { for (x = _i[_i0++] - 48; 47 < (_ = _i[_i0++]); x = x * 10 + _ - 48); } while (0);
- #define si(x) do { _n = _i[_i0++]; if (_n - 45) x = _n; else x =_i[_i0++]; for (x -= 48; 47 < (_ = _i[_i0++]); x = x * 10 + _ - 48); if (_n < 46) x = -x; } while (0);
- void pl(ll x, char c) { if (x < 0) { _o[_o0++] = '-'; x = -x; } _ = 0; do { __[_++] = x % 10; } while (x /= 10); while (_--) _o[_o0++] = __[_] + '0'; if (c != 'n') _o[_o0++] = c; }
- void pc(char c) { _o[_o0++] = c; }
- void pw(string &s) { for (int i = 0; i < s.size(); ++i) _o[_o0++] = s[i]; }
- // after int main
- // FILE * f = fopen("f", "r");
- // fread(_i, 1, SZ, f);
- // fclose(f);
- fread(_i, 1, SZ, stdin);
- fwrite(_o, 1, _o0, stdout);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement