結果

問題 No.920 あかあお
ユーザー Meso MesoMeso Meso
提出日時 2024-04-26 20:18:10
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 472 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 65,992 KB
最終ジャッジ日時 2024-04-26 20:18:15
合計ジャッジ時間 4,508 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
57,216 KB
testcase_01 AC 39 ms
51,968 KB
testcase_02 AC 37 ms
51,968 KB
testcase_03 AC 38 ms
51,584 KB
testcase_04 AC 38 ms
52,096 KB
testcase_05 AC 38 ms
52,200 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