結果

問題 No.4 おもりと天秤
ユーザー gigurururugigurururu
提出日時 2014-11-04 16:04:41
言語 Python2
(2.7.18)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 181 bytes
コンパイル時間 879 ms
コンパイル使用メモリ 6,508 KB
実行使用メモリ 6,984 KB
最終ジャッジ日時 2023-09-08 16:02:35
合計ジャッジ時間 2,237 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,988 KB
testcase_01 AC 11 ms
6,080 KB
testcase_02 AC 12 ms
6,100 KB
testcase_03 AC 11 ms
6,052 KB
testcase_04 AC 12 ms
6,056 KB
testcase_05 AC 42 ms
6,336 KB
testcase_06 AC 12 ms
5,964 KB
testcase_07 AC 44 ms
6,292 KB
testcase_08 AC 12 ms
6,080 KB
testcase_09 AC 13 ms
6,164 KB
testcase_10 AC 47 ms
6,984 KB
testcase_11 AC 12 ms
6,052 KB
testcase_12 AC 11 ms
6,172 KB
testcase_13 AC 12 ms
5,964 KB
testcase_14 AC 11 ms
6,136 KB
testcase_15 AC 11 ms
6,148 KB
testcase_16 AC 11 ms
6,156 KB
testcase_17 AC 11 ms
5,964 KB
testcase_18 AC 26 ms
6,092 KB
testcase_19 AC 39 ms
6,220 KB
testcase_20 AC 39 ms
6,252 KB
testcase_21 AC 38 ms
6,248 KB
testcase_22 AC 39 ms
6,212 KB
権限があれば一括ダウンロードができます

ソースコード

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