結果

問題 No.4 おもりと天秤
ユーザー konsin_tokage
提出日時 2018-05-04 18:04:26
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 140 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 81,948 KB
実行使用メモリ 848,208 KB
最終ジャッジ日時 2024-06-28 01:13:17
合計ジャッジ時間 3,694 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 MLE * 1 -- * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

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')
0