結果
問題 | No.1738 What's in the box? |
ユーザー |
|
提出日時 | 2022-10-12 14:36:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-26 09:05:45 |
合計ジャッジ時間 | 4,456 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 68 RE * 2 |
ソースコード
def main(): N, M = map(int, input().split()) W = list(map(int, input().split())) sum_weight = sum(W) print(*map(lambda weight: round(M * weight / sum_weight), W)) if __name__ == "__main__": main()