結果

問題 No.1738 What's in the box?
ユーザー irumo8202irumo8202
提出日時 2022-01-27 18:59:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 457 ms
コンパイル使用メモリ 86,796 KB
実行使用メモリ 92,804 KB
最終ジャッジ日時 2023-08-26 20:29:54
合計ジャッジ時間 18,170 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 187 ms
88,996 KB
testcase_01 AC 191 ms
89,008 KB
testcase_02 AC 191 ms
88,736 KB
testcase_03 AC 247 ms
92,544 KB
testcase_04 AC 245 ms
92,804 KB
testcase_05 AC 250 ms
92,308 KB
testcase_06 AC 248 ms
92,272 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 248 ms
92,624 KB
testcase_10 WA -
testcase_11 AC 244 ms
92,528 KB
testcase_12 AC 257 ms
92,408 KB
testcase_13 AC 185 ms
88,828 KB
testcase_14 WA -
testcase_15 AC 187 ms
88,740 KB
testcase_16 AC 194 ms
89,100 KB
testcase_17 AC 192 ms
89,008 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 194 ms
89,056 KB
testcase_21 AC 207 ms
91,092 KB
testcase_22 AC 183 ms
88,820 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 AC 189 ms
88,908 KB
testcase_32 AC 186 ms
88,808 KB
testcase_33 AC 232 ms
92,276 KB
testcase_34 AC 253 ms
92,604 KB
testcase_35 AC 245 ms
92,112 KB
testcase_36 AC 250 ms
92,396 KB
testcase_37 AC 240 ms
92,180 KB
testcase_38 WA -
testcase_39 AC 245 ms
91,988 KB
testcase_40 AC 259 ms
92,496 KB
testcase_41 WA -
testcase_42 AC 258 ms
92,132 KB
testcase_43 AC 264 ms
92,616 KB
testcase_44 AC 256 ms
92,452 KB
testcase_45 AC 246 ms
92,440 KB
testcase_46 AC 274 ms
92,272 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 250 ms
92,564 KB
testcase_50 AC 248 ms
92,460 KB
testcase_51 AC 246 ms
92,552 KB
testcase_52 AC 255 ms
92,632 KB
testcase_53 WA -
testcase_54 AC 187 ms
88,724 KB
testcase_55 AC 183 ms
89,092 KB
testcase_56 AC 191 ms
90,976 KB
testcase_57 AC 184 ms
89,080 KB
testcase_58 AC 186 ms
88,832 KB
testcase_59 AC 184 ms
88,824 KB
testcase_60 WA -
testcase_61 AC 183 ms
89,068 KB
testcase_62 AC 186 ms
89,108 KB
testcase_63 AC 190 ms
89,096 KB
testcase_64 AC 182 ms
89,076 KB
testcase_65 AC 196 ms
89,096 KB
testcase_66 AC 185 ms
88,904 KB
testcase_67 AC 183 ms
89,020 KB
testcase_68 AC 185 ms
89,148 KB
testcase_69 AC 178 ms
89,064 KB
testcase_70 AC 181 ms
88,892 KB
testcase_71 AC 180 ms
88,712 KB
testcase_72 AC 189 ms
88,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal

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

ans = [0] * int(N)
if M == 0:
    print(*ans)
    exit()

sumW = sum(W)
wb = Decimal(sumW / M)
for i in range(int(N)):
    ans[i] = int(Decimal(W[i] / wb))

print(*ans)
0