Getting TLE in code  in c of Educational Codeforces Round 118 (Rated for Div. 2)
Difference between en1 and en2, changed 258 character(s)
[submission:137721798]↵
https://codeforces.com/contest/1613/submission/137721798↵
any one please help me in this why i am getting tle in this python code 

but after when i wrote same code just by using fuction it aacepted can any one tell my mistake in first code or any difference when i wrote code using functions↵

code using function ↵
137724963

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English meet2008 2021-12-02 19:30:11 0 (published)
en3 English meet2008 2021-12-02 19:13:34 13 Tiny change: 'unction \n137724963' -> 'unction \n[submission:137724963]'
en2 English meet2008 2021-12-02 19:13:09 258 (saved to drafts)
en1 English meet2008 2021-12-02 19:10:58 234 Initial revision (published)