結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー NPNP
提出日時 2024-02-23 21:26:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 418 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 82,436 KB
実行使用メモリ 84,044 KB
最終ジャッジ日時 2024-09-29 05:26:54
合計ジャッジ時間 4,761 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal, getcontext

getcontext().prec = 60

T = int(input())
for _ in range(T):
    D, A = map(int, input().split())
    X = list(map(int, input().split()))
    P = [int((Decimal(x) * 2 + A) / (2 * A)) for x in X]
    print(*P)
0