Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
import math
r = float(input())

s = r * r * math.pi
l = r * 2 * math.pi

print("{0:.5f} {1:.5f}"format(s, l))

Fixed submission:
import math
r = float(input())

s = r * r * math.pi
l = r * 2 * math.pi

print("{0:.5f} {1:.5f}".format(s, l))
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')

         print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
      
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
      
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')

         print()

    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
      
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
      
    print()

Buggy python submission (verdict: Runtime Error):
for vertical in range(h + 1):
    for horizontal in range(vertical):
        if horizontal == 0 or horizontal == vertical - 1\
                or vertical == h:
            print('*', end='')
        else:
            print('+', end='')

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
      
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
      
    print()

Buggy python submission (verdict: Runtime Error):
for vertical in range(h + 1):
    for horizontal in range(vertical):
        if horizontal == 0 or horizontal == vertical - 1\
                or vertical == h:
            print('*', end='')
        else:
            print('+', end='')

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
      
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H-1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
      
    print()
Buggy python submission (verdict: Runtime Error):
while True:
    height, width = [int(x) for x in input().split(" ")]
    if height == width == 0:
        break
    col1 = "#." * 150
    col2 = ".#" * 150
    col_set = col,1[:width] + "\n" + col1[:width] + "\n"
    print(col_set * (height // 2) + (col1[:width] + "\n") * (height % 2))

Fixed submission:
while True:
    h, w = map(int,input().strip().split())
    if h == w == 0: break
    for y in range(h):
        print(''.join('#.'[(x + y) % 2] for x in range(w)))
    print()
Buggy python submission (verdict: Runtime Error):
while True:
    n, x = [int(i) for i in input().split()]

    if n == x == 0:
        break

    count = 0:
    for s in range(1, n // 2 + 1):
        for e in range(n, n // 2, -1):
            m = x - s - e
            if m != s and m != e and m > s and m < e and m <= n:
                count += 1
                
    print(count)

Fixed submission:
while True:
    n, x = [int(i) for i in input().split()]

    if n == x == 0:
        break

    count = 0
    for s in range(1, n - 1):
        for m in range(s + 1, n):
            for e in range(m + 1, n + 1):
                if x == s+m+e:
                    count += 1

    print(count)

Buggy python submission (verdict: Runtime Error):
while True:
    n, x = [int(i) for i in input().split()]

    if n == x == 0:
        break

    count = 0
    for s in range(1, n - 1):
        for m in range(s + 1, n):
            for e in range(m + 1, n + 1):
                if x == sum(s, m, e):
                    count += 1

    print(count)

Fixed submission:
while True:
    n, x = [int(i) for i in input().split()]

    if n == x == 0:
        break

    count = 0
    for s in range(1, n - 1):
        for m in range(s + 1, n):
            for e in range(m + 1, n + 1):
                if x == s+m+e:
                    count += 1

    print(count)
Buggy python submission (verdict: Runtime Error):
print(input).swapcase()

Fixed submission:
print(input().swapcase())

Buggy python submission (verdict: Runtime Error):
print(input.swapcase())

Fixed submission:
print(input().swapcase())
Buggy python submission (verdict: Runtime Error):
import string
count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key, num in string.ascii_lowercase:
    print("{0} : {1}".format(key, count(key)))

Fixed submission:
import string
count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Buggy python submission (verdict: Runtime Error):
import string
count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count(key)))

Fixed submission:
import string
count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))
Buggy python submission (verdict: Runtime Error):
w = input()

ccount = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break
        
      for s in line.lower().split():
          if s == W:
              count += 1

print()

Fixed submission:
while True:
    s = input()
    if s == '-':
        break

    m = int(input())
    for mi in range(m):
        h = int(input())
        s = s[h:] + s[:h]

    print(s)
Buggy python submission (verdict: Runtime Error):
n = int(input())

taro = 0
hanako = 0
for ni in range(n):
    t, h = int().split()
    
    if t < h:
        hanako += 3
    elif t > h:
        taro += 3
    else:
        hanako += 1
        taro += 1
        
print(taro,hanako)

Fixed submission:
n = int(input())

taro = 0
hanako = 0
for ni in range(n):
    t, h = input().split()

    if t < h:
        hanako += 3
    elif t > h:
        taro += 3
    else:
        hanako += 1
        taro += 1

print(taro,hanako)
Buggy python submission (verdict: Runtime Error):
s = input()
q = int(input())

