Browse Source

...

master^2
nwerc-082 3 years ago
parent
commit
1b9d9346a1
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      E.py

+ 7
- 0
E.py View File

@@ -0,0 +1,7 @@
from __future__ import print_function
import sys
n = int(sys.stdin.readline())
ss = map(int, sys.stdin.readline().split())
tt = sorted(enumerate(ss), key = lambda (i,x): -x)
print(" ".join(str(x[0]+1) for x in tt) if tt[0][1] <= sum(ss)-tt[0][1]
else "impossible")

Loading…
Cancel
Save