結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー 👑 Kazun
提出日時 2023-06-27 01:00:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 69,936 KB
最終ジャッジ日時 2024-09-29 05:17:44
合計ジャッジ時間 1,349 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    D, A = map(int, input().split())
    X = list(map(int, input().split()))

    def calc(x, A):
        return (2*x+A)//(2*A)

    return [calc(x, A) for x in X]

#==================================================
T = int(input())
for t in range(T):
    print(*solve())
0