結果

問題 No.1738 What's in the box?
ユーザー irumo8202irumo8202
提出日時 2022-01-27 18:56:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 9,368 KB
最終ジャッジ日時 2023-08-26 20:25:58
合計ジャッジ時間 4,481 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,964 KB
testcase_01 AC 20 ms
8,912 KB
testcase_02 AC 20 ms
9,012 KB
testcase_03 AC 21 ms
9,112 KB
testcase_04 AC 21 ms
9,164 KB
testcase_05 AC 21 ms
9,308 KB
testcase_06 AC 22 ms
9,060 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 22 ms
9,068 KB
testcase_10 WA -
testcase_11 AC 24 ms
9,276 KB
testcase_12 AC 20 ms
9,168 KB
testcase_13 AC 19 ms
8,880 KB
testcase_14 WA -
testcase_15 AC 19 ms
8,960 KB
testcase_16 AC 19 ms
8,936 KB
testcase_17 AC 19 ms
8,836 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 20 ms
9,004 KB
testcase_21 AC 20 ms
8,948 KB
testcase_22 AC 20 ms
8,972 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 RE -
testcase_32 RE -
testcase_33 AC 21 ms
9,128 KB
testcase_34 AC 21 ms
9,124 KB
testcase_35 AC 21 ms
9,124 KB
testcase_36 AC 21 ms
9,116 KB
testcase_37 AC 22 ms
9,120 KB
testcase_38 WA -
testcase_39 AC 22 ms
9,224 KB
testcase_40 AC 21 ms
9,368 KB
testcase_41 WA -
testcase_42 AC 22 ms
9,168 KB
testcase_43 AC 21 ms
9,080 KB
testcase_44 AC 22 ms
9,252 KB
testcase_45 AC 22 ms
9,344 KB
testcase_46 AC 22 ms
9,164 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 21 ms
9,304 KB
testcase_50 AC 22 ms
9,184 KB
testcase_51 AC 21 ms
9,164 KB
testcase_52 AC 21 ms
9,176 KB
testcase_53 WA -
testcase_54 AC 20 ms
8,828 KB
testcase_55 AC 19 ms
8,912 KB
testcase_56 AC 19 ms
8,892 KB
testcase_57 AC 19 ms
8,912 KB
testcase_58 AC 19 ms
8,880 KB
testcase_59 AC 20 ms
8,908 KB
testcase_60 WA -
testcase_61 AC 20 ms
8,908 KB
testcase_62 AC 20 ms
8,928 KB
testcase_63 AC 20 ms
8,908 KB
testcase_64 AC 20 ms
8,912 KB
testcase_65 AC 20 ms
8,920 KB
testcase_66 AC 21 ms
8,912 KB
testcase_67 AC 21 ms
8,896 KB
testcase_68 AC 20 ms
8,908 KB
testcase_69 AC 20 ms
8,920 KB
testcase_70 AC 20 ms
8,908 KB
testcase_71 AC 20 ms
8,832 KB
testcase_72 AC 20 ms
8,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal

N, M = map(Decimal, input().split())
W = list(map(Decimal, input().split()))

sumW = sum(W)
wb = Decimal(sumW / M)

ans = [0] * int(N)
for i in range(int(N)):
    ans[i] = int(Decimal(W[i] / wb))

print(*ans)
0