結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー noriocnorioc
提出日時 2024-02-23 21:32:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 460 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 84,508 KB
最終ジャッジ日時 2024-02-23 21:33:14
合計ジャッジ時間 5,737 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
79,304 KB
testcase_01 AC 338 ms
82,376 KB
testcase_02 AC 281 ms
82,376 KB
testcase_03 AC 355 ms
83,656 KB
testcase_04 AC 292 ms
82,376 KB
testcase_05 AC 395 ms
84,296 KB
testcase_06 AC 407 ms
83,528 KB
testcase_07 AC 354 ms
82,888 KB
testcase_08 AC 361 ms
82,888 KB
testcase_09 AC 435 ms
84,424 KB
testcase_10 AC 399 ms
83,656 KB
testcase_11 AC 399 ms
84,040 KB
testcase_12 AC 460 ms
84,508 KB
testcase_13 AC 111 ms
79,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal


def solve():
    D, A = map(int, input().split())
    X = list(map(int, input().split()))
    ans = []
    for x in X:
        ans.append(int(Decimal(x) / A + Decimal(0.5)))
    print(*ans)


T = int(input())
for _ in range(T):
    solve()
0