I am referring to this problem: https://www.hackerrank.com/contests/w14/challenges/superman-celebrates-diwali
My source: http://pastebin.com/mvhXAMAU
My c++ code,pass some tests and gets some WA,but 2-3 days now I cant really undetand the reason. I checked also the editorial,and I saw almost same logic. Also I think that editorial's source give different results than the correct too...weird. So I made this post,for every coder can help me,and find any error to my source.
Thank you in advance !!!