fork download
  1. base = input()
  2. h = map(int, input().split())
  3. width = base * 2
  4. h1 = h[h]
  5.  
  6. for h in h1:
  7. height = h1(max) * 2
  8. area = h1(min) * 2
  9. perimter = height + width
  10. print(perimter)
  11. if h1 > 2:
  12. perimter_1 = height - h1(max)
  13. print(perimter_1)
  14. else:
  15. print(str(perimter))
Runtime error #stdin #stdout #stderr 0.03s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
EOFError: EOF when reading a line