結果
| 問題 | No.1738 What's in the box? |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:03:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 216 ms |
| コンパイル使用メモリ | 82,584 KB |
| 実行使用メモリ | 54,796 KB |
| 最終ジャッジ日時 | 2025-03-20 21:03:59 |
| 合計ジャッジ時間 | 4,239 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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