Comments
On havalizaCodeforces Round #189, 13 years ago
0

OH. Right. Thank you!

On havalizaCodeforces Round #189, 13 years ago
0

DP and a are arrays of long long type. Shouldn't overflow?

On havalizaCodeforces Round #189, 13 years ago
0

I don't have an overflow but its still giving WA on test 3. What's wrong? 3952143

On ReiCodeforces Round #188 (analysis), 13 years ago
0

Honestly, during the contest, I coded the solution then ran it for 30,000, found the bound and then set it in the code. It wasn't 200, higher.

On ReiCodeforces Round #188 (analysis), 13 years ago
+8

That is not true. x can go upto 200 in fact, and 4^200 is much bigger than 20,000. The log4n bound doesnt hold because the 'distributed' ants can came back to the central axis, so its not always decreasing.

On yaroCodeforces Round #188, 13 years ago
+2

Happened with me as well. I should never have ignored those compiler warnings.

On yaroCodeforces Round #188, 13 years ago
0

Interesting round! Can't wait to see editorial for Balance.