結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー Nikkuniku029Nikkuniku029
提出日時 2024-03-09 16:16:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 152 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 466 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 81,352 KB
最終ジャッジ日時 2024-03-09 16:16:17
合計ジャッジ時間 3,419 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
79,176 KB
testcase_01 AC 149 ms
81,352 KB
testcase_02 AC 122 ms
81,352 KB
testcase_03 AC 127 ms
81,352 KB
testcase_04 AC 123 ms
81,352 KB
testcase_05 AC 127 ms
81,352 KB
testcase_06 AC 126 ms
81,352 KB
testcase_07 AC 126 ms
81,352 KB
testcase_08 AC 126 ms
81,352 KB
testcase_09 AC 152 ms
81,352 KB
testcase_10 AC 126 ms
81,352 KB
testcase_11 AC 128 ms
81,352 KB
testcase_12 AC 126 ms
81,352 KB
testcase_13 AC 107 ms
79,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN


def solve(D, A, X):
    res = []
    for x in X:
        tmp = (2 * x + A) // (2 * A)
        res.append(tmp)
    return res


T = int(input())
ans = []
for _ in range(T):
    D, A = map(int, input().split())
    X = list(map(int, input().split()))
    ans.append(solve(D, A, X))
for c in ans:
    print(*c)
0