結果

問題 No.4 おもりと天秤
ユーザー tarotaro789tarotaro789
提出日時 2017-06-04 01:23:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 11,684 KB
実行使用メモリ 9,976 KB
最終ジャッジ日時 2023-10-22 03:10:47
合計ジャッジ時間 1,684 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
9,972 KB
testcase_01 AC 31 ms
9,972 KB
testcase_02 AC 30 ms
9,972 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 30 ms
9,972 KB
testcase_07 WA -
testcase_08 AC 30 ms
9,972 KB
testcase_09 AC 30 ms
9,976 KB
testcase_10 WA -
testcase_11 AC 30 ms
9,972 KB
testcase_12 AC 30 ms
9,972 KB
testcase_13 AC 30 ms
9,972 KB
testcase_14 AC 31 ms
9,972 KB
testcase_15 AC 30 ms
9,972 KB
testcase_16 WA -
testcase_17 AC 29 ms
9,972 KB
testcase_18 AC 30 ms
9,976 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
a=list(map(int,input().split()))
leftexist=sum(a)/2
a.sort()
flg=0
s=0
for i in range(len(a)-1):
        s+=a[i]
        if leftexist==s:
                flg=1
if flg==1:
        print("possible")
else:
        print("impossible")
0