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 <algorithm>
#include <ctype.h>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
#define LLU unsigned long long int
#defin... | /*
????????°??§???????????¨????????????
*/
#include <algorithm>
#include <ctype.h>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
#define LLU unsigned long long int
#defin... | [["+", 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 | 376 |
#include <iostream>
using namespace std;
int main() {
// your code goes here
int x;
for (int i = 0;; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
/*
while(1){
cin >> x;
cnt += 1;
if (x == 0){
br... | #include <iostream>
using namespace std;
int main() {
// your code goes here
int x;
for (int i = 1;; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
/*
while(1){
cin >> x;
cnt += 1;
if (x == 0){
br... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 63 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
for (int x, t; t = 1; t++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << t << ": " << x << endl;
}
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
for (int x, t = 1;; t++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << t << ": " << x << endl;
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 10, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 7, 15, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 10, 43, 0, 35]] | 1 | 63 |
#include <stdio.h>
int main() {
int x, i;
for (i = 1; i < 10000; ++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;
for (i = 1; i <= 10000; ++i) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
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, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 61 |
#include <iostream>
using namespace std;
int main() {
for (int i = 1;; i++) {
int x;
cin >> x;
if (x == 0)
break;
else
cout << "Case " << i << " : " << x << "\n" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1;; i++) {
int x;
cin >> x;
if (x == 0)
break;
else
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 44]] | 1 | 64 |
#include <iostream>
using namespace std;
int main() {
int a;
for (int i = 1;; i++) {
cin >> a;
if (a == 0)
break;
else
cout << "case " << i << ": " << a << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a;
for (int i = 1;; i++) {
cin >> a;
if (a == 0)
break;
else
cout << "Case " << i << ": " << a << endl;
}
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>
int main() {
int x;
int i;
i == 1;
while (true) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case" << i << ":" << x << std::endl;
i++;
}
} | #include <iostream>
int main() {
int x;
int i;
i = 1;
while (true) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case " << i << ": " << x << std::endl;
i++;
}
} | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 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 | 61 |
#include <algorithm>
#include <iostream>
#include <vector>
int main() {
int a = 1, b;
while (true) {
std::cin >> b;
if (b == 0)
break;
if (a < 10000) {
std::cout << "Too Large" << std::endl;
break;
}
std::cout << "Case " << a << ": " << b << std::endl;
a++;
}
} | #include <algorithm>
#include <iostream>
#include <vector>
int main() {
int a = 1, b;
while (true) {
std::cin >> b;
if (b == 0)
break;
if (a > 10000) {
std::cout << "Too Large" << std::endl;
break;
}
std::cout << "Case " << a << ": " << b << std::endl;
a++;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 84 |
#include <iostream>
using namespace std;
main() {
for (int i = 1;; i++) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
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;
} else {
cout << "Case " << i << ": " << x << endl;
}
}
return 0;
} | [["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 63 |
#include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
for (i = 1;; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case"
<< " " << i << ":" << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
for (i = 1;; i++) {
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 | 69 |
#include <iostream>
using namespace std;
int main() {
int a;
int i;
for (i = 0;; i++) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a;
int i;
for (i = 1;; i++) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << endl;
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13]] | 1 | 61 |
#include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1; i <= 10000; 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 <= 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 | 70 |
#include <iostream>
using namespace std;
int main() {
int kkk[10000], g;
for (int i = 0;; i++) {
cin >> kkk[i];
if (kkk[i] == 0) {
g = i;
break;
}
}
for (int i = 0; i < g; i++) {
cout << "Case " << i << ": " << kkk[i] << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int kkk[10000], g;
for (int i = 0;; i++) {
cin >> kkk[i];
if (kkk[i] == 0) {
g = i;
break;
}
}
for (int i = 0; i < g; i++) {
cout << "Case " << i + 1 << ": " << kkk[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 | 95 |
#include <iostream>
using namespace std;
int main() {
int i = 0;
int x = 1;
while (1) {
cin >> x;
i++;
if (x == 0) {
break;
} else {
cout << "case " << i << ": " << x << endl;
}
}
} |
#include <iostream>
using namespace std;
int main() {
int i = 0;
int x = 1;
while (1) {
cin >> x;
i++;
if (x == 0) {
break;
} else {
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 | 64 |
#include <iostream>
using namespace std;
int main() {
int x = 0;
int i = 0;
while (1) {
cin >> x;
if (x == 0) {
break;
}
i++;
cout << "Case" << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x = 0;
int i = 0;
while (1) {
cin >> x;
if (x == 0) {
break;
}
i++;
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 | 64 |
#include <stdio.h>
int main(void) {
int x, i = 1;
for (;; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d:%d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i = 1;
for (;; 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, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 60 |
#include <iostream>
using namespace std;
int main() {
for (int x, t = 1;; t++) {
cin >> x;
if (x == 0)
break;
cout << "Case" << t << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int x, t = 1;; t++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << t << ": " << 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 | 58 |
#include <stdio.h>
int main(void) {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d", i, x);
i = i + 1;
}
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 = i + 1;
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 62 |
#include <iostream>
using namespace std;
int main() {
int x, i;
for (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, i;
for (i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 63 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define shosu(n) setprecision(n)
using namespace std;
int main() {
int n, i = 1;
while (cin >> n, n) {
cout << "Case " << i << ': ' << n << endl;
i++;
}
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define shosu(n) setprecision(n)
using namespace std;
int main() {
int n, i = 1;
while (cin >> n, n) {
cout << "Case " << i << ": " << n << 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 | 65 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
int x, i = 1;
while (cin >> x) {
if (x == 0) {
break;
}
cout << "Case " << i << ":" << x << endl;
i++;
}
return 0;
} | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
int x, i = 1;
while (cin >> x) {
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
i++;
}
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[10000];
int i = 0;
while (1) {
cin >> x[i];
if (x[i] == 0) {
i += 1;
break;
}
i += 1;
}
for (int q = 0; q < i - 1; q++) {
cout << "Case " << q + 1 << ":" << x[q] << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x[10000];
int i = 0;
while (1) {
cin >> x[i];
if (x[i] == 0) {
i += 1;
break;
}
i += 1;
}
for (int q = 0; q < i - 1; q++) {
cout << "Case " << q + 1 << ": " << x[q] << endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <iostream>
using namespace std;
int main() {
int x, i, j;
for (i = 0; i < 10000; i++) {
for (j = 0; j < 1; j++) {
cin >> x;
if (x != 0) {
cout << "Case" << i + 1 << ":"
<< " " << x << endl;
} else {
i = 10001;
}
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i, j;
for (i = 0; i < 10000; i++) {
for (j = 0; j < 1; j++) {
cin >> x;
if (x != 0) {
cout << "Case"
<< " " << i + 1 << ":"
<< " " << x << endl;
} else {
i = 10000;
}
}
}
retu... | [["+", 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], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13]] | 1 | 93 |
#include <iostream>
#include <string>
using namespace std;
int main() {
long int a = 0, x;
while (1) {
a++;
cin >> x;
if (x == 0)
break;
cout << "case " << a << ": " << x << endl;
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a = 0, x;
while (1) {
a++;
cin >> x;
if (x == 0)
break;
cout << "Case " << a << ": " << x << endl;
}
} | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 59 |
#include <bits/stdc++.h>
#define ll long long int
#define FOR(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
#define REP(i, n) FOR(i, 0, n)
#define REP1(i, n) FOR(i, 1, n)
using namespace std;
int main() {
int n;
for (int i = 1;; i++) {
cin >> n;
if (n == 0)
break;
cout << "Case" << i << ": " <<... | #include <bits/stdc++.h>
#define ll long long int
#define FOR(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
#define REP(i, n) FOR(i, 0, n)
#define REP1(i, n) FOR(i, 1, n)
using namespace std;
int main() {
int n;
for (int i = 1;; i++) {
cin >> n;
if (n == 0)
break;
cout << "Case " << i << ": " <... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 87 |
#include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x;
}
cout << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i, x;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [["-", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 62 |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int x = 0, i = 0;
while (true) {
i++;
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d", i, x);
}
return 0;
} | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <stdio.h>
int main(void) {
int x = 0, i = 0;
while (true) {
i++;
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
}
return 0;
} | [["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 63 |
#include <iostream>
int main() {
int d = 1;
int count = 1;
while (count <= 10000) {
std::cin >> d;
if (d == 0) {
break;
}
std::cout << "Casev" << count << ": " << d << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int d = 1;
int count = 1;
while (count <= 10000) {
std::cin >> d;
if (d == 0) {
break;
}
std::cout << "Case " << count << ": " << d << std::endl;
count++;
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29]] | 1 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, i = 1;
while (cin >> a, a) {
cout << "case " << i << ": " << a << endl;
i++;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, i = 1;
while (cin >> a, a) {
cout << "Case " << i << ": " << a << 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 | 51 |
#include <iostream>
using namespace std;
int main() {
int a[10000];
int i = 0;
while (1) {
cin >> a[i];
if (a[i] == 0)
break;
i++;
}
i = 0;
while (1) {
if (a[i] == 0)
break;
cout << "Case " << i << ": " << a[i] << endl;
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a[10000];
int i = 0;
while (1) {
cin >> a[i];
if (a[i] == 0)
break;
i++;
}
i = 0;
while (1) {
if (a[i] == 0)
break;
cout << "Case " << i + 1 << ": " << a[i] << endl;
i++;
}
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 <stdio.h>
int main() {
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() {
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]] | 1 | 59 |
#include <stdio.h>
int main() {
int x = 1, y = 1;
while (x != 0) {
scanf("%d", &x);
if (x != 0) {
printf("case %d: %d\n", y, x);
y++;
}
}
return 0;
} | #include <stdio.h>
int main() {
int x = 1, y = 1;
while (x != 0) {
scanf("%d", &x);
if (x != 0) {
printf("Case %d: %d\n", y, x);
y++;
}
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 61 |
#include <stdio.h>
int main() {
int a = 1, b;
while (b != 0) {
scanf("%d", &b);
if (b == 0)
break;
printf("Case %d: %d\n", a, b);
a++;
}
return 0;
} | #include <stdio.h>
int main() {
int a = 1, b;
while (1) {
scanf("%d", &b);
if (b == 0)
break;
printf("Case %d: %d\n", a, b);
a++;
}
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 | 59 |
#include <iostream>
using namespace std;
int main() {
int a[10000] = {};
int count = 0;
for (int i = 0; i < 10000; i++) {
cin >> a[i];
count++;
if (a[i] == 0)
break;
}
for (int j = 0; j < count - 1; j++) {
cout << "Case " << j + 1 << ":" << a[j] << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int a[10001] = {};
int count = 0;
for (int i = 0; i < 10001; i++) {
cin >> a[i];
count++;
if (a[i] == 0)
break;
}
for (int j = 0; j < count - 1; j++) {
cout << "Case " << j + 1 << ": " << a[j] << endl;
}
} | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 102 |
#include <iostream>
using namespace std;
int main() {
int i = 0;
int x;
while (cin >> x && x) {
i++;
cout << "Case " << i << " " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 0;
int x;
while (cin >> x && x != 0) {
i++;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 52, 15, 339, 51, 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 | 52 |
#include <iostream>
using namespace std;
int main(void) {
int i, n;
i = 1;
while (n != 0) {
cin >> n;
if (n == 0)
break;
cout << "Case"
<< " " << i << ":"
<< " " << n << endl;
i++;
}
} | #include <iostream>
using namespace std;
int main(void) {
int i, n;
i = 1;
while (true) {
cin >> n;
if (n == 0)
break;
cout << "Case"
<< " " << i << ":"
<< " " << n << endl;
i++;
}
} | [["-", 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, 146]] | 1 | 69 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
int x;
for (int i = 0;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
int x;
for (int i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 64 |
#include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
while (1) {
cin >> x;
if (x == 0) {
break;
} else {
cout << "case " << i << ": " << x << endl;
i++;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
while (1) {
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << 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 | 65 |
#include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << " : " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29]] | 1 | 56 |
#include <iostream>
using namespace std;
int main() {
int k;
int i = 1;
while (true) {
cin >> k;
if (k == 0) {
break;
}
cout << "Case " << i << ": " << k << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int k;
int i = 1;
while (true) {
cin >> k;
if (k == 0) {
break;
}
cout << "Case " << i << ": " << k << endl;
i++;
}
} | [["+", 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 | 56 |
#include <iostream>
using namespace std;
int main() {
int i = 0;
int x;
int num[10000];
for (int i = 0; i < 10000; i++) {
cin >> x;
if (x == 0)
break;
num[i] = x;
}
for (int h = 0; h < i; h++) {
cout << "Case " << h + 1 << ": " << num[h] << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 0;
int x;
int num[10000];
for (i = 0; i < 10000; i++) {
cin >> x;
if (x == 0)
break;
num[i] = x;
}
for (int h = 0; h < i; h++) {
cout << "Case " << h + 1 << ": " << num[h] << endl;
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40]] | 1 | 101 |
#include <iostream>
using namespace std;
int main() {
int x = 0;
int cnt = 0;
cin >> x;
while (x != 0) {
cnt++;
cout << "Case" << cnt << ":" << x << endl;
cin >> x;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x = 0;
int cnt = 0;
cin >> x;
while (x != 0) {
cnt++;
cout << "Case " << cnt << ": " << 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], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 60 |
#include <iostream>
using namespace std;
int main() {
int x[10000];
int num = 0;
int c = 1;
while (c) {
cin >> x[num];
c = x[num];
num++;
}
for (int a = 0; a < num - 1; a++) {
cout << "Case " << a + 1 << ":" << x[a] << "\n";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x[10000];
int num = 0;
int c = 1;
while (c) {
cin >> x[num];
c = x[num];
num++;
}
for (int a = 0; a < num - 1; a++) {
cout << "Case " << a + 1 << ": " << x[a] << "\n";
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 95 |
#include <iostream>
using namespace std;
int main() {
int x[10010];
int i;
for (i = 0; i < 10010; i++) {
cin >> x[i];
if (x[i] == 0)
break;
}
for (i = 0; x[i] != 0; i++)
cout << "case " << i + 1 << ": " << x[i] << endl;
} | #include <iostream>
using namespace std;
int main() {
int x[10010];
int i;
for (i = 0; i < 10010; i++) {
cin >> x[i];
if (x[i] == 0)
break;
}
for (i = 0; x[i] != 0; i++)
cout << "Case " << i + 1 << ": " << x[i] << endl;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 91 |
#include <stdio.h>
int main() {
int x;
int i, j;
int y[10000];
for (i = 0; i < 10000; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
y[i] = x;
}
for (j = 0; j < i; j++) {
printf("Case %d: %d\n", j, y[j]);
}
return 0;
} | #include <stdio.h>
int main() {
int x;
int i, j;
int y[10000];
for (i = 0; i < 10000; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
y[i] = x;
}
for (j = 0; j < i; j++) {
printf("Case %d: %d\n", j + 1, y[j]);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 97 |
#include <iostream>
using namespace std;
int main() {
int a;
for (int i = 1; i <= 10000; i++) {
cin >> a;
if (a == 0)
break;
cout << "case" << i << ':' << a << '\n';
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a;
for (int i = 1; i <= 10000; i++) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << '\n';
}
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, 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 | 64 |
#include <iostream>
using namespace std;
int main() {
int num = 10000;
int x[10000] = {0};
int i;
for (i = 0; i < 10000; i++) {
cin >> x[i];
if (x[i] == 0)
break;
}
for (int a = 1; a <= i + 1; a++)
cout << "Case " << a << ": " << x[a - 1] << endl;
} | #include <iostream>
using namespace std;
int main() {
int num = 10000;
int x[10000] = {0};
int i;
for (i = 0; i < 10000; i++) {
cin >> x[i];
if (x[i] == 0)
break;
}
for (int a = 1; a <= i; a++)
cout << "Case " << a << ": " << x[a - 1] << endl;
return 0;
} | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 8, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 100 |
#include <stdio.h>
int main() {
int i, x;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0) {
return 0;
} else {
printf("Case i:%d\n", i, x);
}
}
} | #include <stdio.h>
int main() {
int i, x;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0) {
return 0;
} else {
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 | 61 |
#include <iostream>
using namespace std;
int main() {
int i, x;
i = 0;
while (1) {
cin >> x;
i++;
if (x == 0)
break;
cout << "Case " << i << ":" << x << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int i, x;
i = 0;
while (1) {
cin >> x;
i++;
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 | 58 |
#include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
while (cin >> x) {
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1;
int x;
while (cin >> x && x) {
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | [["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22]] | 1 | 50 |
#include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1;; 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 = 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 | 67 |
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
vector<int> v;
int buff;
while (0) {
cin >> buff;
if (buff == 0)
break;
v.push_back(buff);
}
// ???????????????????????????
// int count = 1;
// for_each(v.begin(), v.end(), [&count](int x) { ... | #include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
vector<int> v;
int buff;
while (1) {
cin >> buff;
if (buff == 0)
break;
v.push_back(buff);
}
// ???????????????????????????
// int count = 1;
// for_each(v.begin(), v.end(), [&count](int x) { ... | [["-", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13]] | 1 | 104 |
#include <iostream>
int main() {
int i = 1, x = 0;
std::cin >> i >> x;
while (x != 0) {
std::cout << "Case " << i << ": " << x << std::endl;
std::cin >> x;
i++;
}
return 0;
} | #include <iostream>
int main() {
int i = 1, x = 0;
std::cin >> x;
while (x != 0) {
std::cout << "Case " << i << ": " << x << std::endl;
std::cin >> x;
i++;
}
return 0;
} | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 65 |
#include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
return 0;
cout << "Case " << i << ':' << x << endl;
i++;
}
} | #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
return 0;
cout << "Case " << i << ": " << x << endl;
i++;
}
} | [["-", 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 | 57 |
#include <iostream>
using namespace std;
int main() {
int x = 0, i = 1;
cin >> x;
while (x) {
cout << "Case " << i << ": " << x;
i++;
cin >> x;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x = 0, i = 1;
cin >> x;
while (x) {
cout << "Case " << i << ": " << x << endl;
i++;
cin >> x;
}
return 0;
} | [["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 55 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x;
int cnt = 1;
while (cin >> x, x) {
cout << "Case" << cnt << ":"
<< " " << x << endl;
cnt++;
}
return 0;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x;
int cnt = 1;
while (cin >> x, x) {
cout << "Case " << cnt << ":"
<< " " << x << endl;
cnt++;
}
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 <stdio.h>
int main(void) {
int x, i;
for (i = 1; i <= 10000; i++) {
scanf("%d", &x);
if (x == 0) {
return 0;
}
printf("Case %d:%d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i;
for (i = 1; i <= 10000; i++) {
scanf("%d", &x);
if (x == 0) {
return 0;
}
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 | 65 |
#include <iostream>
using namespace std;
int main() {
int x, n = 0, a[10010] = {};
while (cin >> x, x)
a[n++] = x;
for (int i = 0; i < n; i++) {
cout << "Case " << i + 1 << "; " << a[i] << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, n = 0, a[10010] = {};
while (cin >> x, x)
a[n++] = x;
for (int i = 0; i < n; i++) {
cout << "Case " << i + 1 << ": " << a[i] << endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 83 |
#include <stdio.h>
int main(void) {
int i, x;
for (i = 1; 0 < i; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("case %d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, x;
for (i = 1; 0 < i; 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, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 62 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v;
int x = 100000;
int dim = 0;
while (x != 0) {
cin >> x;
v.push_back(x);
dim += 1;
}
int number = 1;
int a = 0;
for (int i = 0; i < dim - 1; i++) {
cout << "case"
<< " " << number << ":"
... | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v;
int x = 100000;
int dim = 0;
while (x != 0) {
cin >> x;
v.push_back(x);
dim += 1;
}
int number = 1;
int a = 0;
for (int i = 0; i < dim - 1; i++) {
cout << "Case"
<< " " << number << ":"
... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 116 |
#include <iostream>
using namespace std;
int main() {
int x[25565];
x[0] = 1;
int i = 1;
while (x[i - 1] != 0) {
cin >> x[i];
i++;
}
i = 1;
while (x[i - 1] != 0) {
cout << "Case " << i << ": " << x[i] << endl;
i++;
}
} | #include <iostream>
using namespace std;
int main() {
int x[25565];
x[0] = 1;
int i = 1;
while (x[i - 1] != 0) {
cin >> x[i];
i++;
}
i = 1;
while (x[i] != 0) {
cout << "Case " << i << ": " << x[i] << endl;
i++;
}
} | [["-", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["-", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]] | 1 | 92 |
#include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
// insert code here...
int i, x;
i = 1;
while (1) {
cin >> x;
if (x == 0) {
break;
} else {
cout << "case " << i << ": " << x << endl;
i++;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
// insert code here...
int i, x;
i = 1;
while (1) {
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << 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 | 76 |
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int x;
int i = 1;
while (true) {
cin >> x;
if (x == 0) {
break;
}
printf("Case %d:%d\n", i, x);
i++;
}
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int x;
int i = 1;
while (true) {
cin >> 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]] | 1 | 69 |
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_B
#include <iostream>
using namespace std;
int main() {
int x, i = 0;
while (cin >> x) {
if (x == 0) {
break;
} else {
cout << "Case " << i << ": " << x << endl;
}
i++;
}
} | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_B
#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++;
}
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 60 |
#include <cstdio>
int main() {
int x;
int i = 1;
while (1) {
scanf("%d", x);
if (x = 0)
break;
printf("Case %d: %d\n", i, x);
++i;
}
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, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 0, 52, 8, 9, 0, 1, 0,... | 1 | 57 |
#include <cstdio>
using namespace std;
int main() {
int x;
int i = 1;
while (1) {
scanf("%d", x);
if (x = 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <cstdio>
int main() {
int x;
int i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 340, 0, 233], ["-", 36, 36, 36, 36, 0, 30, 0, 340, 0, 256], ["-", 36, 36, 36, 36, 0, 30, 0, 340, 0, 22], ["-", 36, 36, 36, 36, 0, 30, 0, 340, 0, 35], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 61 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
long i, j, k;
long n;
long cnt = 0;
long left, right, mid;
long ans = 0;
static long e[100000];
for (i = 0;; i++) {
scanf("%ld", &e[i]);
if (e[i] == 0)
break;
}
for (j = 0; j < i; j++) {
printf... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
long i, j, k;
long n;
long cnt = 0;
long left, right, mid;
long ans = 0;
static long e[100000];
for (i = 0;; i++) {
scanf("%ld", &e[i]);
if (e[i] == 0)
break;
}
for (j = 0; j < i; j++) {
printf... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 119 |
//============================================================================
// Name : ku.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostrea... | //============================================================================
// Name : ku.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostrea... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 72 |
#include <iostream>
using namespace std;
int i, x;
int main() {
x = 1;
while (1) {
cin >> i;
if (i != 0) {
cout << "case " << x << ": " << i << endl;
x++;
}
else {
break;
}
}
return 0;
} | #include <iostream>
using namespace std;
int i, x;
int main() {
x = 1;
while (1) {
cin >> i;
if (i != 0) {
cout << "Case " << x << ": " << i << endl;
x++;
}
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>
using namespace std;
int main() {
int x, i;
i = 1;
while (cin >> x) {
cout << "Case " << i << ": " << x;
i++;
}
} | #include <iostream>
using namespace std;
int main() {
int x, i;
i = 1;
while (cin >> x, x) {
cout << "Case " << i << ": " << x << endl;
i++;
}
} | [["+", 8, 9, 0, 52, 15, 339, 51, 34, 0, 21], ["+", 8, 9, 0, 52, 15, 339, 51, 34, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 46 |
#include <stdio.h>
int main(void) {
int n = 1, i = 1;
while (scanf("%d", &n), n != 0) {
printf("Case %d: %d\n", i++, n);
puts("");
}
return 0;
}
| #include <stdio.h>
int main(void) {
int n = 1, i = 1;
while (scanf("%d", &n), n != 0) {
printf("Case %d: %d\n", i++, n);
}
return 0;
}
| [["-", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 58 |
// Copyright 2015 KanatoNagayama
#include <iostream>
#include <vector>
using std ::cin;
using std ::cout;
using std ::endl;
using std ::vector;
int main() {
vector<int> v(10000);
int i = 0;
while (true) {
cin >> v[i];
if (v[i] == 0)
break;
i++;
}
for (int k = 0; k < i; k++) {
cout << "Ca... | // Copyright 2015 KanatoNagayama
#include <iostream>
#include <vector>
using std ::cin;
using std ::cout;
using std ::endl;
using std ::vector;
int main() {
vector<int> v(100000);
int i = 0;
while (true) {
cin >> v[i];
if (v[i] == 0)
break;
i++;
}
for (int k = 0; k < i; k++) {
cout << "C... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]] | 1 | 110 |
#include <iostream>
using namespace std;
main() {
int num;
int i = 1;
while (1) {
cin >> num;
if (num == 0)
break;
cout << "Case " << i << ':' << num << endl;
i++;
}
} | #include <iostream>
using namespace std;
main() {
int num;
int i = 1;
while (1) {
cin >> num;
if (num == 0)
break;
cout << "Case " << i << ": " << num << endl;
i++;
}
} | [["-", 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 | 56 |
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
vector<int> v;
while (1) {
int temp;
cin >> temp;
if (temp == 0)
break;
v.push_back(temp);
}
for (int i = 0; i < v.size(); i++) {
cout << "Case " << i << ": " << v[i] << endl;
}
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
vector<int> v;
while (1) {
int temp;
cin >> temp;
if (temp == 0)
break;
v.push_back(temp);
}
for (int i = 0; i < v.size(); i++) {
cout << "Case " << i + 1 << ": " << v[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 | 91 |
#include <iostream>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
int main(void) {
int x = 0;
int i = 1;
while (1) {
CI x;
if (x == 0) {
return 0;
}
CO "case " << i << ": " << x E++ i;
}
} | #include <iostream>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
int main(void) {
int x = 0;
int i = 1;
while (1) {
CI x;
if (x == 0) {
return 0;
}
CO "Case " << i << ": " << x E++ i;
}
} | [["-", 31, 16, 31, 16, 31, 61, 0, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 61, 0, 5, 0, 6]] | 1 | 68 |
#include <iostream>
using namespace std;
int main() {
int D[10000], C = 0;
while (true) {
cin >> D[C];
if (D[C] == 0) {
goto Exit;
}
C++;
}
Exit:;
for (int i = 0; i < C; i++) {
cout << "Case " << C << ": " << D[C] << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int D[10000], C = 0;
while (true) {
cin >> D[C];
if (D[C] == 0) {
goto Exit;
}
C++;
}
Exit:;
for (int i = 0; i < C; i++) {
cout << "Case " << i + 1 << ": " << D[i] << endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 16, 31, 16, 12, 69, 341, 342, 0, 22], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 22]] | 1 | 93 |
#include <iostream>
class data {
private:
int number;
int data;
public:
void set_number(int num) { this->number = num; }
void set_data(int dat) {
if (dat == 0) {
this->number = 0;
} else {
this->data = dat;
}
}
int get_number(void) { return number; }
int get_data(void) { retur... | #include <iostream>
class data {
private:
int number;
int data;
public:
void set_number(int num) { this->number = num; }
void set_data(int dat) {
if (dat == 0) {
this->number = 0;
} else {
this->data = dat;
}
}
int get_number(void) { return number; }
int get_data(void) { retur... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 181 |
#include <iostream>
using namespace std;
int main(void) {
int x, i = 1;
while (cin >> x) {
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
} | #include <iostream>
using namespace std;
int main(void) {
int x, i = 1;
while (cin >> x) {
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
} | [["+", 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 | 52 |
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
int x;
for (int i = 0; cin >> x, x; i++) {
cout << "Case " << i << ": " << x << '\n';
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
int x;
for (int i = 1; cin >> x, x; i++) {
cout << "Case " << i << ": " << x << '\n';
}
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 61 |
#include <iostream>
using namespace std;
int main() {
int x;
int count = 0;
while (true) {
cin >> x;
count++;
if (x == 0) {
break;
} else {
cout << "Case " << count << ":" << x << '\n';
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
int count = 0;
while (true) {
cin >> x;
count++;
if (x == 0) {
break;
} else {
cout << "Case " << count << ": " << x << '\n';
}
}
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 <algorithm>
#include <iostream>
using namespace std;
int main() {
int i;
int a;
for (i = 1;; i++) {
cin >> a;
if (a == 0)
break;
cout << "case " << i << ": " << a << '\n';
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int i;
int a;
for (i = 1;; i++) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << '\n';
}
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 <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int N[65535];
int i = 0;
while (1) {
scanf("%d", &N[i]);
if (N[i] == 0)
break;
i++;
}
for (int j = 0; j < i; j++) {
cout << "Case " << j + 1 << ":" << N[j] << "\n";
}
return 0;
} | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int N[65535];
int i = 0;
while (1) {
scanf("%d", &N[i]);
if (N[i] == 0)
break;
i++;
}
for (int j = 0; j < i; j++) {
cout << "Case " << j + 1 << ": " << N[j] << "\n";
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 102 |
#include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int i = 1, x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("case %d: %d\n", i, x);
i++;
}
return (0);
} | #include <cstdio>
using namespace std;
int main() {
int i = 1, x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return (0);
} | [["-", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["-", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 67 |
#include <stdbool.h>
#include <stdio.h>
int main(void) {
int i = 0;
while (true) {
i++;
int temp;
scanf("%d", &temp);
if (temp == 0) {
break;
} else {
printf("Case %d: %d", i, temp);
}
}
return 0;
} | #include <stdbool.h>
#include <stdio.h>
int main(void) {
int i = 0;
while (true) {
i++;
int temp;
scanf("%d", &temp);
if (temp == 0) {
break;
} else {
printf("Case %d: %d\n", i, temp);
}
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 65 |
#include <iostream>
using namespace std;
int main(void) {
int n, cnt = 1;
while (1) {
cin >> n;
if (n == 0)
break;
cout << "case " << cnt << ": " << n << endl;
cnt++;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int n, cnt = 1;
while (1) {
cin >> n;
if (n == 0)
break;
cout << "Case " << cnt << ": " << n << endl;
cnt++;
}
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 <stdio.h>
int x;
int i;
int main() {
for (i = 1; i < 0; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int x;
int i;
int main() {
for (i = 1; i > 0; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47]] | 1 | 62 |
#include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (true) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ':' << x << endl;
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (true) {
cin >> x;
if (x == 0) {
break;
}
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 | 61 |
#include <iostream>
using namespace std;
int main() {
int x;
unsigned int i = 1;
while (true) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
unsigned int i = 1;
while (true) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
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]] | 1 | 58 |
#include <cstdio>
int main(void) {
int n = 1;
int i = 1;
while (1) {
scanf("%d", &n);
if (n == 0)
break;
printf("Case %d: %d\n", i, n);
}
return 0;
} | #include <cstdio>
int main(void) {
int n = 1;
int i = 1;
while (1) {
scanf("%d", &n);
if (n == 0)
break;
printf("Case %d: %d\n", i++, n);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 27, 17, 29]] | 1 | 58 |
#include <iostream>
#include <queue>
using namespace std;
int main() {
queue<int> q;
int tmp;
while (1) {
cin >> tmp;
if (!tmp)
break;
q.push(tmp);
}
int n = q.size();
for (int i = 1; i <= n; i++) {
cout << "Case" << i << ": " << q.front() << endl;
q.pop();
}
return 0;
} | #include <iostream>
#include <queue>
using namespace std;
int main() {
queue<int> q;
int tmp;
while (1) {
cin >> tmp;
if (!tmp)
break;
q.push(tmp);
}
int n = q.size();
for (int i = 1; i <= n; i++) {
cout << "Case " << i << ": " << q.front() << endl;
q.pop();
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 101 |
#include <iostream>
using namespace std;
int main() {
int data, i;
i = 0;
while (cin >> data) {
if (data != 0) {
i++;
cout << "Case " << i << ":" << data << endl;
} else {
break;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int data, i;
i = 0;
while (cin >> data) {
if (data != 0) {
i++;
cout << "Case " << i << ": " << data << 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 | 64 |
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 1; x != 0; i++) {
cout << "Case " << i << ": " << x;
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, 7, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 56 |
#include <cstdio>
int main() {
int id, data;
id = 1;
while (true) {
scanf("%d", data);
if (data == 0)
break;
printf("Case %d: %d\n", id, data);
++id;
}
return 0;
};
| #include <cstdio>
int main() {
int id, data;
id = 1;
while (true) {
scanf("%d", &data);
if (data == 0)
break;
printf("Case %d: %d\n", id, data);
++id;
}
return 0;
};
| [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 59 |
#include <iostream>
using namespace std;
int main() {
for (int x, i = 1; i++;) {
cin >> x;
if (x == 0)
break;
cout << "Case" << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int x, t = 1;; t++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << t << ": " << x << endl;
}
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 49, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 27, 28, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16,... | 1 | 58 |
#include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i += 1;
}
return 0;
} | [["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 56 |
#include <stdio.h>
int main() {
int i = 1, a;
while (scanf("%d", &a) && a) {
printf("Case %d:%d\n", i++, a);
}
return 0;
} |
#include <stdio.h>
int main() {
int i = 1, a;
while (scanf("%d", &a) && a) {
printf("Case %d: %d\n", i++, a);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 47 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> x;
int i = 0, n;
while (1) {
cin >> n;
x.push_back(n);
if (x[i] == 0)
break;
i++;
}
for (i = 0; i < x.size(); i++) {
if (x[i] == 0)
break;
cout << "Case" << i + 1 << ": " << x[i] << e... | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> x;
int i = 0, n;
while (1) {
cin >> n;
x.push_back(n);
if (x[i] == 0)
break;
i++;
}
for (i = 0; i < x.size(); i++) {
if (x[i] == 0)
break;
cout << "Case " << i + 1 << ": " << x[i] << ... | [["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 109 |
#include <stdio.h>
int main(void) {
int count;
int input;
count = 0;
scanf("%d", &input);
while (input != 0) {
count++;
printf("Case %d: %d", count, input);
scanf("%d", &input);
}
} | #include <stdio.h>
int main(void) {
int count;
int input;
count = 0;
scanf("%d", &input);
while (input != 0) {
count++;
printf("Case %d: %d\n", count, input);
scanf("%d", &input);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 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 | 61 |
#include <iostream>
using namespace std;
int main(void) {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x;
++i;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << "\n";
++i;
}
return 0;
} | [["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44]] | 1 | 60 |
#include <cmath>
#include <cstdio>
int main(void) {
int n, i = 0;
while (scanf("%d", &n) != EOF) {
if (!n)
return 0;
printf("Case %d:%d\n", ++i, n);
}
return 0;
} | #include <cmath>
#include <cstdio>
int main(void) {
int n, i = 0;
while (scanf("%d", &n) != EOF) {
if (!n)
return 0;
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]] | 1 | 58 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.