結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
79,304 KB
testcase_01 AC 308 ms
82,504 KB
testcase_02 AC 254 ms
82,120 KB
testcase_03 AC 347 ms
82,248 KB
testcase_04 AC 254 ms
82,120 KB
testcase_05 AC 353 ms
82,632 KB
testcase_06 AC 333 ms
82,248 KB
testcase_07 AC 361 ms
82,248 KB
testcase_08 AC 338 ms
82,248 KB
testcase_09 AC 384 ms
82,888 KB
testcase_10 AC 402 ms
82,248 KB
testcase_11 AC 413 ms
82,632 KB
testcase_12 AC 453 ms
83,016 KB
testcase_13 AC 109 ms
79,304 KB
権限があれば一括ダウンロードができます

ソースコード

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