Please help me out with this question. I am getting WA.
Question : https://www.codechef.com/problems/SPAMCLAS
My solution : https://www.codechef.com/viewsolution/18343230
Thank you.
Please help me out with this question. I am getting WA.
Question : https://www.codechef.com/problems/SPAMCLAS
My solution : https://www.codechef.com/viewsolution/18343230
Thank you.
Seems like overflow problem.