結果
| 問題 | No.1738 What's in the box? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 23:03:58 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 625 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 13,440 KB |
| 最終ジャッジ日時 | 2026-09-30 01:07:56 |
| 合計ジャッジ時間 | 5,324 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 68 RE * 2 |
ソースコード
from fractions import Fraction
n, m = map(int, input().split())
W = list(map(int, input().split()))
sumW = sum(W)
w = Fraction(sumW, m)
ans = []
for i in range(n):
ans.append(int(Fraction(W[i], w)))
print(*ans)