結果

問題 No.2233 Average
ユーザー ShirotsumeShirotsume
提出日時 2023-03-03 21:28:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 154 ms / 2,000 ms
コード長 462 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 81,500 KB
実行使用メモリ 76,076 KB
最終ジャッジ日時 2023-10-18 01:21:52
合計ジャッジ時間 3,058 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,276 KB
testcase_01 AC 42 ms
53,276 KB
testcase_02 AC 43 ms
53,276 KB
testcase_03 AC 46 ms
58,824 KB
testcase_04 AC 42 ms
55,324 KB
testcase_05 AC 45 ms
58,824 KB
testcase_06 AC 46 ms
58,824 KB
testcase_07 AC 47 ms
58,824 KB
testcase_08 AC 120 ms
75,964 KB
testcase_09 AC 145 ms
76,016 KB
testcase_10 AC 118 ms
75,912 KB
testcase_11 AC 115 ms
75,908 KB
testcase_12 AC 110 ms
75,880 KB
testcase_13 AC 77 ms
75,848 KB
testcase_14 AC 109 ms
75,932 KB
testcase_15 AC 126 ms
75,976 KB
testcase_16 AC 85 ms
75,876 KB
testcase_17 AC 89 ms
75,884 KB
testcase_18 AC 154 ms
76,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import deque, Counter
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

def solve():
    a, b, c, k = mi()
    for _ in range(min(100, k)):
        a2 = (b + c) // 2
        b2 = (a + c) // 2
        c2 = (a + b) // 2
        a = a2
        b = b2
        c = c2
    print(a+b+c)

for _ in range(ii()):
    solve()
0