buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
a = [] b = [] while True: x,y = map(int,input().split()) if x == 0 and y == 0: break else: a.append(x) b.append(y) for i in range(0,len(a)): if a[i] >= b[i]: print(a[i],b[i]) elif a[i] < b[i]: print(b[i],a[i])
a = [] b = [] while True: x,y = map(int,input().split()) if x == 0 and y == 0: break else: a.append(x) b.append(y) for i in range(0,len(a)): if a[i] >= b[i]: print(b[i],a[i]) elif a[i] < b[i]: print(a[i],b[i])
[["-", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22]]
5
110
while True: x, y = map(int, input().split(" ")) if x == 0 and y == 0: break elif x < y: print(x, y) elif x > y: print(y, x)
# -*- coding: utf-8 -*- while True: x, y = map(int, input().split(" ")) if x == 0 and y == 0: break elif x <= y: print(x, y) elif x >= y: print(y, x)
[["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]]
5
54
import sys while(True): x,y = map(int, sys.stdin.readline().split()) if x==0 and y==0 : break elif x<y : print(x,y) elif x>y : print(y,x)
import sys while(True): x,y = map(int, sys.stdin.readline().split()) if x==0 and y==0 : break elif x<=y : print(x,y) elif x>y : print(y,x)
[["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
59
while True: x, y = map(int, input().split()) if x == 0 or y == 0: break if x > y: x, y = y, x print(x, y)
while True: x, y = map(int, input().split()) if x == 0 and y == 0: break if x > y: x, y = y, x print(x, y)
[["-", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355]]
5
47
while True: x, y = [int(n) for n in input().split()] if x or y: break if x < y: print(x, y) else: print(y, x)
while True: x, y = [int(n) for n in input().split()] if not (x or y): break if x < y: print(x, y) else: print(y, x)
[["+", 0, 52, 8, 196, 0, 57, 15, 681, 0, 372], ["+", 8, 196, 0, 57, 15, 681, 28, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 681, 28, 23, 0, 25]]
5
48
import sys while 1: str = sys.stdin.readline().strip() if str=="0 0": break print(sorted(str.split(" "), key=int))
import sys while 1: str = sys.stdin.readline().strip() if str=="0 0": break print(" ".join(sorted(str.split(" "), key=int)))
[["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 654], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 655], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
44
import sys for i in sys.stdin: i = i.split(" ") x, y = int(i[0]), int(i[1]) if x == y == 0: break elif x <= y: print('{0} {1}'.format(x, y)) else: pritn('{0} {1}'.format(y, x))
import sys for i in sys.stdin: i = i.split(" ") x, y = int(i[0]), int(i[1]) if x == y == 0: break elif x <= y: print("{0} {1}".format(x, y)) else: print("{0} {1}".format(y, x))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 654], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 654], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 655], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 655], ["-", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22]]
5
79
import sys while True: a,b=map(int,stdin.readline().split()) if a==0 and b==0: break if a<b:print(a,b) else:print(b,a)
import sys while True: a,b=map(int,sys.stdin.readline().split()) if a==0 and b==0: break if a<b:print(a,b) else:print(b,a)
[["+", 63, 319, 500, 652, 63, 319, 500, 319, 500, 22], ["+", 63, 319, 500, 652, 63, 319, 500, 319, 0, 131]]
5
52
xy_data=[] while True: xy=list(map(int,input().split())) xy.sort() print(xy) if xy[0]==xy[1]==0: break else: xy_data.append(xy) for xy in xy_data: print(*xy)
xy_data=[] while True: xy=list(map(int,input().split())) xy.sort() if xy[0]==xy[1]==0: break else: xy_data.append(xy) for xy in xy_data: print(*xy)
[["-", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
65
list1=[] while True: x = str(input("")) if x == "0": break else: list1.append(x) for i,v in enumerate(list1): x,y = map(int,v.split()) if x < y: print(str(x) + " " + str(y)) else: print(str(y) + " " + str(x))
list1=[] while True: x = input("") if x == "0 0": break else: list1.append(x) for i,v in enumerate(list1): x,y = map(int,v.split()) if x <= y: print(str(x) + " " + str(y)) else: print(str(y) + " " + str(x))
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 6], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]]
5
96
ret = [] while True: x = input().split() if int(x[0]) == int(x[1]) == 0: break if int(x[0]) > int(x[1]): ret += ['%s %s' % (x[0], x[1])] else: ret += ['%s %s' % (x[1], x[0])] for x in ret: print(x)
ret = [] while True: x = input().split() if int(x[0]) == int(x[1]) == 0: break if int(x[0]) > int(x[1]): ret += ['%s %s' % (x[1], x[0])] else: ret += ['%s %s' % (x[0], x[1])] for x in ret: print(x)
[["-", 12, 634, 0, 657, 12, 660, 0, 206, 206, 612], ["+", 12, 634, 0, 657, 12, 660, 0, 206, 206, 612]]
5
102
while True : tmp = input(); tmp = tmp.split(" ") x,y = list(map(int,tmp)) if x == 0 and y == 0 : break; x,y = y,x print(x,y)
while True : tmp = input(); tmp = tmp.split(" ") x,y = list(map(int,tmp)) if x == 0 and y == 0 : break; if x > y : x,y = y,x print(x,y)
[["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 102], ["+", 64, 196, 0, 1, 0, 662, 31, 684, 0, 22]]
5
56
while True: x,y = list(map(int,row_input().split())) if x==0 and y==0: break else: n=sorted([x,y]) print(n[0],n[1])
while True: x,y = list(map(int,input().split())) if x==0 and y==0: break else: n=sorted([x,y]) print(n[0],n[1])
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]]
5
56
result = [] while True: my_value = input() my_value_list = [] my_value_list = ([int(x) for x in my_value.split()]) my_value_list.sort() result.append(my_value_list) if my_value_list[0] == 0 and my_value_list[1] == 0: break for i in range(0, len(result)): print("{} {}".format(result[...
result = [] while True: my_value = input() my_value_list = [] my_value_list = ([int(x) for x in my_value.split()]) my_value_list.sort() result.append(my_value_list) if my_value_list[0] == 0 and my_value_list[1] == 0: result.pop() break for i in range(0, len(result)): print("...
[["+", 64, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
99
import sys while True : a, b = map(int, sys.stdin.readline().stlip()) if (a == 0) & (b == 0) : break if a < b : print(a, b) else : print(b, a)
import sys while True : a, b = map(int, sys.stdin.readline().split()) if (a == 0) & (b == 0) : break if a < b : print(a, b) else : print(b, a)
[["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22]]
5
58
while True: a=list(map(int,input().split())) if a==[0,0]: quit() print(*a[::-1])
while True: a=sorted(map(int,input().split())) if a==[0,0]: quit() print(*a)
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 0, 70], ["-", 0, 652, 3, 4, 0, 206, 206, 663, 0, 102], ["-", 3, 4, 0, 206, 206, 663, 0, 664, 17, 33], ["-", 3, 4, 0, 206, 206, 663, 0, 664, 28, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73]]
5
43
a, b = map(int, input().split()) d = a // b r = a % b f = a / b print('{0}{1}{2:f}'.format(d,r,f))
a, b = map(int, input().split()) d = int(a / b) r = a % b f = a / b print('{0} {1} {2:f}'.format(d,r,f))
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
46
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))
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))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
50
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))
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))
[["-", 0, 652, 3, 4, 0, 319, 500, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["-", 3, 4, 0, 652, 3, 4, 0, 319, 0, 131]]
5
50
a, b = list(map(int, input().split())) print("{0} {1} {2}".format(a, b, format(a / b, '.5f')))
a, b = list(map(int, input().split())) print("{0} {1} {2}".format(a//b, a%b, format(a / b, '.5f')))
[["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 109]]
5
43
a,b = [int(e) for e in input().split()] print('{0} {1} {:f}'.format(a//b, a%b, a/b))
a, b = [int(x) for x in input().split()] print('{0} {1} {2:f}'.format(a//b, a%b, a/b))
[["-", 0, 662, 12, 658, 8, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 662, 12, 658, 0, 659, 31, 22], ["+", 0, 1, 0, 662, 12, 658, 0, 659, 31, 22], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
41
x = input().split() x_int = [int(i) for i in x] d = x_int[0]//x_int[1] r = x_int[0] % x_int[1] f = (x_int[0]) / (x_int[1]) print('{0} {1} {2:e}'.format(d,r,f))
x = input().split() x_int = [int(i) for i in x] d = x_int[0]//x_int[1] r = x_int[0] % x_int[1] f = (x_int[0]) / (x_int[1]) print('{0} {1} {2:f}'.format(d,r,f))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
73
a, b = map(int, input().split()) d = int(a/b) r = a %b f = a / b print("%d %d %d" % (d, r, f))
a, b = map(int, input().split()) d = int(a/b) r = a %b f = a / b print("%d %d %.5f" % (d, r, f))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
48
a,b = list(map(int,input().split())) d = int(a / b) r = int(a % b) f = float(a / b) print("{0:d} {1:d} {2:d}".format( d, r, f))
a,b = list(map(int,input().split())) d = int(a / b) r = int(a % b) f = float(a / b) print("{0:d} {1:d} {2:f}".format( d, r, f))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
58
a, b = map(int, input().split()) d = a // b r = a % b f = float(a / b) print('{0} {1} [2:0.5f}'.format(d, r, f))
a, b = map(int, input().split()) d = a // b r = a % b f = float(a / b) print('{0} {1} {2:0.5f}'.format(d, r, f))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
49
a,b = map(int,input().split()) print('{},{},{:.5f}'.format(a//b,a%b,a/b))
a,b = map(int,input().split()) print('{} {} {:.5f}'.format(a//b,a%b,a/b))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
37
a,b=map(int, input().split()) print(a//b, a%b, "{0:.5f}"/format(a/b))
a,b=map(int, input().split()) print(a//b, a%b, "{0:.5f}".format(a/b))
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
37
a,b = map(int, input().split()) x = a//b y = a%b g = a/b print("{0} {1} {2:.5f}", format(x,y,g))
a,b = map(int, input().split()) x = a//b y = a%b g = a/b print("{0} {1} {2:.5f}".format(x,y,g))
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
46
a, b = map(int, input().split()) print("%d %d %f"%((a+b), (a%b), (a/b)))
a, b = map(int, input().split()) print("%d %d %f"%((a//b), (a%b), (a/b)))
[["-", 0, 657, 12, 660, 0, 23, 0, 657, 17, 72], ["+", 0, 657, 12, 660, 0, 23, 0, 657, 17, 676]]
5
42
import math def main(): data = [] n = input().split() a = int(n[0]) b = int(n[1]) divans = a / b intdiv = int(divans) divr = a % b print("{0} {1} {:.5f}".format(intdiv, divr, divans)) if __name__ == '__main__': main()
def main(): data = [] n = input().split() a = int(n[0]) b = int(n[1]) divans = a / b intdiv = int(divans) divr = a % b print("{0} {1} {2:.5f}".format(intdiv, divr, divans)) if __name__ == "__main__": main()
[["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["-", 0, 656, 0, 57, 15, 666, 0, 557, ...
5
79
a,b = map(int,input().split()) d = int(a / b) r = a % b f = 0 f = float(f) f = float(a / b) print('{0} {1}???%.8f'.format(d,r) % f)
a,b = map(int,input().split()) d = int(a / b) r = a % b f = 0 f = float(f) f = float(a / b) print('{0} {1} %.8f'.format(d,r) % f)
[["-", 0, 657, 31, 652, 63, 319, 500, 557, 0, 6], ["+", 0, 657, 31, 652, 63, 319, 500, 557, 0, 6]]
5
61
i,j= map(int, input().split()) print("{0:d} {1:d} {0:.5f}".format(i//j,i%j))
i,j= map(int, input().split()) print("{0:d} {1:d} {2:.5f}".format(i//j,i%j,i/j))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85]]
5
33
a, b = map(int, input().split()) d = round(a/b) r = a%b f = a/b print('{} {} {}'.format(d, r, f))
a, b = map(int, input().split()) d = int(a/b) r = a%b f = a/b print('{} {} {:0.9f}'.format(d, r, f))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
49
a, b = [int(n) for n in src.readline().split()] print('%s %s %.5f' % (a//b, a%b, a/b))
a, b = [int(n) for n in input().split()] print('%s %s %.5f' % (a//b, a%b, a/b))
[["-", 12, 652, 63, 319, 500, 652, 63, 319, 500, 22], ["-", 12, 652, 63, 319, 500, 652, 63, 319, 0, 131], ["-", 12, 652, 63, 319, 500, 652, 63, 319, 319, 22], ["+", 0, 659, 12, 652, 63, 319, 500, 652, 63, 22]]
5
42
a, b = map(float, input().split()) print(a//b, a%b, "{0:.f}".format(a/b))
a, b = map(float, input().split()) print(a//b, a%b, "{0:f}".format(a/b))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
37
a, b= map(int, input(). split()) d = a / b r = a % b f = "%.5F"%(a/b) print(str(d) + " " + str(r) + " " +str(f))
a, b= map(int, input(). split()) d = a // b r = a % b f = "%.5F"%(a/b) print(str(d) + " " + str(r) + " " +str(f))
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
62
import math a, b = map(int, input().split()) d = a // b r = math.floor(a / b) f = round(a / b, 6) print('{d} {r} {f:.5f}'.format(d=d, r=r, f=f))
import math a, b = map(int, input().split()) d = a // b r = math.floor(a % b) f = round(a / b, 6) print('{d} {r} {f:.5f}'.format(d=d, r=r, f=f))
[["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 109]]
5
64
a, b = [int(x) for x in input().split()] d = a // b r = a % b f = a / b print(d, r, "0:.6f".format(f))
a, b = [int(x) for x in input().split()] d = a // b r = a % b f = a / b print(d, r, "{:f}".format(f))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
50
a, b = map(int, input().split()) #x = a // b #y = a % b #z = a / b print("%d %d %f".format(a//b, a%b,a/b))
a, b = map(int, input().split()) print("%d %d %f" % (a//b, a%b, a/b))
[["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 109]]
5
40
a,b = map(int,input().split()) d = a/b r = a%b f = a/b print('%s %s %.5f'%(d,r,f))
a,b = map(int,input().split()) d = a//b r = a%b f = a/b print('%s %s %.5f'%(d,r,f))
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
45
a, b = map(int, input().split()) d = a // b r = a % b f = a / b print("{:d} {;d} {:.5f}".format(d, r, f))
a, b = map(int, input().split()) d = a // b r = a % b f = a / b print("{:d} {:d} {:.5f}".format(d, r, f))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
46
a, b = map(int, input().split()) print("%d %d %.5f" % a//b, a%b, a/b)
a, b = map(int, input().split()) print("%d %d %.5f" % (a//b, a%b, a/b))
[["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 24], ["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 25]]
5
34
a,b= list(map(int,input().split())) print("%d,%d,%5f" %(a/b, a%b, float(a)/b))
a,b= list(map(int,input().split())) print("%d %d %5f" %(a/b, a%b, float(a)/b))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
42
#include <stdio.h> int main(void) { int a, b; char op; do { scanf("%d %c %d", &a, &op, &b); if (op == '+') printf("%d\n", a + b); else if (op == '-') printf("%d\n", a - b); else if (op == '*') printf("%d\n", a * b); else if (op == '/') printf("%d\n", a / b); else...
#include <stdio.h> int main(void) { int a, b; char op; do { scanf("%d %c %d", &a, &op, &b); if (op == '+') printf("%d\n", a + b); else if (op == '-') printf("%d\n", a - b); else if (op == '*') printf("%d\n", a * b); else if (op == '/') printf("%d\n", a / b); } whi...
[["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 1, 0, 2, 63, 22], ["-", 75, 76, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 75, 76, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 75, 76, 0, 57, 75, 76, 0, 1, 0, 35]]
1
143
#include <stdio.h> int main() { int a, b; char op; while (1) { scanf("%d %c %d", &a, &op, &b); if (op == '?') break; if (op == '+') printf("%d", a + b); if (op == '-') printf("%d", a - b); if (op == '*') printf("%d", a * b); if (op == '/') printf("%d", a / ...
#include <stdio.h> int main() { int a, b; char op; while (1) { scanf("%d %c %d", &a, &op, &b); if (op == '?') break; if (op == '+') printf("%d", a + b); if (op == '-') printf("%d", a - b); if (op == '*') printf("%d", a * b); if (op == '/') printf("%d", a / ...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
127
(function(input) { var lines = input.split('\n'); var n = Number(lines[0]); var items = lines[1].split(' ').map(Number); var min = Infinity, max = 0, sum = 0; for (var i = 0; i < items.length; i++) { var a = items[i]; if (a < min) { min = a; } if (a > max) { max = a; } sum += a; } console.log('%d %d...
(function(input) { var lines = input.split('\n'); var n = Number(lines[0]); var items = lines[1].split(' ').map(Number); var min = Infinity, max = -Infinity, sum = 0; for (var i = 0; i < items.length; i++) { var a = items[i]; if (a < min) { min = a; } if (a > max) { max = a; } sum += a; } console.lo...
[["-", 0, 63, 8, 556, 0, 198, 0, 200, 51, 555], ["+", 8, 556, 0, 198, 0, 200, 51, 91, 17, 33], ["+", 8, 556, 0, 198, 0, 200, 51, 91, 28, 22]]
2
152
line = require('fs').readFileSync('/dev/stdin', 'ascii').split("\n"); a = line[1].split(" ").map(Number); min = a.reduce(function(prev, cur, i, ary) { return (cur < prev) ? cur : prev; }, Number.MAX_VALUE); max = a.reduce(function(prev, cur, i, ary) { return (cur > prev) ? cur : prev; }, ...
line = require('fs').readFileSync('/dev/stdin', 'ascii').split("\n"); a = line[1].split(" ").map(Number); min = a.reduce(function(prev, cur, i, ary) { return (cur < prev) ? cur : prev; }, Number.MAX_VALUE); max = a.reduce(function(prev, cur, i, ary) { return (cur > prev) ? cur : prev; }, ...
[["+", 0, 11, 12, 2, 3, 3, 0, 91, 17, 33], ["-", 0, 11, 12, 2, 3, 3, 0, 558, 559, 560], ["+", 12, 2, 3, 3, 0, 91, 28, 558, 559, 560]]
2
154
<?php $valuetNum = trim(fgets(STDIN)); $values = getSpacesByExplodeInput(); echo sprintf("%d %d %d%s", min($values), max($values), array_sum($values)), PHP_EOL; function getSpacesByExplodeInput() { return explode(' ', trim(fgets(STDIN))); }
<?php $valuetNum = trim(fgets(STDIN)); $values = getSpacesByExplodeInput(); echo sprintf("%d %d %d", min($values), max($values), array_sum($values)), PHP_EOL; function getSpacesByExplodeInput() { return explode(' ', trim(fgets(STDIN))); }
[["-", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610], ["+", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610]]
6
69
<?php $valuetNum = getTrimInput(); $values = explode(' ', getTrimInput()); echo sprintf("%d %d %d%s", min($values), max($values), array_sum($values)), PHP_EOL; function getTrimInput() { return trim(fgets(STDIN)); }
<?php $valuetNum = getTrimInput(); $values = explode(' ', getTrimInput()); echo sprintf("%d %d %d", min($values), max($values), array_sum($values)), PHP_EOL; function getTrimInput() { return trim(fgets(STDIN)); }
[["-", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610], ["+", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610]]
6
65
<?php $count = 0; $loop = 0; while ($line = fgets(STDIN)) { $data = explode(" ", rtrim($line)); if ($count == 0) { $loop = $data[0]; } else { $list = array(); for ($i = 0; $i < $loop; $i++) { $list[] = $data[$i]; } printf("%d %d %d", max($list), min($list), array_sum($list)); ...
<?php $count = 0; $loop = 0; while ($line = fgets(STDIN)) { $data = explode(" ", rtrim($line)); if ($count == 0) { $loop = $data[0]; } else { $list = array(); for ($i = 0; $i < $loop; $i++) { $list[] = $data[$i]; } printf("%d %d %d\n", min($list), max($list), array_sum($list))...
[["+", 0, 613, 3, 3, 0, 28, 0, 609, 0, 44], ["-", 0, 613, 3, 3, 0, 28, 0, 613, 63, 141], ["+", 0, 613, 3, 3, 0, 28, 0, 613, 63, 141]]
6
127
<?php $n = trim(fgets(STDIN)); $arr = explode(" ", trim(fgets(STDIN))); echo min($arr) . "\n" . max($arr) . "\n" . array_sum($arr) . "\n";
<?php $n = trim(fgets(STDIN)); $arr = explode(" ", trim(fgets(STDIN))); echo min($arr) . " " . max($arr) . " " . array_sum($arr) . "\n";
[["-", 31, 16, 31, 16, 31, 16, 12, 609, 0, 44], ["+", 31, 16, 31, 16, 31, 16, 12, 609, 0, 610], ["-", 0, 16, 31, 16, 31, 16, 12, 609, 0, 44], ["+", 0, 16, 31, 16, 31, 16, 12, 609, 0, 610]]
6
61
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[] = new int[n]; int sum = 0; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); sum += a[i]; } int max = a[0]; int min = ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[] = new int[n]; long sum = 0; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); sum += a[i]; } int max = a[0]; int min =...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
185
import java.util.*; import java.util.Scanner; public class Main { public static void main(String[] args) { int sum = 0; List<Integer> list = Collections.synchronizedList(new ArrayList<Integer>()); Scanner sc = new Scanner(System.in); int a = sc.nextInt(); for (int i = 0; i < a; i++) { int b...
import java.util.*; import java.util.Scanner; public class Main { public static void main(String[] args) { long sum = 0; List<Integer> list = Collections.synchronizedList(new ArrayList<Integer>()); Scanner sc = new Scanner(System.in); int a = sc.nextInt(); for (int i = 0; i < a; i++) { int ...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
142
import java.io.PrintStream; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int max = -1000001; int min = 1000001; int sum = 0; int n = scanner.nextInt(); int i = 0; while (i < n) { int x = scanner.n...
import java.io.PrintStream; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int max = -1000001; int min = 1000001; long sum = 0; int n = scanner.nextInt(); int i = 0; while (i < n) { int x = scanner....
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
141
import java.io.File; import java.io.IOException; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { // File file = new File("input.txt"); // Scanner sc = new Scanner(file);...
import java.io.File; import java.io.IOException; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { // File file = new File("input.txt"); // Scanner sc = new Scanner(file);...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
169
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int min = sc.nextInt(); int max = min; int sum = min; n--; while (n > 0) { int tmp = sc.nextInt(); if (min > tmp) min = tmp...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int min = sc.nextInt(); int max = min; long sum = min; n--; while (n > 0) { int tmp = sc.nextInt(); if (min > tmp) min = tm...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
131
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int j = 0; int b = sc.nextInt(); int min = b; int max = 0; int sum = b; for (j = 0; j < n - 1; j++) { int a = sc.nextInt(); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int j = 0; int b = sc.nextInt(); int min = b; int max = b; long sum = b; for (j = 0; j < n - 1; j++) { int a = sc.nextInt(); ...
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 22], ["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
153
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] a = new int[n]; int sum = 0; for (int i = 0; i < n; i++) { a[i] = scan.nextInt(); sum += a[i]; } ...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] a = new int[n]; long sum = 0; for (int i = 0; i < n; i++) { a[i] = scan.nextInt(); sum += a[i]; } ...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
145
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int tmp = 0; int[] num = new int[x]; int min = 1000000; int max = -1000000; int sum = 0; for (int i = 0; i < num.length; i++) { tmp = sc.n...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int tmp = 0; int[] num = new int[x]; int min = 1000000; int max = -1000000; long sum = 0; for (int i = 0; i < num.length; i++) { tmp = sc....
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
250
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int min = 0; int max = 0; int sum = 0; int n = sc.nextInt(); for (int cnt = 1; cnt <= n; cnt++) { // while (cnt == n) { int a = sc.nextInt(); if (cnt =...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int min = 1000000; int max = -1000000; long sum = 0; int n = sc.nextInt(); for (int cnt = 1; cnt <= n; cnt++) { int a = sc.nextInt(); if (cnt == 1) { ...
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 503, 49, 200, 51, 91, 17, 33], ["+", 8, 196, 0, 503, 49, 200, 51, 91, 439, 499], ["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]]
3
173
r = gets.chomp.to_i sprintf("%f %f\n",r*r*Math::PI, r*2*Math::PI)
r = gets.chomp.to_f printf("%f %f\n",r*r*Math::PI, r*2*Math::PI)
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
30
r = gets.to_d puts("#{sprintf("%.6f", r * r * Math::PI)} #{sprintf("%.6f", 2 * r * Math::PI)}")
r = gets.to_f puts("#{sprintf("%.6f", r * r * Math::PI)} #{sprintf("%.6f", 2 * r * Math::PI)}")
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
43
r = gets.to_f p = 3.14159265 puts sprintf("%.6f", r * r * p) + " " + sprintf("%.6f", 2.0 * r * p)
r = gets.to_f p = 3.14159265358979323846264338327 puts sprintf("%.6f", r * r * p) + " " + sprintf("%.6f", 2.0 * r * p)
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531]]
4
38
r = gets.to_f p = Math::PI puts [p ** 2 * r, 2 * p * r].join ' '
r = gets.to_f p = Math::PI puts [r ** 2 * p, 2 * p * r].join ' '
[["-", 0, 652, 486, 516, 0, 738, 31, 738, 31, 22], ["+", 0, 652, 486, 516, 0, 738, 31, 738, 31, 22], ["-", 3, 4, 0, 652, 486, 516, 0, 738, 12, 22], ["+", 3, 4, 0, 652, 486, 516, 0, 738, 12, 22]]
4
29
r = gets.to_f n = Math::PI l = (r * 2) * n S = (r**2) * n printf( "%f %f\n",l,S)
r = gets.to_f n = Math::PI l = (r * 2) * n S = (r**2) * n printf( "%f %f\n",S,l)
[["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]]
4
39
r = gets.split.to_f s = r * r * Math::PI l = 2 * r * Math::PI puts format('%f %f', s, l)
r = gets.to_f s = r * r * Math::PI l = 2 * r * Math::PI printf('%f %f', s, l)
[["-", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 0, 493, 0, 652, 3, 4, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
36
a=gets.to_f s = a*2*Math::PI l = a**2*Math::PI puts [s,l].join " "
a=gets.to_f s = a**2*Math::PI l = a*2*Math::PI puts [s,l].join(" ")
[["-", 0, 493, 0, 662, 12, 738, 31, 738, 17, 48], ["+", 0, 493, 0, 662, 12, 738, 31, 738, 17, 578], ["-", 0, 493, 0, 662, 12, 738, 31, 738, 17, 578], ["+", 0, 493, 0, 662, 12, 738, 31, 738, 17, 48], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
4
34
r = gets.to_f puts '%.6f %.6f' % [2*r*Math::PI, r*r*Math::PI]
r = gets.to_f puts '%.6f %.6f' % [r*r*Math::PI, 2*r*Math::PI]
[["-", 0, 738, 12, 516, 0, 738, 31, 738, 31, 612], ["+", 0, 738, 12, 516, 0, 738, 31, 738, 31, 22], ["-", 0, 738, 12, 516, 0, 738, 31, 738, 31, 22], ["+", 0, 738, 12, 516, 0, 738, 31, 738, 31, 612]]
4
27
r = gets.to_f puts "#{r * r * 3.14159265} #{r * 2 * 3.14159265}"
r = gets.to_f puts "#{r * r * 3.141592653589793238} #{r * 2 * 3.141592653589793238}"
[["-", 3, 4, 0, 557, 0, 284, 0, 738, 12, 531], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 12, 531]]
4
23
#!/usr/local/bin/ruby r = STDIN.gets nr= r.to_i pi= 3.14159265 # puts (nr*nr*pi).to_s+ " " + ((nr+nr)*pi).to_s puts sprintf("%.6f %.6f",(nr*nr*pi),(nr+nr)*pi) # puts nr.class
r = STDIN.gets nr= r.to_f pi= 3.141592653589 puts sprintf("%.6f %.6f",(nr*nr*pi),(nr+nr)*pi)
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531]]
4
39
#!/usr/local/bin/ruby r = STDIN.gets nr= r.to_i pi= 3.14159265 # puts (nr*nr*pi).to_s+ " " + ((nr+nr)*pi).to_s puts sprintf("%.6f %.6f",(nr*nr*pi),(nr+nr)*pi) # puts nr.class
r = STDIN.gets nr= r.to_f pi= 3.141592653589 # puts (nr*nr*pi).to_s+ " " + ((nr+nr)*pi).to_s puts sprintf("%.6f %.6f",(nr*nr*pi),(nr+nr)*pi) # puts nr.class
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531]]
4
39
r = gets.to_f a = r*r*3.14 l = 2*r*3.14 puts "#{a.round(10)} #{l.round(10)}"
r = gets.to_f a = r*r*3.141592653589 l = 2*r*3.141592653589 puts "#{a.round(10)} #{l.round(10)}"
[["-", 36, 36, 0, 493, 0, 662, 12, 738, 12, 531], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 12, 531]]
4
39
include Math r = gets.chomp.to_f printf "%f%F\n",r*r*PI,2*r*PI
include Math r = gets.chomp.to_f printf "%f %f\n",r*r*PI,2*r*PI
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
26
include Math r = gets.to_f len = 2 * PI * r area = PI *r *r puts "#{erea} #{len}"
include Math r = gets.to_f len = 2 * PI * r area = PI * r * r puts "#{area} #{len}"
[["-", 0, 652, 3, 4, 0, 557, 0, 284, 0, 22], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 0, 22]]
4
31
include Math r = gets.to_f puts "#{r*r*PI} #{PI*r*r}"
include Math r = gets.to_f puts "#{r*r*PI} #{2*r*PI}"
[["-", 0, 557, 0, 284, 0, 738, 31, 738, 31, 743], ["+", 0, 557, 0, 284, 0, 738, 31, 738, 31, 612], ["-", 3, 4, 0, 557, 0, 284, 0, 738, 12, 22], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 12, 743]]
4
25
r=gets.to_f p=3.1415 puts"#{r*r*p} #{2*r*p}"
r=gets.to_f p=3.14159265359 puts"#{r*r*p} #{2*r*p}"
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531]]
4
26
r=gets.to_f p=3.1415 puts"#{r*r*p} #{2*r*p}"
r=gets.to_f p=Math::PI puts"#{r*r*p} #{2*r*p}"
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531], ["+", 36, 36, 0, 493, 0, 662, 12, 760, 345, 743], ["+", 36, 36, 0, 493, 0, 662, 12, 760, 0, 349], ["+", 36, 36, 0, 493, 0, 662, 12, 760, 141, 743]]
4
26
r=gets.to_f p=3.1415 puts"#{r*r*p} #{2*r*p}"
r=gets.to_f p=-1.arg puts"#{r*r*p} #{2*r*p}"
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531], ["+", 0, 493, 0, 662, 12, 652, 486, 748, 17, 33], ["+", 0, 493, 0, 662, 12, 652, 486, 748, 439, 612], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
26
a=gets.map &:to_f pi=3.1415926535897932 puts [sprintf("%.6f", (a*a*pi)) , sprintf("%.6f", (a*2*pi))]*" "
a=gets.to_f pi=3.1415926535897932 puts [sprintf("%.6f", (a*a*pi)) , sprintf("%.6f", (a*2*pi))]*" "
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 67], ["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
46
pi = 3.141592653 r = gets.to_f puts "#{(pi*r*r).round(6)} #{(2*pi*r).round(6)}"
pi = 3.1415926535898 r = gets.to_f puts "#{(pi*r*r).round(6)} #{(2*pi*r).round(6)}"
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 531]]
4
40
r = gets.to_f printf("%f, %f", r*r*Math::PI, 2.0*r*Math::PI)
r = gets.to_f printf("%.6f %.6f", r*r*Math::PI, 2.0*r*Math::PI)
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
27
r = gets.to_f m = 2.0 * r * Math::PI s = r * r * Math::PI printf("%.6f %.6f\n", m, s)
r = gets.to_f m = 2.0 * r * Math::PI s = r * r * Math::PI printf("%.6f %.6f\n", s, m)
[["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]]
4
34
r = gets.to_f pi = Math::PI puts sprintf("%.6f %.6g", pi * r * r, 2.0 * pi * r)
r = gets.to_f pi = Math::PI puts sprintf("%.6f %.6f", pi * r * r, 2.0 * pi * r)
[["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6]]
4
29
pai = 3.141592653589793 r = float(input()) s = pai * r ** 2 l = 4 * pai * r ** 3 / 3 print(s, l)
pai = 3.141592653589793 r = float(input()) s = pai * r ** 2 l = 2 * pai * r print(s, l)
[["-", 0, 662, 12, 657, 31, 657, 31, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["-", 0, 662, 12, 657, 31, 657, 12, 657, 17, 578], ["-", 0, 662, 12, 657, 31, 657, 12, 657, 12, 612], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
35
import math r=float(input()) print(math.PI*r**2, 2*math.PI*r)
import math r=float(input()) print(math.pi*r**2, 2*math.pi*r)
[["-", 0, 652, 3, 4, 0, 657, 31, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 319, 319, 22], ["-", 3, 4, 0, 657, 31, 657, 12, 319, 319, 22], ["+", 3, 4, 0, 657, 31, 657, 12, 319, 319, 22]]
5
28
import math r = map(float,input()) S = math.pi * r * r l = 2 * r * math.pi print('{0:f} {1:f}'.format(S,l))
import math r = float(input()) S = math.pi * r * r l = 2 * r * math.pi print('{0:f} {1:f}'.format(S,l))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
43
# coding: utf-8 # Your code here! # ITP1_4_B import math r=int(input()) print(r*r*math.pi) print(r*2*math.pi)
# coding: utf-8 # Your code here! # ITP1_4_B import math r=float(input()) print(r*r*math.pi,r*2*math.pi)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21]]
5
33
import math r = float(input()) print(f' {math.pi * r ** 2} {math.pi * r * 2}')
import math r = float(input()) print(f' {math.pi * r ** 2} {math.pi * r * 2}')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
35
import math pai = math.pi print(pai) r = int(input()) print('{:.6f} {:.6f}'.format(pai*r**2,2*pai*r))
import math pai = math.pi r = float(input()) print('{:.6f} {:.6f}'.format(pai*r**2,2*pai*r))
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
40
import math r = float(input()) #r = (float(x) for x in input().split()) d = r * r * math.pi R = 2 * r * math.pi print ("{0:.6f} {0:.6f}".format(d,R))
import math r = float(input()) #r = (float(x) for x in input().split()) d = r * r * math.pi R = 2 * r * math.pi print ("{0:.6f} {1:.6f}".format(d,R))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
42
def calc_circle(r): pi = 3.14159265359 area = round(r*r*pi, 6) circ = round(2*r*pi, 6) return (area, circ) if __name__ == "__main__": r = float(input()) area, circ = calc_circle(r) print(f"{area:.6f}, {circ:.6f}")
def calc_circle(r): pi = 3.14159265359 area = round(r*r*pi, 6) circ = round(2*r*pi, 6) return (area, circ) if __name__ == "__main__": r = float(input()) area, circ = calc_circle(r) print(f"{area:.6f} {circ:.6f}")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
78
r = int(input()) pi = math.pi s = r*r*pi l = 2*r*pi print("{:.6f}".format(s),"{:.6f}".format(l))
r = float(input()) from math import pi s = r*r*pi l = 2*r*pi print("{:.6f}".format(s),"{:.6f}".format(l))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["-", 0, 656, 0, 1, 0, 662, 12, 319, 0, 131], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487]...
5
47
r = float(input()) #円の面積 = πr^2 #円周の長さ=直径*π=2πr #print(c,d,"{:.5f}".format(e)) m = 3.141592 * r * r l = 3.141592 * r * 2 print("{:.5f}".format(m),"{:.5f}".format(l))
r = float(input()) #円の面積 = πr^2 #円周の長さ=直径*π=2πr #print(c,d,"{:.5f}".format(e)) m = 3.141592653589 * r * r l = 3.141592653589 * r * 2 print("{:.6f}".format(m),"{:.6f}".format(l))
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 531], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 531], ["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
45
import math r = float(input()) print(f'{r**2*math.pi:.8f} {math.pi*r:.8f}')
import math r = float(input()) print(f'{r**2*math.pi:.8f} {math.pi*r*2:.8f}')
[["+", 3, 4, 0, 557, 0, 284, 205, 657, 17, 48], ["+", 3, 4, 0, 557, 0, 284, 205, 657, 12, 612]]
5
36
r = float(input()) x = 3.141592653589 print(r*2*x, r**2*x)
r = float(input()) x = 3.141592653589 print(r*r*x, r*2*x)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 578], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
25
import math r = float(input()) print("%.6f %.6f" % (2 * r * math.pi, r * r * math.pi))
import math r = float(input()) print("%.10f %.10f"%(r*r*math.pi, 2*r*math.pi))
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["-", 0, 657, 12, 660, 0, 657, 31, 657, 31, 612], ["+", 0, 657, 12, 660, 0, 657, 31, 657, 31, 22], ["-", 0, 657, 12, 660, 0, 657, 31, 657, 31, 22], ["+", 0, 657, 12, 660, 0, 657, 31, 657, 31, 612]]
5
34
from math import pi r = float(input()) area=r*r*pi cir =(r+r)*pi print(f'{(area):.6f}{(cir):.6f}')
from math import pi r = float(input()) area = r * r * pi cir =(r+r) * pi print(f'{(area):.6f} {(cir):.6f}')
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
47
import math r = eval(input()) print("%.6f %.6f" % (math.pi * 2 * r, math.pi * r * r))
import math r = eval(input()) print("%.6f %.6f" % (math.pi * r * r, math.pi * 2 * r))
[["-", 0, 657, 12, 660, 0, 657, 31, 657, 12, 612], ["+", 0, 657, 12, 660, 0, 657, 31, 657, 12, 22], ["-", 0, 657, 12, 660, 0, 657, 31, 657, 12, 22], ["+", 0, 657, 12, 660, 0, 657, 31, 657, 12, 612]]
5
34
import math r= float(input()) a = r * r * pi b = 2 * pi * r print(a, b)
import math r= float(input()) a = r * r * math.pi b = 2 * math.pi * r print(a, b)
[["+", 0, 1, 0, 662, 12, 657, 12, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 319, 0, 131], ["+", 0, 662, 12, 657, 31, 657, 12, 319, 500, 22], ["+", 0, 662, 12, 657, 31, 657, 12, 319, 0, 131]]
5
30
import math r = float(input()) S =r * r * math.pi C =r * math.pi print('{0:.6f} {1:.6f}'.format(S,C))
import math r = float(input()) S =r * r * math.pi C =(r + r) * math.pi print('{0:.6f} {1:.6f}'.format(S,C))
[["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 31, 22], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 17, 72], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25]]
5
39