Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys


def main():
    count = int(raw_input())
    li = [int(n) for n in raw_input().split()]
    if count%2 == 1: # 奇数
        if li.count(0) != 1:
            print 0
            return
        for i in range(count)[2::2]:
            if li.count(i) != 2:
                print 0
                return
        print 2**(count/2)
    else: # 偶数
        for i in range(count)[1::2]:
            if li.count(i) != 2:
                print 0
                return
        print 2**(count/2)



if __name__ == "__main__":
    main()

Fixed submission:
#!/usr/bin/env python
# -*- coding:utf-8 -*-

def main():
    a, op, b = raw_input().split()
    if op == '+':
        result = int(a) + int(b)
    else:
        result = int(a) - int(b)
    print result


if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

def read_data():
    lines = [line.rstrip() for line in sys.stdin]
    ns = [int(n) for n in lines[1].split()]
    ms = []
    for line in lines[3:]:
        num, sec = line.split()
        ms.append((int(num)-1, int(sec)))
    return ns, ms

def main():
    ns, ms = read_data()
    for (drink_num, drink_sec) in ms:
        result = sum(ns) - ns[drink_num] + drink_sec
        print result


if __name__ == "__main__":
    main()

Fixed submission:
#!/usr/bin/env python
# -*- coding:utf-8 -*-

def main():
    a, op, b = raw_input().split()
    if op == '+':
        result = int(a) + int(b)
    else:
        result = int(a) - int(b)
    print result


if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

def read_data():
    lines = [line.rstrip() for line in sys.stdin]
    ns = [int(n) for n in lines[1].split()]
    ms = [(int(line.split()[0]), int(line.split()[1])) for line in lines[3:]]
    return ns, ms

def main():
    ns, ms = read_data()
    for (drink_num, drink_sec) in ms:
        result = sum(ns) - ns[drink_num-1] + drink_sec
        print result


if __name__ == "__main__":
    main()

Fixed submission:
#!/usr/bin/env python
# -*- coding:utf-8 -*-

def main():
    a, op, b = raw_input().split()
    if op == '+':
        result = int(a) + int(b)
    else:
        result = int(a) - int(b)
    print result


if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())

OP = input(plus_minus)

if OP == "-":
    print(int(A) + int(B))
elif OP == "+":
    print(int(A) - int(B))


Fixed submission:
A, op, B= input().split()


if op =="+":
    print(int(A) + int(B))
elif op =="-":
    print(int(A)-int(B))

Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())

OP = input(plus_minus)

if OP == -:
    print(int(A) + int(B))
elif OP == +:
    print(int(A) - int(B))


Fixed submission:
A, op, B= input().split()


if op =="+":
    print(int(A) + int(B))
elif op =="-":
    print(int(A)-int(B))

Buggy python submission (verdict: Runtime Error):
A = input()
B = input()

op = + or -

print(int(A) + op + int(B))


Fixed submission:
A, op, B= input().split()


if op =="+":
    print(int(A) + int(B))
elif op =="-":
    print(int(A)-int(B))