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 <iostream>
#include <vector>
using namespace std;
int main(void) {
vector<int> array;
while (1) {
int tmp;
cin >> tmp;
if (tmp == 0)
break;
array.push_back(tmp);
}
for (int i = 0; i < array.size(); i++) {
cout << "Case" << i + 1 << ": " << array.at(i) << endl;
}
return 0;... | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
vector<int> array;
while (1) {
int tmp;
cin >> tmp;
if (tmp == 0)
break;
array.push_back(tmp);
}
for (int i = 0; i < array.size(); i++) {
cout << "Case " << i + 1 << ": " << array.at(i) << endl;
}
return 0... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0; i < 10000; i++) {
int x;
cin >> x;
if (x == 0)
break;
else {
cout << "Case" << i + 1 << ": " << x << endl;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0; i < 10000; i++) {
int x;
cin >> x;
if (x == 0)
break;
else {
cout << "Case " << i + 1 << ": " << x << endl;
}
}
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 64 |
#include <iostream>
using namespace std;
int main() {
int i = 0, x;
while (cin >> x)
cout << "Case " << ++i << ": " << x << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 0, x;
while ((cin >> x) && x)
cout << "Case " << ++i << ": " << x << endl;
return 0;
}
| [["+", 0, 52, 15, 339, 51, 16, 31, 23, 0, 24], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 52, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98]] | 1 | 45 |
#include <iostream>
using namespace std;
int main() {
int x[10000];
for (int i = 0; i < 10001; i = i + 1) {
cin >> x[i];
}
for (int i = 0; i < 10001; i = i + 1) {
if (x[i] == 0) {
i = 10001;
break;
} else {
cout << "Case " << i << ": " << x[i] << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x[10000];
for (int i = 1; i < 10001; i = i + 1) {
cin >> x[i];
}
for (int i = 1; i < 10001; i = i + 1) {
if (x[i] == 0) {
break;
} else {
cout << "Case " << i << ": " << x[i] << endl;
}
}
return 0;
}
| [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 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]] | 1 | 105 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int data, count = 0;
vector<int> data_vector;
while (1) {
cin >> data;
if (data == 0)
break;
data_vector.push_back(data);
count++;
}
for (int i = 0; i < count; i++) {
cout << "Case " << i + 1 << ":" << data_vect... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int data, count = 0;
vector<int> data_vector;
while (1) {
cin >> data;
if (data == 0)
break;
data_vector.push_back(data);
count++;
}
for (int i = 0; i < count; i++) {
cout << "Case " << i + 1 << ": " << data_vec... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 92 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x;
for (int i = 1; true; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x;
}
return 0;
}
| #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x;
for (int i = 1; true; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [["+", 0, 7, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 62 |
#include <iostream>
using namespace std; // or std::cin et al.
int main() {
int i, count = 1;
while (1) {
cin >> i;
if (i == 0) {
break;
}
cout << "Case " << count << ": " << i << endl;
}
return 0;
}
| #include <iostream>
using namespace std; // or std::cin et al.
int main() {
int i, count = 1;
while (1) {
cin >> i;
if (i == 0) {
break;
}
cout << "Case " << count << ": " << i << endl;
count++;
}
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]] | 1 | 59 |
#include <iostream>
using namespace std;
int main() {
int a, i = 1;
while (cin >> a) {
if (a == 0)
break;
cout << "Case " << i << ":" << a << endl;
++i;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, i = 1;
while (cin >> a) {
if (a == 0)
break;
cout << "Case " << i << ":"
<< " " << a << endl;
++i;
}
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 57 |
#include <iostream>
using namespace std;
int main() {
int x;
for (int i = 0; i < 10000; ++i) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 0; i < 10000; ++i) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i + 1 << ": " << x << endl;
}
return 0;
}
| [["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 62 |
#include <iostream>
using namespace std;
int main(void) {
int i = 1;
int in;
while (1) {
cin >> in;
if (in == 0) {
break;
} else {
cout << "Case"
<< " " << i << ":"
<< " " << in << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int i = 1;
int in;
while (1) {
cin >> in;
if (in == 0) {
break;
} else {
cout << "Case"
<< " " << i << ":"
<< " " << in << endl;
i++;
}
}
return 0;
}
| [["+", 75, 76, 0, 9, 0, 1, 0, 27, 28, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 27, 17, 29], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35]] | 1 | 71 |
#include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x != 0) {
cout << "case"
<< " " << i << ": " << x << endl;
i++;
} else {
return 0;
}
}
}
| #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x != 0) {
cout << "Case"
<< " " << i << ": " << x << endl;
i++;
} else {
return 0;
}
}
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 66 |
#include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
cin >> x;
while (x) {
cout << "Case " << i << ": " << endl;
i++;
cin >> x;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
cin >> x;
while (x) {
cout << "Case " << i << ": " << x << endl;
i++;
cin >> x;
}
return 0;
}
| [["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151]] | 1 | 54 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10001; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case" << i << ":" << x << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10001; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 59 |
#include <iostream>
using namespace std;
int main(void) {
int x;
//繰り返し処理をするときは「 for文 」を使う
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x != 0) {
cout << "Case " << i << ":" << x << endl;
} else {
break;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int x;
//繰り返し処理をするときは「 for文 」を使う
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x != 0) {
cout << "Case " << i << ": " << x << endl;
} else {
break;
}
}
return 0;
}
| [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 69 |
#include <iostream>
using namespace std;
int main() {
int x[10000], a, i, j;
for (i = 0; i < 10000; ++i) {
cin >> x[i];
a = x[i];
if (a == 0) {
break;
}
}
for (j = 0; j < i; ++j) {
cout << "Case " << j << " " << x[j] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x[10000], a, i, j;
for (i = 0; i < 10000; ++i) {
cin >> x[i];
a = x[i];
if (a == 0) {
break;
}
}
for (j = 0; j < i; ++j) {
cout << "Case " << j + 1 << ": " << x[j] << endl;
}
return 0;
}
| [["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 100 |
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
for (int i = 0; i < 10000; i++) {
int x = 0;
cin >> x;
if (x == 0)
break;
else
cout << "Case " << i ... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
for (int i = 0; i < 10000; i++) {
int x = 0;
cin >> x;
if (x == 0)
break;
else
cout << "Case " << i ... | [["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 76 |
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int i = 1;
while (x != 0) {
cout << "Case " << i << ":" << x << endl;
i += 1;
cin >> x;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int i = 1;
while (x != 0) {
cout << "Case " << i << ": " << x << endl;
i += 1;
cin >> x;
}
return 0;
}
| [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 59 |
#include <stdio.h>
using namespace std;
int main(void) {
int x;
for (int i = i; true; ++i) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
}
return 0;
}
| #include <stdio.h>
using namespace std;
int main(void) {
int x;
for (int i = 1; true; ++i) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
}
return 0;
}
| [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 65 |
#include <iostream>
using namespace std;
int main() {
int number;
int i = 1;
while (1 < 3) {
cin >> number;
if (number == 0) {
break;
}
cout << "case " << i << ": " << number << endl;
i++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int number;
int i = 1;
while (1 < 3) {
cin >> number;
if (number == 0) {
break;
}
cout << "Case " << i << ": " << number << endl;
i++;
}
return 0;
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 64 |
#include <iostream>
using namespace std;
int main() {
int i = 1;
while (true) {
int a;
cin >> a;
if (a != 0) {
cout << "Cace " << i << ": " << a << endl;
i++;
} else {
break;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 1;
while (true) {
int a;
cin >> a;
if (a != 0) {
cout << "Case " << i << ": " << a << endl;
i++;
} else {
break;
}
}
return 0;
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 65 |
#include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i++;
return 0;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i++;
}
return 0;
}
| [["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 38], ["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 13], ["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 35]] | 1 | 71 |
#include <iostream>
using namespace std;
int main() {
int x, i = 1;
cin >> x;
while (true) {
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i = i + 1;
int x;
cin >> x;
if (x == 0)
break;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, i = 1;
cin >> x;
while (true) {
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i = i + 1;
cin >> x;
if (x == 0)
break;
}
return 0;
}
| [["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 49, 22], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 0, 35]] | 1 | 77 |
#include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (true) {
cin >> x;
if (x == 0)
break;
else {
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (true) {
cin >> x;
if (x == 0)
break;
else {
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i = i + 1;
}
}
return 0;
}
| [["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35]] | 1 | 67 |
#include <iostream>
using namespace std;
int main() {
int cou = 1;
int n;
while (n != 0) {
cin >> n;
if (n == 0)
break;
cout << "Case"
<< " " << cou << ":"
<< " " << n << endl;
cou++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int cou = 1;
int n;
while (1) {
cin >> n;
if (n == 0)
break;
cout << "Case"
<< " " << cou << ":"
<< " " << n << endl;
cou++;
}
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13]] | 1 | 70 |
#include <iostream>
using namespace std;
int main() {
int i = 1;
int a;
while (1) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << "¥n";
i++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 1;
int a;
while (1) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << endl;
i++;
}
return 0;
}
| [["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 62 |
#include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
else
cout << "Case" << i << ":"
<< " " << x << endl;
i += 1;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
else
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i += 1;
}
return 0;
}
| [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 151]] | 1 | 66 |
#include <iostream>
using namespace std;
int main() {
int i;
int x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i++ << ":"
<< " " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i++ << ":"
<< " " << x << endl;
}
return 0;
}
| [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 64 |
#include <iostream>
using namespace std;
int main() {
int n = 0, x;
while (1) {
cin >> x;
if (x == 0)
break;
n++;
cout << "Case" << n << ": " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n = 0, x;
while (1) {
cin >> x;
if (x == 0)
break;
n++;
cout << "Case " << n << ": " << x << endl;
}
return 0;
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 59 |
#include <stdio.h>
using namespace std;
int main(void) {
// Your code here!
int i, x;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("case %d: %d\n", i, x);
i++;
}
}
| #include <stdio.h>
using namespace std;
int main(void) {
// Your code here!
int i, x;
i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 62 |
#include <iostream>
using namespace std;
int x, i;
int main() {
i = 0;
while (true) {
i++;
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i + 1 << ": " << x << endl;
}
return 0;
}
|
#include <iostream>
using namespace std;
int x, i;
int main() {
i = 0;
while (true) {
i++;
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> X;
int x;
for (;;) {
cin >> x;
if (x == 0)
break;
X.push_back(x);
}
for (int i = 0; i < X.size(); i++) {
cout << "Case " << i << ": " << X.at(i) << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> X;
int x;
for (;;) {
cin >> x;
if (x == 0)
break;
X.push_back(x);
}
for (int i = 0; i < X.size(); i++) {
cout << "Case " << (i + 1) << ": " << X.at(i) << endl;
}
}
| [["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 25]] | 1 | 88 |
#include <iostream>
using namespace std;
int main(void) {
int i, x;
i = 0;
cin >> x;
while (x != 0) {
if (x != 0) {
i++;
}
if (x == 0) {
break;
}
cout << "Case" << i << ":"
<< " " << x << endl;
cin >> x;
}
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int i, x;
i = 0;
cin >> x;
while (x != 0) {
if (x != 0) {
i++;
}
if (x == 0) {
break;
}
cout << "Case " << i << ":"
<< " " << x << endl;
cin >> x;
}
return 0;
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int i, x;
cin >> i;
for (i = 1; i < 10000; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int i, x;
for (i = 1; i < 100000; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 67 |
#include <stdio.h>
int main(void) {
int x, i;
i = 0;
while (x != 0) {
scanf("%d\n", &x);
i++;
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int x, i;
i = 0;
while (1) {
scanf("%d\n", &x);
i++;
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
}
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13]] | 1 | 65 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x;
int a[10000];
int total = 0;
for (int i = 0; i <= 10; i++) {
int tmp;
cin >> tmp;
if (tmp == 0) {
break;
}
a[i] = tmp;
total++;
}
for (int j = 0; j <= total - 1; j++)
cout << "Case " << j << ":... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int a[10000];
int total = 0;
for (int i = 0; i <= 10000; i++) {
int tmp;
cin >> tmp;
// if(tmp < 0 || tmp >= 10000) return -1;
if (tmp == 0) {
break;
}
a[i] = tmp;
total++;
}
for (int j = 0; j <=... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 109 |
#include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case"
<< " " << i << ":" << x << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
}
}
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 69 |
#include <cstdio>
int main(void) {
int count = 0;
while (true) {
int a = 0;
scanf("%d", &a);
if (a == 0) {
break;
}
count++;
printf("Case %d: %d", count, a);
}
return 0;
}
| #include <cstdio>
int main(void) {
int count = 0;
while (true) {
int a = 0;
scanf("%d", &a);
if (a == 0) {
break;
}
count++;
printf("Case %d: %d\n", count, a);
}
return 0;
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 62 |
#include <iostream>
int main() {
int x, i = 0;
while (1) {
std::cin >> x;
if (x == 0) {
break;
}
i += 1;
std::cout << "Case"
<< " " << i << ":" << x << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int x, i = 0;
while (1) {
std::cin >> x;
if (x == 0) {
break;
}
i += 1;
std::cout << "Case"
<< " " << i << ":"
<< " " << x << std::endl;
}
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 68 |
#include <stdio.h>
int main() {
int x;
for (int i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
return 0;
printf("Case %d: %d", i, x);
}
}
| #include <stdio.h>
int main() {
int x;
for (int i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
return 0;
printf("Case %d: %d\n", i, x);
}
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 54 |
#include <iostream>
using namespace std;
int main(void) {
int i = 1, x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x;
i++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int i = 1, x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 58 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
for (a = 0; a < 10000; a++) {
cin >> b;
if (b == 0)
break;
else {
cout << "Case " << a << ": " << b << endl;
}
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
for (a = 0; a < 10000; a++) {
cin >> b;
if (b == 0)
break;
else {
cout << "Case " << a + 1 << ": " << b << endl;
}
}
return 0;
}
| [["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 66 |
#include <stdio.h>
using namespace std;
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);
}
}
| #include <stdio.h>
using namespace std;
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);
}
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 64 |
#include <iostream>
using namespace std;
int main() {
for (int i = 1;; i++) {
int x;
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i << ":" << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
for (int i = 1;; i++) {
int x;
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
}
return 0;
}
| [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 63 |
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <list>
#include <queue>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
using namespace std;
int main() {
int s[10000];
for (int i = 0; i < 10000; i++) {
cin >> s[i];
if (s[i] == 0)
break;
}
for (int ... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <list>
#include <queue>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
using namespace std;
int main() {
int s[10000];
for (int i = 0; i < 10000; i++) {
cin >> s[i];
if (s[i] == 0)
break;
}
for (int ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 120 |
#include <array>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int i, j = 1;
while (i != 0) {
cin >> i;
if (i == 0)
break;
cout << "Case " << j << ": " << i << endl;
j++;
}
return 0;
} | #include <array>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int i, j = 1;
for (;;) {
cin >> i;
if (i == 0)
break;
cout << "Case " << j << ": " << i << endl;
j++;
}
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 52, 0, 89], ["+", 0, 30, 0, 14, 8, 9, 0, 7, 0, 88], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 7, 0, 35]] | 1 | 73 |
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x;
i++;
}
} | #include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
} | [["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 54 |
#include <iostream>
using namespace std;
#define START 1
#define INIT 0
#define TRUE 1
int main() {
int iCounter = START;
int x = INIT;
while (TRUE) {
cin >> x;
if (x == INIT) {
break;
} else {
cout << "Case " << iCounter << ":" << x << endl;
iCounter++;
}
}
} | #include <iostream>
using namespace std;
#define START 1
#define INIT 0
#define TRUE 1
int main() {
int iCounter = START;
int x = INIT;
while (TRUE) {
cin >> x;
if (x == INIT) {
break;
} else {
cout << "Case " << iCounter << ": " << x << endl;
iCounter++;
}
}
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 73 |
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (cin >> x, x) {
cout << "Case " << i++ << ":" << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (cin >> x, x) {
cout << "Case " << i++ << ": " << x << endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 49 |
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (cin >> x && x != 0)
cout << "Case " << i << ": " << x << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (cin >> x && x != 0) {
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | [["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 45], ["+", 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, 14, 8, 9, 0, 52, 8, 9, 0, 46]] | 1 | 48 |
#include <iostream>
using namespace std;
int main() {
int x;
int y;
y = 0;
while (true) {
cin >> x;
if (x == 0) {
break;
};
cout << "Case " << y << ": " << x << endl;
y = y + 1;
};
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
int y;
y = 1;
while (true) {
cin >> x;
if (x == 0) {
break;
};
cout << "Case " << y << ": " << x << endl;
y = y + 1;
};
return 0;
} | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 69 |
#include <iostream>
using namespace std;
int main() {
int x, y = 1;
while (cin >> x) {
cout << "Case " << y << ": " << x << endl;
y++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y = 1;
while (cin >> x, x) {
cout << "Case " << y << ": " << x << endl;
y++;
}
return 0;
} | [["+", 8, 9, 0, 52, 15, 339, 51, 34, 0, 21], ["+", 8, 9, 0, 52, 15, 339, 51, 34, 12, 22]] | 1 | 49 |
#include <iostream>
using namespace std;
int main() {
int i;
for (i = 0; 0; i++) {
int x;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x;
cout << "\n";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i;
for (i = 1;; i++) {
int x;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << "\n";
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 7, 15, 13], ["-", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35], ["-", 0, 7, 8, 9, 0, 1, 0, 16, 31, 22]] | 1 | 66 |
#include <stdio.h>
int main() {
int c = 0;
while (true) {
int n;
scanf("%d", &n);
if (0 == n)
break;
++c;
printf("Case %d: %d", c, n);
}
return 0;
} | #include <stdio.h>
int main() {
int c = 0;
while (true) {
int n;
scanf("%d", &n);
if (0 == n)
break;
++c;
printf("Case %d: %d\n", c, n);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 57 |
#include <cstdio>
using namespace std;
int main(void) {
int i = 1;
int x;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d", i, x);
i++;
}
return 0;
} | #include <cstdio>
using namespace std;
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, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 62 |
#include <iostream>
using namespace std;
int main() {
int i = 0;
int x;
while (1) {
cin >> x;
if (x == 0)
break;
i++;
cout << "case " << i + 1 << ": " << x << endl;
}
// while(1);
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 0;
int x;
while (1) {
cin >> x;
if (x == 0)
break;
i++;
cout << "Case " << i << ": " << x << endl;
}
// while(1);
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 63 |
#include <iostream>
#include <vector>
int input() {
int val;
std::cin >> val;
return val;
}
int main() {
std::vector<int> x;
while (true) {
int val = input();
if (val == 0)
break;
x.push_back(val);
}
for (int i = 0; i < x.size(); ++i)
std::cout << "Case " << i + 1 << ":" << x[i] ... | #include <iostream>
#include <vector>
int input() {
int val;
std::cin >> val;
return val;
}
int main() {
std::vector<int> x;
while (true) {
int val = input();
if (val == 0)
break;
x.push_back(val);
}
for (int i = 0; i < x.size(); ++i)
std::cout << "Case " << i + 1 << ": " << x[i]... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 110 |
#include <iostream>
int i = 0, x = 1;
int main() {
for (; x != 0; i++) {
std::cin >> x;
if (x != 0) {
std::cout << "Case " << i << ": " << x << std::endl;
}
}
} | #include <iostream>
int i = 1, x = 1;
int main() {
for (; x != 0; i++) {
std::cin >> x;
if (x != 0) {
std::cout << "Case " << i << ": " << x << std::endl;
}
}
} | [["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13]] | 1 | 63 |
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 1; x; cin >> x) {
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 1; x; cin >> x, i++) {
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [["+", 0, 14, 8, 9, 0, 7, 26, 34, 0, 21], ["+", 8, 9, 0, 7, 26, 34, 12, 27, 28, 22], ["+", 8, 9, 0, 7, 26, 34, 12, 27, 17, 29]] | 1 | 53 |
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 1; x != 0; ++i) {
cout << "Case " << i << ':' << x << endl;
cin >> x;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 1; x != 0; ++i) {
cout << "Case " << i << ": " << x << endl;
cin >> x;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 58 |
#include <iostream>
using namespace std;
int main() {
int n, count = 0;
while (1) {
cin >> n;
if (n == 0)
break;
++count;
cout << "case " << count << ": " << n << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, count = 0;
while (1) {
cin >> n;
if (n == 0)
break;
++count;
cout << "Case " << count << ": " << n << endl;
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 59 |
#include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 169 |
#include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (cin >> x) {
if (x == 0) {
break;
} else {
cout << "Case " << i << ':' << x << endl;
i++;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (cin >> x) {
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << endl;
i++;
}
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 62 |
#include <stdio.h>
int main(void) {
int x, cunt;
cunt = 1;
scanf("%d", &x);
while (x != 0) {
printf("Case %d:%d\n", cunt, x);
scanf("%d", &x);
cunt++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, cunt;
cunt = 1;
scanf("%d", &x);
while (x != 0) {
printf("Case %d: %d\n", cunt, x);
scanf("%d", &x);
cunt++;
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 64 |
#include <cstdio>
int main() {
int x;
int n = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d", n, x);
n = n++;
}
return 0;
} | #include <cstdio>
int main() {
int x;
int n = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", n, x);
n++;
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32]] | 1 | 59 |
#include <iostream>
using namespace std;
int main() {
int a, count, count1;
for (count = 0;; count++) {
cin >> a;
if (a == 0) {
break;
}
cout << "case " << count + 1 << ": " << a << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, count;
for (count = 0;; count++) {
cin >> a;
if (a == 0) {
break;
}
cout << "Case " << count + 1 << ": " << a << endl;
}
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 66 |
#include <stdio.h>
int main() {
int a;
for (int i = 1;; i++) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d", i, a);
}
return 0;
} | #include <stdio.h>
int main() {
int a;
for (int i = 1;; i++) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i, a);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 56 |
#include <iostream>
using namespace std;
int a[100000] = {0};
int main() {
int i = 0, n;
while (1) {
cin >> n;
if (!n)
break;
a[i++] = n;
}
for (int j = 0; a[j] != 0; j++) {
cout << "Case " << j << ":"
<< " " << a[j] << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int a[100000] = {0};
int main() {
int i = 0, n;
while (1) {
cin >> n;
if (!n)
break;
a[i++] = n;
}
for (int j = 0; a[j] != 0; j++) {
cout << "Case " << j + 1 << ":"
<< " " << a[j] << endl;
}
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 99 |
#include <iostream>
using namespace std;
int main() {
int x, cnt = 0;
while (cin >> x && x) {
cout << "Case " << cnt++ << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, cnt = 1;
while (cin >> x && x) {
cout << "Case " << cnt++ << ": " << x << endl;
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 49 |
#include <stdio.h>
int main() {
int i, x;
for (i = 1; i <= 1000000; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d", i, x);
}
return 0;
} | #include <stdio.h>
int main() {
int i, x;
for (i = 1; i <= 1000000; i++) {
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, 44]] | 1 | 62 |
#include <cstdio>
int main() {
int a = 1;
int c = 0;
scanf("%d", &a);
while (a) {
c++;
printf("case %d: %d\n", c, a);
scanf("%d", &a);
}
return 0;
} | #include <cstdio>
int main() {
int a = 1;
int c = 0;
scanf("%d", &a);
while (a) {
c++;
printf("Case %d: %d\n", c, a);
scanf("%d", &a);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 62 |
#include <stdio.h>
int main(void) {
int i, x;
scanf("%d", x);
for (i = 1; x != 0; i++) {
printf("Case %d: %d\n", i, x);
scanf("%d", x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, x;
scanf("%d", &x);
for (i = 1; x != 0; i++) {
printf("Case %d: %d\n", i, x);
scanf("%d", &x);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 62 |
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
vector<int> a;
int tmp;
int j = 0;
while (1) {
cin >> tmp;
a.push_back(tmp);
if (a[j] == 0) {
break;
}
j++;
}
for (int i = 0; i < a.size(); i++) {
cout << "Case " << i + 1 << ": " << a[i] << endl;
... | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
vector<int> a;
int tmp;
int j = 0;
while (1) {
cin >> tmp;
a.push_back(tmp);
if (a[j] == 0) {
break;
}
j++;
}
for (int i = 0; i < a.size() - 1; i++) {
cout << "Case " << i + 1 << ": " << a[i] << endl... | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 106 |
#include <iostream>
using namespace std;
int main() {
for (int a, i = 1;; ++i) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int a, i = 1;; ++i) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << endl;
}
} | [["+", 0, 7, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 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]] | 1 | 56 |
#include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 1; 1; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "case" << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 1; 1; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 63 |
#include <iostream>
using namespace std;
int main() {
int k = 1;
while (1) {
int a;
cin >> a;
if (a == 0) {
break;
}
cout << "Case " << k << " " << a << endl;
k++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int k = 1;
while (1) {
int a;
cin >> a;
if (a == 0) {
break;
}
cout << "Case " << k << ": " << a << endl;
k++;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 62 |
#include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
while (1) {
cin >> x;
i++;
if (x != 0) {
cout << "Case"
<< " " << i << " " << x << endl;
} else {
break;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
while (1) {
cin >> x;
i++;
if (x != 0) {
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
} else {
break;
}
}
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62]] | 1 | 69 |
#include <iostream>
int main() {
for (int x, t = 1;; t++) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case" << t << ": " << x << "\n";
}
return 0;
} | #include <iostream>
int main() {
for (int x, t = 1;; t++) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case " << t << ": " << x << "\n";
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 60 |
#include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 0; i < 10000; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << '\n';
/* code */
}
} | #include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 0; i < 10000; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i + 1 << ": " << x << '\n';
/* code */
}
} | [["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 63 |
#include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int i = 0;
int x;
while (cin >> x)
cout << "Case " << ++i << ": " << x << "\n";
} | #include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int i = 0;
int x;
while (cin >> x && x != 0)
cout << "Case " << ++i << ": " << x << "\n";
} | [["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 59 |
#include <iostream>
using namespace std;
int main(void) {
int input;
int cnt = 1;
while (true) {
cin >> input;
if (input != 0)
cout << "Case " << cnt++ << ": " << input;
else
break;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int input;
int cnt = 1;
while (true) {
cin >> input;
if (input != 0)
cout << "Case " << cnt++ << ": " << input << endl;
else
break;
}
return 0;
} | [["+", 8, 9, 0, 57, 64, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 22]] | 1 | 58 |
#include <stdio.h>
int main(void) {
int a;
for (int i = 1;; i++) {
scanf("%d", &a);
if (a != 0)
printf("case%d:%d\n", i, a);
else
break;
}
return 0;
} | #include <stdio.h>
int main(void) {
int a;
for (int i = 1;; i++) {
scanf("%d", &a);
if (a != 0)
printf("Case %d: %d\n", i, a);
else
break;
}
return 0;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 59 |
#include <iostream>
using namespace std;
int main() {
int x[10001];
int a, n = 0;
while (1) {
cin >> a;
if (a == 0)
break;
else {
x[n] = a;
n++;
}
}
for (int i = 0; i < n; i++)
cout << "Case " << i << ": " << x[i] << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x[10001];
int a, n = 0;
while (1) {
cin >> a;
if (a == 0)
break;
else {
x[n] = a;
n++;
}
}
for (int i = 0; i < n; i++)
cout << "Case " << i + 1 << ": " << x[i] << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 92 |
#include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; cin >> x, x; i++)
cout << "Case " << i++ << ": " << x << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; cin >> x, x; i++)
cout << "Case " << i << ": " << x << endl;
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 27, 17, 29]] | 1 | 51 |
#include <iostream>
using namespace std;
int main() {
int i = 0;
while (1) {
int x;
cin >> x;
if (x == 0) {
break;
}
printf("Case %d:%d\n", ++i, x);
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 0;
while (1) {
int x;
cin >> 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]] | 1 | 56 |
#include <iostream>
using namespace std;
int main() {
int a;
for (int i = 0;; i++) {
cin >> a;
if (a != 0) {
cout << "case " << i + 1 << ": " << a << endl;
} else {
break;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a;
for (int i = 0;; i++) {
cin >> a;
if (a != 0) {
cout << "Case " << i + 1 << ": " << a << endl;
} else {
break;
}
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 66 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int i = 1;
vector<int> a(10000);
cin >> a[0];
while (a[i - 1] != 0) {
cin >> a[i];
i++;
}
for (i = 0; a[i] != NULL; i++)
cout << "Case " << i << ": " << a[i] << endl;
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
int i = 1;
vector<int> a(10000);
cin >> a[0];
while (a[i - 1] != 0) {
cin >> a[i];
i++;
}
for (i = 0; a[i] != NULL; i++)
cout << "Case " << i + 1 << ": " << a[i] << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 96 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a, c = 1;
while (cin >> a && a != 0) {
cout << "Case " << c << ":" << a << endl;
c++;
}
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a, c = 1;
while (cin >> a && a != 0) {
cout << "Case " << c << ": " << a << endl;
c++;
}
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 52 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x;
int i = 1;
while (cin >> x) {
if (x == 0)
break;
printf(... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x;
int i = 1;
while (cin >> x) {
if (x == 0)
break;
printf(... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 74 |
#include <iostream>
using namespace std;
int main() {
int array[10000];
int tmp;
int j = 0;
do {
cin >> tmp;
array[j] = tmp;
j++;
} while (tmp != 0);
for (int i = 0; i < j - 1; i++) {
cout << "Case" << i + 1 << ":" << array[i] << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int array[10000];
int tmp;
int j = 0;
do {
cin >> tmp;
array[j] = tmp;
j++;
} while (tmp != 0);
for (int i = 0; i < j - 1; i++) {
cout << "Case " << i + 1 << ": " << array[i] << endl;
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 92 |
/*
????????????????????£????????§?????????????????????????????°??????????????°?????\????????????????????????????????????
??£????????????????????£???????????????????????????????????????
???????????\????????????????????????????????°??????????????????????????????????????????????????????????????????
???????????????????????... | /*
????????????????????£????????§?????????????????????????????°??????????????°?????\????????????????????????????????????
??£????????????????????£???????????????????????????????????????
???????????\????????????????????????????????°??????????????????????????????????????????????????????????????????
???????????????????????... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 68 |
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int n, i = 1;
for (cin >> n; n != 0; cin >> n) {
cout << "Case " << i++ << ":" << n << "\n";
}
} | #include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int n, i = 1;
for (cin >> n; n != 0; cin >> n) {
cout << "Case " << i++ << ": " << n << "\n";
}
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 62 |
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
int count = 1;
wh... | #include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
int count = 1;
wh... | [["+", 0, 52, 15, 339, 51, 16, 31, 23, 0, 24], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 52, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, 25]] | 1 | 75 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0)
break;
else {
cout << "Case " << i << ":" << x << endl;
}
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0)
break;
else {
cout << "Case " << i << ": " << x << endl;
}
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 67 |
#include <iostream>
using namespace std;
int main() {
int x, i;
i = 0;
while (x != 0) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i;
i = 0;
while (1) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13]] | 1 | 63 |
#include <iostream>
int main() {
int x;
int i = 0;
while (std::cin >> x && x != 0) {
++i;
std::cout << "case " << i << ": " << x << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int x;
int i = 0;
while (std::cin >> x && x != 0) {
++i;
std::cout << "Case " << i << ": " << x << std::endl;
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 56 |
#include <iostream>
using namespace std;
int main() {
int cnt = 1;
int x;
cin >> x;
while (x != 0) {
cout << "Case " << cnt << ": " << x << endl;
cin >> x;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int cnt = 1;
int x;
cin >> x;
while (x != 0) {
cout << "Case " << cnt++ << ": " << x << endl;
cin >> x;
}
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 27, 17, 29]] | 1 | 55 |
#include <iostream>
using namespace std;
int main() {
// your code goes here
int x;
int i = 0, s = 0;
while (true) {
s = s + i;
i = i + 1;
cin >> x;
if (x == 0) {
break;
}
cout << "case"
<< " " << i << ": " << x << endl;
}
} | #include <iostream>
using namespace std;
int main() {
// your code goes here
int x;
int i = 0, s = 0;
while (true) {
s = s + i;
i = i + 1;
cin >> x;
if (x == 0) {
break;
}
cout << "Case"
<< " " << i << ": " << x << endl;
}
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 77 |
#include <stdio.h>
int main() {
int cnt;
int i;
int x[10000];
while (1) {
scanf("%d", &x[cnt]);
if (x[cnt] == 0)
break;
cnt++;
}
for (i = 0; i <= cnt; i++) {
printf("Case %d: %d\n", i + 1, x[i]);
}
return 0;
} | #include <stdio.h>
int main() {
int cnt;
int i;
int x[10000];
while (1) {
scanf("%d", &x[cnt]);
if (x[cnt] == 0)
break;
cnt++;
}
for (i = 0; i < cnt; i++) {
printf("Case %d: %d\n", i + 1, x[i]);
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 88 |
#include <iostream>
using namespace std;
int main() {
int i, x;
x = 0;
for (i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ":" << x << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int i, x;
x = 0;
for (i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 64 |
#include <bits/stdc++.h>
const long long INF = INT_MAX / 2;
const long long MOD = 1000000007;
const long double PI = 3.1415926;
#define FOR(i, r, n) for (ll i = (ll)(r); i < (ll)(n); i++)
#define RFOR(i, r, n) for (ll i = (ll)(n - 1); i >= r; i--)
#define REP(i, n) FOR(i, 0, n)
#define REP1(i, n) FOR(i, 1, n + 1)
#defi... | #include <bits/stdc++.h>
const long long INF = INT_MAX / 2;
const long long MOD = 1000000007;
const long double PI = 3.1415926;
#define FOR(i, r, n) for (ll i = (ll)(r); i < (ll)(n); i++)
#define RFOR(i, r, n) for (ll i = (ll)(n - 1); i >= r; i--)
#define REP(i, n) FOR(i, 0, n)
#define REP1(i, n) FOR(i, 1, n + 1)
#defi... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 227 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.