Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

anshjain18's blog

By anshjain18, history, 7 years ago, In English

https://ideone.com/dgdtaW

Codeforces is showing me TLE on input 1,7. I dont know why. Can anybody help me problem link:- https://codeforces.me/contest/1266/problem/C In the ide it is showing correct output

  • Vote: I like it
  • -16
  • Vote: I do not like it

»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Instead of line 18 and 19 , try memset(mat,0,sizeof mat);