for qi in range(q):
    command = input().split()

    a = int(command[1])
    b = int(command[2])
    if command[0] == 'print':
        print(s[a:b + 1])
    elif command[1] == 'reverse':
        s = s[:a] + reversed(s[a:b + 1]) + s[b + 1:]
    else:
        p = command[3]
        s = s[:a] + p + s[b+1:]

Fixed submission:
s = input()
q = int(input())

for qi in range(q):
    command = input().split()

    a = int(command[1])
    b = int(command[2])
    
    if command[0] == 'print':
        print(s[a:b + 1])
        
    elif command[0] == 'reverse':
        s = s[:a] + s[a:b +1][::-1] + s[b + 1:]
        
    else:
        p = command[3]
        s = s[:a] + p + s[b+1:]

Buggy python submission (verdict: Runtime Error):
s = input()
q = int(input())

for qi in range(q):
    command = input().split()

    a = int(command[1])
    b = int(command[2])
    if command[0] == 'print':
        print(s[a:b + 1])
    elif command[1] == 'reverse':
        s = s[:a] + s[a:b + 1][::-1] + s[b + 1:]
    else:
        p = command[3]
        s = s[:a] + p + s[b+1:]

Fixed submission:
s = input()
q = int(input())

for qi in range(q):
    command = input().split()

    a = int(command[1])
    b = int(command[2])
    
    if command[0] == 'print':
        print(s[a:b + 1])
        
    elif command[0] == 'reverse':
        s = s[:a] + s[a:b +1][::-1] + s[b + 1:]
        
    else:
        p = command[3]
        s = s[:a] + p + s[b+1:]
Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split()]
print(a, b)javascript:void(0)

Fixed submission:
a, b = [int(i) for i in input().split()]
print(a * b, (a + b) * 2)
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = S // 3600
m = (S - S // 3600 * 3600) // 60
s = (S - S // 3600 * 3600) - m * 60
print(h:,m:,s)

Fixed submission:
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = S % 3600 - m * 60
print("{0}:{1}:{2}".format(h,m,s))
Buggy python submission (verdict: Runtime Error):
a, b =int(input())
if a < b:
    print(a < b)
if a > b:
    print(a > b)
if a == b:
    print(a == b)

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b =int(input())
if a < b:
    print("a < b")
if a > b:
    print("a > b")
if a == b:
    print("a == b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split]
if a < b:
    print(a < b)
elif a > b:
    print(a > b)
else a == b:
    print(a == b)

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split]

if a < b:
    print(a < b)
elif a > b:
    print(a > b)
else:
    print(a == b)

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split]

if a < b:
    print("a < b")
if a > b:
    print("a > b")
else:
    print("a == b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")

Fixed submission:
a, b = [int(i) for i in input().split()]

if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")
Buggy python submission (verdict: Runtime Error):
1data = [int(i) for i in input().split()]

data.sort()
print("{0} {1} {2}".format(data[0], data[1], data[2]))

Fixed submission:
data = [int(i) for i in input().split()]

data.sort()
print("{0} {1} {2}".format(data[0], data[1], data[2]))
Buggy python submission (verdict: Runtime Error):
a, b, c = [input(i) for i in input().split()]

total = 0
for d in range(a, b + 1):
    if c % d == 0:
        total += 1

print(total)

Fixed submission:
a, b, c = [int(i) for i in input().split()]

total = 0
for d in range(a, b + 1):
    if c % d == 0:
        total += 1

print(total)
Buggy python submission (verdict: Runtime Error):
a, b = [int(i) for i in input().split()]

d = a // b
r = a % b
f = a / b

print("{0} {1} {2:.5f}.format(d, r, f))

Fixed submission:
a, b = [int(i) for i in input().split()]

d = a // b
r = a % b
f = a / b

print("{0} {1} {2:.5f}".format(d, r, f))
Buggy python submission (verdict: Runtime Error):
import math
r = float(input())

s = r * r * math.pi
a = r * 2 * math.pi

print("{0:.5f} {1:.5f}".format(s, l))

Fixed submission:
import math
r = float(input())

s = r * r * math.pi
l = r * 2 * math.pi

print("{0:.5f} {1:.5f}".format(s, l))
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
        
    for h in range(h):
        for w in range(w):
            print('#', end=(''))
            
        print()
        
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
        
    for h in range(H):
        for w in range(W):
            print('#', end='')
            
        print()
        
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
        
    for h in range(h):
        for w in range(w):
            print('#', end='')
            
        print()
        
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
        
    for h in range(H):
        for w in range(W):
            print('#', end='')
            
        print()
        
    print()
Buggy python submission (verdict: Runtime Error):
data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)]

