結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー Akijin_007Akijin_007
提出日時 2024-02-23 21:23:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 412 bytes
コンパイル時間 618 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 70,720 KB
最終ジャッジ日時 2024-02-23 21:23:22
合計ジャッジ時間 1,735 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 55 ms
64,556 KB
testcase_02 AC 49 ms
62,496 KB
testcase_03 AC 55 ms
66,596 KB
testcase_04 AC 50 ms
64,564 KB
testcase_05 AC 55 ms
64,548 KB
testcase_06 AC 56 ms
66,628 KB
testcase_07 AC 54 ms
66,596 KB
testcase_08 AC 56 ms
66,596 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 54 ms
66,592 KB
testcase_12 AC 54 ms
66,592 KB
testcase_13 AC 37 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#int(input())
#map(int, input().split())
#list(map(int, input().split()))

T = int(input())

ans = []
for i in range(T):
    D, A = map(int, input().split())
    X = list(map(int, input().split()))
    a = []

    for j in range(D):
        u, v = divmod(X[j], A)
        if v >= A / 2:
            u += 1
        a.append(u)

    ans.append(a)

for i in range(T):
    print(" ".join([str(_) for _ in ans[i]]))

0