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 <cstdio> #include <iostream> #include <string> using namespace std; typedef long long ll; int pow_mod(int m, int n, int mod) { int x = 1; m = m % mod; while (n > 0) { if (n & 1) { x = (x * m) % mod; } n >>= 1; m = (m * m) % mod; } return x; } int main() ...
#include <algorithm> #include <cstdio> #include <iostream> #include <string> using namespace std; typedef long long ll; int pow_mod(ll m, int n, int mod) { ll x = 1; m = m % mod; while (n > 0) { if (n & 1) { x = (x * m) % mod; } n >>= 1; m = (m * m) % mod; } return x; } int main() { ...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
122
#include <iostream> #define rep(i, a, n) for (int i = a; i < n; i++) using namespace std; const long long mod = 1000000009; long long mod_pow(long long x, long long n) { if (n == 0) return 1; long long res = mod_pow(x * x % mod, n / 2); if (n & 1) res = res * x % mod; return res; } int main() { lon...
#include <iostream> #define rep(i, a, n) for (int i = a; i < n; i++) using namespace std; const long long mod = 1000000007; long long mod_pow(long long x, long long n) { if (n == 0) return 1; long long res = mod_pow(x * x % mod, n / 2); if (n % 2) res = res * x % mod; return res; } int main() { lon...
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 67], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
111
#include <stdio.h> long long func(long long x, long long y) { if (y == 0) return 1; else if (y % 2 == 0) { return func(x * x, y / 2); } else { return x * func(x, y - 1); } } int main() { int m, n; scanf("%d %d", &m, &n); printf("%lld\n", func(m, n) % 1000000007); }
#include <stdio.h> long long func(long long x, long long y) { if (y == 0) return 1; else if (y % 2 == 0) { return func(x * x % 1000000007, y / 2); } else { return x * func(x, y - 1) % 1000000007; } } int main() { int m, n; scanf("%d %d", &m, &n); printf("%lld\n", func(m, n) % 1000000007); ...
[["+", 0, 37, 0, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 37, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 75, 76, 0, 9, 0, 37, 0, 16, 17, 109], ["+", 75, 76, 0, 9, 0, 37, 0, 16, 12, 13]]
1
104
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define REP(i, n) for (int(i) = 0; (i) < (n); (i)++) using namespace std; long long int Pow(long long int n, long long int m) { if (m == 0) return 1; i...
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define REP(i, n) for (int(i) = 0; (i) < (n); (i)++) using namespace std; long long int Pow(long long int n, long long int m) { if (m == 0) return 1; i...
[["-", 64, 37, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 64, 37, 0, 16, 31, 23, 0, 16, 31, 22]]
1
139
#include <iostream> using namespace std; #define P 1000000007 int main() { unsigned long long a, b, s, l = 1; cin >> b >> a; s = b; while (a != 1) { if (a % 2) { l = l * s % P; } s *= s % P; a /= 2; } s = l * s % P; cout << s << endl; }
#include <iostream> using namespace std; #define P 1000000007 int main() { unsigned long long a, b, s, l = 1; cin >> b >> a; s = b; while (a != 1) { if (a % 2) { l = l * s % P; } s = s * s % P; a /= 2; } s = l * s % P; cout << s << endl; }
[["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48]]
1
86
#include <iostream> long pow(long x, long y) { if (y == 0) { return 1; } else if (y == 1) { return x; } else if (y % 2 == 0) { int z = pow(x, y / 2) % 1000000007; return z * z % 1000000007; } else { int z = pow(x, y / 2) % 1000000007; return (z * z % 1000000007) * x % 1000000007; } }...
#include <iostream> long pow(long x, long y) { if (y == 0) { return 1; } else if (y == 1) { return x; } else if (y % 2 == 0) { long z = pow(x, y / 2) % 1000000007; return z * z % 1000000007; } else { long z = pow(x, y / 2) % 1000000007; return (z * z % 1000000007) * x % 1000000007; }...
[["-", 75, 76, 0, 57, 64, 9, 0, 43, 39, 40], ["+", 0, 57, 64, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 57, 75, 76, 0, 9, 0, 43, 39, 40], ["+", 75, 76, 0, 9, 0, 43, 39, 86, 0, 96]]
1
135
#include <cmath> #include <cstdint> #include <cstdio> using namespace std; constexpr int limit = 1'000'000'007; constexpr int exp_max = 29; int main() { int m, n; scanf("%d %d", &m, &n); int64_t res = m; int64_t m_exp[exp_max]; m_exp[0] = m; int count = 1; int i; double sup = log(n) / log(2); for ...
#include <cmath> #include <cstdint> #include <cstdio> using namespace std; constexpr int limit = 1'000'000'007; constexpr int exp_max = 29; int main() { int m, n; scanf("%d %d", &m, &n); int64_t res = m; int64_t m_exp[exp_max]; m_exp[0] = m; int count = 1; int i; double sup = log(n) / log(2); for ...
[["-", 0, 11, 12, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13]]
1
194
#include <iostream> using namespace std; typedef long long int lli; int mod = 1e9 + 7; lli modPow(lli x, lli n) { if (n == 0) return 1LL; lli res = modPow((x * x) % mod, n / 2); if (n & 1) res = (res * x) % mod; return res; } int main() { lli n, m; std::cin >> n >> m; std::cout << modPow(m, n) <...
#include <iostream> using namespace std; typedef long long int lli; int mod = 1e9 + 7; lli modPow(lli x, lli n) { if (n == 0) return 1LL; lli res = modPow((x * x) % mod, n / 2); if (n & 1) res = (res * x) % mod; return res; } int main() { lli n, m; std::cin >> m >> n; std::cout << modPow(m, n) ...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
113
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < ((int)(n)); i++) #define reg(i, a, b) for (in...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < ((int)(n)); i++) #define reg(i, a, b) for (in...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 2, 3, 4, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]]
1
192
#include <cmath> #include <iostream> using namespace std; typedef long long ll; ll pow(int m, int n, int mod) { ll res = 1; while (n > 0) { if (n & 1) { res = res * m % mod; } m = m * m % mod; n >>= 1; } return res; } int main() { int a, b; cin >> a >> b; cout << pow(a, b, 100000000...
#include <cmath> #include <iostream> using namespace std; typedef long long ll; ll pow(ll m, ll n, ll mod) { ll res = 1; while (n > 0) { if (n & 1) { res = res * m % mod; } m = m * m % mod; n >>= 1; } return res; } int main() { ll a, b; cin >> a >> b; cout << pow(a, b, 1000000007) <...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
104
#include <algorithm> #include <iostream> #include <string> #include <vector> const int M = 1000000007; using namespace std; typedef long long ll; ll pos(int m, int n) { if (n == 0) return 1; ll res = pos(m * m % M, n / 2); if (n % 2 == 1) { res = (res * m) % M; } return res; } int main() { ll m...
#include <algorithm> #include <iostream> #include <string> #include <vector> const int M = 1000000007; using namespace std; typedef long long ll; ll pos(ll m, ll n) { if (n == 0) return 1; ll res = pos((m * m) % M, n / 2); if (n % 2 == 1) { res = (res * m) % M; } return res; } int main() { ll m...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["+", 51, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
1
110
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; using ll = long long; const ll big = (ll)1e9 + 7; ll po(ll b, ll e) { if (e == 1) { return b % big; } if (e % 2) { return (b * po(b * b, e / 2)) % big; } else { return po(b * b, e / 2) % big; } } int main() { ll m, n...
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; using ll = long long; const ll big = (ll)1e9 + 7; ll po(ll b, ll e) { if (e == 1) { return b % big; } if (e % 2) { return b * po(b * b % big, e / 2) % big; } else { return po(b * b % big, e / 2) % big; } } int main() {...
[["-", 64, 9, 0, 37, 0, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 109], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 22], ["-", 31, 23, 0, 16, 12, 2, 3, 4, 0, 25], ["+", 0, 16, 31, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 16, 31, 2, 3, 4, 0, 16, 12, 22]]
1
120
#include <cstdio> #include <iostream> using namespace std; long long pow(long long m, long long n) { long long res; if (n == 0) return 1; res = pow(m * m, n / 2); if (n % 2 == 1) return res * m % 1000000007; return res % 100000007; } int main() { long long m, n; cin >> m >> n; cout << pow(m,...
#include <cstdio> #include <iostream> using namespace std; long long pow(long long m, long long n) { long long res; if (n == 0) return 1; res = pow(m * m % 1000000007, n / 2); if (n % 2 == 1) return res * m % 1000000007; return res; } int main() { long long m, n; cin >> m >> n; cout << pow(m...
[["+", 0, 11, 12, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 37, 0, 16, 17, 109], ["-", 0, 14, 8, 9, 0, 37, 0, 16, 12, 13]]
1
100
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) FOR(i, 0, n) #define MAX 1000000007 typedef long lo...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) FOR(i, 0, n) #define MAX 1000000007 typedef long lo...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
152
#include <iostream> using namespace std; int a, ans; int f(int idx) { if (idx == 1) return ans = a; ans = (ans * f(idx / 2)) % 1000000007; if (idx % 2) ans = (ans * a) % 1000000007; return ans; } int main() { int b; while (cin >> a >> b) { ans = 1; a = a % 1000000007; cout << f(b) <...
#include <iostream> using namespace std; long long a, ans; int f(int idx) { if (idx == 1) return ans = a; ans = (ans * f(idx / 2)) % 1000000007; if (idx % 2) ans = (ans * a) % 1000000007; return ans; } int main() { int b; while (cin >> a >> b) { ans = 1; a = a % 1000000007; cout << ...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
107
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define FI first #define SE second #define VE vector<int> #define PF push_front #define PB push_back #define POF pop_front #define POB pop_back #define MA make_p...
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define FI first #define SE second #define VE vector<int> #define PF push_front #define PB push_back #define POF pop_front #define POB pop_back #define MA make_p...
[["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 78], ["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
186
#include <iostream> using namespace std; long long rec(long long x, long long y) { if (y == 1) return x; else if (y % 2 == 1) { return rec(x * x, y / 2) * x % 1000000007; } else { return rec(x * x % 1000000007, y / 2); } } int main(void) { long long m, n; cin >> m >> n; cout << rec(m, n) << e...
#include <iostream> using namespace std; long long rec(long long x, long long y) { if (y == 1) return x; else if (y % 2 == 1) { return rec(x * x % 1000000007, y / 2) * x % 1000000007; } else { return rec(x * x % 1000000007, y / 2); } } int main(void) { long long m, n; cin >> m >> n; cout << r...
[["+", 31, 16, 31, 2, 3, 4, 0, 16, 17, 109], ["+", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
1
103
#include <iostream> using namespace std; #define M 1000000007 int rec(int m, int n) { if (n == 1) return m % M; long long m2 = rec((m % M) * (m % M), n / 2); if (n % 2 == 1) { m2 = ((m2 % M) * (m % M)); } return m2 % M; } int main() { int m, n; cin >> m >> n; cout << rec(m, n) << endl; retur...
#include <iostream> using namespace std; #define M 1000000007 int rec(long m, long n) { if (n == 1) return m % M; long long m2 = rec((m % M) * (m % M), n / 2); if (n % 2 == 1) { m2 = ((m2 % M) * (m % M)); } return m2 % M; } int main() { int m, n; cin >> m >> n; cout << rec(m, n) << endl; ret...
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 49, 53, 54, 55, 0, 56, 39, 86, 0, 96]]
1
116
#include <stdio.h> #define NUM 1000000007 long long power_(long long m, long long n) { // printf("%lld %lld\n", m, n); if (n == 1) { return m % NUM; } return (n % 2 == 0) ? power_((m * m) % NUM, n / 2) : power_((m * m) % NUM, n / 2) * m; } int main() { long long M, N; scanf("%ll...
#include <stdio.h> #define NUM 1000000007 long long power_(long long m, long long n) { // printf("%lld %lld\n", m, n); if (n == 1) { return m % NUM; } return (n % 2 == 0) ? power_((m * m) % NUM, n / 2) : power_((m * m) % NUM, n / 2) * m % NUM; } int main() { long long M, N; scan...
[["+", 8, 9, 0, 37, 0, 41, 75, 16, 17, 109], ["+", 8, 9, 0, 37, 0, 41, 75, 16, 12, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 109], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]]
1
116
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll pow_ans(ll x, ll n) { ll res = 1; while (n > 0) { if (n & 1) { res *= x, res %= 1000000007; } x %= 1000000007; x *= x; n >>= 1; } return res; } int main() { ll x; ll y; cin >> x >> y; cout << pow_ans(x, y...
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll pow_ans(ll x, ll n) { ll res = 1; while (n > 0) { x %= 1000000007; if (n & 1) { res *= x, res %= 1000000007; } x %= 1000000007; x *= x; n >>= 1; } return res; } int main() { ll x; ll y; cin >> x >> y; ...
[["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
97
#include <bits/stdc++.h> using namespace std; int main() { long int m, n, i, x = 1, s = 1, t, u, v, w, y, r = 1, k; scanf("%ld %ld", &m, &n); for (i = 1; x < 1000000007 && i <= n; ++i) { x = x * m; } if (x < 1000000007) { cout << x << endl; } else { t = n / (i - 1); u = n % (i - 1); v = ...
#include <bits/stdc++.h> using namespace std; int main() { long int m, n, i, x = 1, s = 1, t, u, v, w, y, r = 1, k; scanf("%ld %ld", &m, &n); for (i = 1; x < 1000000007 && i <= n; ++i) { x = x * m; } if (x < 1000000007) { cout << x << endl; } else { t = n / (i - 1); u = n % (i - 1); v = ...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
188
<?php $i = 1; while (TRUE) { fscanf(STDIN, '%d', $x); if ($x === 0) { break; } echo sprintf('Case %d: %d', $i, $x); $i++; }
<?php $i = 1; while (TRUE) { fscanf(STDIN, '%d', $x); if ($x === 0) { break; } echo sprintf('Case %d: %d', $i, $x); echo PHP_EOL; $i++; }
[["+", 0, 493, 0, 52, 8, 9, 0, 608, 0, 621], ["+", 0, 493, 0, 52, 8, 9, 0, 608, 0, 141], ["+", 0, 493, 0, 52, 8, 9, 0, 608, 0, 35]]
6
53
<?php $i = 1; while(1) { $x = trim(fgets(STDIN)); if($x == 0) { break; } else { echo 'Case ' . $i . ': ' . $x . "<br>"; $i++; } } ?>
<?php $i = 1; while(1) { $x = trim(fgets(STDIN)); if($x == 0) { break; } else { echo 'Case ' . $i . ': ' . $x . "\n"; $i++; } } ?>
[["-", 8, 9, 0, 608, 0, 16, 12, 609, 0, 610], ["+", 8, 9, 0, 608, 0, 16, 12, 609, 0, 44]]
6
61
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a; for (int i = 1; (a = sc.next()) != "0"; i++) { System.out.println("Case " + i + ": " + a); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = 0; for (int i = 1; (a = sc.nextInt()) != 0; i++) { System.out.println("Case " + i + ": " + a); } } }
[["-", 8, 498, 0, 195, 8, 196, 0, 503, 39, 78], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 0, 32], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["-", 15, 16, 31, 23, 0, 11, 12, 492, 141, 22], ["+", 15, 16, 31, 23, 0, 11, 12, 492, 141, 22], ["-", 8, 196, 0, 7, 15, 16, 12, ...
3
83
import java.util.Scanner; class Main { public static void main(String[] srgs) { Scanner scn = new Scanner(System.in); int x; int i = 0; while (true) { x = scn.nextInt(); if (x == 0) break; System.out.printf("case %d: %d\n", i + 1, x); i++; } scn.close(); } }
import java.util.Scanner; class Main { public static void main(String[] srgs) { Scanner scn = new Scanner(System.in); int x; int i = 0; while (true) { x = scn.nextInt(); if (x == 0) break; System.out.printf("Case %d: %d\n", i + 1, x); i++; } scn.close(); } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
91
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int count = 0; while (true) { int num = scan.nextInt(); if (num == 0) { break; } else { System.out.println("Case " + count + ": " + num + ""); } ...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int count = 0; while (true) { count++; int num = scan.nextInt(); if (num == 0) { break; } else { System.out.println("Case " + count + ": " + num + ...
[["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 29], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
3
95
import java.util.Scanner; class Main { public static void main(String[] args) { int i = 1; Scanner s = new Scanner(System.in); while (s.hasNext()) { int num = s.nextInt(); switch (num) { case 0: s.close(); return; default: System.out.println("case " + i + ...
import java.util.Scanner; class Main { public static void main(String[] args) { int i = 1; Scanner s = new Scanner(System.in); while (s.hasNext()) { int num = s.nextInt(); switch (num) { case 0: s.close(); return; default: System.out.println("Case " + i + ...
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
99
/* データをオウム返し 0を受け取ったら終わる */ import java.util.Scanner; public class Main { public static void main(String[] args) { int count = 0; Scanner scan = new Scanner(System.in); int n; while ((n = scan.nextInt()) != 0) { count++; System.out.println("case " + count + ":" + n); } } }
/* データをオウム返し 0を受け取ったら終わる */ import java.util.Scanner; public class Main { public static void main(String[] args) { int count = 0; Scanner scan = new Scanner(System.in); int n; while ((n = scan.nextInt()) != 0) { count++; System.out.println("Case " + count + ": " + n); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
82
import java.util.Scanner; public class Main { public static void main(String[] args) { int x, n = 1; Scanner sc = new Scanner(System.in); x = sc.nextInt(); while (x != 0) { System.out.printf("Case %d: %d", n, x); n++; x = sc.nextInt(); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { int x, n = 1; Scanner sc = new Scanner(System.in); x = sc.nextInt(); while (x != 0) { System.out.printf("Case %d: %d\n", n, x); n++; x = sc.nextInt(); } } }
[["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
84
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int s = 1, i = 0...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int s = 1, i = 0...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 62], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 44]]
3
141
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); switch (x) { case 0: System.exit(0); break; default: System.out.println("Case 1: " + x); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); switch (x) { case 0: System.exit(0); break; default: System.out.println("Case " + i + ": " +...
[["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 62], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 3, 4, 0...
3
92
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.printf("Case %d %d", i, x); System.out.println(""); } else { break; ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.printf("Case %d: %d", i, x); System.out.println(""); } else { break; ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
95
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; do { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.printf("Case %d:%d\n", i, x); i++; } } while (true...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; do { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.printf("Case %d: %d\n", i, x); i++; } } while (tru...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
89
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Integer> c = new ArrayList<Integer>(); int a; a = 0; for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { c....
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Integer> c = new ArrayList<Integer>(); int a; a = 0; for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { c....
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
152
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.println("Case" + i + ":" + x); } else { break; } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.println("Case " + i + ": " + x); } else { break; } } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
89
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x; for (int i = 1;; i++) { x = sc.nextInt(); if (x == 0) break; else System.out.println("case " + i + ": " + x); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x; for (int i = 1;; i++) { x = sc.nextInt(); if (x == 0) break; else System.out.println("Case " + i + ": " + x); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
87
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int x; int i = 1; while (true) { x = input.nextInt(); if (x == 0) break; System.out.println("Case " + i + ":" + x); i++; } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int x; int i = 1; while (true) { x = input.nextInt(); if (x == 0) break; System.out.println("Case " + i + ": " + x); i++; } } }
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
86
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int b = 1; int i = 0; while (b != 0) { int a = sc.nextInt(); i++; if (a == 0) { break; } System.out.printf("Case %d:%d\n", i, a); } }...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int b = 1; int i = 0; while (b != 0) { int a = sc.nextInt(); i++; if (a == 0) { break; } System.out.printf("Case %d: %d\n", i, a); } ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
91
import java.util.*; public class Main { public static void main(String[] args) { int i = 0; Scanner scan = new Scanner(System.in); while (scan.hasNext()) { int a = scan.nextInt(); if (a == 0) break; System.out.println("Case " + i + ": " + a); i++; } } }
import java.util.*; public class Main { public static void main(String[] args) { int i = 1; Scanner scan = new Scanner(System.in); while (scan.hasNext()) { int a = scan.nextInt(); if (a == 0) break; System.out.println("Case " + i + ": " + a); i++; } } }
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]]
3
89
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; int a; while (true) { a = sc.nextInt(); if (a != 0) { System.out.printf("Case %d: %d", i, a); i++; } else break; } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; int a; while (true) { a = sc.nextInt(); if (a != 0) { System.out.printf("Case %d: %d\n", i, a); i++; } else break; } }...
[["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
86
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0;; ++i) { int j = sc.nextInt(); if (j == 0) { return; } System.out.printf("Case %d: %d\n", i, j); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; ++i) { int j = sc.nextInt(); if (j == 0) { return; } System.out.printf("Case %d: %d\n", i, j); } } }
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499]]
3
83
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); outer: for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) { break outer; } else { System.out.printf("Case %d: %d", i, x); } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); outer: for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) { break outer; } else { System.out.printf("Case %d: %d\n", i, x); } } } ...
[["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
88
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); // ????????????????????????????????´??°?????¨???????????????????????? for (int i = 1;; i++) { int x = sc.nextInt()...
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); // ????????????????????????????????´??°?????¨???????????????????????? for (int i = 1;; i++) { int x = sc.nextInt()...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
83
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); for (int i = 0;; i++) { int x = stdIn.nextInt(); if (x == 0) break; System.out.println("Case " + i + ": " + x); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); for (int i = 1;; i++) { int x = stdIn.nextInt(); if (x == 0) break; System.out.println("Case " + i + ": " + x); } } }
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499]]
3
83
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1, x; while ((x = sc.nextInt()) != 0) { System.out.println("Case" + i++ + ": " + x); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1, x; while ((x = sc.nextInt()) != 0) { System.out.println("Case " + i++ + ": " + x); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
78
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int inc = 1; while (true) { int tmp = sc.nextInt(); if (tmp != 0) System.out.printf("Case %d: %d", inc, tmp); else break; inc++; } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int inc = 1; while (true) { int tmp = sc.nextInt(); if (tmp != 0) System.out.printf("Case %d: %d\n", inc, tmp); else break; inc++; } }...
[["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
82
import java.util.Scanner; class Main { public static void main(String args[]) { int flag = 1; Scanner scan = new Scanner(System.in); while (flag > 0) { int a = scan.nextInt(); if (a == 0) { break; } System.out.println("Case " + flag + ":" + a); } flag++; } }
import java.util.Scanner; class Main { public static void main(String args[]) { int flag = 1; Scanner scan = new Scanner(System.in); while (flag > 0) { int a = scan.nextInt(); if (a == 0) { break; } System.out.println("Case " + flag + ": " + a); flag += 1; } }...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["-", 0, 195, 8, 196, 0, 52, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 1, 0, 27, 0, 29], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 499], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 46]]
3
88
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1; true; i++) { int num = sc.nextInt(); if (num == 0) break; else System.out.println("case " + i + ": " + num); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1; true; i++) { int num = sc.nextInt(); if (num == 0) break; else System.out.println("Case " + i + ": " + num); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
86
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i; for (i = 0;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.printf("Case %d: %d", i + 1, x); } else { break; } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i; for (i = 0;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.printf("Case %d: %d\n", i + 1, x); } else { break; } } } }
[["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
89
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) { break; } System.out.printf("Case %d: %d", i, x); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) { break; } System.out.printf("Case %d: %d\n", i, x); } } }
[["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
82
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0;; i++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.printf("Case %d:%d\n", i + 1, x); } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0;; i++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.printf("Case %d: %d\n", i + 1, x); } } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
88
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.println("Case " + i + ": " + x + "\n"); } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) { break; } else { System.out.println("Case " + i + ": " + x); } } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 62], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 44]]
3
93
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.printf("Case %d: %d\n", i, x); } else { break; } } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x != 0) { System.out.printf("Case %d: %d\n", i, x); } else break; } } }
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46]]
3
86
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 0; while (true) { int x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case" + (i + 1) + ":" + x); i++; } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 0; while (true) { int x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case " + (i + 1) + ": " + x); i++; } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
91
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); // ????????????????????????????????´??°?????¨???????????????????????? for (int i = 1;; i++) { int x = sc.nextInt(); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); // ????????????????????????????????´??°?????¨???????????????????????? for (int i = 1;; i++) { int x = sc.nextInt(); ...
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
91
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); // ????????????????????????????????´??°?????¨???????????????????????? for (int i = 1;; i++) { int x = sc.nextInt(); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case " + i + ": " + x); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
91
import java.util.*; class Main { private static Scanner s = new Scanner(System.in); public static void main(String[] args) { for (int i = 1;; i++) { int a = s.nextInt(); if (a == 0) break; System.out.println("Case" + i + ": " + a); } } }
import java.util.*; class Main { private static Scanner s = new Scanner(System.in); public static void main(String[] args) { for (int i = 1;; i++) { int a = s.nextInt(); if (a == 0) break; System.out.println("Case " + i + ": " + a); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
85
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); try { ArrayList<String> st = new ArrayList<String>(); String p; while (true) { p = sc.readLine(); if (p.equal...
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); try { ArrayList<String> st = new ArrayList<String>(); String p; while (true) { p = sc.readLine(); if (p.equal...
[["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 499], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
153
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = 1; for (int i = 1;; i++) { x = sc.nextInt(); if (x != 0) break; System.out.println("Case " + i + ": " + x); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = 1; for (int i = 1;; i++) { x = sc.nextInt(); if (x == 0) break; System.out.println("Case " + i + ": " + x); } } }
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60]]
3
88
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); for (int i = 1; num != 0; i++) { System.out.println("Case i: " + num); num = scan.nextInt(); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); for (int i = 1; num != 0; i++) { System.out.println("Case " + i + ": " + num); num = scan.nextInt(); } } }
[["-", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 62], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 3, 4, 0...
3
80
import java.util.*; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int x = 1, i = 0; while ((x = scanner.nextInt()) != 0) { System.out.println("Case " + i++ + ": " + x); } scanner.close(); } }
import java.util.*; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int x = 1, i = 1; while ((x = scanner.nextInt()) != 0) { System.out.println("Case " + i++ + ": " + x); } scanner.close(); } }
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]]
3
85
import java.util.*; class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) break; System.out.println("case " + i + ": " + x); } } }
import java.util.*; class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) break; System.out.println("Case " + i + ": " + x); } } }
[["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
84
import java.util.Scanner; public class Main { public static void main(String[] args) { int i = 0, temp; Scanner scan = new Scanner(System.in); while (true) { temp = scan.nextInt(); if (temp == 0) { break; } System.out.printf("Case %d: %d\n", i, temp); i++; } }...
import java.util.Scanner; public class Main { public static void main(String[] args) { int i = 1, temp; Scanner scan = new Scanner(System.in); while (true) { temp = scan.nextInt(); if (temp == 0) { break; } System.out.printf("Case %d: %d\n", i, temp); i++; } }...
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]]
3
85
import java.util.Scanner; class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int x, i = 1; while (true) { x = sc.nextInt(); if (x == 0) { break; } System.out.println("case " + i + ":" ...
import java.util.Scanner; class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int x, i = 1; while (true) { x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case " + i + ":" ...
[["-", 31, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
92
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int x, i = 1; while (true) { x = sc.nextInt(); if (x == 0) break; System.out.println("case " + i + ": " + x); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int x, i = 1; while (true) { x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case " + i + ":" ...
[["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", ...
3
87
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0;; i++) { int x = sc.nextInt(); if (x == 0) { break; } i++; System.out.println("Case " + i + ": " + x); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 1;; i++) { int x = sc.nextInt(); if (x == 0) { break; } System.out.println("Case " + i + ": " + x); } } }
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 7, 8, 196, 0, 1, 0, 27, 0, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 27, 0, 29], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]]
3
89
import java.util.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); for (int i = 1;; ++i) { int x; x = cin.nextInt(); if (x == 0) { break; } System.out.print("case " + i + ": " + x); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); for (int i = 1;; ++i) { int x; x = cin.nextInt(); if (x == 0) { break; } System.out.println("Case " + i + ": " + x); } } }
[["-", 0, 7, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 492, 141, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491], ["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 491]]
3
88
#include <stdio.h> int main() { int a[1000]; int i = 1; while (1) { scanf("%d", a[i]); if (a[i] == 0) { break; } i++; } i = 1; while (a[i] != 0) { printf("Case %d: %d\n", i, a[i]); } return 0; }
#include <stdio.h> int main() { int a[100000]; int i = 1; while (1) { scanf("%d", &a[i]); if (a[i] == 0) { break; } i++; } i = 1; while (a[i] != 0) { printf("Case %d: %d\n", i, a[i]); i++; } return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 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]]
0
86
#include <stdio.h> int main() { int i; int a; for (i = 1;; i++) { scanf("%d", &a); if (a == 0) return 0; printf("Case %d: %d", i, a); } return 0; }
#include <stdio.h> int main() { int i; int a; for (i = 1;; i++) { scanf("%d", &a); if (a == 0) return 0; printf("Case %d: %d\n", i, a); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
59
#include <stdio.h> int main(void) { int i, x; for (i = 1;; i++) { scanf("%d", &x); if (x == 0) { break; } else { printf("case %d: %d\n", i, x); } } return 0; }
#include <stdio.h> int main(void) { int i, x; for (i = 1;; i++) { scanf("%d", &x); if (x == 0) { break; } else { printf("Case %d: %d\n", i, x); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
64
#include <stdio.h> int main(void) { int i = 1, x; while (1) { scanf("%d", &x); if (x == 0) { break; } printf("Case %d: %d", i, x); ++i; } return 0; }
#include <stdio.h> int main(void) { int i = 1, 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]]
0
59
#include <stdio.h> int main(void) { int i, a; for (i = 1;; i++) { scanf("%d", &a); if (a == 0) break; printf("Case %d: %d", i, a); } return 0; }
#include <stdio.h> int main(void) { int i, a; for (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]]
0
58
#include <stdio.h> int main(void) { int x, i = 1; while (scanf("%d", &x) != EOF) { printf("Case %d: %d\n", i, x); i++; } return (0); }
#include <stdio.h> int main(void) { int x, i = 1; while (scanf("%d", &x), x != 0) { printf("Case %d: %d\n", i, x); i++; } return (0); }
[["+", 8, 9, 0, 52, 15, 23, 0, 34, 0, 21], ["+", 0, 52, 15, 23, 0, 34, 12, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 12, 22], ["+", 0, 52, 15, 23, 0, 34, 12, 16, 12, 13]]
0
52
#include <stdio.h> int main(void) { int i = 1; int x; while (1) { scanf("%d", &x); if (x == 0) { return (0); } printf("case %d: %d\n", i, x); i++; } }
#include <stdio.h> int main(void) { int i = 1; int x; while (1) { scanf("%d", &x); if (x == 0) { return (0); } 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]]
0
61
#include <stdio.h> #include <stdlib.h> int main(int argc, const char *argv[]) { int *heap = (int *)malloc(sizeof(int)); int i = 1; while (1) { int a; scanf("%d", &a); if (a == 0) { break; } heap = (int *)realloc(heap, sizeof(int) * i); heap[i - 1] = a; i++; } int j; f...
#include <stdio.h> #include <stdlib.h> int main(int argc, const char *argv[]) { int *heap = (int *)malloc(sizeof(int)); int i = 1; while (1) { int a; scanf("%d", &a); if (a == 0) { break; } heap = (int *)realloc(heap, sizeof(int) * i); heap[i - 1] = a; i++; } int j; f...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
139
#include <stdio.h> int main(void) { int x = 1, i = 0; while (x != 0) { if (i != 0) { printf("Case %d:%d\n", i, x); } scanf("%d", &x); i = i + 1; } return 0; }
#include <stdio.h> int main(void) { int x = 1, i = 0; while (x != 0) { if (i != 0) { printf("Case %d: %d\n", i, x); } scanf("%d", &x); i = i + 1; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
65
#include <stdio.h> int main() { int x, a = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("case %d: %d\n", a, x); a++; } return 0; }
#include <stdio.h> int main() { int x, a = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", a, x); a++; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
57
#include <stdio.h> int main() { int a, i = 0, j; while (1) { scanf("%d", &a); if (a == 0) break; printf("Case %d: %d\n", i, a); i++; } return 0; }
#include <stdio.h> int main() { int a, i = 1, j; while (1) { scanf("%d", &a); if (a == 0) break; printf("Case %d: %d\n", i, a); i++; } return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
0
59
#include <stdio.h> int main() { int i; int x; while (scanf("%d", &x), x != 0) { printf("Case %d: %d", i + 1, x); } return 0; }
#include <stdio.h> int main() { int i = 1; int x; while (scanf("%d", &x), x != 0) { printf("Case %d: %d\n", i++, x); } return 0; }
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 27, 17, 29]]
0
48
#include <stdio.h> int main(void) { int a, i; i = 1; while (1) { scanf("%d", &a); if (a == 0) break; printf("Case %d:%d\n", i, a); i = i + 1; } return 0; }
#include <stdio.h> int main(void) { int a, i; i = 1; while (1) { scanf("%d", &a); if (a == 0) break; printf("Case %d: %d\n", i, a); i = i + 1; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
63
#include <stdio.h> int main() { int x, i; while (1) { for (i = 1; i > 0; i++) { scanf("%d", &x); if (x == 0) break; printf("case%d: %d\n", i, x); } if (x == 0) break; } return 0; }
#include <stdio.h> int main() { int x, i; while (1) { for (i = 1; i > 0; i++) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", i, x); } if (x == 0) break; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
75
#include <stdio.h> int main(void) { int x; int i = 1; for (;;) { scanf("%d", &x); if (x == 0) break; printf("Case: %d: %d\n", i, x); i++; } return 0; }
#include <stdio.h> int main(void) { int x, i = 1; for (;;) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", i, x); i++; } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
60
#include <stdio.h> main() { int a, b = 0; while (scanf("%d", &a) != EOF) { if (a == 0) { break; } b++; printf("case %d: %d\n", b, a); } return 0; }
#include <stdio.h> main() { int a, b = 0; while (scanf("%d", &a) != EOF) { if (a == 0) { break; } b++; printf("Case %d: %d\n", b, a); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
59
#include <stdio.h> int main(void) { int x; int i; i = 1; while (1) { scanf("%d", &x); if (x == 0) { break; } printf("Case%d: %d\n", i, x); i++; } return (0); }
#include <stdio.h> int main(void) { int x; int i; i = 1; while (1) { scanf("%d", &x); if (x == 0) { break; } printf("Case %d: %d\n", i, x); i++; } return (0); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
65
#include <stdio.h> int main(void) { int x; int i; i = 0; scanf("%d", &x); while (x != 0) { printf("case %d: %d\n", i, x); i++; scanf("%d", &x); } return 0; }
#include <stdio.h> int main(void) { int x; int i; i = 1; scanf("%d", &x); while (x != 0) { printf("Case %d: %d\n", i, x); i++; scanf("%d", &x); } return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
65
#include <stdio.h> int main(int argc, const char *argv[]) { int i = 0; int a; while (1) { i++; scanf("%d", &a); if (a == 0) { break; } printf("case %d: %d\n", i, a); } return 0; }
#include <stdio.h> int main(int argc, const char *argv[]) { int i = 0; int a; while (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, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
69
#include <stdio.h> int main() { int x, no = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("case %d: %d\n", no++, x); } return 0; }
#include <stdio.h> int main() { int x, no = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", no++, x); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
55
#include <stdio.h> int main() { int i, x, j; for (i = 1;; i++) { scanf("%d", &x); if (x == 0) { break; } printf("case %d: %d\n", i, x); } return 0; }
#include <stdio.h> int main() { int i, x, j; for (i = 1;; 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]]
0
62
#include <stdio.h> int main(void) { int x, i; for (i = 1;; ++i) { scanf("%d", &x); if (x == 0) { break; } else { printf("Case %d:%d\n", i, x); } } return 0; }
#include <stdio.h> int main(void) { int x, i; for (i = 1;; ++i) { scanf("%d", &x); if (x == 0) { break; } else { printf("Case %d: %d\n", i, x); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
64
#include <stdio.h> int main() { int n, cnt = 1; ; while (1) { scanf("%d", &n); if (n == 0) { break; } printf("Case %d: %d", cnt++, n); } return 0; }
#include <stdio.h> int main() { int n, cnt = 1; ; while (1) { scanf("%d", &n); if (n == 0) { break; } printf("Case %d: %d\n", cnt++, n); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
57
#include <stdio.h> int main() { int i; int x; i = 1; while (1) { scanf("%d", &x); if (x == 0) { break; } printf("Case %d:%d\n", i, x); i++; } return 0; }
#include <stdio.h> int main() { int i; int x; i = 1; while (1) { scanf("%d", &x); if (x == 0) { break; } printf("Case %d: %d\n", i, x); i++; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
62
#include <stdio.h> main() { int x, c; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", c, x); c += 1; } return 0; }
#include <stdio.h> main() { int x, c = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", c, x); c += 1; } return 0; }
[["+", 0, 30, 0, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 30, 0, 9, 0, 43, 49, 50, 51, 13]]
0
56
#include <stdio.h> int main(void) { int i = 0; int x; scanf("%d", &x); while (x != 0) { printf("case %d: %d\n", ++i, x); scanf("%d", &x); } return 0; }
#include <stdio.h> int main(void) { int i = 0; int x; scanf("%d", &x); while (x != 0) { printf("Case %d: %d\n", ++i, x); scanf("%d", &x); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
61
#include <stdio.h> int main() { int i = 1; int x = 1; while (x != 0) { scanf("%d", &x); if (x == 0) break; printf("%s %d %d\n", "Case", i, x); i++; } return 0; }
#include <stdio.h> int main() { int i = 1; int x = 1; while (x != 0) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", i, x); i++; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21]]
0
66
#include <stdio.h> int main(void) { int x; int i; i = 1; do { scanf("%d", &x); if (x == 0) { break; } printf("case %d: %d\n", i, x); i++; } while (x != 0); return (0); }
#include <stdio.h> int main(void) { int x; int i; i = 1; do { scanf("%d", &x); if (x == 0) { break; } printf("Case %d: %d\n", i, x); i++; } while (x != 0); return (0); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
69
#include <stdio.h> int main(void) { int i, n; scanf("%d", &n); for (i = 1; n > 0; i++) { if (n > 0) { printf("Case %d:%d\n", i, n); } if (n > 0) { scanf("%d", &n); } else break; } return 0; }
#include <stdio.h> int main(void) { int i, n; scanf("%d", &n); for (i = 1; n > 0; i++) { if (n > 0) { printf("Case %d: %d\n", i, n); } if (n > 0) { scanf("%d", &n); } else break; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
83
#include <stdio.h> int main() { int i, num; for (i = 1; i >= 1; i++) { scanf("%d", &num); if (num == 0) break; printf("Case i: %d\n", num); } return 0; }
#include <stdio.h> int main() { int i, num; for (i = 1; i >= 1; i++) { scanf("%d", &num); if (num == 0) break; printf("Case %d: %d\n", i, num); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
0
59
#include <stdio.h> int main() { int x, i = 1; while (1) { scanf("%d", &x); if (x == 0) { break; } printf("case %d: %d\n", i, x); i++; } return 0; }
#include <stdio.h> int main() { int x, i = 1; while (1) { scanf("%d", &x); if (x == 0) { break; } printf("Case %d: %d\n", i, x); i++; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
59
#include <stdio.h> int main(void) { int x; int i = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d:%d\n", i, x); i = i + 1; } return 0; }
#include <stdio.h> int main(void) { int x; int i = 1; 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, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
62
#include <stdio.h> int main() { int i, x; for (i = 0;; i++) { scanf("%d", &x); if (x) printf("Case %d: %d\n", i, x); else break; } return 0; }
#include <stdio.h> int main() { int i, x; for (i = 0;; i++) { scanf("%d", &x); if (x) printf("Case %d: %d\n", i + 1, x); else break; } return 0; }
[["+", 64, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 64, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
57