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

Автор afrizal, 12 лет назад, По-английски

Hello everyone

I had submitted some solutions on 443C. They got WA on test 3 (even after I use 2 different languages, cpp and java). But when I tested in my compiler (g++ 4.8.1 and JDK 1.7.0), custom invocation on CF, and even ideone.com, they make correct output.

Could someone tell me whats happened? Thank you for your help

C++ submission : 6934350

Tested in ideone.com

Java submission : 6936214

Tested on ideone.com

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

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

welp, on my machine and custom invocations for Java 7/8 and c++ return integer.max_value for the third sample test case. Are you sure you haven't changed anything in source code?

edit: I re-run your code on ideone again, and it does output integer.max_value. http://ideone.com/n6EuzN

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

You've run the problem on a different testcase on ideone.