結果

問題 No.4 おもりと天秤
ユーザー gigurururu
提出日時 2014-11-04 16:04:41
言語 Python2
(2.7.18)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 181 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 7,424 KB
最終ジャッジ日時 2024-06-26 09:02:41
合計ジャッジ時間 1,428 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
l=dict()
s=0
for i in map(int,raw_input().split()):
    s+=i
    for j in l.keys(): l[j+i]=1
    l[i]=1
print "possible" if s%2==0 and l.get(s/2)==1 else "impossible"
0