結果
| 問題 |
No.131 マンハッタン距離
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-03 16:01:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 170 bytes |
| コンパイル時間 | 244 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,320 KB |
| 最終ジャッジ日時 | 2024-11-06 20:04:48 |
| 合計ジャッジ時間 | 6,994 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 23 |
ソースコード
# -*- coding: utf-8 -*-
a,b,d = map(int, input().split())
x = d
y = 0
ans = 0
while x >= 0:
if x <= a and y <= b:
ans += 1
x -= 1
y += 1
print(ans)