結果
| 問題 |
No.920 あかあお
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-26 20:17:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 472 bytes |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,504 KB |
| 最終ジャッジ日時 | 2024-11-14 11:03:35 |
| 合計ジャッジ時間 | 7,125 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 TLE * 2 |
ソースコード
x, y, z = map(int, input().split())
while True:
if x < y:
x += 1
z -= 1
if z == 0:
print(min(x, y))
break
elif x > y:
y += 1
z -= 1
if z == 0:
print(min(x, y))
break
else:
x += 1
z -= 1
if z == 0:
print(min(x, y))
break
y += 1
z -= 1
if z == 0:
print(min(x, y))
break