結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 46 ms
62,368 KB
testcase_02 AC 43 ms
62,224 KB
testcase_03 AC 49 ms
64,420 KB
testcase_04 AC 45 ms
62,352 KB
testcase_05 AC 48 ms
64,428 KB
testcase_06 AC 52 ms
64,420 KB
testcase_07 AC 49 ms
64,420 KB
testcase_08 AC 49 ms
64,420 KB
testcase_09 AC 55 ms
66,480 KB
testcase_10 AC 50 ms
66,480 KB
testcase_11 AC 51 ms
66,480 KB
testcase_12 AC 51 ms
66,480 KB
testcase_13 AC 35 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 = []

    c, d = divmod(A, 2)
    c += d

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

    ans.append(a)

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

0