I solved problem C, and compiled in on my machine, it worked fine.
Then I uploaded it, and I got RTE. To find any special error, I tried an online compiler** IDEONE**, again it worked fine there.
I did some minor changes to my code, Then again I submitted, fortunately, I got AC.
Still, I don't know what's the difference, Why only codeforces compiler gave me RTE? Please help me!
Here is my RTE solution: RTE solution Here is my Accepted solution: AC solution