fork download
  1. using ull = unsigned long long;
  2. constexpr ull Modulus = 10000000000ULL;
  3.  
  4. inline ull modMul(const ull x, const ull y) {
  5. if (x > (1<<30) && y > (1 << 30))
  6. return ((x >> 30)*((y << 30) % Modulus) + y*(x & ((1 << 30) - 1))) % Modulus;
  7. ull z = x*y;
  8. if (z >= Modulus)
  9. z %= Modulus;
  10. return z;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty