結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー StanMarshStanMarsh
提出日時 2024-02-23 21:28:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 591 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 66,612 KB
最終ジャッジ日時 2024-02-23 21:28:24
合計ジャッジ時間 1,638 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,460 KB
testcase_01 AC 49 ms
62,488 KB
testcase_02 AC 46 ms
62,484 KB
testcase_03 AC 49 ms
64,564 KB
testcase_04 AC 48 ms
62,492 KB
testcase_05 AC 55 ms
64,560 KB
testcase_06 AC 50 ms
64,564 KB
testcase_07 AC 52 ms
64,560 KB
testcase_08 AC 50 ms
64,560 KB
testcase_09 AC 51 ms
66,608 KB
testcase_10 AC 52 ms
66,608 KB
testcase_11 AC 52 ms
66,612 KB
testcase_12 AC 51 ms
66,612 KB
testcase_13 AC 37 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

inf = float("inf")
# sys.setrecursionlimit(10**6)
input = lambda: sys.stdin.readline().rstrip("\r\n")

print = lambda *args, end="\n", sep=" ": sys.stdout.write(
    sep.join(map(str, args)) + end
)


def II():
    return int(input())


def MII(b=0):
    return map(lambda x: int(x) - b, input().split())


def LII(b=0):
    return list(MII(b))


for _ in range(II()):
    d, a = MII()
    xs = LII()
    res = []
    for x in xs:
        # res.append(round(x / a))
        t1, t2 = divmod(x, a)
        if t2 * 2 >= a:
            t1 += 1
        res.append(t1)
    print(*res)
0