結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー hato336hato336
提出日時 2024-02-23 21:24:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 508 ms / 2,000 ms
コード長 621 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 93,240 KB
最終ジャッジ日時 2024-02-23 21:24:15
合計ジャッジ時間 6,877 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
85,048 KB
testcase_01 AC 440 ms
90,936 KB
testcase_02 AC 313 ms
89,912 KB
testcase_03 AC 490 ms
92,344 KB
testcase_04 AC 329 ms
89,912 KB
testcase_05 AC 472 ms
92,536 KB
testcase_06 AC 503 ms
92,804 KB
testcase_07 AC 482 ms
90,936 KB
testcase_08 AC 485 ms
93,240 KB
testcase_09 AC 508 ms
91,704 KB
testcase_10 AC 496 ms
90,936 KB
testcase_11 AC 471 ms
91,576 KB
testcase_12 AC 461 ms
91,576 KB
testcase_13 AC 125 ms
85,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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