Question regarding constraints

In easy section of practice problems, Recipe for Philosopher Stone(problem code: LAYERS)

They want unit squares of the same color.
Let’s assume there is only 1 rectangle, of length 10^9 and breadth 10^9. It will have area 10^18(also the number of unit squares). Storing 10^18? Possible?

You can use long long int which can store number up to 10 ^ 18 digits.
For this particular question since are can’t be negative you can take advantage of that and can use unsigned long long int and it can be use 10 ^ 19.
You can also refer to see the ranges of other data types