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
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d %d %d %d %d", w, h, x, y, r); if (x >= r && y >= r && w >= x + r && h >= y + r) { printf("Yes\n"); } else { printf("No\n"); } return 0; /*0?????????*/ }
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if (x >= r && y >= r && w >= x + r && h >= y + r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
84
#include <algorithm> #include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if (x - r > 0 && x + r <= W && y - r > 0 && y + r <= H) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20]]
1
87
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((r <= x) && (x <= W - r) && (r <= y) && (y <= H - r)) printf("Yes?\n"); else printf("No?\n"); return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((r <= x) && (x <= W - r) && (r <= y) && (y <= H - r)) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
91
#include <iostream> int main() { int H, W, x, y, r; std::cin >> H >> W >> x >> y >> r; if ((x - r) >= 0 && (x + r) <= W && (y - r) >= 0 && (y + r) <= H) std::cout << "Yes" << std::endl; else std::cout << "No" << std::endl; return 0; }
#include <iostream> int main() { int H, W, x, y, r; std::cin >> W >> H >> x >> y >> r; if ((x - r) >= 0 && (x + r) <= W && (y - r) >= 0 && (y + r) <= H) std::cout << "Yes" << std::endl; else std::cout << "No" << std::endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22]]
1
95
#include <iostream> using namespace std; int main() { unsigned int W, H, x, y, r = 0; cin >> W >> H >> x >> y >> r; if ((x < r) || (y < r) || (x + r > W) || (y + r > H)) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int W, H, x, y, r = 0; cin >> W >> H >> x >> y >> r; if ((x < r) || (y < r) || (x + r > W) || (y + r > H)) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87]]
1
92
a = gets.split(" ").map(&:to_i).sort puts i.join(" ")
a = gets.split(" ").map(&:to_i).sort puts a.join(" ")
[["-", 0, 493, 0, 652, 3, 4, 0, 652, 486, 22], ["+", 0, 493, 0, 652, 3, 4, 0, 652, 486, 22]]
4
27
begin input_line = [] while line = $stdin.gets.chomp break if line == "" input_line.push(line.split(" ")) end rescue end input_line = input_line.first.map{|i| i.to_i }.sort.join(" ")
begin input_line = [] while line = $stdin.gets.chomp break if line == "" input_line.push(line.split(" ")) end rescue end puts input_line.first.map{|i| i.to_i }.sort.join(" ")
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
59
array = gets.split.map!(&:to_i).sort puts("#{array[0]} #{array[0]} #{array[0]}")
array = gets.split.map!(&:to_i).sort puts("#{array[0]} #{array[1]} #{array[2]}")
[["-", 3, 4, 0, 557, 0, 284, 0, 742, 0, 612], ["+", 3, 4, 0, 557, 0, 284, 0, 742, 0, 612]]
4
38
puts gets.split.map &:to_i.sort*" "
puts gets.split.map(&:to_i).sort*" "
[["+", 0, 738, 31, 652, 486, 652, 3, 4, 0, 24], ["+", 0, 738, 31, 652, 486, 652, 3, 4, 0, 25]]
4
14
puts get.split(' ').map(&:to_i).sort.join(' ')
puts gets.split(' ').map(&:to_i).sort.join(' ')
[["-", 0, 652, 486, 652, 486, 652, 486, 652, 486, 22], ["+", 0, 652, 486, 652, 486, 652, 486, 652, 486, 22]]
4
24
inputs = gets.strip.split(' ') inputs.map!{|i| i.to_i} p inputs.sort.join(" ")
inputs = gets.strip.split(' ') inputs.map!{|i| i.to_i} puts inputs.sort.join(" ")
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
34
s=input().split() a=int(s[0]) b=int(s[1]) c=int(s[2]) num=[a,b,c] num.sort() print(str(num[0])+" "+str(num[1]+" "+str(num[2])))
s=input().split() a=int(s[0]) b=int(s[1]) c=int(s[2]) num=[a,b,c] num.sort() print(str(num[0])+" "+str(num[1])+" "+str(num[2]))
[["+", 31, 657, 31, 657, 12, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
84
numbers = list(map(int,input().split())) numbers.sort() print(numbers[0],numbers[1],numbers[1])
numbers = list(map(int,input().split())) numbers .sort() print(numbers[0],numbers[1],numbers[2])
[["-", 0, 1, 0, 652, 3, 4, 0, 206, 206, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 206, 612]]
5
39
a = list.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, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
38
data = [int(i) for i in input.split()] out = ' '.join([str(i) for i in sorted(data)]) print(out)
data = [int(i) for i in input().split()] out = ' '.join([str(i) for i in sorted(data)]) print(out)
[["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25]]
5
42
a=input() b=a.split() d=list() for c in b: d.append(int(c)) print(d[0],d[1],d[2])
a=input() b=a.split() d=list() for c in b: d.append(int(c)) d=sorted(d) print(d[0],d[1],d[2])
[["+", 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, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
48
''' l = input().split() l = list(map(int, l)) a,b,c = l[0],l[1],l[2] ''' a,b,c = map(int, input().split) if a > b: a,b = b,a if b > c: b,c = c,b if a > b: a,b = b,a print(a,b,c)
''' l = input().split() l = list(map(int, l)) a,b,c = l[0],l[1],l[2] ''' a,b,c = map(int, input().split()) if a > b: a,b = b,a if b > c: b,c = c,b if a > b: a,b = b,a print(a,b,c)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
63
a = list(map(int, input().split())) for i in range(1,len(a)-1): v = a[i] j = i - 1 while j >= 0 and a[j] > v: a[j+1] = a[j] j -= 1 a[j+1] = v print("{} {} {}".format(a[0],a[1],a[2]))
a = list(map(int, input().split())) for i in range(1,len(a)): v = a[i] j = i - 1 while j >= 0 and a[j] > v: a[j+1] = a[j] j -= 1 a[j+1] = v print("{} {} {}".format(a[0],a[1],a[2]))
[["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
101
a,b,c = map(int, input().split()) if a > b : a,b = b,a if b > c : b,c = c,b if a > c : a,c =c,a print(a,b,c)
a, b, c = map(int, input().split()) if a > b: a, b = b, a if b > c: b, c = c, b if a > b: a, b = b, a print(a, b, c)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 64, 196, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 64, 196, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 64, 196, 0, 1, 0, 662, 12, 432, 0, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 432, 0, 22]]
5
62
a=list(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, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72]]
5
39
a,b,c = map(int,input(),split()) if a>b: a,b=b,a if b>c: c,b=b,c if a>b: a,b=b,a print(a,b,c)
a,b,c = map(int,input().split()) if a > b: a,b = b,a if b > c: c, b = b, c if a > b: a, b = b, a print(a,b,c)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
62
n = list(map(int,input().split())) for i in range(0,3): for k in range(i,3): if n[i]>n[k]: temp = n[i] n[i] = n[k] n[k]= temp for j in range(0,3): print(str(n[j]))
n = list(map(int,input().split())) for i in range(0,3): for k in range(i,3): if n[i]>n[k]: temp = n[i] n[i] = n[k] n[k]= temp for j in range(0,3): print(str(n[j]), end=' ')
[["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 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
89
import sys l = [int(i) for i in sys.stdin.readline().split()] l.sort() print(" ".join(l))
import sys l = [int(i) for i in sys.stdin.readline().split()] l.sort() 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
40
a,b,c = list(map(int, input().split())) if a > b: temp = a a = b b = temp elif b > c: temp = b b = c c = temp elif a > b: temp = a a = b b = temp print(a,b,c)
a,b,c = list(map(int, input().split())) 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(a,b,c)
[["-", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121]]
5
71
a,b,c = list(map(int, input().split())) n = sorted([a,b,c]) for i in n: print(n)
a,b,c = list(map(int, input().split())) n = sorted([a,b,c]) for i in n: print(i, end=' ')
[["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 6], ["+", 0, 652, 3, ...
5
42
S = eval(input()) L = S.split() a = L[0] b = L[1] c = L[2] a = int(a) b = int(b) c = int(c) l = [a,b,c] min_1 = min(a,b,c) # print l.remove(min_1) l.remove(min_1) min_2 = min(l) l.remove(min_2) min_3 = l[0] min_1 = str(min_1) min_2 = str(min_2) min_3 = str(min_3) print(min_1+' '+min_2+' '+min_3)
S =input() L = S.split() a = L[0] b = L[1] c = L[2] a = int(a) b = int(b) c = int(c) l = [a,b,c] min_1 = min(a,b,c) # print l.remove(min_1) l.remove(min_1) min_2 = min(l) l.remove(min_2) min_3 = l[0] min_1 = str(min_1) min_2 = str(min_2) min_3 = str(min_3) print(min_1+' '+min_2+' '+min_3)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
129
list = list(map(int,input().split())) ilst.sort() print('%d %d %d' %(list[0],list[1],list[2]))
list = sorted(map(int,input().split())) print('%d %d %d' %(list[0],list[1],list[2]))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 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]]
5
45
xs=map(int,input().split()) ' '.join(map(str, sorted(xs)))
xs=map(int,input().split()) print(' '.join(map(str, sorted(xs))))
[["+", 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
30
a, b, c = list(map(int, input().split())) 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(a, b, c)
a, b, c = list(map(int, input().split())) 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(a, b, c)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 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], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22]]
5
71
a, b, c = list(map(int, input().split())) max = max(a,b) min = min(a,b) if max < c: middle = max max = c elif min > c: middle = min min = c else: middle = c print("%d %d %d" %(max, middle, min))
a, b, c = list(map(int, input().split())) max = max(a,b) min = min(a,b) if max < c: middle = max max = c elif min > c: middle = min min = c else: middle = c print("%d %d %d" %(min, middle, max))
[["-", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 660, 0, 22]]
5
78
length = input() a, b, c = length.split() a = int(a) b = int(b) c = int(c) num = [a, b, c] num.sort for i in range(len(num)): print(num[i], end=' ')
length = input() a, b, c = length.split() a = int(a) b = int(b) c = int(c) num = sorted([a, b, c]) for i in range(len(num)): print(num[i], end=' ')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 36, 36, 0, 656, 0, 1, 0, 319, 500, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 319, 0, 131], ["-", 36, 36, 0, 656, 0, 1, 0, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
70
a,b,c = list(map(int,input().split())) if b <= a: if b <= c <= a: print(b,c,a) elif c <= b: print(c,b,a) else: print(b,a,c) elif a < b: if a <= c <= b: print(a,c,b) elif c <= a < b: print(c,a,b) else: print(a < b <= c)
a,b,c = list(map(int,input().split())) if b <= a: if b <= c <= a: print(b,c,a) elif c <= b: print(c,b,a) else: print(b,a,c) elif a < b: if a <= c <= b: print(a,c,b) elif c <= a < b: print(c,a,b) else: print(a,b,c)
[["-", 0, 1, 0, 652, 3, 4, 0, 666, 667, 18], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 1, 0, 652, 3, 4, 0, 666, 667, 19]]
5
109
package main import ( "bufio" "fmt" "os" "strconv" "strings" ) // Circle in rectangle func main() { sc := bufio.NewScanner(os.Stdin) sc.Scan() ary := strings.Split(strings.TrimSpace(sc.Text()), " ") W, _ := strconv.Atoi(ary[0]) H, _ := strconv.Atoi(ary[1]) x, _ := strconv.Atoi(ary[1]) y, _ := strconv.Atoi...
package main import ( "bufio" "fmt" "os" "strconv" "strings" ) // Circle in rectangle func main() { sc := bufio.NewScanner(os.Stdin) sc.Scan() ary := strings.Split(strings.TrimSpace(sc.Text()), " ") W, _ := strconv.Atoi(ary[0]) H, _ := strconv.Atoi(ary[1]) x, _ := strconv.Atoi(ary[2]) y, _ := strconv.Atoi...
[["-", 12, 432, 0, 2, 3, 4, 0, 437, 71, 433], ["+", 12, 432, 0, 2, 3, 4, 0, 437, 71, 433]]
7
187
package main import ( "fmt" ) type Square struct { X, Y, Width, Height int } func (s *Square) contains(c *Circle) bool { cs := c.convertToSquare() return cs.X >= s.X && cs.Y >= s.Y && cs.X+cs.Width <= s.Width && cs.Y+cs.Height <= s.Height } type Circle struct { X, Y, R int } func (c *Circle) convertToSq...
package main import ( "fmt" ) type Square struct { X, Y, Width, Height int } func (s *Square) contains(c *Circle) bool { cs := c.convertToSquare() return cs.X >= s.X && cs.Y >= s.Y && cs.X+cs.Width <= s.Width && cs.Y+cs.Height <= s.Height } type Circle struct { X, Y, R int } func (c *Circle) convertToSq...
[["-", 12, 432, 0, 451, 8, 452, 0, 453, 0, 22], ["+", 12, 432, 0, 451, 8, 452, 0, 453, 0, 22]]
7
263
package main import "fmt" func main() { var W, H, x, y, r int var flagW, flagH bool fmt.Scan(&W, &H, &x, &y, &r) if x-r >= 0 && x+r <= W { flagW = true } if y-r >= 0 && y+r <= H { flagH = true } if flagH && flagW { fmt.Println("YES") } else { fmt.Println("NO") } }
package main import "fmt" func main() { var W, H, x, y, r int var flagW, flagH bool fmt.Scan(&W, &H, &x, &y, &r) if x-r >= 0 && x+r <= W { flagW = true } if y-r >= 0 && y+r <= H { flagH = true } if flagH && flagW { fmt.Println("Yes") } else { fmt.Println("No") } }
[]
7
119
(function(stdin) { var lines = stdin.toString().split('\n').map(Number); var i = 0; while (lines[i] != 0) { console.log("case " + (i + 1) + ": " + lines[i]); i++; } }(require('fs').readFileSync('/dev/stdin', 'utf8')));
(function(stdin) { var lines = stdin.toString().split('\n').map(Number); var i = 0; while (lines[i] != 0) { console.log("Case " + (i + 1) + ": " + lines[i]); i++; } }(require('fs').readFileSync('/dev/stdin', 'utf8')));
[["-", 0, 16, 31, 16, 31, 16, 31, 557, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 557, 0, 491]]
2
92
function main(line) { var i = 0 while (line[i]) { console.log("Case " + (i + 1) + ": " + line[i]) i = i + 1 } } var input = ''; process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { input += chunk; }); process.stdin.on('end', function() { input = input.s...
function main(line) { var i = 0 while (line[i] != 0) { console.log("Case " + (i + 1) + ": " + line[i]) i = i + 1 } } var input = ''; process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { input += chunk; }); process.stdin.on('end', function() { input = in...
[["+", 8, 556, 0, 52, 15, 23, 0, 16, 17, 79], ["+", 8, 556, 0, 52, 15, 23, 0, 16, 12, 555]]
2
128
'use strict'; var fs = require('fs'); var contents = fs.readFileSync('/dev/stdin', 'utf-8'); var printTest = function(contents) { var a = contents.trim().split("\n"); for (var i = 0; i < a.length; i++) { var n = parseInt(a[i]); if (n === 0) { break; } console.log("Case " + i + ": " + n);...
'use strict'; var fs = require('fs'); var contents = fs.readFileSync('/dev/stdin', 'utf-8'); var printTest = function(contents) { var a = contents.trim().split("\n"); for (var i = 0; i < a.length; i++) { var n = parseInt(a[i]); if (n === 0) { break; } console.log("Case " + (i + 1) + ": "...
[["+", 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, 555], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25]]
2
116
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim().split('\n'); for (var i = 0; i < inputs.length; i++) { if (inputs[i] === '0') { break; } console.log('Case' + (i + 1) + ': ' + inputs[i]); } }); process.stdin.resume(); process.stdin.setEncoding('utf8')...
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim().split('\n'); for (var i = 0; i < inputs.length; i++) { if (inputs[i] === '0') { break; } console.log('Case ' + (i + 1) + ': ' + inputs[i]); } }); process.stdin.resume(); process.stdin.setEncoding('utf8'...
[["-", 0, 16, 31, 16, 31, 16, 31, 557, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 557, 0, 491]]
2
118
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim().split('\n').map(Number); for (var i = 0; i < inputs.length; i++) { if (inputs[i] === 0) { break; } console.log('Case ' + (i + 1) + ':' + inputs[i]); } }); process.stdin.resume(); process.stdin.setEncodi...
'use strict'; process.stdin.on('data', function(chunk) { var inputs = chunk.toString().trim().split('\n').map(Number); for (var i = 0; i < inputs.length; i++) { if (inputs[i] === 0) { break; } console.log('Case ' + (i + 1) + ': ' + inputs[i]); } }); process.stdin.resume(); process.stdin.setEncod...
[["-", 3, 3, 0, 16, 31, 16, 12, 557, 0, 491], ["+", 3, 3, 0, 16, 31, 16, 12, 557, 0, 491]]
2
121
'use strict'; (function(stdin) { // declare function // declare variable var inputs = stdin.toString().trim().split('\n').map(Number); inputs = inputs.slice(0, inputs.indexOf(0)); // main for (var i = 0, len = inputs.length; i < len; i++) { console.log('case ' + (i + 1) + ': ' + inputs[i]); } // display // console.l...
'use strict'; (function(stdin) { // declare function // declare variable var inputs = stdin.toString().trim().split('\n').map(Number); inputs = inputs.slice(0, inputs.indexOf(0)); // main for (var i = 0, len = inputs.length; i < len; i++) { console.log('Case ' + (i + 1) + ': ' + inputs[i]); } // display // console.l...
[["-", 0, 16, 31, 16, 31, 16, 31, 557, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 557, 0, 491]]
2
123
var input = require("fs").readFileSync("/dev/stdin", "utf8"); var i; input = input.split("\n"); for (i = 0; i < 10000; i++) { if (input[i] == 0) { break; } console.log("Case %d:%d", i + 1, input[i]); }
var input = require("fs").readFileSync("/dev/stdin", "utf8"); var i; input = input.split("\n"); for (i = 0; i < 10000; i++) { if (input[i] == 0) { break; } console.log("Case %d: %d", i + 1, input[i]); }
[["-", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491], ["+", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491]]
2
81
function Main(input) { input = input.split("\n"); for (var i = 0; i < 10000; i++) { var num = parseInt(input[i]); if (num == 0) { break; } console.log("Case " + (i + 1) + ":" + num) } } // "実行する"ボタンを押した時に実行される関数 (デバッグ用) function debug() { var input = document.getElementById("input").value;...
function Main(input) { input = input.split("\n"); for (var i = 0; i < 10000; i++) { var num = parseInt(input[i]); if (num == 0) { break; } console.log("Case " + (i + 1) + ": " + num) } } // "実行する"ボタンを押した時に実行される関数 (デバッグ用) function debug() { var input = document.getElementById("input").value...
[["-", 3, 3, 0, 16, 31, 16, 12, 557, 0, 491], ["+", 3, 3, 0, 16, 31, 16, 12, 557, 0, 491]]
2
123
var input = ""; process.stdin.resume(); process.stdin.setEncoding('utf-8'); process.stdin.on('data', (chunk) => {input += chunk}) process.stdin.on('end', function() { var arr = input.split(' ').map(Number); for (var i = 0; i < arr.length && arr[i] != 0; i++) { console.log('Case %d: %d', i + 1, arr[i]); } })...
var input = ""; process.stdin.resume(); process.stdin.setEncoding('utf-8'); process.stdin.on('data', (chunk) => {input += chunk}) process.stdin.on('end', function() { var arr = input.split('\n').map(Number); for (var i = 0; i < arr.length && arr[i] != 0; i++) { console.log('Case %d: %d', i + 1, arr[i]); } }...
[["-", 63, 558, 500, 2, 3, 3, 0, 557, 0, 491], ["+", 63, 558, 500, 2, 3, 3, 0, 557, 0, 44]]
2
121
<?php $ary = array(); while (true) { $st = trim(fgets(STDIN)); if ($st == "0") { break; } array_push($ary, $st); } $i = 1; $count = count($ary); foreach ($ary as $val) { print ("Case " . $i . ": " . $val); if ($i+1 < $count) { print "\n"; } $i++; } unset($val)...
<?php $ary = array(); while (true) { $st = trim(fgets(STDIN)); if ($st == "0") { break; } array_push($ary, $st); } $i = 1; $count = count($ary); foreach ($ary as $val) { print ("Case " . $i . ": " . $val); if ($i < $count) { print "\n"; } $i++; } unset($val); ...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 72], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 12, 612]]
6
116
<?php $i = 1; while (true) { $val = trim(fgets(STDIN)); if ($val == "0") { return; } print ("Case " . $i . ": " . $val); $i++; } ?>
<?php $i = 1; while (true) { $st = trim(fgets(STDIN)); if ($st == "0") { return; } print ("Case " . $i . ": " . $st . "\n"); $i++; } ?>
[["-", 8, 9, 0, 1, 0, 11, 31, 606, 0, 141], ["+", 8, 9, 0, 1, 0, 11, 31, 606, 0, 141], ["-", 0, 57, 15, 23, 0, 16, 31, 606, 0, 141], ["+", 0, 57, 15, 23, 0, 16, 31, 606, 0, 141], ["-", 0, 619, 0, 23, 0, 16, 12, 606, 0, 141], ["+", 0, 23, 0, 16, 31, 16, 12, 606, 0, 141], ["+", 0, 1, 0, 619, 0, 23, 0, 16, 17, 131], ["+",...
6
58
<?php $n = array(); $i = 1; while (true) { $x = fgets(STDIN); if ($x == 0) { break; }else { $n[$i] = $x; $i++; } } foreach ($n as $key => $val) { echo "Case ".$key.": ".$val."\n"; }
<?php $n = array(); $i = 1; while (true) { $x = fgets(STDIN); if ($x == 0) { break; }else { $n[$i] = $x; $i++; } } foreach ($n as $key => $val) { echo "Case ".$key.": ".$val; }
[["-", 0, 614, 8, 9, 0, 608, 0, 16, 17, 131], ["-", 8, 9, 0, 608, 0, 16, 12, 609, 0, 62], ["-", 8, 9, 0, 608, 0, 16, 12, 609, 0, 44]]
6
87
<?php $result = array(); while(true) { $stdin = trim(fgets(STDIN)); if ($stdin == 0) break; $result[] = $stdin; } foreach($result as $key => $value) { echo "Case " . $key . ": " . $value . PHP_EOL; }
<?php $result = array(); while(true) { $stdin = trim(fgets(STDIN)); if ($stdin == 0) break; $result[] = $stdin; } foreach($result as $key => $value) { echo "Case " . ++$key . ": " . $value . PHP_EOL; }
[["+", 31, 16, 31, 16, 31, 16, 12, 27, 0, 29]]
6
72
<?php $count = 1; while($num = fgets(STDIN)){ printf("Case %d: %d\n", $count, $num); $count++; } ?>
<?php $count = 1; while($num = trim(fgets(STDIN))){ printf("Case %d: %d\n", $count, $num); $count++; }
[["+", 0, 52, 15, 23, 0, 11, 12, 613, 63, 141], ["+", 15, 23, 0, 11, 12, 613, 3, 3, 0, 24], ["+", 3, 3, 0, 28, 0, 613, 3, 3, 0, 25], ["-", 36, 36, 36, 36, 36, 36, 0, 493, 0, 611]]
6
37
<?php $data = array(); while ($line = fgets(STDIN)) { $value = rtrim($line); if ('0' === $value) break; if (10000 > (int)($value)) continue; $data[] = $value; } $i = 1; foreach ($data as $value) { printf("Case %d: %d\n", $i, $value); $i++; }
<?php $data = array(); while ($line = fgets(STDIN)) { $value = rtrim($line); if ('0' === $value) break; if (10000 < (int)($value)) continue; $data[] = $value; } $i = 1; foreach ($data as $value) { printf("Case %d: %d\n", $i, $value); $i++; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]]
6
95
<?php for ($i = 1; $i <= 10000; $i++) { $input = trim(fgets(STDIN)); if($input == 0){ break; } echo 'Case'. $i. ': '. $input . PHP_EOL; }
<?php for ($i = 1; $i <= 10000; $i++) { $input = trim(fgets(STDIN)); if($input == 0){ break; } echo 'Case '. $i. ': '. $input .PHP_EOL; }
[["-", 31, 16, 31, 16, 31, 16, 31, 557, 0, 610], ["+", 31, 16, 31, 16, 31, 16, 31, 557, 0, 610]]
6
58
<?php for ($i = 0; ; $i++) { $x = trim(fgets(STDIN)); if ($x == 0) break; echo "Case $i: $x\n"; }
<?php for ($i = 1; ; $i++) { $x = trim(fgets(STDIN)); if ($x == 0) break; echo "Case $i: $x\n"; }
[["-", 36, 36, 0, 493, 0, 7, 0, 11, 12, 612], ["+", 36, 36, 0, 493, 0, 7, 0, 11, 12, 612]]
6
46
<?php while (!feof(STDIN) ) { $inArray[] = trim(fgets(STDIN)); } $index = 0; foreach ($inArray as $inValue) { if($inValue == 0){ break; } echo "Case ".($index + 1).": ".$inValue.PHP_EOL; } ?>
<?php while (!feof(STDIN) ) { $inArray[] = trim(fgets(STDIN)); } $index = 0; foreach ($inArray as $inValue) { if($inValue == 0){ break; } echo "Case ".($index + 1).": ".$inValue.PHP_EOL; ++$index; } ?>
[["+", 0, 614, 8, 9, 0, 1, 0, 27, 0, 29], ["+", 8, 9, 0, 1, 0, 27, 0, 606, 0, 607], ["+", 8, 9, 0, 1, 0, 27, 0, 606, 0, 141], ["+", 0, 493, 0, 614, 8, 9, 0, 1, 0, 35]]
6
72
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x; int i = 0; while (true) { x = sc.nextInt(); if (x == 0) break; i = i + 1; 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); int x; int i = 0; while (true) { x = sc.nextInt(); if (x == 0) break; i = i + 1; System.out.println("Case " + i + ": " + x); } } }
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
90
import java.util.*; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); for (int i = 1; true; i++) { int x = sc.nextInt(); if (x != 0) { System.out.println("Case " + i + ":" + x); } else { ...
import java.util.*; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); for (int i = 1; true; i++) { int x = sc.nextInt(); if (x != 0) { System.out.println("Case " + i + ": " + x); } else { ...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
99
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int i = 1; while (true) { String str =...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int i = 1; while (true) { String str =...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
126
import java.io.*; public class Main { /** * */ private static final int _10000 = 10000; public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] x; int i; x = new int[10000]; int count = 0; try { for...
import java.io.*; public class Main { /** * */ private static final int _100000 = 100000; public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] x; int i; x = new int[100000]; int count = 0; try { ...
[["-", 0, 235, 8, 498, 0, 124, 49, 200, 141, 22], ["+", 0, 235, 8, 498, 0, 124, 49, 200, 141, 22], ["-", 0, 235, 8, 498, 0, 124, 49, 200, 51, 499], ["+", 0, 235, 8, 498, 0, 124, 49, 200, 51, 499], ["-", 0, 1, 0, 11, 12, 227, 497, 505, 0, 499], ["+", 0, 1, 0, 11, 12, 227, 497, 505, 0, 499], ["-", 0, 246, 8, 196, 0, 7, 1...
3
193
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdln = new Scanner(System.in); int x, i = 0; while (true) { x = stdln.nextInt(); if (x == 0) break; System.out.printf("Case %d: %d\n", i++, x); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdln = new Scanner(System.in); int x, i = 1; while (true) { x = stdln.nextInt(); if (x == 0) break; System.out.printf("Case %d: %d\n", i++, x); } } }
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]]
3
80
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; while (i == -1) { int X = sc.nextInt(); if (X == 0) break; System.out.println("Case " + i + ": " + X); i++; } sc.close(); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; while (i == i) { int X = sc.nextInt(); if (X == 0) break; System.out.println("Case " + i + ": " + X); i++; } sc.close(); } }
[["-", 0, 52, 15, 15, 0, 16, 12, 91, 17, 33], ["-", 0, 52, 15, 15, 0, 16, 12, 91, 439, 499], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 12, 22]]
3
94
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int i = 1; while (true) { int temp = sc.nextInt(); if (temp == 0) { break; } System.out.println("Case " + i + ":" + " " + tem...
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int i = 1; while (true) { int temp = sc.nextInt(); if (temp == 0) { break; } System.out.println("Case " + i + ":" + " " + tem...
[["+", 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
89
import java.util.Scanner; public class Main { public static void main(String[] args) { boolean flows = true; Scanner sc = new Scanner(System.in); int countcase = 0; while (true) { int getNum = sc.nextInt(); if (getNum == 0) { sc.close(); break; } else { co...
import java.util.Scanner; public class Main { public static void main(String[] args) { boolean flows = true; Scanner sc = new Scanner(System.in); int countcase = 0; while (true) { int getNum = sc.nextInt(); if (getNum == 0) { sc.close(); break; } else { co...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
101
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { ArrayList<Integer> arr = new ArrayList<Integer>(); Scanner sc = new Scanner(System.in); int a; while ((a = sc.nextInt()) != 0) { arr.add(a); } for (int i = 0; i < arr.s...
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { ArrayList<Integer> arr = new ArrayList<Integer>(); Scanner sc = new Scanner(System.in); int a; while ((a = sc.nextInt()) != 0) { arr.add(a); } for (int i = 0; i < arr.s...
[["+", 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
126
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner number = new Scanner(System.in); for (int i = 0; i < 10000; i++) { int a = number.nextInt(); if (a == 0) break; else System.out.println("Case " + i + ": " + a); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner number = new Scanner(System.in); for (int i = 1; i <= 10000; i++) { int a = number.nextInt(); if (a == 0) break; System.out.println("Case " + i + ": " + a); } } }
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]]
3
88
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 0; int x; x = sc.nextInt(); while (x != 0) { System.out.printf("Case %d: %d", ++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 = 0; int x; x = sc.nextInt(); while (x != 0) { System.out.printf("Case %d: %d\n", ++i, x); x = sc.nextInt(); } } }
[["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
83
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int x, i; i = 1; while (true) { x = sc.nextInt(); if (x == 0) break; if (x != 0) { System.out.printf("Case %d: %d", i, x); } i++; ...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int x, i; i = 1; while (true) { x = sc.nextInt(); if (x == 0) break; if (x != 0) { System.out.printf("Case %d: %d\n", i, x); } i++; ...
[["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
92
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; 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++) { int x = sc.nextInt(); if (x == 0) break; 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
84
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 0; for (; i < 20000; i++) { /* String str = sc.nextLine(); String[] str2 = str.split(" "); int a = Integer.parseInt(str2[0]); String x = str2[1...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; for (; i < 20000; i++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.println("Case " + i + ": " + x); } } ...
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]]
3
94
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i; for (i = 0;; i++) { int x = sc.nextInt(); if (x == 0) break; 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); int i; for (i = 1;; i++) { int x = sc.nextInt(); if (x == 0) break; System.out.printf("Case %d: %d\n", i, x); } } }
[["-", 0, 195, 8, 196, 0, 7, 502, 11, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 502, 11, 12, 499]]
3
83
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n; for (int i = 1; (n = scanner.nextInt()) != 0; ++i) { System.out.println("case " + i + ": " + n); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n; for (int i = 1; (n = scanner.nextInt()) != 0; ++i) { System.out.println("Case " + i + ": " + n); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
81
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.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++) { int x = sc.nextInt(); if (x != 0) { System.out.println("Case " + 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
84
import java.util.*; 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.println("Case " + i + ":" + x); } else { break; } } sc.close(); } }
import java.util.*; 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.println("Case " + i + ": " + x); } else { break; } } sc.close(); } }...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
95
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; } 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++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.println("Case " + i + ": " + x); } } } }
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]]
3
86
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n; int k = 0; while ((n = sc.nextInt()) != 0) { k++; System.out.println("Case" + k + ": " + n); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n; int k = 0; while ((n = sc.nextInt()) != 0) { k++; System.out.println("Case " + k + ": " + n); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
81
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; while (true) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.println("Caae " + i++ + ": " + x); } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; while (true) { 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
88
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = 1; int i = 1; while (x != 0) { x = sc.nextInt(); switch (x) { case 0: break; default: 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); int x = 1; int i = 1; while (x != 0) { x = sc.nextInt(); switch (x) { case 0: break; default: 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
98
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); } } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
86
import java.io.*; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try { int i = 1; while (true) { String line = reader.readLine(); int x = Integer.parseInt(line); if (x == 0) ...
import java.io.*; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try { int i = 1; while (true) { String line = reader.readLine(); int x = Integer.parseInt(line); if (x == 0) ...
[["-", 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
115
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int i = 1; 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 x = sc.nextInt(); int i = 1; while (x != 0) { System.out.println("Case " + i++ + ": " + x); x = sc.nextInt(); } } }
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
85
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; } System.out.printf("Canse %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; } System.out.printf("Case %d: %d\n", i, x); } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
83
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; System.out.printf("Case i: %d\n", 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; System.out.printf("Case %d: %d\n", i, x); } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 8, 196, 0, 1, 0, 492, 3, 4, 0, 21], ["+", 8, 196, 0, 1, 0, 492, 3, 4, 0, 22]]
3
79
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int inputDate; int x = 1; while (true) { inputDate = scn.nextInt(); if (inputDate == 0) { break; } System.out.println("Case " + +x++ + "; " + in...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int inputDate; int x = 1; while (true) { inputDate = scn.nextInt(); if (inputDate == 0) { break; } System.out.println("Case " + +x++ + ": " + in...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
88
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x; for (int i = 1; true; i++) { x = sc.nextInt(); if (x == 0) break; 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); int x; for (int i = 1; true; i++) { x = sc.nextInt(); if (x == 0) break; System.out.println("Case " + i + ":" + " " + x); } ...
[["-", 31, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
97
import java.util.Scanner; public class Main { public static void main(String[] args) { int i = 1, x; Scanner sc = new Scanner(System.in); while (true) { x = sc.nextInt(); if (x == 0) break; System.out.println("Case" + i++ + ": " + x); } sc.close(); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { int i = 1, x; Scanner sc = new Scanner(System.in); while (true) { x = sc.nextInt(); if (x == 0) break; System.out.println("Case " + i++ + ": " + x); } sc.close(); } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
90
import java.io.*; class Main { public static void main(String[] args) throws IOException { int i = 0; int[] array = new int[10000]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); for (int j = 0; j < array.length; j++) { array[j] = Integer.parseInt(br.readLine()); ...
import java.io.*; class Main { public static void main(String[] args) throws IOException { int i = 0; int[] array = new int[10000]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); for (int j = 0; j < array.length; j++) { array[j] = Integer.parseInt(br.readLine()); ...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
148
public class Main { public static void main() { java.util.Scanner sc = new java.util.Scanner(System.in); int x; for (int i = 1; i <= 10000; i++) { x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case " + i + ": " + x); } sc.close(); } }
public class Main { public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); int x; for (int i = 1; i <= 10000; i++) { x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case " + i + ": " + x); } sc.close(); } }
[["+", 0, 195, 54, 495, 0, 496, 39, 224, 468, 78], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 70], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 73], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22]]
3
94
import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int count = 1; while (x != 0) { ...
import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int count = 1; while (x != 0) { ...
[["-", 3, 4, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 3, 4, 0, 492, 3, 4, 0, 5, 0, 491]]
3
120
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = 1; int b = 0; while (true) { b = sc.nextInt(); if (b == 0) break; System.out.println("case" + a + ":" + b); a++; } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = 1; int b = 0; while (true) { b = sc.nextInt(); if (b == 0) break; System.out.println("Case " + a + ": " + b); a++; } } }
[["-", 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
88
import java.util.Scanner; public class Main { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); int i = 1; int x; while ((x = sc.nextInt()) != 0) { System.out.println("Case" + i + ": " + x); i++; } } }
import java.util.Scanner; public class Main { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); int i = 1; int x; while ((x = sc.nextInt()) != 0) { System.out.println("Case" + " " + i + ": " + x); i++; } } ...
[["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 17, 72]]
3
85
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0; i <= 10000; 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 = 0; i <= 10000; i++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.println("Case " + (i + 1) + ": " + x); } }...
[["+", 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
92
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 a = sc.nextInt(); if (a == 0) break; System.out.printf("case %d: b%d\n", i, a); 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 a = sc.nextInt(); if (a == 0) break; System.out.printf("Case %d: %d\n", i, a); i++; } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
86
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; while (true) { count++; int a = sc.nextInt(); if (a == 0) { break; } else { System.out.println("case " + count + ": " + a); } ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; while (true) { count++; int a = sc.nextInt(); if (a == 0) { break; } else { System.out.println("Case " + count + ": " + a); } ...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
90
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int i = 1; while (true) { int num = in.nextInt(); if (num == 0) break; System.out.println("Case" + i + ": " + num); i++; } } }
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int i = 1; while (true) { int num = in.nextInt(); if (num == 0) break; System.out.println("Case " + i + ": " + num); i++; } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
85
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; while (true) { count++; int x = Integer.parseInt(sc.next()); if (x == 0) break; System.out.println("Case " + count + ":" + x); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; while (true) { count++; int x = Integer.parseInt(sc.next()); if (x == 0) break; System.out.println("Case " + count + ": " + x); } } }
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
90
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); for (int i = 1; i <= 10000; i++) { x = scan.nextInt(); if (x == 0) break; System.out.println("Case " + i + ": " + x); } } }...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x; for (int i = 1; i <= 10000; i++) { x = scan.nextInt(); if (x == 0) break; System.out.println("Case " + i + ": " + x); } } }
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 0, 32], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 0, 131], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 0, 503, 49, 200, 51, 492, 3, 4, 0, 24], ["-", 0, 503, 49, 200, 51, 492, 3, 4, 0, 25]]
3
95
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int i = 0; while (x != 0) { System.out.println("case " + i + ": " + x); x = scanner.nextInt(); i++; } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int i = 1; while (x != 0) { System.out.println("Case " + i + ": " + x); x = scanner.nextInt(); i++; } } }
[["-", 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
87
import java.util.Scanner; class Main { Scanner sc = new Scanner(System.in); public void run() { for (int i = 1;; i++) { int val = sc.nextInt(); if (val == 0) { break; } ln("case " + i + ": " + val); } } public static void main(String[] args) { new Main().run(); } p...
import java.util.Scanner; class Main { Scanner sc = new Scanner(System.in); public void run() { for (int i = 1;; i++) { int val = sc.nextInt(); if (val == 0) { break; } ln("Case " + i + ": " + val); } } public static void main(String[] args) { new Main().run(); } ...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
151
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { private BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1); private ArrayList<Integer> cases = new ArrayList<Integer>(); private String ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { private BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1); private ArrayList<Integer> cases = new ArrayList<Integer>(); private String ...
[["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25]]
3
215
import java.util.*; public class Main { /** * @param args */ public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); int i = 0; int x; do { i++; x = scan.nextInt(); if (x == 0) break; ...
import java.util.*; public class Main { /** * @param args */ public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); int i = 0; int x; do { i++; x = scan.nextInt(); if (x == 0) break; ...
[["-", 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.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); final String CASES = "Case "; int count = 0; while (true) { count++; int i = scanner.nextInt(); if (i == 0) break; System.out.println(CASES...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); final String CASE = "Case "; int count = 0; while (true) { count++; int i = scanner.nextInt(); if (i == 0) break; System.out.println(CASE +...
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["-", 3, 4, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
97
import java.util.Scanner; class Main { public static void main(String[] arg) { Scanner in = new Scanner(System.in); for (int i = 1;; ++i) { int a = in.nextInt(); if (a == 0) break; System.out.println("case " + i + ": " + a); } } }
import java.util.Scanner; class Main { public static void main(String[] arg) { Scanner in = new Scanner(System.in); for (int i = 1;; ++i) { int a = in.nextInt(); if (a == 0) break; System.out.println("Case " + i + ": " + a); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
83