_QWOiNYUIVMPFSBKLiGSMAP_'s blog

By _QWOiNYUIVMPFSBKLiGSMAP_, history, 9 years ago, In English

the problem is http://codeforces.me/contest/513/problem/C

the solution is http://codeforces.me/contest/513/submission/9761274

i wonder how this solution not TLE it is 1009*1009*6*6*6 which is TLE

| Write comment?
»
9 years ago, hide # |
← Rev. 2  
Vote: I like it +5 Vote: I do not like it

Dude. You don't just analyze the complexity by counting for loops