結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー taro2023taro2023
提出日時 2024-02-24 13:52:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-02-24 13:52:40
合計ジャッジ時間 1,669 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,496 KB
testcase_01 AC 42 ms
10,496 KB
testcase_02 AC 38 ms
10,496 KB
testcase_03 AC 43 ms
10,496 KB
testcase_04 AC 37 ms
10,496 KB
testcase_05 AC 75 ms
10,496 KB
testcase_06 AC 45 ms
10,496 KB
testcase_07 AC 45 ms
10,496 KB
testcase_08 AC 46 ms
10,496 KB
testcase_09 AC 57 ms
10,496 KB
testcase_10 AC 59 ms
10,496 KB
testcase_11 AC 59 ms
10,496 KB
testcase_12 AC 57 ms
10,496 KB
testcase_13 AC 32 ms
10,496 KB
権限があれば一括ダウンロードができます

ソースコード

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