結果

問題 No.920 あかあお
ユーザー Meso MesoMeso Meso
提出日時 2024-04-26 20:17:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 472 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2024-04-26 20:17:16
合計ジャッジ時間 3,986 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
16,128 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 26 ms
10,752 KB
testcase_03 AC 25 ms
10,752 KB
testcase_04 AC 26 ms
10,752 KB
testcase_05 AC 26 ms
10,752 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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
0