結果

問題 No.2233 Average
ユーザー だれだれ
提出日時 2023-02-23 20:09:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 318 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 554 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 77,624 KB
最終ジャッジ日時 2023-09-30 20:30:04
合計ジャッジ時間 5,411 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,312 KB
testcase_01 AC 75 ms
71,220 KB
testcase_02 AC 75 ms
71,472 KB
testcase_03 AC 75 ms
71,388 KB
testcase_04 AC 72 ms
71,256 KB
testcase_05 AC 74 ms
71,320 KB
testcase_06 AC 76 ms
71,248 KB
testcase_07 AC 79 ms
75,504 KB
testcase_08 AC 236 ms
77,296 KB
testcase_09 AC 313 ms
77,184 KB
testcase_10 AC 219 ms
77,324 KB
testcase_11 AC 222 ms
77,172 KB
testcase_12 AC 200 ms
77,192 KB
testcase_13 AC 121 ms
77,108 KB
testcase_14 AC 212 ms
77,244 KB
testcase_15 AC 247 ms
76,924 KB
testcase_16 AC 144 ms
77,624 KB
testcase_17 AC 151 ms
77,396 KB
testcase_18 AC 318 ms
77,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    a, b, c, k = map(int, input().split())
    while k > 0:
        if a == b == c:
            break
        na = (b + c) // 2
        nb = (c + a) // 2
        nc = (a + b) // 2
        a, b, c = na, nb, nc
        k -= 1
    print(a + b + c)
0