結果
| 問題 |
No.1738 What's in the box?
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 21:44:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 162 bytes |
| コンパイル時間 | 332 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-25 17:45:45 |
| 合計ジャッジ時間 | 4,040 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 70 |
ソースコード
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)