結果

問題 No.2233 Average
ユーザー ニックネームニックネーム
提出日時 2023-03-03 21:40:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 310 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 81,532 KB
実行使用メモリ 75,684 KB
最終ジャッジ日時 2023-10-18 01:37:05
合計ジャッジ時間 4,131 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,272 KB
testcase_01 AC 38 ms
53,272 KB
testcase_02 AC 38 ms
53,272 KB
testcase_03 AC 38 ms
53,272 KB
testcase_04 AC 37 ms
53,272 KB
testcase_05 AC 38 ms
53,272 KB
testcase_06 AC 39 ms
53,272 KB
testcase_07 AC 45 ms
59,232 KB
testcase_08 AC 219 ms
75,652 KB
testcase_09 AC 286 ms
75,576 KB
testcase_10 AC 206 ms
75,684 KB
testcase_11 AC 194 ms
75,576 KB
testcase_12 AC 179 ms
75,580 KB
testcase_13 AC 96 ms
75,584 KB
testcase_14 AC 189 ms
75,672 KB
testcase_15 AC 229 ms
75,668 KB
testcase_16 AC 118 ms
75,672 KB
testcase_17 AC 132 ms
75,680 KB
testcase_18 AC 310 ms
75,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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