TLE in Java

Revision en1, by ruchir28, 2021-10-20 17:01:49

I am using an approach that will work within the time limit and even the same approach is accepted in C++ but gives TLE in java I have also used Fast IO but still TLE. Can anyone help me with this. Problem Link : https://codeforces.com/contest/986/problem/A Submission : https://codeforces.com/contest/986/submission/132535284

Tags java, tle

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ruchir28 2021-10-20 17:03:26 1 (published)
en1 English ruchir28 2021-10-20 17:01:49 343 Initial revision (saved to drafts)