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

Автор idonthatephy, история, 4 года назад, По-английски

1574C - Slay the Dragon--this is the problem given below is my code- 158115252 it is failing test case 3 because of integer overflow, is there any way to overcome the integer overflow?

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
4 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Change from

ll sum=10e9;

to:

ll sum=LLONG_MAX;