FORGETPW - Editorial

Your code has the same problem. Forgot Password input test cases - general - CodeChef Discuss is the answer that i have posted. Unfortunately you have down-voted my answer for no reason :frowning:

0 ≤ N ≤ 94 this constraint is given and u have used char x[30],y[30];that means to accomodate max 95 char u need array of atleast 95 size

check this. its correct…but give WA in codechef

@betlista: Thanks! will correct it now!

@dpraveen :diamonds::diamonds: could you please help me here…thanxxx…

Yeah, just as @codename007 said, the statement stated that the number will be positive. I am quite certain, 0000.0000 or 0 is not a positive number. Right?

1 2 e 9 i 8 8 0 ei for this test case your answer outputs 57 it should be 98. also it gives WA for many of the test cases. Try a bit more, you can get it correct.

check your code here aPoddj - Online C Compiler & Debugging Tool - Ideone.com
dont u think output should be 100 instead of 0

check your code here gXgNOa - Online C++ Compiler & Debugging Tool - Ideone.com
dont you think output of string 001800 should be 1800
…:slight_smile:

check your code vwfLid - Online C++ Compiler & Debugging Tool - Ideone.com
output should be 100
earlier i was also doing the same mistake…@sanzzzay pointed it out

1 Like

@grvana for your help…i corrected the mistake you pointed out…but there still seems to be some prob as the code still gives WA on submitting…Revised code CodeChef: Practical coding for everyone

I have checked all the test cases. but i am still not able to get successful submission.
http://www.codechef.com/viewsolution/5135021