ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1104. Don’t Ask Woman about Her Age

getting WA on 8 th test please help
considering the number as long is it enough??
Re: getting WA on 8 th test please help
Posted by wjt 19 Apr 2008 12:59
i think the number may be as long as 1000000 digits
such as 11..1 {there's 1000000 number'1'}.
Try this test
Posted by BlindButcher 3 Nov 2008 18:14
test: 123
answer is 4
be carefull on test 16
Re: getting WA on 8 th test please help
Posted by chensqi 26 Dec 2008 10:54
when the last char is '0'
the strlen of char will been dec()
Re: getting WA on 8 th test please help
Posted by wax 19 Jun 2011 23:29
for 123, is the answer suppose to be 3?
Re: getting WA on 8 th test please help
Posted by tvd 3 Jun 2012 00:03
no, it's 4