結果

問題 No.1738 What's in the box?
コンテスト
ユーザー H3PO4
提出日時 2021-11-12 21:44:21
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 25 ms / 2,000 ms
+ 354µs
コード長 162 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 52 ms
コンパイル使用メモリ 14,848 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2026-10-15 00:09:34
合計ジャッジ時間 4,815 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 72
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N, M = map(int, input().split())
W = tuple(map(int, input().split()))
S = sum(W)
if S:
    ans = [round(w * M / S) for w in W]
else:
    ans = [0] * N
print(*ans)
0