結果
| 問題 | No.4 おもりと天秤 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-05-26 22:59:47 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 209 bytes | 
| コンパイル時間 | 172 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-10-07 16:21:37 | 
| 合計ジャッジ時間 | 3,479 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 WA * 7 | 
ソースコード
N=int(input())
l=[0]*(N*100+101)
l[0]=1
s=0
for v in list(map(int,input().split())):
    s+=v
    for i in range(N*100, -1, -1):
        l[i+v]=l[i]
print("impossible" if s%2==1 or not l[s//2] else "possible")
            
            
            
        