Advertisement
Guest User

Untitled

a guest
Apr 9th, 2021
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #define SZ (32000 << 10)
  2. int _i0, _o0;
  3. char _, _n, __[22], _i[SZ + 5], _o[SZ + 5];
  4. #define su(x) do { for (x = _i[_i0++] - 48; 47 < (_ = _i[_i0++]); x = x * 10 + _ - 48); } while (0);
  5. #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);
  6. 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; }
  7. void pc(char c) { _o[_o0++] = c; }
  8. void pw(string &s) { for (int i = 0; i < s.size(); ++i) _o[_o0++] = s[i]; }
  9.  
  10. // after int main
  11.  
  12. // FILE * f = fopen("f", "r");
  13. // fread(_i, 1, SZ, f);
  14. // fclose(f);
  15. fread(_i, 1, SZ, stdin);
  16. fwrite(_o, 1, _o0, stdout);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement