結果

問題 No.131 マンハッタン距離
ユーザー yuki2006
提出日時 2015-01-20 19:25:27
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 1,344 ms
コンパイル使用メモリ 76,672 KB
実行使用メモリ 75,904 KB
最終ジャッジ日時 2024-06-22 23:04:48
合計ジャッジ時間 4,487 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 7
権限があれば一括ダウンロードができます

ソースコード

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