AtCoder Beginner Contest 072
翻译中…
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:
翻译中…
X t
翻译中…
Output
翻译中…
Print the number of sand in the upper bulb after $t$ second.
翻译中…
样例
Input #1
100 17
Output #1
83
$17$ out of the initial $100$ grams of sand will be consumed, resulting in $83$ grams.
Input #2
48 58
Output #2
0
All $48$ grams of sand will be gone, resulting in $0$ grams.
Input #3
1000000000 1000000000
Output #3
0
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。