WA SPOJ Julka. HELP.

Hi! i have coded the problem JULKA of SPOJ and my code gives correct answers on all the cases that I could think of. But I get WA. Can you tell the reason? My Code

Use while(scanf())
dont pre fix the t to 10.

Hi @xiaoyu_02! Thanks for telling. Mine solution also does not work.