count = int(input())
for c in range(count):
    card = input()
    data.remove(card)

for c in data:
    print(c)

Fixed submission:
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13 + 1)
]
count = int(input())
for c in range(count):
    card = input()
    data.remove(card)
 
for c in data:
    print(c)

Buggy python submission (verdict: Runtime Error):
data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)]

count = int(input())
for c in range(count):
    card = input()
    data.remove(card)

for c in data:
    print(c)

Fixed submission:
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13 + 1)
]
count = int(input())
for c in range(count):
    card = input()
    data.remove(card)
 
for c in data:
    print(c)

Buggy python submission (verdict: Runtime Error):
data = ["{0} {1}".format(s, r) for s in ('S', 'H', 'C', 'D') for r in range(1, 13, + 1)]

count = int(input())
for c in range(count):
    card = input()
    data.remove(card)

for c in data:
    print(c)

Fixed submission:
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13 + 1)
]
count = int(input())
for c in range(count):
    card = input()
    data.remove(card)
 
for c in data:
    print(c)
Buggy python submission (verdict: Runtime Error):
n, x = [int(i) for i in input().split()]


if n == x == 0:
    break
    
count = 0
for s in range(1, n // 2 + 1):
    for e in range(n, n // 2 +1, - 1):
        m = x - s - e
        if m != s and m != e and m <= n and m > s:
            count += 1
            
    print(count)

Fixed submission:
while True:
    n, x = [int(i) for i in input().split()]


    if n == x == 0:
        break

    count = 0
    for s in range(1, n - 1):
        for m in range(s+1, n):
            for e in range(m+1, n+1):
                if x == sum([s, m, e]):
                    count += 1

    print(count)

Buggy python submission (verdict: Runtime Error):
n, x = [int(i) for i in input().split()]


if n == x == 0:
    break
    
count = 0
for s in range(1, n // 2 + 1):
    for e in range(n, n // 2 +1, - 1):
        m = x - s - e
        if m != s and m != e and m <= n and m > s and m < e:
            count += 1
            
    print(count)

Fixed submission:
while True:
    n, x = [int(i) for i in input().split()]


    if n == x == 0:
        break

    count = 0
    for s in range(1, n - 1):
        for m in range(s+1, n):
            for e in range(m+1, n+1):
                if x == sum([s, m, e]):
                    count += 1

    print(count)
Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join(data[ri]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]

print(" ".join([str(s) for s in sum_row]))

Fixed submission:
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]

print(" ".join([str(s) for s in sum_row]))
Buggy python submission (verdict: Runtime Error):
n, m, l = [int(i) for i in input().split()]

A = []
B = []
C = []

for ni in range(n):
    A.append([int(i) for i in input().split()])

for mi in range(m):
    B.append([int(i) for i in input().split()])

for i in range(n):
    C.append([])
    for j in range(l):
        C[i].append(0)
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]
    
for li in range(l):
    print(" ".join([str(s) for s in C[li]]))

Fixed submission:
n, m, l = [int(i) for i in input().split()]

A = []
B = []
C = []

for ni in range(n):
    A.append([int(i) for i in input().split()])

for mi in range(m):
    B.append([int(i) for i in input().split()])

for i in range(n):
    C.append([])
    for j in range(l):
        C[i].append(0)
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]

for ni in range(n):
    print(" ".join([str(s) for s in C[ni]]))
Buggy python submission (verdict: Runtime Error):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break
    
for c in s:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0 : {1}".format(key, count))

Fixed submission:
import string
  
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
  
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
          
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
          
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Buggy python submission (verdict: Runtime Error):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in s:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0 : {1}".format(key, count[key]))

Fixed submission:
import string
  
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
  
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
          
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
          
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Buggy python submission (verdict: Runtime Error):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0 : {1}".format(key, count[key]))

Fixed submission:
import string
  
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
  
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
          
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
          
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Buggy python submission (verdict: Runtime Error):
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0 : {1}".format(key, count[key]))

Fixed submission:
import string
  
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
  
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
          
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
          
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))
Buggy python submission (verdict: Runtime Error):
W = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break
    
    for s in line.lower.split():
        if s == W:
            count += 1
            
        
    
print(count)

Fixed submission:
W = input().lower()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT':
        break
    
    for s in line.lower().split():
        if s == W:
            count += 1
            
        
    
print(count)
Buggy python submission (verdict: Runtime Error):
S = (int.input())
print(S // 3600 ,":",S // 3600,":",S % 3600 )

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60

print("{0}:{1}:{2}".format(h,m,s))