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

x,y = map(int,input().split())
print(math.gcd(x,y))

Fixed submission:
x,y = map(int,input().split())
while y:
    x,y = y, x%y
print(x)

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

x,y = map(int,input().split())
print(math.gcd(x,y))

Fixed submission:
x,y = map(int,input().split())
while y:
    x,y = y, x%y
print(x)
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
count = 0

for i in range(n):
    data = int(input())
    if data == 2:
        count += 1
    for j in range(2,data):
        if data % j == 0:
            break
        elif j == data - 1:
            count += 1

print(count)

Fixed submission:
n = int(input())
count = 0

for i in range(n):
    data = int(input())
    data = abs(data)
    if data == 2:
        count += 1
    elif pow(2,data-1,data) == 1:
            count += 1

print(count)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
count = 0

for i in range(n):
    data = int(input())
    if data == 2:
        count += 1
    for j in range(2,data):
        if data % j == 0:
            break
        elif j == data - 1:
            count += 1

print(count)

Fixed submission:
n = int(input())
count = 0

for i in range(n):
    data = int(input())
    data = abs(data)
    if data == 2:
        count += 1
    elif pow(2,data-1,data) == 1:
            count += 1

print(count)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
count = 0

for i in range(n):
    data = int(input())
    data = abs(data)
    if data == 2:
        count += 1
    for j in range(2,data):
        if data % j == 0:
            break
        elif j == data - 1:
            count += 1

print(count)

Fixed submission:
n = int(input())
count = 0

for i in range(n):
    data = int(input())
    data = abs(data)
    if data == 2:
        count += 1
    elif pow(2,data-1,data) == 1:
            count += 1

print(count)
Buggy python submission (verdict: Runtime Error):
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
for i in range(n):
    for j in range(i+1,n):
        tmp = R[j]-R[i]
        if profit < tmp:
            profit = tmp
         
print(max(profit))

Fixed submission:
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
mn = R[0]
R.pop(0)
for i in R:
    if profit < i - mn:
        profit = i - mn
        if 0 > i - mn:
            mn = i
    elif mn > i:
        mn = i

print(profit)

Buggy python submission (verdict: Runtime Error):
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
for i in range(n):
    for j in range(i+1,n):
        tmp = R[j]-R[i]
        if profit < tmp:
            profit = tmp
         
print(max(profit))

Fixed submission:
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
mn = R[0]
R.pop(0)
for i in R:
    if profit < i - mn:
        profit = i - mn
        if 0 > i - mn:
            mn = i
    elif mn > i:
        mn = i

print(profit)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
for i in range(n):
    for j in range(i+1,n):
        tmp = R[j]-R[i]
        if profit < tmp:
            profit = tmp

print(profit)

Fixed submission:
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
mn = R[0]
R.pop(0)
for i in R:
    if profit < i - mn:
        profit = i - mn
        if 0 > i - mn:
            mn = i
    elif mn > i:
        mn = i

print(profit)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
for i in range(n):
    for j in range(i+1,n):
        tmp = R[j]-R[i]
        if profit < tmp:
            profit = tmp

print(profit)

Fixed submission:
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
mn = R[0]
R.pop(0)
for i in R:
    if profit < i - mn:
        profit = i - mn
        if 0 > i - mn:
            mn = i
    elif mn > i:
        mn = i

print(profit)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
for i in range(n):
    for j in range(i+1,n):
        tmp = R[j]-R[i]
        if profit < tmp:
            profit = tmp

print(profit)

Fixed submission:
n = int(input())
R = [int(input()) for i in range(n)]
profit= R[1] - R[0]
mn = R[0]
R.pop(0)
for i in R:
    if profit < i - mn:
        profit = i - mn
        if 0 > i - mn:
            mn = i
    elif mn > i:
        mn = i

print(profit)
Buggy python submission (verdict: Runtime Error):
import math
x1,y1,x2,y2 = map(int,input().split())
D = math.sqrt((x2-x1)**2+(y2-y1)**2)
print(D)

Fixed submission:
import math
 
x1,y1,x2,y2=list(map(float,input().split()))
 
print(math.sqrt((x2-x1)**2+(y2-y1)**2))

Buggy python submission (verdict: Runtime Error):
import math
x1,y1,x2,y2 = map(int,input().split())
D = math.sqrt((x2-x1)**2 + (y2-y1)**2)
print(D)

Fixed submission:
import math
 
x1,y1,x2,y2=list(map(float,input().split()))
 
