WA - AMSGAME2

CodeChef: Practical coding for everyone. Can any body plz tell me wats wrong on this?

you are supposed to use long long integer data type %lld as the answer might exceed 32 bit,Thus giving wrong answer for large input.

@sparshgunner12 :- thanx. I dint notice that.

Kindly post your problem specific doubts on the editorial page of the problem. They will get answered there better. Doubts related to AMSGAME2 should be posted here: AMSGAME2 - Editorial - editorial - CodeChef Discuss