#AT1121. A - Sandglass2
A - Sandglass2
当前没有测试数据。
A - Sandglass2
Score : $100$ points
Problem Statement
We have a sandglass that runs for $X$ seconds. The sand drops from the upper bulb at a rate of $1$ gram per second. That is, the upper bulb initially contains $X$ grams of sand.
How many grams of sand will the upper bulb contains after $t$ seconds?
Constraints
- $1≤X≤10^9$
- $1≤t≤10^9$
- $X$ and $t$ are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the number of sand in the upper bulb after $t$ second.
100 17
83
$17$ out of the initial $100$ grams of sand will be consumed, resulting in $83$ grams.
48 58
0
All $48$ grams of sand will be gone, resulting in $0$ grams.
1000000000 1000000000
0