結果

問題 No.4 おもりと天秤
ユーザー suisanka12suisanka12
提出日時 2023-02-20 13:17:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 71,704 KB
最終ジャッジ日時 2023-09-28 11:57:23
合計ジャッジ時間 3,774 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,184 KB
testcase_01 AC 73 ms
71,600 KB
testcase_02 AC 74 ms
71,600 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 73 ms
71,508 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 73 ms
71,380 KB
testcase_10 WA -
testcase_11 AC 73 ms
71,240 KB
testcase_12 AC 73 ms
71,432 KB
testcase_13 AC 73 ms
71,452 KB
testcase_14 AC 74 ms
71,384 KB
testcase_15 AC 72 ms
71,368 KB
testcase_16 WA -
testcase_17 AC 73 ms
71,452 KB
testcase_18 AC 72 ms
71,556 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
n = int(input())
w = list(map(int, input().split()))
w.sort()
w = list(itertools.accumulate(w))
print("possible" if w[-1]//2 in w else "impossible")
0