Problem p03110 (python)

Fixed submission:
a = int(input())

b = []

for i in range(a):
    b.append(input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += float(i[0])*380000
    else:
        res += int(i[0])

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in range(a):
    b.append(input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += int(i[0])*380000
    else:
        res += int(i[0])

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in range(a):
    b.append((input().split()))

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in range(a-1):
    b.append((input().split()))

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in range(a-1):
    b.append((input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in range(a-1):
    b.append((input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in a-1:
    b.append((input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in a:
    b.append((input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in a:
    b.append(list(input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in a:
    b.append(list(input().split())

res = 0

for i in b:
    if (b[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in a:
    b.append(input().split())

res = 0

num = a.pop(0) * 2

for i in len(b):
    if (b[i] == 'BTC'):
        c = int(a[i-1]) * 380000
        res += c
    elif (b[i] == 'JPY'):
        res += int(b[i-1])
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in a:
    b.append(input().split())

res = 0

num = a.pop(0) * 2

for i in range(b):
    if (b[i] == 'BTC'):
        c = int(a[i-1]) * 380000
        res += c
    elif (b[i] == 'JPY'):
        res += int(b[i-1])
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):
a = int(input())

b = []

for i in a:
    b.append(input())

res = 0

num = a.pop(0) * 2

for i in range(b):
    if (b[i] == 'BTC'):
        c = int(a[i-1]) * 380000
        res += c
    elif (b[i] == 'JPY'):
        res += int(b[i-1])
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):


a = int(input())

b = []

for i in a*2:
    b.append(input())

res = 0

num = a.pop(0) * 2

for i in range(b):
    if (b[i] == 'BTC'):
        c = int(a[i-1]) * 380000
        res += c
    elif (b[i] == 'JPY'):
        res += int(b[i-1])
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):
a = list(input.split())
res = 0

num = a.pop(0) * 2

for i in range(a):
    if (a[i] == 'BTC'):
        b = int(a[i-1]) * 380000
        res += b
    elif (a[i] == 'JPY'):
        res += int(a[i-1])
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):
a = list(map(string, input.split()))
res = 0

num = a.pop(0) * 2

for i in range(a):
    if (a[i] == 'BTC'):
        b = int(a[i-1]) * 380000
        res += b
    elif (a[i] == 'JPY'):
        res += int(a[i-1])
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):
a = list(map(int, input.split()))
res = 0

num = a.pop(0) * 2

for i in range(a):
    if (a[i] == 'BTC'):
        b = a[i-1] * 380000
        res += b
    elif (a[i] == 'JPY'):
        res += a[i-1]
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):
a = list(map(int, input.split()))
res = 0

num = a.pop(0) * 2

for i in range(num):
    if (a[i] == 'BTC'):
        b = a[i-1] * 380000
        res += b
    elif (a[i] == 'JPY'):
        res += a[i-1]
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):
a = list(map(int, input.split()))
res = 0

num = a.pop(0) * 2

for i in range(num):
    if (i == 'BTC'):
        b = a[i-1] * 380000
        res += b
    elif (i == 'JPY'):
        res += a[i-1]
    else:
        pass

print(res)

Buggy submission (verdict: Runtime Error):
a = list(map(int, input.split()))
res = 0

num = a.pop(0)

for i in range(num):
    if (i == 'BTC'):
        b = a[i-1] * 380000
        res += b
    else:
        res += a[i-1]

print(res)