結果

問題 No.2647 [Cherry 6th Tune A] Wind
コンテスト
ユーザー hato336
提出日時 2024-02-23 21:24:05
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 342 ms / 2,000 ms
コード長 621 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 315 ms
コンパイル使用メモリ 85,376 KB
実行使用メモリ 91,532 KB
最終ジャッジ日時 2026-04-15 16:00:18
合計ジャッジ時間 5,462 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
t = int(input())
#alist = list(map(int,input().split()))
#alist = []
#s = input()
#n,m = map(int,input().split())
#for i in range(n):
#    alist.append(list(map(int,input().split())))
for i in range(t):
    d,a = map(decimal.Decimal,input().split())
    x = list(map(decimal.Decimal,input().split()))
    for j in x:
        ans = j/a
        print(ans.quantize(decimal.Decimal('1'),rounding=decimal.ROUND_HALF_UP),end=' ')
    print()
0