I read the problem from other online-judge site that have 2 empty line after each test case.
![:wink:](./images/smilies/icon_wink.gif)
I get Accept.
Thank U.
Hiarc16 wrote:i guess no cell number > 10000, although 10000 will occur.
maybe you can try this:
answer is:Code: Select all
1 10000 10000 5 9999 10000 10000 10000
good luckCode: Select all
58 58 1 0