結果
| 問題 | No.4 おもりと天秤 |
| コンテスト | |
| ユーザー |
popketle
|
| 提出日時 | 2019-12-24 11:28:52 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 224 bytes |
| 記録 | |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 21,464 KB |
| 実行使用メモリ | 15,784 KB |
| 最終ジャッジ日時 | 2026-09-01 20:06:32 |
| 合計ジャッジ時間 | 8,165 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 TLE * 1 -- * 17 |
ソースコード
n=int(input())
W=list(map(int,input().split()))
for i in range(2**n):
wr,wl=0,0
for j in range(n):
if i>>j&1:
wr+=W[j]
else:
wl+=W[j]
if wr==wl:
print('possible')
exit()
print('impossible')
popketle