結果

問題 No.131 マンハッタン距離
ユーザー fmhrfmhr
提出日時 2015-04-25 18:04:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 4,658 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 86,808 KB
実行使用メモリ 75,820 KB
最終ジャッジ日時 2023-09-18 11:31:03
合計ジャッジ時間 31,872 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,464 KB
testcase_01 AC 76 ms
71,248 KB
testcase_02 AC 74 ms
71,032 KB
testcase_03 AC 4,256 ms
75,620 KB
testcase_04 AC 4,285 ms
75,744 KB
testcase_05 AC 4,536 ms
75,732 KB
testcase_06 AC 4,658 ms
75,504 KB
testcase_07 AC 73 ms
71,136 KB
testcase_08 AC 76 ms
71,024 KB
testcase_09 AC 75 ms
71,220 KB
testcase_10 AC 76 ms
71,072 KB
testcase_11 AC 75 ms
71,188 KB
testcase_12 AC 74 ms
71,020 KB
testcase_13 AC 75 ms
71,172 KB
testcase_14 AC 74 ms
71,412 KB
testcase_15 AC 75 ms
71,412 KB
testcase_16 AC 76 ms
71,140 KB
testcase_17 AC 75 ms
71,208 KB
testcase_18 AC 75 ms
71,252 KB
testcase_19 AC 75 ms
71,228 KB
testcase_20 AC 75 ms
71,228 KB
testcase_21 AC 76 ms
71,228 KB
testcase_22 AC 74 ms
71,552 KB
testcase_23 AC 3,086 ms
75,820 KB
testcase_24 AC 380 ms
75,596 KB
testcase_25 AC 3,465 ms
75,684 KB
testcase_26 AC 4,231 ms
75,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

x, y, d = map(int, input().split())
ans = 0
for i in range(d+1):
    if i > x or d - i > y:
        continue
    ans += 1
print(ans)
0