結果

問題 No.4 おもりと天秤
ユーザー _karasu32
提出日時 2020-01-08 07:09:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 169 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-23 02:11:17
合計ジャッジ時間 1,855 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
W = list(map(int,input().split()))
W.sort(reverse=True)
a,b = 0,0
for w in W:
    if a>=b:b+=w
    else:a+=w
print("possible" if a==b else "impossible")
0