結果

問題 No.131 マンハッタン距離
ユーザー yuki2006yuki2006
提出日時 2015-01-20 19:25:27
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 1,818 ms
コンパイル使用メモリ 77,288 KB
実行使用メモリ 76,644 KB
最終ジャッジ日時 2023-09-05 02:09:17
合計ジャッジ時間 5,574 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
76,052 KB
testcase_01 AC 76 ms
76,252 KB
testcase_02 AC 76 ms
76,328 KB
testcase_03 AC 77 ms
76,116 KB
testcase_04 AC 77 ms
76,180 KB
testcase_05 AC 75 ms
76,324 KB
testcase_06 AC 76 ms
76,180 KB
testcase_07 WA -
testcase_08 AC 76 ms
76,264 KB
testcase_09 AC 78 ms
76,424 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 76 ms
76,336 KB
testcase_13 AC 76 ms
76,588 KB
testcase_14 AC 76 ms
76,372 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 76 ms
76,112 KB
testcase_18 AC 77 ms
76,392 KB
testcase_19 AC 75 ms
76,184 KB
testcase_20 AC 74 ms
76,420 KB
testcase_21 AC 74 ms
76,424 KB
testcase_22 WA -
testcase_23 AC 76 ms
76,048 KB
testcase_24 AC 74 ms
76,372 KB
testcase_25 WA -
testcase_26 AC 74 ms
76,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    x, y, d = map(int, raw_input().split())

    if x < d and y < d:
        return 0
    return 1 + min(d, y, x)

if __name__ == '__main__':
    print solve()
0