On these both problems http://mirror.codeforces.com/contest/479/submission/8334344 and http://mirror.codeforces.com/contest/478/submission/8345538 it gives me only "Denial of Judjement." Is the problem in my code or where it is?
Thank you in advance!!!