結果
| 問題 | No.1738 What's in the box? |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2022-12-31 19:16:22 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 2,000 ms |
| + 365µs | |
| コード長 | 167 bytes |
| 記録 | |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 64,652 KB |
| 実行使用メモリ | 58,052 KB |
| 最終ジャッジ日時 | 2026-10-15 00:36:04 |
| 合計ジャッジ時間 | 5,792 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 72 |
ソースコード
N, M = map(int, input().split())
W = list(map(int, input().split()))
S = sum(W)
if M == 0:
print(*[0]*N)
exit()
W = list(map(lambda x : x * M//S, W))
print(*W)
rlangevin