In the problem Winning CB Scholarship, the constraints are:
1 ≤ N,M,X,Y ≤ 10^9​​
initially, I took int as data type, but couldn’t pass all the test cases. then I changed the data type to long long. After that, all test cases got passed.
So my simple question is how to decide the data type as int or long long by looking towards the constraints?