結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー taro2023
提出日時 2024-02-24 13:52:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-09-29 10:01:40
合計ジャッジ時間 1,376 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
a=int(input())
d=[]
e=""
for i in range(a):
    b=list(map(int, input().split()))
    c=list(map(int, input().split()))
    for j in range(b[0]):
        d.append(int((Decimal(c[j])/Decimal(b[1])).quantize(Decimal('0'), ROUND_HALF_UP)))
    print(*d)
    d.clear()
0