結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー uta
提出日時 2024-02-23 21:45:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 90,456 KB
最終ジャッジ日時 2024-09-29 06:05:12
合計ジャッジ時間 3,442 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import Fraction
import sys
sys.set_int_max_str_digits(0)

T = int(input())
for _ in range(T):
    D, A = list(map(int, input().split()))
    X = list(map(int, input().split()))
    ans = []
    for x in X:
        ans.append(int(Fraction(x, A)+0.5))
    print(" ".join(map(str, ans)))
0