My code is giving me the right output on my PC and also on ideone but giving different output on codeforces compiler...Why is this happening?? Have a look at my code codeforces: http://codeforces.com/contest/777/submission/25381697 ideone: https://ideone.com/mK1C3N
help why is so?