結果
| 問題 | No.1738 What's in the box? |
| コンテスト | |
| ユーザー |
gr1msl3y
|
| 提出日時 | 2021-11-12 21:29:39 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 80,392 KB |
| 実行使用メモリ | 82,000 KB |
| 最終ジャッジ日時 | 2026-09-29 21:07:45 |
| 合計ジャッジ時間 | 6,799 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_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()))
S = sum(W)
w = Fraction(S, M)
ans = [0]*N
for i in range(N):
ans[i] = int(W[i]/w)
print(*ans)
gr1msl3y