Hi everyone, http://codeforces.net/contest/490/problem/C
My c++ code is working fine on my computer(Ubuntu 16.10) but when i submit i am getting WA.Then I tried the wrong case on my computer, it prints the correct output successfully. I don't what the problem is. You can try code. Link to solution: http://codeforces.net/contest/490/submission/24063571
Please help, Vital-Bullet