結果
問題 |
No.4 おもりと天秤
|
ユーザー |
|
提出日時 | 2016-05-26 09:09:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-07 15:27:36 |
合計ジャッジ時間 | 1,617 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 10 |
ソースコード
N=int(input()) A=list(map(int,input().split())) def chk(li): s=sum(li) if s%2==1: return "impossible" li.sort() c=0 for v in li: c+=v if c==s//2: return "possible" if c>s//2: return "impossible" return "impossible" print(chk(A))