Comments
On kefaa → Codeforces Round #384 (Div.2) , 10 years ago
0

the maximum value of the answer can be 51, so int is enough.

On kefaa → Codeforces Round #384 (Div.2) , 10 years ago
0

http://codeforces.me/contest/743/submission/22961619

This code generates correct answer for pretest 8 on my machine but not on codeforces server. Can somebody give a detailed analysis on why it happened? Thanks :)