結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー Uue_kunUue_kun
提出日時 2024-02-23 21:42:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 476 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 85,316 KB
最終ジャッジ日時 2024-02-23 21:42:58
合計ジャッジ時間 6,568 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
79,304 KB
testcase_01 AC 407 ms
84,424 KB
testcase_02 AC 272 ms
82,248 KB
testcase_03 AC 436 ms
84,296 KB
testcase_04 AC 300 ms
82,376 KB
testcase_05 AC 476 ms
84,552 KB
testcase_06 AC 440 ms
84,296 KB
testcase_07 AC 451 ms
83,784 KB
testcase_08 AC 451 ms
85,316 KB
testcase_09 AC 449 ms
84,424 KB
testcase_10 AC 471 ms
83,784 KB
testcase_11 AC 433 ms
84,756 KB
testcase_12 AC 427 ms
84,552 KB
testcase_13 AC 132 ms
79,304 KB
権限があれば一括ダウンロードができます

ソースコード

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