結果

問題 No.131 マンハッタン距離
ユーザー tookunn_1213
提出日時 2015-06-05 20:03:44
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 164 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-06 14:18:32
合計ジャッジ時間 1,370 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y,d = map(int,raw_input().split())
ans = d + 1
if x + y < d:
	print 0
else:
	if x < d:
		ans = ans - max(0,x - d)
	if y < d:
		ans = ans - max(0,y - d)
	print ans
0