結果
| 問題 | No.1738 What's in the box? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 22:23:37 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 156 bytes |
| 記録 | |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 85,888 KB |
| 実行使用メモリ | 61,056 KB |
| 最終ジャッジ日時 | 2026-05-20 09:27:51 |
| 合計ジャッジ時間 | 4,451 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 70 |
ソースコード
N,M = map(int,input().split())
W = list(map(int,input().split()))
if sum(W)>0:
print(*list(map(lambda x:x*M//sum(W),W)))
else:
print(*list([0]*N))