Can anyone tell me why I got TLE in this code?

Revision en1, by MUSAFIR, 2023-03-13 23:27:10

Here in this problem: https://codeforces.me/contest/1696/problem/B I got TLE in test case 10. Code Link: https://codeforces.me/contest/1696/submission/197268393 But after changing the long long int to int I got it accepted. Code Link: https://codeforces.me/contest/1696/submission/197268690 But I don't understand why I got TLE just for using long long int instead of int. Can anyone help me?

Tags tle

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English MUSAFIR 2023-03-13 23:27:10 449 Initial revision (published)