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

Правка en1, от MUSAFIR, 2023-03-13 23:27:10

Here in this problem: https://codeforces.com/contest/1696/problem/B I got TLE in test case 10. Code Link: https://codeforces.com/contest/1696/submission/197268393 But after changing the long long int to int I got it accepted. Code Link: https://codeforces.com/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?

Теги tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский MUSAFIR 2023-03-13 23:27:10 449 Initial revision (published)