“If the number contains only non-zero fractional part, the integral part should be omitted”
in 0000.000 fractional part is zero,hence integral part which is 0000, cant be omitted…therefore removing unnecessary zeroes in the integral part the answer is 0
There wasn’t any test case with the “converted” string ‘.’
However, if you got ‘.’ as the input, there must be a rule accompanying the test case, which specifies what to convert the ‘.’ into.
@dhyan I don’t know why the writer of editorial wrote about the test case “.”
but to check if there is a test case of “.” , I submitted http://www.codechef.com/viewsolution/4109219
and now its 100%sure that the test cases did not have “.”
if “.” test case was there then due to line 35 and 36… i should have got wrong answer
u can do these type of checking yourself also
PS: author of editorial, problem tester and problem setter are three different coders