It will show runtime error because you have to enter N not the actual string after number of test cases.
@ PARTNER( ),If the number contains āonlyā non-zero fractional part, the integral part should be omitted."
Then THAT āONLYā itself means that there will be no integral partā¦isnāt it!!!and if there is no integral part then what is the need of stating to delete integral part!!!
try for n=0 and s=ā000000000ā
you have not handled this case. It should give answer as 0
try to work on this case too.
good luckā¦!!!
try for 4 different cases which are mainly important
n=0
s=0.0 ,
n=0
s=00000 ,
n=0
s=0000.120030000 and
n=0
s=0000120000.0000
Still you want any case then try for ā.ā only
good luckā¦!!!
if u give āspaceā instead of nā¦ it failsā¦ how should i correct it?
@pmbhumkar - Iām getting expected result on all those tests: 0, 0, .12003, 0
Any other suggestions? It would really help to see exactly which test cases the code failed on.
Same situation here. Got 0, 0, .12003, 120000 and 0.But still gives wrong answer in system test.
this is my solution. can anybody tell me whatās wrong with this solution. it passed all tricky test cases but still showing wrong answer.
http://www.codechef.com/viewsolution/4119925
My code works fine for all the input cases, I also tried my code with the tricky cases mentioned in the editorial but i am still getting WA. Can anyone please explain to me what the problem is.
[1]
[1]: http://www.codechef.com/viewsolution/4120495
Your code has the same problem. http://discuss.codechef.com/questions/45391/forgot-password-input-test-cases is the answer that i have posted. Unfortunately you have down-voted my answer for no reason
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
Iām getting a correct answer for every corner case, for every cases I read in the comments, yet getting a WA.
[1]
Can someone help me to tell where is it that I am going wrong?
[1]: http://www.codechef.com/viewsolution/4123826
getting WA after trying several test casesā¦ http://www.codechef.com/viewsolution/4102057 ā¦can someone helpā¦!!
I am getting all test cases correct on my system still it is giving wrong answer ā¦please suggest what i am doing wrongā¦
http://www.codechef.com/viewsolution/4124811
Iām just doing these for practice, but its really hard to call ā.ā a āpositive decimal numberā. Arguably its also hard to call ā0ā and ā0.0ā as a āpositive decimal numberā (ānon-negative decimal numberā would have been more appropriate), but I donāt think that ā.ā passes as a āpositive decimal numberā in any culture Iām aware of.