http://www.codechef.com/viewsolution/2174396. 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: http://discuss.codechef.com/problems/AMSGAME2