Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

Hepic_Antony_Skarlatos's blog

By Hepic_Antony_Skarlatos, 10 years ago, In English

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 !!!

{solved}