Buggy python submission (verdict: Runtime Error):
def min(a,i)
for t in range(0, i)
  if a[0] > a[t]:
    a[0] = a[t]
  return a[0]

def max(a,i)
for t in range(0, i)
  if a[0] < a[t]:
    a[0] = a[t]
  return a[0]

def sum(a,i)
for t in range(1, i)
  a[0] += a[t]
  return a[0]

i = int(raw_input().split())
a = map(int, raw_input().split())
print "min(a,i) max(a,i) sum(a,i)"

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i)
for t in range(0, i)
  if a[0] > a[t]:
    a[0] = a[t]
  return a[0]

def max(a,i)
for t in range(0, i)
  if a[0] < a[t]:
    a[0] = a[t]
  return a[0]

def sum(a,i)
for t in range(1, i)
  a[0] += a[t]
  return a[0]

i = int(raw_input().split())
a = map(int, raw_input().split())
print "min(a,i) max(a,i) sum(a,i)"

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i)
for t in range(0, i)
  if a[0] > a[t]:
    a[0] = a[t]
  return a[0]

def max(a,i)
for t in range(0, i)
  if a[0] < a[t]:
    a[0] = a[t]
  return a[0]

def sum(a,i)
for t in range(1, i)
  a[0] += a[t]
  return a[0]

i = int(raw_input().split())
a = map(int, raw_input().split())
print "min(a,i) max(a,i) sum(a,i)"

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i)
for t in range(0, i)
  if a[0] > a[t]:
    a[0] = a[t]
  return a[0]

def max(a,i)
for t in range(0, i)
  if a[0] < a[t]:
    a[0] = a[t]
  return a[0]

def sum(a,i)
for t in range(1, i)
  a[0] += a[t]
  return a[0]

i = int(raw_input().split())
a = map(int, raw_input().split())
print min(a,i) max(a,i) sum(a,i)

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i):
for t in range(0, i):
  if a[0] > a[t]:
    a[0] = a[t]
  return a[0]

def max(a,i):
for t in range(0, i):
  if a[0] < a[t]:
    a[0] = a[t]
  return a[0]

def sum(a,i):
for t in range(1, i):
  a[0] += a[t]
  return a[0]

i = int(raw_input().split())
a = map(int, raw_input().split())
print min(a,i) max(a,i) sum(a,i)

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i):
for t in range(0, i):
  if a[0] > a[t]:
    a[0] = a[t]
  return a[0]

def max(a,i):
for t in range(0, i):
  if a[0] < a[t]:
    a[0] = a[t]
  return a[0]

def sum(a,i):
for t in range(1, i):
  a[0] += a[t]
  return a[0]

i = int(raw_input())
a = map(int, raw_input().split())
print min(a,i) max(a,i) sum(a,i)

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i):
  for t in range(0, i):
    if a[0] > a[t]:
      a[0] = a[t]
  return a[0]

def max(a,i):
  for t in range(0, i):
    if a[0] < a[t]:
      a[0] = a[t]
  return a[0]

def sum(a,i):
  for t in range(1, i):
    a[0] += a[t]
  return a[0]

i = int(raw_input())
a = map(int, raw_input().split())
print min(a,i) max(a,i) sum(a,i)

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i):
  for t in range(0, i):
    if a[0] > a[t]:
      a[0] = a[t]
  return a[0]

def max(a,i):
  for t in range(0, i):
    if a[0] < a[t]:
      a[0] = a[t]
  return a[0]

def sum(a,i):
  for t in range(1, i):
    a[0] += a[t]
  return a[0]

i = int(raw_input())
a = map(int, raw_input().split())
print min(a,i) max(a,i) sum(a,i)

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i):
  for t in range(0, i):
    if a[0] > a[t]:
      a[0] = a[t]
  return a[0]

def max(a,i):
  for t in range(0, i):
    if a[0] < a[t]:
      a[0] = a[t]
  return a[0]

def sum(a,i):
  for t in range(1, i):
    a[0] += a[t]
  return a[0]

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % min(a,i) max(a,i) sum(a,i)

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Buggy python submission (verdict: Runtime Error):
def min(a,i):
  for t in range(0, i):
    if a[0] > a[t]:
      a[0] = a[t]
  return a[0]

def max(a,i):
  for t in range(0, i):
    if a[0] < a[t]:
      a[0] = a[t]
  return a[0]

def sum(a,i):
  for t in range(1, i):
    a[0] += a[t]
  return a[0]

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i) max(a,i) sum(a,i))

Fixed submission:
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))