結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 187 ms
88,660 KB
testcase_01 AC 183 ms
88,320 KB
testcase_02 AC 183 ms
88,568 KB
testcase_03 AC 251 ms
91,972 KB
testcase_04 AC 253 ms
92,200 KB
testcase_05 AC 245 ms
92,020 KB
testcase_06 AC 243 ms
92,084 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 270 ms
92,332 KB
testcase_10 WA -
testcase_11 AC 245 ms
92,504 KB
testcase_12 AC 263 ms
92,232 KB
testcase_13 AC 190 ms
88,880 KB
testcase_14 WA -
testcase_15 AC 187 ms
88,924 KB
testcase_16 AC 194 ms
88,880 KB
testcase_17 AC 194 ms
88,808 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 186 ms
88,720 KB
testcase_21 AC 202 ms
90,876 KB
testcase_22 AC 186 ms
88,792 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 195 ms
88,776 KB
testcase_32 AC 190 ms
88,532 KB
testcase_33 AC 250 ms
91,900 KB
testcase_34 AC 264 ms
92,152 KB
testcase_35 AC 247 ms
92,044 KB
testcase_36 AC 258 ms
92,024 KB
testcase_37 AC 244 ms
91,968 KB
testcase_38 WA -
testcase_39 AC 240 ms
92,240 KB
testcase_40 AC 256 ms
92,176 KB
testcase_41 WA -
testcase_42 AC 245 ms
92,004 KB
testcase_43 AC 254 ms
92,332 KB
testcase_44 AC 254 ms
92,300 KB
testcase_45 AC 252 ms
92,424 KB
testcase_46 AC 251 ms
92,200 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 249 ms
92,340 KB
testcase_50 AC 248 ms
92,348 KB
testcase_51 AC 251 ms
91,956 KB
testcase_52 AC 256 ms
92,404 KB
testcase_53 WA -
testcase_54 AC 183 ms
88,804 KB
testcase_55 AC 182 ms
88,804 KB
testcase_56 AC 200 ms
90,688 KB
testcase_57 AC 192 ms
88,876 KB
testcase_58 AC 193 ms
88,780 KB
testcase_59 AC 189 ms
88,876 KB
testcase_60 WA -
testcase_61 AC 183 ms
88,932 KB
testcase_62 AC 190 ms
88,544 KB
testcase_63 AC 184 ms
88,796 KB
testcase_64 AC 198 ms
88,892 KB
testcase_65 AC 182 ms
88,572 KB
testcase_66 AC 186 ms
88,784 KB
testcase_67 AC 194 ms
88,880 KB
testcase_68 AC 186 ms
88,720 KB
testcase_69 AC 188 ms
88,764 KB
testcase_70 AC 192 ms
88,608 KB
testcase_71 AC 189 ms
88,788 KB
testcase_72 AC 200 ms
88,548 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