Negatives in FORGETPW

can we have a negative decimal no. as the result???

1 Like

No, at least my code passed without making excuse for them.

6 Likes

output for 000000 ?

it is ‘0’ or ‘000000’ ?

output for 00000.00000000 ?
 it is ‘0’ or ‘00000’ ?

output for 000000 is 0
output for 00000.00000000 is 0
avoid asking such questions from ongoing contests in future.

What should be the ans for .000?

ans for .000 is 0.
“The password is always the shortest notation”, statement itself is the answer.

working in my pc, but here WA…:frowning:
Applied all the boundary conditions.