print(math.sqrt((x2-x1)**2+(y2-y1)**2))

Buggy python submission (verdict: Runtime Error):
# coding:utf-8
import math
x1,y1,x2,y2 = map(int,input().split())
D = math.sqrt((x2-x1)**2+(y2-y1)**2)
print(D)

Fixed submission:
import math
 
x1,y1,x2,y2=list(map(float,input().split()))
 
print(math.sqrt((x2-x1)**2+(y2-y1)**2))
Buggy python submission (verdict: Runtime Error):
W,H,x,y,r = map(int,raw_input().split())

if (r <= x <= W-r) AND (r < y < H-r):
    print"Yes"
else:
    print"No"

Fixed submission:
W,H,x,y,r = map(int,raw_input().split())

if (r <= x <= W - r) and (r <= y <= H - r):
    print "Yes"
else:
    print "No"
Buggy python submission (verdict: Runtime Error):
i=0
while 1:
    x = raw_index()
    i++
    print "Case" i":"x
    break()

Fixed submission:

i=0
while 1:
    x = raw_input()
    if x == "0":
        break
    i = i+1
    print "Case %s: %s" %(i,x)

Buggy python submission (verdict: Runtime Error):
i=0
while 1:
    x = raw_index()
    i++
    if x == 0:
        break()
    print 'Case %s: %s' % (i,x)

Fixed submission:

i=0
while 1:
    x = raw_input()
    if x == "0":
        break
    i = i+1
    print "Case %s: %s" %(i,x)

Buggy python submission (verdict: Runtime Error):
i=0
while 1:
    x = raw_index()
    i++
    if x == 0:
        break
    print 'Case %s: %s' % (i,x)

Fixed submission:

i=0
while 1:
    x = raw_input()
    if x == "0":
        break
    i = i+1
    print "Case %s: %s" %(i,x)

Buggy python submission (verdict: Runtime Error):
i=0
while 1:
    x = raw_index()
    i = i + 1
    if x == 0:
        break
    print 'Case %s: %s' % (i,x)

Fixed submission:

i=0
while 1:
    x = raw_input()
    if x == "0":
        break
    i = i+1
    print "Case %s: %s" %(i,x)
