TLE in Java 
Difference between en1 and en2, changed 1 character(s)
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↵

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)