結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー hibit_athibit_at
提出日時 2024-02-23 21:29:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 531 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 85,416 KB
最終ジャッジ日時 2024-02-23 21:29:48
合計ジャッジ時間 7,193 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
79,300 KB
testcase_01 AC 435 ms
83,268 KB
testcase_02 AC 361 ms
82,884 KB
testcase_03 AC 466 ms
84,420 KB
testcase_04 AC 334 ms
82,756 KB
testcase_05 AC 492 ms
84,056 KB
testcase_06 AC 531 ms
85,416 KB
testcase_07 AC 464 ms
83,396 KB
testcase_08 AC 515 ms
84,992 KB
testcase_09 AC 521 ms
84,264 KB
testcase_10 AC 520 ms
84,676 KB
testcase_11 AC 519 ms
84,932 KB
testcase_12 AC 495 ms
84,508 KB
testcase_13 AC 113 ms
79,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal,ROUND_HALF_UP

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