Update: Solved. Special thanks to mello
I was solving this https://codeforces.com/contest/1/problem/B
I have write one function to convert an Alphabet number into decimal number.
For example BC turns into 55. Similarly RZ becomes 494.
Here is my implementation https://ideone.com/2J0hCq
But i am facing problem to do the reverse.
For 55, my code shows BC which is right but for 494 it shows S@ which is wrong.
Here is my implementation https://ideone.com/OuUJD3
I found that the problem is causing when input is a multiple of 26.