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.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... | 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);
}
}
} | [["-", 31, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 31, 16, 31, 16, 31, 16, 31, 5, 0, 62], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+... | 3 | 95 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main {
public static void main(String[] args) {
int x = 0;
Scanner scan = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<Integer>();
int ii = 0;
while (ii > 0) {
x = scan.nextInt();
... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main {
public static void main(String[] args) {
int x = 0;
Scanner scan = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<Integer>();
int ii = 0;
while (scan.hasNextInt()) {
x = scan.ne... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 47], ["-", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 52, 15, 15, 0, 492, 500, 22], ["+", 8, 196, 0, 52, 15, 15, 0, 492, 0, 131], ["+", 8, 196, 0, 52, 15, 15, 0, 492, 141, 22], ["+", 0, 52, 15, 15, 0, 492, 3, 4, 0, 24], ... | 3 | 156 |
import java.util.*;
class Main {
public static void main(String[] args) {
int x, i = 0;
Scanner scan = new Scanner(System.in);
while (true) {
i++;
x = scan.nextInt();
if (x == 0) {
break;
}
System.out.println("Case " + x + ": " + x);
}
}
} | import java.util.*;
class Main {
public static void main(String[] args) {
int x, i = 0;
Scanner scan = new Scanner(System.in);
while (true) {
i++;
x = scan.nextInt();
if (x == 0) {
break;
}
System.out.println("Case " + i + ": " + x);
}
}
} | [["-", 3, 4, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 12, 22]] | 3 | 87 |
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 (i != 0) {
System.out.printf("Case %d: %d\n", i, x);
} else {
break;
}
}
}
} | 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) {
System.out.printf("Case %d: %d\n", i, x);
} else {
break;
}
}
}
} | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22]] | 3 | 88 |
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i = 0;
int y = 1;
String buf = br.readLine();
// String[] x = buf.split("",0);
int z = Integer.parseInt(buf);
wh... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i = 0;
int y = 1;
String buf = br.readLine();
// String[] x = buf.split("",0);
int z = Integer.parseInt(buf);
wh... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 118 |
import java.io.*;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in)); // ??\?????????
String chithanh = br.readLine(); ... | import java.io.*;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in)); // ??\?????????
String str = br.readLine(); ... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["-", 0, 503, 49, 200, 51, 492, 3, 4, 0, 22], ["+", 0, 503, 49, 200, 51, 492, 3, 4, 0, 22], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ... | 3 | 130 |
import java.io.*;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// String str = br.readLine();
StringBuilder sb = new StringBuilder();
int i = 1;
while... | import java.io.*;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// String str = br.readLine();
StringBuilder sb = new StringBuilder();
int i = 1;
while... | [["-", 500, 492, 500, 492, 3, 4, 0, 5, 0, 491], ["+", 500, 492, 500, 492, 3, 4, 0, 5, 0, 491]] | 3 | 137 |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
List<String> list = new ArrayList<String>();
for (int i = 0; i < 10000... | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
List<String> list = new ArrayList<String>();
for (int i = 0; i < 10001... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 499]] | 3 | 162 |
import java.util.*;
public 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;
} else {
System.out.println("Case"
+ " " + i + ":"
... | import java.util.Scanner;
public 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;
} else {
System.out.println("Case"
+ " " + i + "... | [["-", 36, 36, 0, 493, 0, 454, 0, 525, 0, 48], ["+", 36, 36, 0, 493, 0, 454, 0, 522, 141, 22], ["-", 75, 196, 0, 1, 0, 11, 12, 27, 0, 29], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 499]] | 3 | 100 |
import java.util.*;
public 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;
} else {
System.out.println("Case"
+ " " + i + ":"
... | import java.util.*;
public 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;
} else {
System.out.println("Case"
+ " " + i + ":"
... | [["-", 75, 196, 0, 1, 0, 11, 12, 27, 0, 29], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 12, 499]] | 3 | 100 |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* Created by khrom on 2017/06/12.
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
List<Integer> numList = new ArrayList<>();
while (true) {
int i = scanner.ne... | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* Created by khrom on 2017/06/12.
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
List<Integer> numList = new ArrayList<>();
while (true) {
int i = scanner.ne... | [["+", 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 | 142 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
for (int i = 1;; i++) {
int x = scanner.nextInt();
if (x == 0) {
break;
}
System.out.println("Case" + i + ": " + x);
}
}
} | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
for (int i = 1;; i++) {
int x = scanner.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 | 85 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner text = new Scanner(System.in);
int i = 1;
while (true) {
int x = text.nextInt();
if (x == 0) {
break;
} else {
System.out.println("Case" + i + ":"
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner text = new Scanner(System.in);
int i = 1;
while (true) {
int x = text.nextInt();
if (x == 0) {
break;
} else {
System.out.println("Case"
+ " " + i... | [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 72]] | 3 | 97 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int i = 0;
while (n != 0) {
System.out.println("Case " + (++i) + ":" + n);
n = sc.nextInt();
}
}
} | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int i = 0;
while (n != 0) {
System.out.println("Case " + (++i) + ": " + n);
n = 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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args)
throws NumberFormatException, IOException {
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args)
throws NumberFormatException, IOException {
... | [["-", 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.*;
class Main {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
int i = 0, data;
String indata;
while (true) {
indata = s.next();
data = Integer.parseInt(indata);
if (data == 0)
break;
i++;
System.out.println("case " +... | import java.util.*;
class Main {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
int i = 0, data;
String indata;
while (true) {
indata = s.next();
data = Integer.parseInt(indata);
if (data == 0)
break;
i++;
System.out.println("Case " +... | [["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]] | 3 | 97 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws java.lang.Exception {
ArrayList<Integer> x = new ArrayList<Integer>();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
i... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws java.lang.Exception {
ArrayList<Integer> x = new ArrayList<Integer>();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
i... | [["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]] | 3 | 168 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int count = 1;
while (true) {
int i = sc.nextInt();
if (i == 0) {
break;
}
System.out.println("Case"
... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int count = 1;
while (true) {
int i = sc.nextInt();
if (i == 0) {
break;
}
System.out.println("Case"
... | [["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72]] | 3 | 100 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int i = 0;;) {
i++;
int j = sc.nextInt();
if (j == 0) {
break;
}
System.out.printf("Case %d:%d\n", i, j);
}
sc.close();
}
} |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int i = 0;;) {
i++;
int j = sc.nextInt();
if (j == 0) {
break;
}
System.out.printf("Case %d: %d\n", i, j);
}
sc.close();
}
} | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 90 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
int a = 1;
int i = 0;
Scanner scan = new Scanner(System.in);
while (true) {
a = scan.nextInt();
if (a == 0)
break;
// a= Integer.... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
int a;
int i = 0;
Scanner scan = new Scanner(System.in);
while (true) {
a = scan.nextInt();
if (a == 0)
break;
// a= Integer.pars... | [["-", 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 | 95 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int Array[] = new int[20000];
Scanner InData = new Scanner(System.in);
for (int n = 1; n < 20000; n++) {
Array[n] = InData.nextInt();
if (Array[n] == 0)
break;
}
for (int n = 1; n < 20000; n+... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int Array[] = new int[20000];
Scanner InData = new Scanner(System.in);
for (int n = 1; n < 20000; n++) {
Array[n] = InData.nextInt();
if (Array[n] == 0)
break;
}
for (int n = 1; n < 20000; n+... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62]] | 3 | 136 |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
List<Integer> list = new ArrayList<Integer>();
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int inputNum = sc.nextInt();
if (inputNum != 0... |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
List<Integer> list = new ArrayList<Integer>();
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int inputNum = sc.nextInt();
if (inputNum != 0... | [["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]] | 3 | 143 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int cnt = 0;
while (true) {
cnt++;
int input = Integer.parseInt(br.readLine());
if (input == 0) {... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int cnt = 0;
while (true) {
cnt++;
int input = Integer.parseInt(br.readLine());
if (input == 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 | 105 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
int n;
Scanner stdIn = new Scanner(System.in);
for (int i = 1; stdIn.hasNext(); i++) {
n = stdIn.nextInt();
if (n == 0) {
break;
}
System.out.println("case " + i + ": " + n);
}
}
} | import java.util.Scanner;
class Main {
public static void main(String[] args) {
int n;
Scanner stdIn = new Scanner(System.in);
for (int i = 1; stdIn.hasNext(); i++) {
n = stdIn.nextInt();
if (n == 0) {
break;
}
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 | 92 |
import java.io.*;
class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(
new InputStreamReader(System.in)); // ??\????????????????????????
StringBuilder stringBuilder = new StringBuilder();
String line;
int index = 1;
while ((l... | import java.io.*;
class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(
new InputStreamReader(System.in)); // ??\????????????????????????
StringBuilder stringBuilder = new StringBuilder();
String line;
int index = 1;
while ((l... | [["-", 0, 57, 15, 15, 0, 16, 31, 492, 141, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 492, 141, 22], ["-", 15, 15, 0, 16, 31, 492, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 15, 15, 0, 492, 3, 4, 0, 5, 0, 62], ["+", 0, 57, 15, 15, 0, 492, 3, 4, 0, 25]] | 3 | 132 |
import java.io.*;
class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
int i = 1;
while ((line = br.readLine()) != null) {
if (line.equals("0")) {
break;
}
Syste... | import java.io.*;
class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
int i = 1;
while ((line = br.readLine()) != null) {
if (line.equals("0")) {
break;
}
Syste... | [["-", 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.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 i = 1;
while (true) {
int x = Integer.parse... | 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 i = 1;
while (true) {
int x = Integer.parse... | [["-", 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.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder st = new StringBuilder();
int k = 0;
while (true) {
int num = Integer.parseInt(br.readLine());
if (num... | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder st = new StringBuilder();
int k = 0;
while (true) {
int num = Integer.parseInt(br.readLine());
if (num... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46]] | 3 | 109 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = "str ";
String delimeter = ": ";
for (int i = 1; sc.hasNextInt(); i++) {
int testCase = sc.nextInt();
if (testCase == 0) {
break;
}
Syste... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = "Case ";
String delimeter = ": ";
for (int i = 1; sc.hasNextInt(); i++) {
int testCase = sc.nextInt();
if (testCase == 0) {
break;
}
Syst... | [["-", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["+", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491]] | 3 | 101 |
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));
StringBuffer str = new StringBuffer();
int i = 1;
wh... | 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));
StringBuffer str = new StringBuffer();
int i = 1;
whil... | [["-", 500, 492, 500, 492, 3, 4, 0, 5, 0, 491], ["+", 500, 492, 500, 492, 3, 4, 0, 5, 0, 491]] | 3 | 151 |
//
// Write a program which reads an integer x and print it as is.
// Note that multiple datasets are given for this problem.
//
import java.io.BufferedReader;
import java.io.InputStreamReader;
interface Aggregate {
public abstract Iterator createIterator();
}
interface Iterator {
public abstract boolean hasNext... | //
// Write a program which reads an integer x and print it as is.
// Note that multiple datasets are given for this problem.
//
import java.io.BufferedReader;
import java.io.InputStreamReader;
interface Aggregate {
public abstract Iterator createIterator();
}
interface Iterator {
public abstract boolean hasNext... | [["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]] | 3 | 452 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int i, x;
for (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 i, x;
for (i = 1; i <= 10000; i++) {
x = scan.nextInt();
if (x == 0)
break;
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.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
String buffer;
int count = 0;
try {
while ((buffer = reader.readLine()) != null) {... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
String buffer;
int i = 0;
try {
while ((buffer = reader.readLine()) != null) {
... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["-", 0, 52, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 52, 8, 196, 0, 503, 49, 200, 141, 22], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 492, ... | 3 | 126 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int input = 0;
int count = 0;
do {
input = sc.nextInt();
if (input != 0) {
System.out.println("case " + ++count + ": " + input);
}
} while (input ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int input = 0;
int count = 0;
do {
input = sc.nextInt();
if (input != 0) {
System.out.println("Case " + ++count + ": " + input);
}
} while (input ... | [["-", 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;
class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
int i = 1;
while (true) {
int x = cin.nextInt();
if (x == 0)
break;
System.out.println("Case " + i + ": " + x);
}
}
}
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
int i = 1;
while (true) {
int x = cin.nextInt();
if (x == 0)
break;
System.out.println("Case " + i + ": " + x);
i++;
}
}
}
| [["+", 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 | 81 |
int main() {
int x;
int i = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %lf: %lf\n", ++i, x);
}
return 0;
} | int main() {
int x;
int i = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", ++i, x);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 54 |
#include <stdio.h>
int main(void) {
int i, x;
i = 0;
while (1) {
scanf("%d\n", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i++, x);
}
return 0;
} | #include <stdio.h>
int main() {
int x;
int i = 0;
while (1) {
scanf("%d\n", &x);
if (x == 0)
break;
printf("Case %d: %d\n", ++i, x);
}
return 0;
} | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 27, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 27, 28, 22]] | 0 | 59 |
#include <stdio.h>
int a, n = 1;
int main(void) {
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d:%d\n", n, a);
n++;
}
return 0;
} |
#include <stdio.h>
int a, n = 1;
int main(void) {
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", n, a);
n++;
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 58 |
n;
main(i) {
for (i = 1; scanf("%d", &n), n; printf("%d:%d\n", i++, n))
;
return 0;
} | n;
main(i) {
for (i = 1; scanf("%d", &n), n; printf("Case %d: %d\n", i++, n))
;
return 0;
} | [["-", 0, 7, 26, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 7, 26, 2, 3, 4, 0, 5, 0, 6]] | 0 | 43 |
#include <stdio.h>
int main(void) {
int i;
int k = 1;
while (1) {
scanf("%d", &i);
if (i == 0)
break;
printf("Case %d:%d\n", k, i);
k++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int i;
int k = 1;
while (1) {
scanf("%d", &i);
if (i == 0)
break;
printf("Case %d: %d\n", k, i);
k++;
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 59 |
#include <stdio.h>
int main() {
int i;
int x;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main() {
int i;
int x;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 60 |
#include <stdio.h>
int main(void) {
int a, i;
i = 1;
while (scanf("%d", &a) == 1) {
if (a)
return 0;
printf("Case %d: %d\n", i++, a);
}
return 0;
} | #include <stdio.h>
int main(void) {
int a, i;
i = 1;
while ((scanf("%d", &a)) == 1) {
if (a == 0)
return 0;
printf("Case %d: %d\n", i++, a);
}
return 0;
} | [["+", 0, 52, 15, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]] | 0 | 57 |
#include <stdio.h>
int main() {
int i, x;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d %d\n", i, x);
}
return 0;
} | #include <stdio.h>
main() {
int i, x;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 58 |
#include <stdio.h>
int main(int argc, const char *argv[]) {
int i;
int x;
scanf("%d", &x);
while (x != 0) {
i++;
printf("Case %d:%d\n", i, x);
scanf("%d", &x);
}
return 0;
} | #include <stdio.h>
int main(int argc, const char *argv[]) {
int i;
int x;
scanf("%d", &x);
while (x != 0) {
i++;
printf("Case %d: %d\n", i, x);
scanf("%d", &x);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 69 |
#include <stdio.h>
int main(void) {
int i, x;
for (i = 1; i < 10000; i++) {
scanf("%d", &x);
if (x == 0) {
break;
} else {
printf("Case %d: %d\n", i + 1, x);
}
}
return (0);
}
| #include <stdio.h>
int main(void) {
int i, x;
for (i = 0; i < 10000; i++) {
scanf("%d", &x);
if (x == 0) {
break;
} else {
printf("Case %d: %d\n", i + 1, x);
}
}
return (0);
}
| [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13]] | 0 | 71 |
#include <stdio.h>
int main(void) {
int i = 1, x = 1;
while (x != 0) {
scanf("%d", &x);
if (x != 0) {
printf("Case %d:%d\n", i, x);
}
i++;
}
return 0;
}
| #include <stdio.h>
int main(void) {
int i = 1, x = 1;
while (x != 0) {
scanf("%d", &x);
if (x != 0) {
printf("Case %d: %d\n", i, x);
}
i++;
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 62 |
#include <stdio.h>
int main(void) {
int i = 0;
int x;
while (x != 0) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
}
| #include <stdio.h>
int main(void) {
int i = 1;
int x;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 23, 0, 13]] | 0 | 61 |
#include <stdio.h>
int main(void) {
int x[10000], y;
int i = 0;
while (i < 10000) {
scanf("%d", &y);
x[i] = y;
i++;
if (y == 0) {
break;
}
}
i = 0;
while (x[i] != NULL) {
printf("Code %d : %d\n", i + 1, x[i]);
i++;
}
return 0;
}
| #include <stdio.h>
int main(void) {
int x[10000], y;
int i = 0;
while (1) {
scanf("%d", &y);
x[i] = y;
i++;
if (y == 0) {
break;
}
}
i = 0;
while (x[i] != NULL) {
printf("Case %d: %d\n", i + 1, x[i]);
i++;
}
return 0;
}
| [["-", 8, 9, 0, 52, 15, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 18], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 23, 0, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 98 |
#include <stdio.h>
int main(void) {
int x;
int count = 1;
scanf("%d", &x);
while (x != 0) {
printf("case %d: %d\n", count, x);
count = count + 1;
scanf("%d", &x);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int x;
int count = 1;
scanf("%d", &x);
while (x != 0) {
printf("Case %d: %d\n", count, x);
count = count + 1;
scanf("%d", &x);
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 66 |
#include <stdio.h>
int main(void) {
int i, n;
i = 1;
n = 1;
while (n != 0) {
scanf("%d", &n);
if (n == 0) {
}
else {
printf("Case %d:%d\n", i, n);
i++;
}
}
return 0;
}
| #include <stdio.h>
int main(void) {
int i, n;
i = 1;
n = 1;
while (n != 0) {
scanf("%d", &n);
if (n == 0) {
}
else {
printf("Case %d: %d\n", i, n);
i++;
}
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 69 |
#include <stdio.h>
int main() {
int a, cnt = 1;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", cnt, a);
}
return 0;
}
| #include <stdio.h>
int main() {
int a, cnt = 1;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", cnt, a);
cnt++;
}
return 0;
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 0 | 54 |
#include <stdio.h>
int main() {
int n[10000];
int i = 0;
int count = 0;
while (1) {
scanf("%d", &n[i]);
if (n[i] == 0)
break;
i++;
count++;
}
for (i = 0; i < count; i++) {
printf("Case %d: %d\n", i, n[i]);
}
return 0;
}
| #include <stdio.h>
int main() {
int n[10000];
int i = 0;
int count = 0;
while (1) {
scanf("%d", &n[i]);
if (n[i] == 0)
break;
i++;
count++;
}
for (i = 0; i < count; i++) {
printf("Case %d: %d\n", i + 1, n[i]);
}
return 0;
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 93 |
#include <stdio.h>
int main() {
int i, x;
for (i = 1; scanf("%d", &x); i++) {
if (x == 0)
break;
printf("case %d: %d\n", i, x);
}
return 0;
}
| #include <stdio.h>
int main() {
int l, x;
for (l = 1; scanf("%d", &x); l++) {
if (x == 0)
break;
printf("Case %d: %d\n", l, x);
}
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 10, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, ... | 0 | 57 |
#include <stdio.h>
int main() {
int n, c = 1;
while (scanf("%d", &n) != EOF) {
if (n == 0)
break;
printf("case %d: %d\n", c, n);
c++;
}
return 0;
}
| #include <stdio.h>
int main() {
int n, c = 1;
while (scanf("%d", &n) != EOF) {
if (n == 0)
break;
printf("Case %d: %d\n", c, n);
c++;
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 57 |
#include <stdio.h>
int main() {
int i, x;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d", i, x);
}
return 0;
}
| #include <stdio.h>
int main() {
int i, n;
for (i = 1;; i++) {
scanf("%d", &n);
if (n == 0)
break;
printf("Case %d: %d\n", i, n);
}
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0... | 0 | 57 |
#include <stdio.h>
int main() {
int i, n;
for (i = 0;; i++) {
scanf("%d", &n);
if (n == 0)
break;
else
printf("Case %d: %d\n", i, n);
}
return 0;
}
| #include <stdio.h>
int main() {
int i, n;
for (i = 1;; i++) {
scanf("%d", &n);
if (n == 0)
break;
else
printf("Case %d: %d\n", i, n);
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13]] | 0 | 59 |
#include <stdio.h>
int main(void) {
int x;
int i = 1;
int flag = 1;
while (flag = 0) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i = i + 1;
}
return 0;
}
| #include <stdio.h>
int main(void) {
int x;
int i = 1;
int flag = 1;
while (flag = 1) {
scanf("%d", &x);
if (x == 0) {
flag = 0;
break;
}
printf("Case %d: %d\n", i, x);
i = i + 1;
}
return 0;
}
| [["-", 8, 9, 0, 52, 15, 23, 0, 11, 12, 13], ["+", 8, 9, 0, 52, 15, 23, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 0 | 71 |
#include <stdio.h>
int main() {
int i = 1, x = 1;
while (x != 0) {
scanf("%d", &x);
if (x != 0) {
printf("Case %d: %d", i, x);
i++;
}
}
return 0;
}
| #include <stdio.h>
int main() {
int i = 1, x = 1;
while (x != 0) {
scanf("%d", &x);
if (x != 0) {
printf("Case %d: %d\n", i, x);
i++;
}
}
return 0;
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 60 |
#include <stdio.h>
int main() {
int x, i;
i = 1;
do {
scanf("%d", &x);
if (!x)
break;
printf("Case %d: %d\n", i, x);
} while (1);
return 0;
}
| #include <stdio.h>
int main() {
int x, i;
i = 1;
do {
scanf("%d", &x);
if (!x)
break;
printf("Case %d: %d\n", i, x);
i++;
} while (1);
return 0;
}
| [["+", 0, 82, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 82, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 82, 8, 9, 0, 1, 0, 35]] | 0 | 57 |
#include <stdio.h>
#define INPUT_NUMBER 3
int main(void) {
int num[10000];
int not_zero = 1;
int i = 0;
while (not_zero) {
scanf("%d", &num[i]);
if (num[i] == 0) {
not_zero = 0;
}
i++;
}
for (int h = 0; h < i - 1; h++) {
printf("Case %d: %d\n", h, num[h]);
}
return 0;
}
| #include <stdio.h>
#define INPUT_NUMBER 3
int main(void) {
int num[10000];
int not_zero = 1;
int i = 0;
while (not_zero) {
scanf("%d", &num[i]);
if (num[i] == 0) {
not_zero = 0;
}
i++;
}
for (int h = 0; h < i - 1; h++) {
printf("Case %d: %d\n", h + 1, num[h]);
}
return 0;
... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 101 |
#include <stdio.h>
int main(void) {
int a[10000], c;
int b = 0;
while (1) {
scanf("%d", &a[b]);
if (a[b] == 0) {
break;
}
b++;
}
for (c = 1; c < b; c++) {
printf("Case %d: %d", c, a[c - 1]);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int a[10000], c;
int b = 0;
while (1) {
scanf("%d", &a[b]);
if (a[b] == 0) {
break;
}
b++;
}
for (c = 1; c <= b; c++) {
printf("Case %d: %d\n", c, a[c - 1]);
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 91 |
#include <stdio.h>
int main(void) {
int x, i;
i = 0;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
i++;
printf("Case=%d : %d\n", i, x);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int x, i;
i = 0;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
i++;
printf("Case %d: %d\n", i, x);
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 62 |
#include <stdio.h>
int main() {
int i, a;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i++, a);
}
return 0;
}
| #include <stdio.h>
int main() {
int i, a;
i = 1;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i++, a);
}
return 0;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 0 | 53 |
#include <stdio.h>
int main() {
int i = 1;
int x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d; %d\n", i, x);
i++;
}
return 0;
}
| #include <stdio.h>
int main() {
int i = 1;
int x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 60 |
#include <stdio.h>
int main() {
for (int i = 0; i < 1000; i++) {
int a;
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d : %d\n", i, a);
}
return 0;
}
| #include <stdio.h>
int main() {
for (int i = 1; i <= 10000; i++) {
int a;
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i, a);
}
return 0;
}
| [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5... | 0 | 60 |
#include <stdio.h>
int main(void) {
int cnt, num;
cnt = 0;
scanf("%d\n", &num);
while (num != 0) {
cnt++;
printf("Case %d: %d", cnt, num);
scanf("%d\n", &num);
}
return 0;
} | #include <stdio.h>
int main(void) {
int cnt, num;
cnt = 0;
scanf("%d\n", &num);
while (num != 0) {
cnt++;
printf("Case %d: %d\n", cnt, num);
scanf("%d\n", &num);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 65 |
#include <stdio.h>
main() {
int a, i = 1;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d = %d\n", i, a);
i++;
}
return 0;
} | #include <stdio.h>
main() {
int a, i = 1;
while (1) {
scanf("%d", &a);
if (a == 0) {
break;
}
printf("Case %d: %d\n", i, a);
i++;
}
return 0;
} | [["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 57 |
#include <stdio.h>
main() {
int i, a = 1;
while (1) {
scanf("%d", &i);
if (i == 0)
break;
printf("Case %d:%d\n", a, i);
a++;
}
return 0;
} | #include <stdio.h>
main() {
int i, a = 1;
while (1) {
scanf("%d", &i);
if (i == 0)
break;
printf("Case %d: %d\n", a, i);
a++;
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 57 |
#include <stdio.h>
int main() {
int i = 1;
int tmp;
scanf("%d", &tmp);
while (tmp != 0) {
printf("Case %d: %d\n", ++i, tmp);
scanf("%d", &tmp);
}
return 0;
} | #include <stdio.h>
int main() {
int i = 1;
int tmp;
scanf("%d", &tmp);
while (tmp != 0) {
printf("Case %d: %d\n", i++, tmp);
scanf("%d", &tmp);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 27, 17, 29], ["+", 0, 1, 0, 2, 3, 4, 0, 27, 17, 29]] | 0 | 60 |
#include <stdio.h>
int main(void) {
int i, x;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
break;
else
printf("case %d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, x;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
break;
else
printf("Case %d: %d\n", i, x);
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 60 |
#include <math.h>
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
int sprInput(char *retstr, char *str, int strnum) {
char buf[256] = {};
int h, i, j;
i = 0;
for (h = 0; h < strnum; h++) {
memset(buf, '\0', sizeof(buf));
j = 0;
if (str[i] == '\0')
break;
while (str[i] != ' ' &... | #include <math.h>
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
int sprInput(char *retstr, char *str, int strnum) {
char buf[256] = {};
int h, i, j;
i = 0;
for (h = 0; h < strnum; h++) {
memset(buf, '\0', sizeof(buf));
j = 0;
if (str[i] == '\0')
break;
while (str[i] != ' ' &... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 268 |
#include <stdio.h>
int main(void) {
int i, x;
i = 0;
while (1) {
scanf("%d", &x);
if (x -= 0)
break;
else {
i++;
printf("Case %d: %d\n", i, x);
}
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, x;
i = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
else {
i++;
printf("Case %d: %d\n", i, x);
}
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 110], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60]] | 0 | 63 |
#include <stdio.h>
int main(int argv, char *argc[]) {
int i;
int input;
for (i = 1;; i++) {
scanf("%d", &input);
if (0 == input)
break;
printf("Case %d: %d", i, input);
}
return 0;
} | #include <stdio.h>
int main(int argv, char *argc[]) {
int i;
int input;
for (i = 1;; i++) {
scanf("%d", &input);
if (0 == input)
break;
printf("Case %d: %d\n", i, input);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 66 |
#include <stdio.h>
#define SIZE 32768
int main(void) {
int i = 0;
int x[SIZE] = {0};
for (i = 0; i < SIZE; i++) {
scanf("%d", &x[i]);
}
for (i = 0; i < SIZE; i++) {
if (x[i] == 0)
return 0;
else {
printf("Case %d:%d\n", i + 1, x[i]);
}
}
return 0;
} | #include <stdio.h>
#define SIZE 32767
int main(void) {
int i = 0;
int x[SIZE] = {0};
for (i = 0; i < SIZE; i++) {
scanf("%d", &x[i]);
}
for (i = 0; i < SIZE; i++) {
if (x[i] == 0)
return 0;
else {
printf("Case %d: %d\n", i + 1, x[i]);
}
}
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 105 |
#include <stdio.h>
int main() {
int i;
char s[10];
for (i = 0;; i++) {
gets(s);
if (s[0] == '0')
break;
printf("Case %d: %s\n", i, s);
}
return 0;
} | #include <stdio.h>
int main() {
int i;
char s[10];
for (i = 0;; i++) {
gets(s);
if (s[0] == '0')
break;
printf("Case %d: %s\n", i + 1, s);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 62 |
int main() {
int i = 0;
char x[16];
while (i++ && gets(x) && x[0] - '0') {
printf("Case %d: %s\n", i, x);
}
return 0;
} | int main() {
int i = 0;
char x[16];
while (++i && gets(x) && x[0] - '0') {
printf("Case %d: %s\n", i, x);
}
return 0;
} | [["-", 15, 23, 0, 16, 31, 16, 31, 27, 28, 22], ["+", 15, 23, 0, 16, 31, 16, 31, 27, 28, 22]] | 0 | 53 |
#include <stdio.h>
int main(void) {
int buf, count = 1;
while (scanf("%d", buf) != -1 && buf != 0) {
printf("Case %d: %d\n", count++, buf);
}
return 0;
} | #include <stdio.h>
int main(void) {
int buf, count = 1;
while (scanf("%d", &buf) != -1 && buf != 0) {
printf("Case %d: %d\n", count++, buf);
}
return 0;
} | [["+", 31, 16, 31, 2, 3, 4, 0, 66, 17, 67]] | 0 | 51 |
#include <stdio.h>
int main() {
int i, x;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case%d\n: %d", i, x);
}
return 0;
} | #include <stdio.h>
int main() {
int i, x;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i++, x);
}
return 0;
} | [["-", 0, 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, 27, 17, 29]] | 0 | 57 |
#include <stdio.h>
int main(void) {
int i = 1, a;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
else
printf("case %d: %d\n", i, a);
i++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int i = 1, a;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
else
printf("Case %d: %d\n", i, a);
i++;
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 59 |
#include <stdio.h>
int main(void) {
int i, x, count;
for (i = 1; i < 1000; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, x;
for (i = 1; i < 99999; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 63 |
#include <stdio.h>
int main(void) {
int i, x;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i = 0, x;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
i++;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 52, 8, 9, 0, 57, 64, 93, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29]] | 0 | 53 |
#include <stdio.h>
int main(int argc, const char *argv[]) {
// insert code here...
int i = 1;
while (1) {
int x;
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d:%d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main(int argc, const char *argv[]) {
// insert code here...
int i = 1;
while (1) {
int x;
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 70 |
#include <stdio.h>
int main() {
int i, x;
i = 1;
scanf("%d", &x);
while (x) {
printf("Case %d: %d", i, x);
i++;
scanf("%d", &x);
}
return 0;
} | #include <stdio.h>
int main() {
int i, x;
i = 1;
scanf("%d", &x);
while (x) {
printf("Case %d: %d\n", i, x);
i++;
scanf("%d", &x);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 60 |
#include <stdio.h>
int main() {
int x, i = 0;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
} else {
i++;
printf("Case %d:%d\n", i, x);
}
}
return 0;
} | #include <stdio.h>
int main() {
int x, i = 0;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
} else {
i++;
printf("Case %d: %d\n", i, x);
}
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 62 |
#include <stdio.h>
int main() {
int idx = 0, value;
while (1) {
scanf("%d", &value);
if (0 == value) {
break;
}
printf("Case %d: %d\n", value, ++idx);
}
return 0;
} | #include <stdio.h>
int main() {
int idx = 0, value;
while (1) {
scanf("%d", &value);
if (0 == value) {
break;
}
printf("Case %d: %d\n", ++idx, value);
}
return 0;
} | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 0 | 57 |
#include <stdio.h>
int main(void) {
int i, d;
i = 1;
while (scanf("%d", &d) != EOF && d != 0) {
printf("case %d: %d\n", i++, d);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, d;
i = 1;
while (scanf("%d", &d) != EOF && d != 0) {
printf("Case %d: %d\n", i++, d);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 54 |
#include <stdio.h>
int main(void) {
int x = 1;
int i = 0;
while (x != 0) {
scanf("%d", &x);
if (x != 0)
printf("case %d: %d\n", i + 1, x);
i++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int x = 1;
int i = 0;
while (x != 0) {
scanf("%d", &x);
if (x != 0)
printf("Case %d: %d\n", i + 1, x);
i++;
}
return 0;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 63 |
#include <stdio.h>
int main(void) {
int x[50], i = 0, cnt;
while (1) {
scanf("%d", &x[i]);
if (x[i] == 0) {
break;
} else {
i++;
cnt++;
}
}
for (i = 1; i <= cnt; i++) {
printf("Case %d: %d\n", i, x[i - 1]);
}
return 0;
} | #include <stdio.h>
int main(void) {
int x[10000], i = 0, cnt;
while (1) {
scanf("%d", &x[i]);
if (x[i] == 0) {
break;
} else {
i++;
cnt++;
}
}
for (i = 1; i <= cnt; i++) {
printf("Case %d: %d\n", i, x[i - 1]);
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]] | 0 | 97 |
#include <stdio.h>
int main(void) {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 60 |
#include <stdio.h>
int main() {
int x, i;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main() {
int x, i;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 0 | 57 |
#include <stdio.h>
int main(void) {
int a, b;
for (a = 1;; a++) {
scanf("%d", &b);
if (b != 0) {
printf("Case %d:%d\n", a, b);
} else {
return 0;
}
}
} | #include <stdio.h>
int main(void) {
int a, b;
for (a = 1;; a++) {
scanf("%d", &b);
if (b != 0) {
printf("Case %d: %d\n", a, b);
} else {
return 0;
}
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 62 |
#include <stdio.h>
int main() {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main() {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 56 |
#include <stdio.h>
int main() {
int x[1000001];
int i, j;
for (i = 0; i <= 1000000; i++) {
scanf("%d", &x[i]);
if (x[i] == 0) {
break;
}
}
for (j = 0; j <= i; j++) {
printf("Case %d: %d\n", j + 1, x[j]);
}
return 0;
} | #include <stdio.h>
int main() {
int x[1000001];
int i, j;
for (i = 0; i <= 1000000; i++) {
scanf("%d", &x[i]);
if (x[i] == 0) {
break;
}
}
for (j = 0; j <= i - 1; j++) {
printf("Case %d: %d\n", j + 1, x[j]);
}
return 0;
} | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 0 | 95 |
#include <stdio.h>
int main() {
int i, n;
i = 0;
while (1) {
scanf("%d", &n);
i = i + 1;
if (n == 0)
break;
printf("case %d: %d\n", i, n);
}
} | #include <stdio.h>
int main() {
int i, n;
i = 0;
while (1) {
scanf("%d", &n);
i = i + 1;
if (n == 0)
break;
printf("Case %d: %d\n", i, n);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]] | 0 | 59 |
#include <stdio.h>
int main(void) {
int x, i;
i = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
i = i + 1;
printf("case%d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i;
i = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
i = i + 1;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 63 |
#include <stdio.h>
int main() {
int x, i;
i = 1;
while (i > 0) {
scanf("%d", x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main() {
int x, i;
i = 1;
while (i > 0) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 60 |
#include <stdio.h>
int main() {
int x, i = 0;
while (i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main() {
int x, i = 0;
while (++i) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [["-", 8, 9, 0, 52, 15, 23, 0, 27, 28, 22], ["+", 8, 9, 0, 52, 15, 23, 0, 27, 28, 22]] | 0 | 55 |
#include <stdio.h>
int main() {
int i = 0, n = 0;
while (1) {
scanf("%d", &n);
if (n == 0)
break;
i++;
printf("Case %d:%d\n", i, n);
}
return 0;
} | #include <stdio.h>
int main() {
int i = 0, n = 0;
while (1) {
scanf("%d", &n);
if (n == 0)
break;
i++;
printf("Case %d: %d\n", i, n);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 59 |
#include <stdio.h>
int main(void) {
int x, i = 1;
while (scanf("%d", &x) != EOF) {
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i = 1;
while (scanf("%d", &x), x != 0) {
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [["+", 8, 9, 0, 52, 15, 23, 0, 34, 0, 21], ["+", 0, 52, 15, 23, 0, 34, 12, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 12, 22], ["+", 0, 52, 15, 23, 0, 34, 12, 16, 12, 13]] | 0 | 50 |
#include <stdio.h>
int main(void) {
int a;
int i = 1;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i, a);
}
return 0;
} | #include <stdio.h>
int main(void) {
int a;
int i = 1;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i, a);
i++;
}
return 0;
} | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 0 | 56 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.