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
import java.util.ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); ArrayList<Integer> ary = new ArrayList<Integer>(); int count = 0; while (true) { ary.add(s.nextInt()); if (ary.get(count) == 0) break; ...
import java.util.ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); ArrayList<Integer> ary = new ArrayList<Integer>(); int count = 0; while (true) { ary.add(s.nextInt()); if (ary.get(count) == 0) break; ...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
152
n = list(map(int,input().split(' '))) i = sorted(n) o = ' '.join(map(str,i)) print(0)
n = list(map(int,input().split(' '))) i = sorted(n) o = ' '.join(map(str,i)) print(o)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
45
# encoding:utf-8 input = list(map(int, input().split(" "))) input.sort() print (str(input_str[0]) + " " + str(input_str[1]) + " " + str(input_str[2]))
# encoding:utf-8 input = list(map(int, input().split(" "))) input.sort() print (str(input[0]) + " " + str(input[1]) + " " + str(input[2]))
[["-", 31, 657, 31, 652, 3, 4, 0, 206, 51, 22], ["+", 31, 657, 31, 652, 3, 4, 0, 206, 51, 22], ["-", 31, 657, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 31, 657, 12, 652, 3, 4, 0, 206, 51, 22], ["-", 0, 657, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 657, 12, 652, 3, 4, 0, 206, 51, 22]]
5
60
x = input() x_list = x.split(" ") x_list = list(map(int, x_list)) max = min = mid = 0 for i in range(1,3): if x_list[max] < x_list[i]: mid = max max = i elif x_list[min] > x_list[i]: mid = min min = i print(("%d %d %d" %(x_list[min], x_list[mid], x_list[max])))
x = input() x_list = x.split(" ") x_list = list(map(int, x_list)) max = min = mid = 0 for i in range(1,3): if x_list[max] < x_list[i]: mid = max max = i elif x_list[min] > x_list[i]: mid = min min = i else: mid = i print(("%d %d %d" %(x_list[min], x_list[mid], x_li...
[["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 12, 22]]
5
102
K=sorted(map(int,input().split())) for i in range(len(K)): print(K[i-1], end=' ')
K=sorted(map(int,input().split())) for i in range(len(K)): print(K[i], end=' ')
[["-", 0, 652, 3, 4, 0, 206, 206, 657, 17, 33], ["-", 0, 652, 3, 4, 0, 206, 206, 657, 12, 612]]
5
43
a, b, c = [int(x) for x in raw_input().split(" ")] list =[a,b,c] list_2 = [] for x in range(len(list)): mini = min(list) list_2.append(mini) list.remove(mini) for x in range(0, len(list_2)): a = list_2[x] if x == 0: req = str(a) + " " else: req += str(a) + " " q = req.rstrip(...
a, b, c = [int(x) for x in input().split(" ")] list =[a,b,c] list_2 = [] for x in range(len(list)): mini = min(list) list_2.append(mini) list.remove(mini) for x in range(0, len(list_2)): a = list_2[x] if x == 0: req = str(a) + " " else: req += str(a) + " " q = req.rstrip() pr...
[["-", 0, 659, 12, 652, 63, 319, 500, 652, 63, 22], ["+", 0, 659, 12, 652, 63, 319, 500, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
124
list = [int(x) for x in input().split()] print(list) list.sort() print(list[0], list[1], list[2])
list = [int(x) for x in input().split()] list.sort() print(list[0], list[1], list[2])
[["-", 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]]
5
44
data = [int(i) for i in input().split()] data.sort() print("{0}{1}{2}".format(data[0],data[1],data[2]))
data = [int(i) for i in input().split()] data.sort() print("{0} {1} {2}".format(data[0],data[1],data[2]))
[["-", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 3, 4, 0, 652, 63, 319, 500, 557, 0, 6]]
5
47
a, b, c = map(int, input().split()) if a >= b: if b >= c: print(c, b, a) elif a <= c: print(b, a, c) else: print(b, c, a) else: if a >= c: print(c, a, b) elif b >= c: print(a, c, b) else: print(c, a, b)
a, b, c = map(int, input().split()) if a >= b: if b >= c: print(c, b, a) elif a <= c: print(b, a, c) else: print(b, c, a) else: if a >= c: print(c, a, b) elif b >= c: print(a, c, b) else: print(a, b, c)
[["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22]]
5
97
a, b, c = [int(i) for i in input().split()] if a < b: if b < c: print(a, b, c) if c < a: print(c, a, b) else: print(a, c, b) else: if a < c: print(b, a, c) if c < b: print(c, b, a) else: print(b, c, a)
a, b, c = [int(i) for i in input().split()] if a < b: if b < c: print(a, b, c) elif c < a: print(c, a, b) else: print(a, c, b) else: if a < c: print(b, a, c) elif c < b: print(c, b, a) else: print(b, c, a)
[["-", 0, 656, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 64, 196, 0, 57, 75, 665, 0, 683], ["-", 0, 57, 75, 76, 8, 196, 0, 57, 0, 121], ["+", 75, 76, 8, 196, 0, 57, 75, 665, 0, 683]]
5
101
x = input().split() m = list(map(int,x)) sort(m) a = m[0] b = m[1] c = m[2] print(a,b,c)
x = input().split() m = sorted(map(int,x)) a = m[0] b = m[1] c = m[2] print(a,b,c)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 12, 652, 3, 4, 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, 22]]
5
50
x = input().split() m = list(map(int,x)) sorted(m) a = m[0] b = m[1] c = m[2] print(a,b,c)
x = input().split() n = list(map(int,x)) m = sorted(n) a = m[0] b = m[1] c = m[2] print(a,b,c)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
50
L = sorted(map(int, input().split())) print(" ".join(L))
L = sorted(map(int, input().split())) print(" ".join(map(str, L)))
[["+", 3, 4, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
28
list1 = input().split(" ") list2 = list(map(int, list1)) list3 = list2.sort() list4 = list(map(str, list3)) answer_string = " ".join(list4) print(answer_string)
list1 = input().split(" ") list2 = list(map(int, list1)) list3 = sorted(list2) list4 = list(map(str, list3)) answer_string = " ".join(list4) print(answer_string)
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
55
a = list(map(input().split())) a.sort() print(a[0],a[1],a[2])
a = list(map(int,input().split())) a.sort() print(a[0],a[1],a[2])
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21]]
5
37
l = list(map(int, input().split())) sorted(l) print(l[0], l[1], l[2])
l = list(map(int, input().split())) l.sort() print(l[0], l[1], l[2])
[["-", 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, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]]
5
38
al = list(map(int, raw_input().split())) al = sorted(al) print(al[0],al[1],al[2])
al = list(map(int, input().split())) al = sorted(al) print(al[0],al[1],al[2])
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]]
5
40
a, b, c = list(map(int, input().split())) l = [a, b, c].sort() print(l[0], l[1], l[2])
a, b, c = list(map(int, input().split())) l = sorted([a, b, c]) print(l[0], l[1], l[2])
[["+", 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, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
51
x = list(map(int, input().split())) x.sort() print(x)
x = list(map(int, input().split())) x.sort() print(*x)
[["+", 0, 1, 0, 652, 3, 4, 0, 661, 0, 48]]
5
26
l = list(map(int, input().split())) l.sort() for i in l: if i == len(l)-1: print(l[i]) else: print(l[i], end = " ")
l = list(map(int, input().split())) l.sort() for i in range(len(l)): if i == len(l)-1: print(l[i]) else: print(l[i], end = " ")
[["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25]]
5
59
# coding:utf-8 x=list(map(int,(input().split()))) for n in range(len(x)): sorted(x) print(x[n], end=' ')
x=list(map(int,(input().split()))) for n in range(len(x)): s=sorted(x) print(s[n], end=' ')
[["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22]]
5
48
a = [int(i) for i in input().split()] " ".join(map(str,sorted(a)))
a = [int(i) for i in input().split()] print(" ".join(map(str,sorted(a))))
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
34
#!/bin/usr/python a = sorted([int(i) for i in input().split()]) for i in range(len(a)): print(str(a[i]), end = ' ' if i != len(a)-1 else '\b\n')
#!/bin/usr/python a = sorted([int(i) for i in input().split()]) for i in range(len(a)): print(str(a[i]), end = ' ' if i != len(a)-1 else '\n')
[["-", 0, 653, 51, 41, 0, 557, 0, 6, 0, 44]]
5
63
list = [i for i in input().split()] print(' '.join([int(i) for i in sorted(list)]))
list = [int(i) for i in input().split()] print(' '.join([str(i) for i in sorted(list)]))
[["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 25], ["-", 0, 652, 3, 4, 0, 658, 8, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 658, 8, 652, 63, 22]]
5
38
List = [int(i) for i in input().split()] print(' '.join([i for i in sorted(List)]))
L = [int(i) for i in input().split()] print(' '.join([str(i) for i in sorted(L)]))
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 0, 652, 3, 4, 0, 658, 8, 652, 63, 22], ["+", 3, 4, 0, 658, 8, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 658, 8, 652, 3, 4, 0, 25], ["-", 0, 658, 0, 659, 12, 652, 3, 4, 0, 22], ["+", 0, 658, 0, 659, 12, 652, 3, 4, 0, 22]]
5
38
n = list(map(int,input().split())) n.sort() print(n[0],n[1],n[2],sep=())
n = list(map(int,input().split())) n.sort() print(n[0],n[1],n[2],sep=" ")
[["-", 0, 652, 3, 4, 0, 653, 51, 660, 0, 24], ["-", 0, 652, 3, 4, 0, 653, 51, 660, 0, 25], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]]
5
44
a = list(map(int,input().split())) sort(a) print(str(a[0])+" "+str(a[1])+" "+str(a[2]))
a = list(map(int,input().split())) a.sort() print(str(a[0])+" "+str(a[1])+" "+str(a[2]))
[["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
55
nums = [int(i) for i in input().split()] nums_sort = sorted(nums) nums_str = map(str, nums) print (' '.join(nums_str))
nums = [int(i) for i in input().split()] nums_sort = sorted(nums) nums_str = map(str, nums_sort) print (' '.join(nums_str))
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
43
[a, b, c] = map(int, input().split()) min = min(a,b,c) max = max(a,b,c) nokori = sam(a,b,c) - min - max print(min,nokori,max)
[a, b, c] = map(int, input().split()) min = min(a,b,c) max = max(a,b,c) nokori = (a+b+c) - min - max print(min,nokori,max)
[["-", 0, 662, 12, 657, 31, 657, 31, 652, 63, 22], ["-", 12, 657, 31, 657, 31, 652, 3, 4, 0, 21], ["+", 31, 657, 31, 23, 0, 657, 31, 657, 17, 72], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 17, 72]]
5
62
arr = [int(i) for i in input().split()] print(sorted(arr))
arr = [int(i) for i in input().split()] print(*sorted(arr))
[["+", 0, 652, 3, 4, 0, 652, 63, 661, 0, 48]]
5
25
inputlines = list(map(int, input().split())) li = inputlines.sort() print(' '.join(map(str, li)))
inputlines = list(map(int, input().split())) li = sorted(inputlines) print(' '.join(map(str, li)))
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
40
tmp = input() tmp = tmp.split(" ") tmp = list(map(int,tmp)) tmp.sort() print(tmp) tmp = list(map(str,tmp)) print(" ".join(tmp))
tmp = input() tmp = tmp.split(" ") tmp = list(map(int,tmp)) tmp.sort() tmp = list(map(str,tmp)) print(" ".join(tmp))
[["-", 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]]
5
57
a = map(int,input().split()) a.sort() print(a[0],a[1],a[2])
a = list(map(int,input().split())) a.sort() print(a[0],a[1],a[2])
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
36
x = list(map(int,input().split())) x = x.sort() print("{0} {1} {2}".format(x[0],x[1],x[2]))
x = list(map(int,input().split())) x = sorted(x) print("{0} {1} {2}".format(x[0],x[1],x[2]))
[["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
48
x = input() split_x = x.split() split_x_int = [int(i) for i in split_x] split_x_int.sort() a = split_x[0] b = split_x[1] c = split_x[2] print(str(a) + " "+ str(b) + " " + str(c))
x = input() split_x = x.split() split_x_int = [int(i) for i in split_x] split_x_int.sort() a = split_x_int[0] b = split_x_int[1] c = split_x_int[2] print(str(a) + " "+ str(b) + " " + str(c))
[["-", 0, 656, 0, 1, 0, 662, 12, 206, 51, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 51, 22]]
5
72
print(list(sorted(map(int,input().split()))))
print(*list(sorted(map(int,input().split()))))
[["+", 0, 652, 3, 4, 0, 652, 63, 661, 0, 48]]
5
21
a,b,c=map(int, input().split()) if a>b: i=a a = b b = i if b>c: i=b b=c c=b if a>b: i=a a=b b=i str="{d} {e} {f}" print(str.format(d=a, e=b, f=c))
a,b,c=map(int, input().split()) if a>b: i=a a = b b = i if b>c: i=b b=c c=i if a>b: i=a a=b b=i str="{d} {e} {f}" print(str.format(d=a, e=b, f=c))
[["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22]]
5
84
r = input().split() a = int(r[0]) b = int(r[1]) c = int(r[2]) m1 = min(a,b,c) m3 = max(a,b,c) if a == m1: m2 = min(a,b) elif b == m1: m2 = min(a,c) else: m2 = min(a,b) print(m1,m2,m3)
r = input().split() a = int(r[0]) b = int(r[1]) c = int(r[2]) m1 = min(a,b,c) m3 = max(a,b,c) if a == m1: m2 = min(b,c) elif b == m1: m2 = min(a,c) else: m2 = min(a,b) print(m1,m2,m3)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
100
l=sorted(map(int,raw_input().split())) print(l[0],l[1],l[2])
l=sorted(map(int,input().split())) print(l[0],l[1],l[2])
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]]
5
34
a = list(map(int,input().split())) print(" ".join(map(str, a)))
a = list(map(int,input().split())) a.sort() print(" ".join(map(str, a)))
[["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
33
def main(): n = input().split() a = int(n[0]) b = int(n[1]) c = int(n[2]) if (a >= b): temp = a a = b b = temp if (b >= c): temp = b b = c c = temp if (a >= c): temp = a a = c c = temp print("{0} {1} {2}".format(...
def main(): n = input().split() a = int(n[0]) b = int(n[1]) c = int(n[2]) if (a > b): temp = a a = b b = temp if (b > c): temp = b b = c c = temp if (a > b): temp = a a = b b = temp print("{0} {1} {2}".format(a,...
[["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["-", 8, 196, 0, 57, 15, 23, 0, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 0, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22], ...
5
114
print(sorted([int(i) for i in input().split()]))
print(*sorted([int(i) for i in input().split()]))
[["+", 0, 652, 3, 4, 0, 652, 63, 661, 0, 48]]
5
22
if __name__ == '__main__': a, b, c = input().split() a, b, c = int(a), int(b), int(c) ans = [a, b, c].sorted() print(ans[0], ans[1], ans[2])
if __name__ == '__main__': a, b, c = input().split() a, b, c = int(a), int(b), int(c) ans = sorted([a, b, c]) print(ans[0], ans[1], ans[2])
[["+", 64, 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, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
70
a= list(int(i) for i in input().split()) risuto = ' '.join(map(str,a)) print(risuto)
a= list(int(i) for i in input().split()) a.sort() risuto = ' '.join(map(str,a)) print(risuto)
[["+", 0, 656, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
38
a, b, c= map(int, input().split()) if a >= b: big = a mid = b else: big = b mid = a if c >= big: small = big big = c else: small = c if small >= mid: small_1 = mid mid = small small = small_1 print("{0} {1} {2}".format(big, mid, small))
a, b, c= map(int, input().split()) if a >= b: big = a mid = b else: big = b mid = a if c >= big: small = big big = c else: small = c if small >= mid: small_1 = mid mid = small small = small_1 print("{0} {1} {2}".format(small, mid, big))
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
82
num = list(map(int, input().split(' '))) num.sort() print(' '.join(map(int, num)))
num = list(map(int, input().split(' '))) num.sort() print(' '.join(map(str, num)))
[["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22]]
5
41
#coding: utf-8 a,b,c = (int(i) for i in input().split()) l = [a,b,c] l.sort() for i,j in enumerate(l): print(j, end = ' ' if j != len(l) else '\n')
#coding: utf-8 a,b,c = (int(i) for i in input().split()) l = [a,b,c] l.sort() for i,j in enumerate(l): print(j, end = ' ' if i != len(l)-1 else '\n')
[["-", 3, 4, 0, 653, 51, 41, 0, 666, 0, 22], ["+", 3, 4, 0, 653, 51, 41, 0, 666, 0, 22], ["+", 0, 653, 51, 41, 0, 666, 0, 657, 17, 33], ["+", 0, 653, 51, 41, 0, 666, 0, 657, 12, 612]]
5
68
lis = [int(x) for x in input().split()] lis.sort(reverse=True) for i in range(2): print(lis[i],end = " ") print(lis[-1])
lis = [int(x) for x in input().split()] lis.sort() for i in range(2): print(lis[i],end = " ") print(lis[-1])
[["-", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["-", 0, 1, 0, 652, 3, 4, 0, 653, 51, 146]]
5
55
d = list(map(int,input().split())) d.sort print(d[0],d[1],d[2])
d = list(map(int,input().split())) d.sort() print(d[0],d[1],d[2])
[["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
37
print(*sorted.map(int, input().split()))
print(*sorted(map(int, input().split())))
[["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
18
print(*sorted.map(int, input().split()))
#print(*sorted(map(int, input().split()))) print(*sorted(map(int, input().split())))
[["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
18
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int i = s.nextInt(); int n = 1; while (i != 0) { System.out.println("Case " + n + ": " + i); n = n++; i = s.nextInt(); continue; } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int i = s.nextInt(); int n = 1; while (i != 0) { System.out.println("Case " + n + ": " + i); n++; i = s.nextInt(); continue; } } }
[["-", 0, 52, 8, 196, 0, 1, 0, 11, 17, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 27, 0, 22]]
3
91
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int i = s.nextInt(); int n = 1; while (i != 0) { System.out.println("Case " + n + ": " + i); n = n++; i = s.nextInt(); continue; } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int i = s.nextInt(); int n = 1; while (i != 0) { System.out.println("Case " + n + ": " + i); n++; i = s.nextInt(); } } }
[["-", 0, 52, 8, 196, 0, 1, 0, 11, 17, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 27, 0, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 52, 8, 196, 0, 116, 0, 117]]
3
91
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); long x; for (int i = 1; (x = ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); long x; for (int i = 1; (x = ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
104
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); StringBuilder builder = new StringBuilder(); i...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); StringBuilder builder = new StringBuilder(); i...
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["-", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22]]
3
149
import java.util.Scanner; public class Main { public static void main(String[] args) { int count = 0; Scanner scan = new Scanner(System.in); while (true) { long a = scan.nextLong(); if (a == 0) { break; } else { count++; System.out.println("Case" + count + ":" +...
import java.util.Scanner; public class Main { public static void main(String[] args) { int count = 0; Scanner scan = new Scanner(System.in); while (true) { long a = scan.nextLong(); if (a == 0) { break; } else { count++; System.out.println("Case " + count + ": "...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
90
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Here your code ! BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); List<Integer> ary = new ArrayList<Integer>(); ...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Here your code ! BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); List<Integer> ary = new ArrayList<Integer>(); ...
[["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 499], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 25]]
3
156
import java.util.Scanner; class Main { int i, x; public void aaaa() { Scanner sc = new Scanner(System.in); x = sc.nextInt(); for (i = 1; x == 0; i++) { System.out.println("Case " + i + ": " + x); x = sc.nextInt(); } } public static void main(String[] args) { new Main().aaaa(); } }
import java.util.Scanner; class Main { int i, x; public void aaaa() { Scanner sc = new Scanner(System.in); x = sc.nextInt(); for (i = 1; x != 0; i++) { System.out.println("Case " + i + ": " + x); x = sc.nextInt(); } } public static void main(String[] args) { new Main().aaaa(); } }
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 79]]
3
105
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; int x = sc.nextInt(); while (x != 0) { System.out.println("Case " + i + " : " + x); x = sc.nextInt(); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; int x = sc.nextInt(); while (x != 0) { System.out.println("Case " + i + ": " + x); i++; x = sc.nextInt(); } } }
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 29]]
3
84
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ArrayList<Integer> list = new ArrayList<Integer>(); boolean flg = true; while (flg) { list.add(Integer.valueOf(scanner.nextInt())); ...
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ArrayList<Integer> list = new ArrayList<Integer>(); boolean flg = true; while (flg) { list.add(Integer.valueOf(scanner.nextInt())); ...
[["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 499], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25]]
3
174
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; while (sc.hasNext()) { int n = sc.nextInt(); if (n == 0) { break; } System.out.printf("Case %d: %d", i, n); i++; } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; while (sc.hasNext()) { int n = sc.nextInt(); if (n == 0) { break; } System.out.println(String.format("Case %d: %d", i, n)); i++; ...
[["-", 0, 52, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 492, 500, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 492, 0, 131], ["+", 0, 1, 0, 492, 3, 4, 0, 492, 141, 22], ["+", 0, 492, 3, 4, 0, 492, 3, 4, 0, 24], ["+", 0, 492, 3, 4, 0, 492, 3, 4, 0, 25]]
3
87
import java.util.Scanner; class Main { public static void main(String[] args) { final Scanner sc = new Scanner(System.in); int count = 0; int i = sc.nextInt(); while (i != 0) { count++; System.out.println("Case " + count + " " + i); i = sc.nextInt(); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { final Scanner sc = new Scanner(System.in); int count = 0; int i = sc.nextInt(); while (i != 0) { count++; System.out.println("Case " + count + ": " + i); i = sc.nextInt(); } } }
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
87
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int c = 1; while (true) { int a = sc.nextInt(); if (a != 0) System.out.println("case " + c + ": " + a); else break; c = c + 1; } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int c = 1; while (true) { int a = sc.nextInt(); if (a != 0) System.out.println("Case " + c + ": " + a); else break; c = c + 1; } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
89
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int x = Integer.valueOf(br.readLine()).intValue(); int i = 1; while (x != 0) { System.out.println("Case" + i + ": " + x); i++...
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int x = Integer.valueOf(br.readLine()).intValue(); int i = 1; while (x != 0) { System.out.println("Case " + i + ": " + x); i+...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
110
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<Integer> list = new Arra...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<Integer> list = new Arra...
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 12, 499], ["+", 0, 16, 12, 492, 3, 4, 0, 16, 17, 33], ["+", 0, 16, 12, 492, 3, 4, 0, 16, 12, 499]]
3
160
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i = 0; while (true) { int x = scan.nextInt(); if (x == 0) break; System.out.println("case " + (i++) + ": " + x); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i = 1; while (true) { int x = scan.nextInt(); if (x == 0) break; System.out.println("Case " + (i++) + ": " + x); } } }
[["-", 36, 36, 0, 493, 0, 235, 0, 494, 0, 259], ["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
85
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int i = 0; while (true) { i++; String str = br.readLine(); int x =...
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int i = 0; while (true) { i++; String str = br.readLine(); int x =...
[["-", 500, 492, 500, 492, 3, 4, 0, 5, 0, 491], ["+", 500, 492, 500, 492, 3, 4, 0, 5, 0, 491]]
3
156
import java.io.*; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { Scanner in = new Scanner(System.in); for (int i = 1; i > 0; i++) { String X; int x; X = in.nextLine(); x = Integer.parseInt(X); if (x == 0) { break; ...
import java.io.*; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { Scanner in = new Scanner(System.in); for (int i = 1; i > 0; i++) { String X; int x; X = in.nextLine(); x = Integer.parseInt(X); if (x == 0) { break; ...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
114
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int i = 0, x; while (true) { x = scanner.nextInt(); if (x == 0) break; System.out.println("Case " + i++ + ": " + x); } scanner.close(); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int i = 1, x; while (true) { x = scanner.nextInt(); if (x == 0) break; System.out.println("Case " + i++ + ": " + x); } scanner.close(); } }
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]]
3
89
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Integer> al = new ArrayList<>(); int i = 0; int cnt = 0; int x = 999; while (x != 0) { x = sc.nextInt(); if (x == 0) { break; } else { ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Integer> al = new ArrayList<>(); int i = 0; int cnt = 0; int x = 999; while (x != 0) { x = sc.nextInt(); if (x == 0) { break; } else { ...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
139
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); boolean bl = true; int n = 1; int x; while (bl) { x = stdIn.nextInt(); if (x == 0) break; System.out.println("Case " + n + ":" + x); n++; } ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); boolean bl = true; int n = 1; int x; while (bl) { x = stdIn.nextInt(); if (x == 0) break; System.out.println("Case " + n + ": " + x); n++; }...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
91
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1; i > 0; i++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.println("case " + i + ": " + x); } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1; i > 0; i++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.println("Case " + i + ": " + x); } } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
92
import java.util.Scanner; public class Main { private static Scanner scan; public static void main(String[] args) { scan = new Scanner(System.in); int i = scan.nextInt(); int x = 1; while (1 != 0) { System.out.println("case " + x + ": " + i); x++; i = scan.nextInt(); } } ...
import java.util.Scanner; public class Main { private static Scanner scan; public static void main(String[] args) { scan = new Scanner(System.in); int i = scan.nextInt(); int x = 1; while (i != 0) { System.out.println("Case " + x + ": " + i); x++; i = scan.nextInt(); } } ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 31, 499], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
91
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ArrayList<Integer> nums = new ArrayList<Integer>(); while (true) { String inputText = scanner.nextLine(); int x = Integer.parseInt(...
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ArrayList<Integer> nums = new ArrayList<Integer>(); while (true) { String inputText = scanner.nextLine(); int x = Integer.parseInt(...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
152
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) break; else System.out.printf("Case:%d %d\n", i, x); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) break; else System.out.printf("Case %d: %d\n", i, x); } } }
[["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
82
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.printf("Case %d: %d\n", i, x); } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.printf("Case %d: %d\n", i, x); } else { break; } } } }
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 75, 196, 0, 93, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]]
3
81
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); //?????????????????? int i = 1; while (true) { int a = Integer.parseInt(br.readLine());...
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); //?????????????????? int i = 1; while (true) { int a = Integer.parseInt(br.readLine());...
[["-", 500, 492, 500, 492, 3, 4, 0, 5, 0, 491], ["+", 500, 492, 500, 492, 3, 4, 0, 5, 0, 491], ["-", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22]]
3
137
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int dataSet; for (int i = 0; (dataSet = Integer.parseInt(b...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int dataSet; for (int i = 0; (dataSet = Integer.parseInt(b...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
116
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x; for (int count = 1;; count++) { x = scan.nextInt(); if (x == 0) break; System.out.println("Count" + count + ":" + x); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x; for (int count = 1;; count++) { x = scan.nextInt(); if (x == 0) break; System.out.println("Case " + count + ": " + x); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
86
import java.util.Scanner; public class Main { void run() { Scanner scan = new Scanner(System.in); for (int i = 1;; i++) { int s = scan.nextInt(); if (s == 0) break; System.out.println("case " + i + ": " + s); } } public static void main(String[] args) { Main m = new Main...
import java.util.Scanner; public class Main { void run() { Scanner scan = new Scanner(System.in); for (int i = 1;; i++) { int s = scan.nextInt(); if (s == 0) break; System.out.println("Case " + i + ": " + s); } } public static void main(String[] args) { Main m = new Main...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
104
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int result[] = new int[1000000], i = 0; while (true) { result[i] = sc.nextInt(); if (result[i] == 0) break; i++; } for (int j = 0; j < i; j++) { Sys...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int result[] = new int[1000000], i = 0; while (true) { result[i] = sc.nextInt(); if (result[i] == 0) break; i++; } for (int j = 0; j < i; j++) { Sys...
[["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 499], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25]]
3
118
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int su = 0; for (int i = 0;; i++) { su = Integer.par...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int su = 0; for (int i = 0;; i++) { su = Integer.par...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
119
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1; i <= 10000; i++) { int n = sc.nextInt(); if (n == 0) break; System.out.println("Case " + i + ":" + n); } sc.close(); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1; i <= 10000; i++) { int n = sc.nextInt(); if (n == 0) break; System.out.println("Case " + i + ": " + n); } sc.close(); } }
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
93
import java.io.*; import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input; int count = 1; while (!(input = br.readLine()).equals("0")) { System.out.println("Case...
import java.io.*; import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input; int count = 1; while (!(input = br.readLine()).equals("0")) { System.out.println("Case...
[["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 29], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
3
97
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); for (int i = 1;...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); for (int i = 1;...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
130
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 1; while (true) { int x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case" + cnt + ":" + x); cnt++; } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 1; while (true) { int x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case " + cnt + ": " + x); cnt++; } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
87
import java.io.*; class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int i = 0; while (true) { int data = Integer.parseInt(br.readLine()); if (data ==...
import java.io.*; class Main { public static void main(String[] args) throws IOException { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int i = 1; while (true) { int data = Integer.parseInt(br.readLine()); ...
[["+", 0, 235, 8, 498, 0, 195, 0, 529, 0, 529], ["+", 0, 235, 8, 498, 0, 195, 0, 529, 0, 78], ["-", 0, 246, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 246, 8, 196, 0, 503, 49, 200, 51, 499]]
3
156
import java.util.*; public class Main { public static void Main() { Scanner sc = new Scanner(System.in); int n = 1; int x = sc.nextInt(); while (x != 0) { System.out.println("Case " + n + ": " + x); n++; x = sc.nextInt(); } } }
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = 1; int x = sc.nextInt(); while (x != 0) { System.out.println("Case " + n + ": " + x); n++; x = sc.nextInt(); } } }
[["-", 0, 493, 0, 235, 8, 498, 0, 195, 141, 22], ["+", 0, 493, 0, 235, 8, 498, 0, 195, 141, 22], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 39, 78], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22], ["+", 0, 195, 54, 495, 0, 496, 497, 497, 0, 70], ["+", 0, 195, 54, 495, 0, 496, 497, 497, 0, 73]]
3
83
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] a = new int[10000]; for (int i = 0; i < 10000; i++) { a[i] = scan.nextInt(); if (a[i] == 0) break; } for (int i = 0; i < 10000; i++) { if ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] a = new int[10000]; for (int i = 0; i < 10000; i++) { a[i] = scan.nextInt(); if (a[i] == 0) break; } for (int i = 0; i < 10000; i++) { if ...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
137
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int x = sc.nextInt(), i = 0; x != 0; x = sc.nextInt(), i++) { i++; System.out.println("Case " + i + ": " + x); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int x = sc.nextInt(), i = 1; x != 0; x = sc.nextInt(), i++) { System.out.println("Case " + i + ": " + x); } } }
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 7, 8, 196, 0, 1, 0, 27, 0, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 27, 0, 29], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
3
88
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long dd[] = new long[10000]; int x = 9; int r = 0; long su; for (int i = 0; x == 9; i++) { su = sc.nextInt(); if (su != 0) { dd[i] = su; } ...
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); long dd[] = new long[10000]; int x = 9; long r = 0; long su; for (int i = 0; x == 9; i++) { su = sc.nextI...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
157
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int counter = 1; while (sc.hasNext()) { String s1 = sc.next(); if (s1.equals("exit")) { break; } System.out.println("Case " + counter + ": " + s1); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int counter = 1; while (sc.hasNext()) { String s1 = sc.next(); if (s1.equals("0")) { break; } System.out.println("Case " + counter + ": " + s1); ...
[["-", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 15, 15, 0, 492, 3, 4, 0, 5, 0, 491]]
3
96
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); StringBuilder bu = new StringBuilder(); int num; int i = 1; while (true) { num = Integer.parseInt(in.next()); if (num == 0) { break; } b...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); StringBuilder bu = new StringBuilder(); int num = 0; int i = 1; while (true) { num = Integer.parseInt(in.next()); if (num == 0) { break; } ...
[["+", 0, 195, 8, 196, 0, 503, 49, 200, 0, 32], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["-", 31, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 491]]
3
113
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { private final static String SPACE = " "; public static void main(String[] args) { try { BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); String sStr; int i = 0; ...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { private final static String SPACE = " "; public static void main(String[] args) { try { BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); String sStr; int i = 1; ...
[["-", 0, 246, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 246, 8, 196, 0, 503, 49, 200, 51, 499]]
3
154
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<Integer> list = new ArrayList<Integer>(); while (true)...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<Integer> list = new ArrayList<Integer>(); while (true)...
[["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25]]
3
154
import java.util.Iterator; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int line; for (int i = 1; input.hasNext(); i++) { line = input.nextInt(); if (line != 0) { System.out.println("Case" + i + ": " + li...
import java.util.Iterator; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int line = 0; for (int i = 1; input.hasNext(); i++) { line = input.nextInt(); if (line != 0) { System.out.println("Case " + i + ": "...
[["+", 0, 195, 8, 196, 0, 503, 49, 200, 0, 32], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
103
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = 1; int x = 1; while (n != 0) { n = sc.nextInt(); if (n != 0) { System.out.println("Case" + x + " : " + n); x += 1; } } } }
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = 1; int x = 1; while (n != 0) { n = sc.nextInt(); if (n != 0) { System.out.println("Case " + x + ": " + n); x += 1; } } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
91
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { try { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int x = Integer.parseInt(buf.readLine()); int count = 0; while (x...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { try { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int x = Integer.parseInt(buf.readLine()); int count = 1; while (...
[["-", 0, 246, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 246, 8, 196, 0, 503, 49, 200, 51, 499]]
3
121
import java.util.Scanner; public class Main { public static void main(String args[]) { //??????????????¨?????\??????????????? //?????????????????°??????0???????????????????????? //?????????????????? //???????????? Scanner sc = new Scanner(System.in); int intX = -1; int i = 0; whil...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int intX = -1; int i = 0; while (intX != 0) { intX = sc.nextInt(); if (intX == 0) { break; } i++; System.out.println("Case " + i + ": ...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
98
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int cycle = 0; String line; while (!((line = br.readL...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int cycle = 0; String line; while (!((line = br.readL...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
105