Wrong Answer!!! (Dividing stamps)

why this code is giving wrong answer, while working perfectly in my compiler???
Please help…link to my solution-

everything is fine …you have declared A as int but used %lld to take it . :slight_smile:

accepted solution : https://www.codechef.com/viewsolution/15217975

if it helps then please accept the answer!

int A;	

This is your error. Use declare A as long long int if you are using “%lld” in scanf

lol 17sec XD

yup!! haha