_QWOiNYUIVMPFSBKLiGSMAP_'s blog

By _QWOiNYUIVMPFSBKLiGSMAP_, history, 8 years ago, In English

the problem is http://mirror.codeforces.com/contest/513/problem/C

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

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

| Write comment?
»
8 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