結果
| 問題 |
No.1738 What's in the box?
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 19:00:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 206 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 82,884 KB |
| 実行使用メモリ | 54,576 KB |
| 最終ジャッジ日時 | 2025-03-20 19:02:00 |
| 合計ジャッジ時間 | 5,095 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 70 |
ソースコード
n, m = map(int, input().split())
w = list(map(int, input().split()))
sum_w = sum(w)
if sum_w == 0:
print(' '.join(['0'] * n))
else:
a = [(x * m) // sum_w for x in w]
print(' '.join(map(str, a)))
lam6er