Some error occured while loading page for you. Please try again.
You are viewing a single comment's thread. Return to all comments →
this is also my problem
i got it where we missing! i had miss to terminate string ! mean if you will creat new string terminate it with '\0'. hope this will solve your problem.
i terminated the string but still shows wrong answer :\
does your string ends in next line?
Sorry for disturbance as i didn't mentioned to whom i was asking.
Actually i asked that from namasahith
As i clearly saw your comment mentioning "i got it where we missing!". :P
it is end in second line.
do you have any idea how to solve it.
yes end that string on same line.
Only after that it will work
Had a similar problem. In my case I needed to do a empty getchar() before loading in the input. I already noticed the array lengths didn't work out, but couldn't find why. Turned out the first getchar didn't contain the first character.
actually your condition n=n+a won't work in test cases because there are no ascii values for symbols after 127 ,but a ranges from 0 to 100 hence if n+a>127 the condition n=n-26 won't work because we have a garbage value there........
I have the same issue
I guess leave that string to as it is without jumping to next line
Thats probably because you were playing Clash of Clans :p
Lol You got me!