Блог пользователя ACRush

Автор ACRush, 14 лет назад, По-английски
According to my experience of problem B in Round 15, the output for (long long) seems not always good for language:GNU C++4.

I used "printf("%lld",R);", and got WA on test 17.
After replacing it with "printf("I64d",R)", and got Accepted.
  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится

14 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
Yes, it has been discussed several times already (for example here). I think there should be a FAQ or something.
14 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

GNU C++ is a compiler :)

I suggest Mike to install Cygwin port... It uses glibc library, so %lld works fine, and it includes GMP library -- to use it, it is only needed to add -lgmp (both C/C++) and -lgmpxx (C++)  to command line (after source file name)