fork(3) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. typedef long long lli;
  5. #define isnum(a) (a>=48 && a<=57)
  6. #define isS(a) (a>='a' && a<='z')
  7. #define isU(a) (a>='A' && a<='Z')
  8. #define toS(a) (isU(a)?a+32:a)
  9. #define toU(a) (isS(a)?a-32:a)
  10. #define toC(a) a&15
  11.  
  12. inline lli get(){
  13. lli y, s = 1, i = 10;
  14. y = 0;
  15. char c = getchar();
  16. while (!isnum(c)){
  17. if (c == '-')s = -1; c = getchar();
  18. }
  19. while (isnum(c))y = (y << 1) + (y << 3) + (toC(c)), c = getchar();
  20. if (c != '.')return y*s;
  21. c = getchar();
  22. while (isnum(c))y = y + (toC(c)) / i, i = (i << 1) + (i << 3), c = getchar();
  23. return y*s;
  24. }
  25.  
  26. inline void put(int x)
  27. {
  28. if (!x){ putchar('0'); return; }
  29. char ch[21];
  30. int ln = 0;
  31. while (x){
  32. ch[ln++] = x % 10;
  33. x /= 10;
  34. }
  35. ln--;
  36. while (ln >= 0){ putchar(ch[ln--] + 48); }
  37. }
  38.  
  39.  
  40. int main() {
  41. // your code goes here
  42. return 0;
  43. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty