結果
| 問題 | No.4 おもりと天秤 |
| コンテスト | |
| ユーザー |
konsin_tokage
|
| 提出日時 | 2018-05-04 18:03:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 140 bytes |
| 記録 | |
| コンパイル時間 | 1,170 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 1,311,952 KB |
| 最終ジャッジ日時 | 2026-07-31 13:28:02 |
| 合計ジャッジ時間 | 5,840 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 MLE * 2 -- * 16 |
ソースコード
input()
*w,=map(int, input().split())
m=sum(w)/2
d=[0]
d.extend(j+i for i in w for j in d[::] if j+i<=m)
print('im'*(m not in d)+'possible')
konsin_tokage