結果
| 問題 | No.1738 What's in the box? |
| コンテスト | |
| ユーザー |
player
|
| 提出日時 | 2024-01-16 00:44:47 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 62 ms / 2,000 ms |
| + 108µs | |
| コード長 | 224 bytes |
| 記録 | |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 96,464 KB |
| 実行使用メモリ | 83,456 KB |
| 最終ジャッジ日時 | 2026-09-05 10:41:48 |
| 合計ジャッジ時間 | 7,201 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 70 |
ソースコード
from math import *
n, m = map(int, input().split())
w = list(map(int, input().split()))
if sum(w) == 0:
print(*[0] * n)
exit()
ans = []
for i in range(n):
ans.append(int(m * w[i] / sum(w)))
print(*ans)
player