Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Автор Sai_D_Coder, 23 месяца назад, По-английски

Hi guys, I'm solving this problem and this is my code/submission. I'm getting WA for the test case 6. The test case is running fine on both my local computer and as well as Codeforces java Compiler but I'm getting WA when I submit the solution. Can someone help me why is this happening.

Test Case:

Thanks in advance

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

»
23 месяца назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Your getting WA because of integer overflow, use Long instead of Integer. AC: 177302462