結果

問題 No.2233 Average
ユーザー titiatitia
提出日時 2023-03-03 21:52:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 274 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 11,884 KB
実行使用メモリ 10,180 KB
最終ジャッジ日時 2023-10-18 01:52:10
合計ジャッジ時間 18,885 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,080 KB
testcase_01 AC 29 ms
10,080 KB
testcase_02 AC 29 ms
10,080 KB
testcase_03 AC 29 ms
10,080 KB
testcase_04 AC 28 ms
10,080 KB
testcase_05 AC 30 ms
10,080 KB
testcase_06 AC 30 ms
10,080 KB
testcase_07 AC 30 ms
10,084 KB
testcase_08 AC 1,466 ms
10,180 KB
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 AC 1,808 ms
10,152 KB
testcase_13 AC 430 ms
10,152 KB
testcase_14 AC 1,273 ms
10,180 KB
testcase_15 AC 1,711 ms
10,180 KB
testcase_16 AC 488 ms
10,180 KB
testcase_17 AC 634 ms
10,180 KB
testcase_18 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

def calc(a,b,c):
    return (b+c)//2,(a+c)//2,(a+b)//2

T=int(input())
for tests in range(T):
    a,b,c,K=map(int,input().split())

    for i in range(K):
        a,b,c=calc(a,b,c)
        if a==b==c:
            break
    print(a+b+c)
0