same algo but got TLE in java whereas got accepted in C++

Revision en1, by ronaldocr7, 2019-06-03 20:06:21

contest :-- https://codeforces.net/contest/1174 question 2nd link :-- https://codeforces.net/contest/1174/problem/B

I have the same logic like various other contestants have used but I got TLE on test case number 63 as i had used JAVA whereas others have used C++. this is a very disappointing for me and i am not getting the logic behind this. Everyone knows that JAVA is bit slow than C++ but this is not acceptable that u change your logic or thinking process on this fact My submitted cod is 55027519: please anyone explain me why this happened;

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ronaldocr7 2019-06-03 20:06:21 656 Initial revision (published)