結果

問題 No.2233 Average
ユーザー titan23titan23
提出日時 2023-03-11 13:07:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 78,292 KB
最終ジャッジ日時 2023-10-18 09:50:00
合計ジャッジ時間 15,923 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 OLE -
testcase_09 OLE -
testcase_10 OLE -
testcase_11 OLE -
testcase_12 OLE -
testcase_13 OLE -
testcase_14 OLE -
testcase_15 OLE -
testcase_16 WA -
testcase_17 OLE -
testcase_18 OLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

def main():
  a, b, c, K = map(int, input().split())
  for _ in range(K):
    a, b, c = (b+c)//2, (c+a)//2, (a+b)//2
    print(a, b, c)
    if a == b == c:
      break
  return a + b + c

t = int(input())
for _ in range(t):
  print(main())
0