結果
問題 |
No.2647 [Cherry 6th Tune A] Wind
|
ユーザー |
|
提出日時 | 2024-03-09 16:07:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 405 ms |
コンパイル使用メモリ | 82,188 KB |
実行使用メモリ | 85,600 KB |
最終ジャッジ日時 | 2024-09-29 21:14:57 |
合計ジャッジ時間 | 5,731 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 8 |
ソースコード
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN T = int(input()) def solve(D, A, X): res = [] for x in X: tmp = Decimal(str(x / A)).quantize(Decimal("0"), ROUND_HALF_UP) res.append(tmp) return res 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)