結果

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

ソースコード

diff #

from decimal import ROUND_HALF_UP, Decimal


t = int(input())
for _ in range(t):
  d, a = map(int, input().split())
  x = list(map(int, input().split()))
  p = [(Decimal(str(i))/Decimal(str(a))).quantize(Decimal('1'), rounding=ROUND_HALF_UP) for i in x]
  print(*p)
0