Negatives in FORGETPW

forgetpw

#1

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


#2

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


#3

output for 000000 ?

it is ‘0’ or ‘000000’ ?

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

#4

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


#5

What should be the ans for .000?


#6

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


#7

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