結果

問題 No.131 マンハッタン距離
コンテスト
ユーザー fmhr
提出日時 2015-04-25 18:03:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 170 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,696 KB
最終ジャッジ日時 2024-07-05 02:28:20
合計ジャッジ時間 6,832 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other TLE * 1 -- * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

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