結果

問題 No.4 おもりと天秤
ユーザー matrie
提出日時 2020-12-30 12:17:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 172 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 17,060 KB
最終ジャッジ日時 2024-10-07 01:18:14
合計ジャッジ時間 6,959 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 TLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as it
n=int(input())
l=list(map(int,input().split()))+[0]*n
w=sum(l)/2
a="impossible"
for x in it.combinations(l,n):
	if sum(x)==w: a=a[2:]; break
print(a)
0