Math Day problem

I’m getting wrong answer. Please tell me what I’m doing wrong

@aiman.mumtaz
You need to use long long and not int


You can see the correct code here

#define fio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); This code in line 6, what does it mean

@aiman.mumtaz
You can ignore this
It is a concept we explain in competitive programming
Not pertinent to beginners

If your doubt is resolved please mark it as closed.