結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー miya145592miya145592
提出日時 2024-02-23 21:54:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 410 ms / 2,000 ms
コード長 369 bytes
コンパイル時間 750 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 84,892 KB
最終ジャッジ日時 2024-09-29 06:22:33
合計ジャッジ時間 6,211 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
import decimal
import sys
input = sys.stdin.readline
T = int(input())
for _ in range(T):
    D, A = map(int, input().split())
    X = list(map(int, input().split()))
    ans = []
    for x in X:
        tmp = Decimal(x)/Decimal(A)
        tmp = tmp.quantize(Decimal(1), rounding=decimal.ROUND_HALF_UP)
        ans.append(tmp)
    print(*ans)
0