結果
問題 |
No.4 おもりと天秤
|
ユーザー |
![]() |
提出日時 | 2017-09-24 09:57:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 324 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 1,253,824 KB |
最終ジャッジ日時 | 2024-11-14 07:05:52 |
合計ジャッジ時間 | 50,714 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 TLE * 1 MLE * 9 |
ソースコード
def ILI(): return list(map(int, input().split())) n = int(input()) wLis = ILI() half = sum(wLis)/2 lis =[0] flag =False for i in wLis: lis+=list(map(lambda z:z+i,lis)) if half in lis: flag =True break if flag: print("possible") else: print("impossible")