Buggy python submission (verdict: Runtime Error):
while 1:
    a,op,b = map(int,input().split())
    if op == "+":
        print(a + b)
    elif op == "-":
        print(a - b)
    elif op == "*":
        print(a * b)
    elif op == "/":
        print(a // b)
    else:
        break

Fixed submission:
while 1:
    data = input()
    if "?" in data:
        break
    print(eval(data.replace("/","//")))

Buggy python submission (verdict: Runtime Error):
while 1:
    a,op,b = map(int,input().split())
    if op == "+":
        print(int(a) + int(b))
    elif op == "-":
        print(int(a) - int(b))
    elif op == "*":
        print(int(a) * int(b))
    elif op == "/":
        print(int(a) // int(b))
    else:
        break

Fixed submission:
while 1:
    data = input()
    if "?" in data:
        break
    print(eval(data.replace("/","//")))
Buggy python submission (verdict: Runtime Error):
while 1:
    H,W = map(int,input().split())
    if H == 0 or W == 0:
        break
    else:
        x = ["#"] * W
        for i in(H+1):
            print(x)

Fixed submission:
while 1:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    x = "#" * W
    for i in range(H):
        print(x)
    print("")
Buggy python submission (verdict: Runtime Error):
while 1:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    print ("#") * W
    for i in range(H-2):
        print ("#" + "." * (W-2) + "#")
    print ("#") * W
    print ("")

Fixed submission:
while 1:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    print ("#"* W)
    for i in range(H-2):
        print ("#" + "." * (W-2) + "#")
    print ("#"* W)
    print ("")
Buggy python submission (verdict: Runtime Error):
while 1:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    col1 = "#." * (W + 1) // 2
    col2 = ".#" * (W + 1) // 2
    print((col1[:W] + "\n" + col2[:W] + "\n") * (H // 2) + (col1[:W] + "\n") * H % 2)

Fixed submission:
while 1:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    col1 = "#." * ((W + 1) // 2)
    col2 = ".#" * ((W + 1) // 2)
    print((col1[:W] + "\n" + col2[:W] + "\n") * (H // 2) + (col1[:W] + "\n") * (H % 2))

Buggy python submission (verdict: Runtime Error):
while 1:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    col1 = "#." * (W + 1) // 2
    col2 = ".#" * (W + 1) // 2
    print((col1[:W] + "\n" + col2[:W] + "\n") * (H // 2) + (col1[:W] + "\n") * H % 2)

Fixed submission:
while 1:
    H,W = map(int,input().split())
    if H == 0 and W == 0:
        break
    col1 = "#." * ((W + 1) // 2)
    col2 = ".#" * ((W + 1) // 2)
    print((col1[:W] + "\n" + col2[:W] + "\n") * (H // 2) + (col1[:W] + "\n") * (H % 2))
Buggy python submission (verdict: Runtime Error):
input()
a = input().split()
print(" ".join(a.reverse()))

Fixed submission:
input()
a = input().split()
a.reverse()
print(" ".join(a))
Buggy python submission (verdict: Runtime Error):
cards = []
mark = ["S","H","C","D"]
for i in (mark):
    for j in range(1,14):
        cards.append( i + " " + str(j) )
print(cards)
n = int(input())
for i in range(n+1):
    a = input()
    cards.remove(a)
print(a)

Fixed submission:
cards = list()
mark = ["S","H","C","D"]
for i in (mark):
    for j in range(1,14):
        cards.append( i + " " + str(j) )
n = int(input())
for i in range(n):
    a = input()
    cards.remove(a)
if len(cards) > 0:
    print("\n" .join(cards))

Buggy python submission (verdict: Runtime Error):
cards = []
mark = ["S","H","C","D"]
for i in (mark):
    for j in range(1,14):
        cards.append( i + " " + str(j) )
print(cards)
n = int(input())
for i in range(n+1):
    a = input()
    cards.remove(a)
print(a)

Fixed submission:
cards = list()
mark = ["S","H","C","D"]
for i in (mark):
    for j in range(1,14):
        cards.append( i + " " + str(j) )
n = int(input())
for i in range(n):
    a = input()
    cards.remove(a)
if len(cards) > 0:
    print("\n" .join(cards))

Buggy python submission (verdict: Runtime Error):
cards = []
mark = ["S","H","C","D"]
for i in (mark):
    for j in range(1,14):
        cards.append( i + " " + str(j) )
print(cards)
n = int(input())
for i in range(n+1):
    a = input()
    cards.remove(a)
print(a)

Fixed submission:
cards = list()
mark = ["S","H","C","D"]
for i in (mark):
    for j in range(1,14):
        cards.append( i + " " + str(j) )
n = int(input())
for i in range(n):
    a = input()
    cards.remove(a)
if len(cards) > 0:
    print("\n" .join(cards))

Buggy python submission (verdict: Runtime Error):
cards = []
mark = ["S","H","C","D"]
for i in (mark):
    for j in range(1,14):
        cards.append( i + " " + str(j) )
print(cards)
n = int(input())
for i in range(n+1):
    a = input()
    cards.remove(a)
print(cards)

Fixed submission:
cards = list()
mark = ["S","H","C","D"]
for i in (mark):
    for j in range(1,14):
        cards.append( i + " " + str(j) )
n = int(input())
for i in range(n):
    a = input()
    cards.remove(a)
if len(cards) > 0:
    print("\n" .join(cards))
Buggy python submission (verdict: Runtime Error):
while 1:
    n,x = map(int,input().split())
    count == 0
    if n == 0 and x == 0:
        break

    for i in range(1,n+1):
        for j in range(i+1,n+1):
            for k in range(j+1,n+1):
                if i + j + k == x:
                    count += 1
    print(count)

Fixed submission:
while 1:
    n,x = map(int,input().split())
    count = 0
    if n == 0 and x == 0:
        break

    for i in range(1,n+1):
        for j in range(i+1,n+1):
            for k in range(j+1,n+1):
                if i + j + k == x:
                    count += 1
    print(count)
Buggy python submission (verdict: Runtime Error):
while 1:
    x = input()
    if x[0] == 0:
        break
    print (sum(int(i)for i in x
    ))

Fixed submission:
while 1:
    x = input()
    if x[0] == "0":
        break
    print (sum(int(i)for i in x))

Buggy python submission (verdict: Runtime Error):
while 1:
    x = input()
    if x[0] == 0:
        break
    print (sum(int(i)for i in x))

Fixed submission:
while 1:
    x = input()
    if x[0] == "0":
        break
    print (sum(int(i)for i in x))
Buggy python submission (verdict: Runtime Error):
a = input()
alphabet = "abcdefghijklmnopqrstuvwxyz"

for i in alphabet:
    print(i + " : " + a.lower().count() )

Fixed submission:
import sys

a = sys.stdin.read()
alphabet = "abcdefghijklmnopqrstuvwxyz"

for i in alphabet:
    print(i + " : " + str(a.lower().count(i)) )

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

a = sys.stdin.readline
alphabet = "abcdefghijklmnopqrstuvwxyz"

for i in alphabet:
    print(i + " : " + str(a.lower().count(i)) )

Fixed submission:
import sys

a = sys.stdin.read()
alphabet = "abcdefghijklmnopqrstuvwxyz"

for i in alphabet:
    print(i + " : " + str(a.lower().count(i)) )
Buggy python submission (verdict: Runtime Error):
# coding: utf-8

def bubblesort(ls):
    count = 0
    
    for i in range(1, len(ls)):
        for j in reversed(range(i, len(ls))):
            if ls[j] < ls[j-1]:
                ls[j], ls[j-1] = ls[j-1], ls[j]
                count += 1
    return count

def main():
    trash = input()
    ls = list(map(int, input))

    i = bubblesort(ls)

    print(ls)
    print(i)
    
if __name__ == '__main__':
    main()

Fixed submission:
# coding: utf-8

def bubblesort(ls):
    count = 0
    
    for i in range(1, len(ls)):
        for j in reversed(range(i, len(ls))):
            if ls[j] < ls[j-1]:
                ls[j], ls[j-1] = ls[j-1], ls[j]
                count += 1
    return count

def main():
    trash = input()
    ls = list(map(int, input().split(' ')))

    i = bubblesort(ls)

    print(' '.join((map(str,ls))))
    print(i)
    
if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
def main():
    def inputs():
        li = []
        string = input()
        count = 0
        while count < 201 and string != "":
            li.append(string)
            string = input()
            count += 1
        return li

    li = inputs()
    for x in li:
        a = x.split(" ")
        print(int(a[0]) + int(a[1]))
    return None

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    def inputs():
        li = []
        count = 0
        try:
            while count < 200:
                li.append(input())
                count += 1
        except EOFError:
            return li
        return li

    li = inputs()
    for x in li:
        a = x.split(" ")
        result = len(str(int(a[0]) + int(a[1])))
        print(result)
    return None

if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
def main():
    n = input()
    li = [input() for _ in n]
    li = sorted(li)
    a,b,c = int(li[0]),int(li[1]),int(li[2])
    if (a ** 2 + b **2) == c**2:
        print("YES")
    else:
        print("NO")

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    n = int(input())
    while True:
        try:
            num_list = [int(i) for i in input().split()]
            num_list = sorted(num_list)
            a,b,c = num_list[0],num_list[1],num_list[2]
            if (a**2 + b**2) == c**2:
                print("YES")
            else:
                print("NO")
        except EOFError:
            break
    return None

if __name__ == '__main__':
    main()

Buggy python submission (verdict: Runtime Error):
def main():
    n = int(input())
    if n <= 0:
        return None
    li = [int(input()) for _ in range(n)]
    li = sorted(li)
    for x in li:
        tmp = x.split(" ")
        tmp = sorted(tmp)
        a,b,c = tmp[0],tmp[1],tmp[2]
        if (a**2 + b**2) == c**2:
            print("YES")
        else:
            print("NO")
    return None

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    n = int(input())
    while True:
        try:
            num_list = [int(i) for i in input().split()]
            num_list = sorted(num_list)
            a,b,c = num_list[0],num_list[1],num_list[2]
            if (a**2 + b**2) == c**2:
                print("YES")
            else:
                print("NO")
        except EOFError:
            break
    return None

if __name__ == '__main__':
    main()

Buggy python submission (verdict: Runtime Error):
def main():
    n = int(input())
    while True:
        try:
            li = [int(i) for i in input().split()]
            li = sorted(li)
            for x in li:
                tmp = x.split(" ")
                for i in range(len(tmp)):
                    tmp[i] = int(tmp[i])
                tmp = sorted(tmp)
                a,b,c = tmp[0],tmp[1],tmp[2]
                if (a**2 + b**2) == c**2:
                    print("YES")
                else:
                    print("NO")
        except EOFError:
            break
    return None

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    n = int(input())
    while True:
        try:
            num_list = [int(i) for i in input().split()]
            num_list = sorted(num_list)
            a,b,c = num_list[0],num_list[1],num_list[2]
            if (a**2 + b**2) == c**2:
                print("YES")
            else:
                print("NO")
        except EOFError:
            break
    return None

if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
import math
def main():
    def get_inputs():
        input_list = []
        try:
            while True:
                input_list.append(input())
        except EOFError:
            return input_list

    input_list = get_inputs()
    lcm = lambda a,b: a*b / math.gcd(a,b)
    for str_num in input_list:
        tmp = str_num.split(" ")
        a,b = int(tmp[0]),int(tmp[1])
        x = math.gcd(a,b)
        y = int(lcm(a,b))
        print("{} {}".format(x,y))
    return None


if __name__ == '__main__':
    main()

Fixed submission:
def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)

def lcm(a, b):
    return (a * b) // gcd(a,b)


while True:
    try:
        a, b = [int(i) for i in input().split()]
        print(gcd(a, b), lcm(a, b))
    except EOFError:
        break

Buggy python submission (verdict: Runtime Error):
import math
def main():
    def get_inputs():
        input_list = []
        try:
            while True:
                input_list.append(input())
        except EOFError:
            return input_list

    input_list = get_inputs()
    lcm = lambda a,b: a*b / math.gcd(a,b)
    for str_num in input_list:
        tmp = str_num.split(" ")
        a,b = int(tmp[0]),int(tmp[1])
        x = math.gcd(a,b)
        y = int(lcm(a,b))
        print("{} {}".format(x,y))
    return None


if __name__ == '__main__':
    main()

Fixed submission:
def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)

def lcm(a, b):
    return (a * b) // gcd(a,b)


while True:
    try:
        a, b = [int(i) for i in input().split()]
        print(gcd(a, b), lcm(a, b))
    except EOFError:
        break

Buggy python submission (verdict: Runtime Error):
import math
def main():
    def get_inputs():
        input_list = []
        count = 0
        try:
            while count < 50:
                input_list.append(input())
                count += 1
        except EOFError:
            return input_list

    input_list = get_inputs()
    lcm = lambda a,b: a*b / math.gcd(a,b)
    for str_num in input_list:
        tmp = str_num.split(" ")
        a,b = int(tmp[0]),int(tmp[1])
        x = math.gcd(a,b)
        y = int(lcm(a,b))
        print("{} {}".format(x,y))
    return None


if __name__ == '__main__':
    main()

Fixed submission:
def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)

def lcm(a, b):
    return (a * b) // gcd(a,b)


while True:
    try:
        a, b = [int(i) for i in input().split()]
        print(gcd(a, b), lcm(a, b))
    except EOFError:
        break
Buggy python submission (verdict: Time Limit Exceeded):
prime_list = [2,3,5,7,11]
def appendp(num):
    for i in range(prime_list[-1], num+1, 2):
        for j in prime_list:
            if i % j == 0 or i in prime_list:
                break
            if j == prime_list[-1]:
                prime_list.append(i)

def prime_number():
    n = int(input())
    count = 0
    for _ in range(n):
        a = int(input())
        if a > prime_list[-1]:
            appendp(a)
        if a in prime_list:
            count += 1
    print(count)


if __name__ == "__main__":
    prime_number()

Fixed submission:
def isPrime(num):
    if num < 2: return False
    if num == 2: return True
    if num % 2 == 0: return False
    sqrtnum = num ** 0.5
    for i in range(3, int(sqrtnum + 1), 2):
        if num % i == 0:
            return False
    return True


def prime_number():
    n = int(input())
    count = 0
    for _ in range(n):
        a = int(input())
        if isPrime(a):
            count += 1
    print(count)

if __name__ == "__main__":
    prime_number()
Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print("{:.6f} {:.6f}".format((r*r*pi), (2*r*pi)))

Fixed submission:
from math import pi
r = float(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print("{:.6f} {:.6f}".format((r*r*pi), (2*r*pi)))

Fixed submission:
from math import pi
r = float(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print("{:.6f} {:.6f}".format(float(r*r*pi), float(2*r*pi)))

Fixed submission:
from math import pi
r = float(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Fixed submission:
from math import pi
r = float(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Buggy python submission (verdict: Runtime Error):
from math import pi
r = int(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Fixed submission:
from math import pi
r = float(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Buggy python submission (verdict: Runtime Error):
pi = 3.1415926535
r = int(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Fixed submission:
from math import pi
r = float(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Buggy python submission (verdict: Runtime Error):
pi=3.1415926535
r = int(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))

Fixed submission:
from math import pi
r = float(input())
print("{0:.6f} {1:.6f}".format(float(r*r*pi), float(2*r*pi)))