題目連結

https://zerojudge.tw/ShowProblem?problemid=a012

https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996

參考文章

X

本題要點

too EZ 絕對值abs()。

參考解答

解一:

截圖 2024-06-20 下午5.54.50.png

while True:
		try:
				first, second = map(int, input().split())
				print(abs(first - second))
		except:
				break

回CPE頁面

CPE