problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p00007 | #include <iostream>
using namespace std;
double money = 100000;
int i;
int main() {
cin >> i;
for (i; i > 0; --i) {
money *= 1.05;
money = (long)(money / 100 + 0.99) * 100;
}
printf("%.0lf\n", money);
} | #include <iostream>
using namespace std;
double money = 100000;
int i;
int main() {
cin >> i;
for (i; i > 0; --i) {
money *= 1.05;
money = (long)(money / 1000 + 0.99) * 1000;
}
printf("%.0lf\n", money);
} | [
"literal.number.change",
"expression.operation.binary.change"
] | 10,798 | 10,796 | u419407022 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n;
long long money = 100000;
cin >> n;
for (int i = 0; i < n; i++)
money += money * 0.05;
if ((money % 1000) != 0)
money = money - money % 1000 + 1000;
cout << money << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n;
long long money = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
money *= 1.05;
if ((money % 1000) != 0)
money = money - money % 1000 + 1000;
}
cout << money << endl;
return 0;
} | [] | 10,806 | 10,807 | u459861655 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
double m = 100000;
for (int i = 0; i < n; i++) {
m *= 1.05;
if ((int)m % 1000 != 0)
m = m - (int)m % 1000 + 1000;
}
cout << m << endl;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int m = 100000;
for (int i = 0; i < n; i++) {
m *= 1.05;
if ((int)m % 1000 != 0)
m = m - (int)m % 1000 + 1000;
}
cout << m << endl;
} | [
"variable_declaration.type.primitive.change"
] | 10,808 | 10,809 | u866596794 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int sum = 100000;
for (int i = 0; i < n; i++) {
sum *= 105 / 100.0;
if ((int)sum % 1000 >= 100) {
sum /= 1000;
sum *= 1000;
sum += 1000;
}
}
printf("%d\n", (int)sum);
}
... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int sum = 100000;
for (int i = 0; i < n; i++) {
sum *= 105 / 100.0;
if ((int)sum % 1000 >= 1) {
sum /= 1000;
sum *= 1000;
sum += 1000;
}
}
printf("%d\n", (int)sum);
}
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 10,814 | 10,815 | u022913578 | cpp |
p00007 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int debt = 100000, n;
cin >> n;
for (; n > 0; n--) {
debt = debt * 1.05;
}
if ((debt % 10000) > 0) {
debt = debt - (debt % 10000);
debt += 10000;
}
cout << debt << endl;
return 0;
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int debt = 100000, n;
cin >> n;
for (; n > 0; n--) {
debt = debt * 1.05;
if ((debt % 1000) > 0) {
debt = debt - (debt % 1000);
debt += 1000;
}
}
cout << debt << endl;
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.change",
"assignment.value.change"
] | 10,816 | 10,817 | u543206374 | cpp |
p00007 | /*****include*****/
#include <fstream>
#include <iostream>
/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/
/*****名前空間*****/
using namespace std;
/*****グローバル変数置き場*****/
/*****その他関数置き場*****/
/*****main関数*****/
int main() {
/*****ファイルオープン*****/
#ifdef DEBUG
ofstream fout("output.txt");
ifstream fin("input.... | /*****include*****/
#include <fstream>
#include <iostream>
/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/
/*****名前空間*****/
using namespace std;
/*****グローバル変数置き場*****/
/*****その他関数置き場*****/
/*****main関数*****/
int main() {
/*****ファイルオープン*****/
#ifdef DEBUG
ofstream fout("output.txt");
ifstream fin("input.... | [] | 10,818 | 10,819 | u610017377 | cpp |
p00007 | /*****include*****/
#include <fstream>
#include <iostream>
/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/
/*****名前空間*****/
using namespace std;
/*****グローバル変数置き場*****/
/*****その他関数置き場*****/
/*****main関数*****/
int main() {
/*****ファイルオープン*****/
#ifdef DEBUG
ofstream fout("output.txt");
ifstream fin("input.... | /*****include*****/
#include <fstream>
#include <iostream>
/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/
/*****名前空間*****/
using namespace std;
/*****グローバル変数置き場*****/
/*****その他関数置き場*****/
/*****main関数*****/
int main() {
/*****ファイルオープン*****/
#ifdef DEBUG
ofstream fout("output.txt");
ifstream fin("input.... | [
"literal.number.change",
"assignment.value.change"
] | 10,820 | 10,819 | u610017377 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int input, money = 100000;
cin >> input;
for (int i = 0; i < input; i++) {
money *= 1.05;
}
if (500 <= money % 1000)
money = money - money % 1000 + 1000;
cout << money << endl;
} | #include <iostream>
using namespace std;
int main() {
int input, money = 100000;
cin >> input;
for (int i = 0; i < input; i++) {
money *= 1.05;
if (0 < money % 1000)
money = money - money % 1000 + 1000;
}
cout << money << endl;
} | [] | 10,834 | 10,835 | u228756885 | cpp |
p00007 | #include <cmath>
#include <iostream>
int main() {
int weeks, debt = 100000;
std::cin >> weeks;
for (int i = 0; i < weeks; i++) {
debt *= 1.05;
debt = ceil(debt / 1000.0) * 1000;
std::cout << debt << std::endl;
}
return 0;
} | #include <cmath>
#include <iostream>
int main() {
int weeks, debt = 100000;
std::cin >> weeks;
for (int i = 0; i < weeks; i++) {
debt *= 1.05;
debt = ceil(debt / 1000.0) * 1000;
}
std::cout << debt << std::endl;
return 0;
} | [] | 10,836 | 10,837 | u648595971 | cpp |
p00007 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int week;
cin >> week;
double money = 100;
for (int i = 0; i < week; i++) {
money = money * 1.05;
money += 0.9;
money = int(money);
}
printf("%d\n", int(money) * 1000);
} | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int week;
cin >> week;
double money = 100;
for (int i = 0; i < week; i++) {
money = money * 1.05;
money += 0.999;
money = int(money);
}
printf("%d\n", int(money) * 1000);
} | [
"literal.number.change",
"assignment.value.change"
] | 10,838 | 10,839 | u471115210 | cpp |
p00007 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, i;
double debt = 100000;
cin >> n;
for (i = 0; i < n; i++) {
debt = debt * 1.05;
debt /= 1000;
debt = ceil(debt);
debt *= 1000;
}
cout << debt << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, i;
double debt = 100000;
cin >> n;
for (i = 0; i < n; i++) {
debt = debt * 1.05;
debt /= 1000;
debt = ceil(debt);
debt *= 1000;
}
cout << (int)debt << endl;
return 0;
} | [
"type_conversion.add"
] | 11,170 | 11,171 | u301021544 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n, money = 100000;
double debt;
cin >> n;
for (int i = 0; i < n; i++) {
debt = money * 1.05;
money = debt;
if ((money % 1000) != 0)
money = money + 1000;
}
cout << money << endl;
} | #include <iostream>
using namespace std;
int main() {
int n, money = 100000;
double debt;
cin >> n;
for (int i = 0; i < n; i++) {
debt = money * 1.05;
money = debt;
if ((money % 1000) != 0)
money = money - (money % 1000) + 1000;
}
cout << money << endl;
} | [
"assignment.change"
] | 11,174 | 11,175 | u988010981 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
double debt = 100000.0;
int n, r;
cin >> n;
while (n-- > 0) {
debt *= 1.05;
r = (int)debt % 1000;
if (r != 0) {
debt = debt - r + 1000;
}
}
cout << debt << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int debt = 100000.0;
int n, r;
cin >> n;
while (n-- > 0) {
debt *= 1.05;
r = debt % 1000;
if (r != 0) {
debt = debt - r + 1000;
}
}
cout << debt << endl;
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 11,176 | 11,177 | u879745691 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
double debt = 100000.0;
int n, r;
cin >> n;
while (n-- > 0) {
debt *= 1.05;
r = (int)debt % 1000;
if (r != 0) {
debt = debt - r + 1000;
}
}
cout << debt << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
double debt = 100000.0;
int n, r;
cin >> n;
while (n-- > 0) {
debt *= 1.05;
r = (int)debt % 1000;
if (r != 0) {
debt = debt - r + 1000;
}
}
cout << (int)debt << endl;
return 0;
} | [
"type_conversion.add"
] | 11,176 | 11,179 | u879745691 | cpp |
p00007 | #include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
double ans = 100;
for (int i = 0; i < n; i++) {
ans = ceil(ans * 1.05);
}
cout << (int)(100 * ans) << endl;
return 0;
} | #include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
double ans = 100;
for (int i = 0; i < n; i++) {
ans = ceil(ans * 1.05);
}
cout << (int)(1000 * ans) << endl;
return 0;
} | [
"io.output.change"
] | 11,186 | 11,187 | u279021002 | cpp |
p00007 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int money = 100000;
int n;
cin >> n;
for (int i = 0; i <= n; i++) {
money *= 1.05;
if (money % 1000 != 0) {
money += 1000;
}
money -= money % 1000;
}
cout << money << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int money = 100000;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
money *= 1.05;
if (money % 1000 != 0) {
money += 1000;
money -= money % 1000;
}
}
cout << money << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 11,188 | 11,189 | u842986906 | cpp |
p00007 | #include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
int coin = 100000;
for (int m = 0; m < n; m++) {
coin *= 1.05;
coin = (coin / 1000) * 1000 + (coin % 1000) > 0 ? 1000 : 0;
}
printf("%d\n", coin);
return 0;
} | #include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
int coin = 100000;
for (int m = 0; m < n; m++) {
coin *= 1.05;
coin = (coin / 1000) * 1000 + ((coin % 1000) > 0 ? 1000 : 0);
}
printf("%d\n", coin);
return 0;
} | [] | 11,192 | 11,193 | u798339835 | cpp |
p00007 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, amount = 100;
cin >> n;
for (int i = 0; i < n; i++) {
amount += amount * 0.05 + 0.999;
}
cout << amount * 100 << endl;
} | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, amount = 100;
cin >> n;
for (int i = 0; i < n; i++) {
amount = amount * 1.05 + 0.999;
}
cout << amount * 1000 << endl;
} | [
"assignment.value.change",
"literal.number.change",
"expression.operation.binary.change",
"io.output.change"
] | 11,194 | 11,195 | u812047151 | cpp |
p00007 | #include <iostream>
int main() {
int week;
std::cin >> week;
int debt = 100000;
for (int cnt = 0; cnt < week; ++cnt) {
debt *= 1.05;
}
if (debt % 10000 != 0) {
debt += (10000 - (debt % 10000));
}
std::cout << debt << std::endl;
} | #include <iostream>
int main() {
int week;
std::cin >> week;
int debt = 100000;
for (int cnt = 0; cnt < week; ++cnt) {
debt *= 1.05;
if (debt % 1000 != 0) {
debt += (1000 - (debt % 1000));
}
}
std::cout << debt << std::endl;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 11,201 | 11,202 | u993482671 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
double n, mon = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
mon = mon * 1.05;
mon = (mon + 999) - (int(mon + 999) % 1000);
}
cout << mon << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, mon = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
mon = mon * 1.05;
mon = (mon + 999) - (int(mon + 999) % 1000);
}
cout << mon << endl;
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 11,207 | 11,208 | u028154539 | cpp |
p00007 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <vector>
#define REP(i, p, n) for (int i = p; i < (int)(n); i++)
#define rep(i, n) REP(i, 0, n)
#define rep_split(tok, a_str, re)... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <vector>
#define REP(i, p, n) for (int i = p; i < (int)(n); i++)
#define rep(i, n) REP(i, 0, n)
#define rep_split(tok, a_str, re)... | [
"type_conversion.add"
] | 11,211 | 11,212 | u361804125 | cpp |
p00007 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <vector>
#define REP(i, p, n) for (int i = p; i < (int)(n); i++)
#define rep(i, n) REP(i, 0, n)
#define rep_split(tok, a_str, re)... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <vector>
#define REP(i, p, n) for (int i = p; i < (int)(n); i++)
#define rep(i, n) REP(i, 0, n)
#define rep_split(tok, a_str, re)... | [
"type_conversion.add"
] | 11,213 | 11,212 | u361804125 | cpp |
p00007 | #include <cmath>
#include <iostream>
using namespace std;
int roundUp(int x, int index);
int main(void) {
int i;
int n;
double intrst;
int debt;
cin >> n;
debt = 100000;
intrst = 0.05;
for (i = 0; i < n; i++) {
debt *= 1.0 + intrst;
debt = roundUp(debt, 4);
}
cout << debt << endl;
re... | #include <cmath>
#include <iostream>
using namespace std;
int roundUp(int x, int index);
int main(void) {
int i;
int n;
double intrst;
int debt;
cin >> n;
debt = 100000;
intrst = 0.05;
for (i = 0; i < n; i++) {
debt *= 1.0 + intrst;
debt = roundUp(debt, 4);
}
cout << debt << endl;
r... | [
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 11,214 | 11,215 | u231644926 | cpp |
p00007 | #include <cmath>
#include <iostream>
using namespace std;
int roundUp(int x, int index);
int main(void) {
int i;
int n;
double intrst;
int debt;
cin >> n;
debt = 100000;
intrst = 0.05;
for (i = 0; i < n; i++) {
debt *= 1.0 + intrst;
}
debt = roundUp(debt, 4);
cout << debt << endl;
retu... | #include <cmath>
#include <iostream>
using namespace std;
int roundUp(int x, int index);
int main(void) {
int i;
int n;
double intrst;
int debt;
cin >> n;
debt = 100000;
intrst = 0.05;
for (i = 0; i < n; i++) {
debt *= 1.0 + intrst;
debt = roundUp(debt, 4);
}
cout << debt << endl;
r... | [
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 11,216 | 11,215 | u231644926 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int L = 0, N, A, B, C, D;
while (cin >> N) {
for (A = 0; A < 10; A++) {
for (B = 0; B < 10; B++) {
for (C = 0; C < 10; C++) {
for (D = 0; D < 10; D++) {
if (A + B + C + D == N) {
L++;
};
... | #include <iostream>
using namespace std;
int main() {
int L = 0, N, A, B, C, D;
while (cin >> N) {
L = 0;
for (A = 0; A < 10; A++) {
for (B = 0; B < 10; B++) {
for (C = 0; C < 10; C++) {
for (D = 0; D < 10; D++) {
if (A + B + C + D == N) {
L++;
... | [
"assignment.add"
] | 11,423 | 11,424 | u596301633 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n, count;
int a, b, c, d;
while (cin >> n) {
// a>=b>=c>=dと仮定
count = 0;
for (a = 0; a < 10; a++) {
if (a > n)
continue;
for (b = 0; b < a + 1; b++) {
if (a + b > n)
continue;
for (c = 0; c < b ... | #include <iostream>
using namespace std;
int main() {
int n, count;
int a, b, c, d;
while (cin >> n) {
// a>=b>=c>=dと仮定
count = 0;
for (a = 0; a < 10; a++) {
if (a > n)
continue;
for (b = 0; b < a + 1; b++) {
if (a + b > n)
continue;
for (c = 0; c < b ... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 11,425 | 11,426 | u660731670 | cpp |
p00008 | #include <iostream>
using namespace std;
int main(void) {
int c;
while (cin >> c) {
int cnt = 0;
for (int i = 0; i < 10; i++)
for (int j = 0; j < 10; j++)
for (int k = 0; k < 10; k++)
for (int l = 0; l < 10; l++)
if (i * j * k * l == c)
cnt++;
cout << c... | #include <iostream>
using namespace std;
int main(void) {
int c;
while (cin >> c) {
int cnt = 0;
for (int i = 0; i < 10; i++)
for (int j = 0; j < 10; j++)
for (int k = 0; k < 10; k++)
for (int l = 0; l < 10; l++)
if (i + j + k + l == c)
cnt++;
cout << c... | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 11,435 | 11,436 | u491165315 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int num;
int a, b, c, d, cnt = 0;
while (cin >> num, !cin.eof()) {
for (a = 0; a < 10; a++)
for (b = 0; b < 10; b++)
for (c = 0; c < 10; c++)
for (d = 0; d < 10; d++)
if (a + b + c + d == num)
cnt++;
... | #include <iostream>
using namespace std;
int main() {
int num;
int a, b, c, d, cnt = 0;
while (cin >> num, !cin.eof()) {
cnt = 0;
for (a = 0; a < 10; a++)
for (b = 0; b < 10; b++)
for (c = 0; c < 10; c++)
for (d = 0; d < 10; d++)
if (a + b + c + d == num)
... | [
"assignment.add"
] | 11,439 | 11,440 | u946229723 | cpp |
p00008 | #include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; ++i)
#define rep(n) REP(i, n)
int main() {
int n;
while (cin >> n) {
int ans = 0;
REP(i, 10) REP(j, 10) REP(k, 10) {
if ((i + j + k) < n && (i + ... | #include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; ++i)
#define rep(n) REP(i, n)
int main() {
int n;
while (cin >> n) {
int ans = 0;
REP(i, 10) REP(j, 10) REP(k, 10) {
if ((i + j + k) <= n && (i +... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 11,443 | 11,444 | u665601183 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, n;
while (cin >> n) {
int count = 0;
if (n <= 36) {
for (a = 0; a <= 9; a++) {
for (b = 0; b <= 9; b++) {
for (c = 0; c <= 9; c++) {
for (d = 0; d <= 9; d++) {
if ((a + b + c + d) == n) {
... | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, n;
while (cin >> n) {
int count = 0;
if (n <= 36) {
for (a = 0; a <= 9; a++) {
for (b = 0; b <= 9; b++) {
for (c = 0; c <= 9; c++) {
for (d = 0; d <= 9; d++) {
if ((a + b + c + d) == n) {
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 11,447 | 11,448 | u552422656 | cpp |
p00008 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, n, count = 0;
while (scanf("%d", &n) != EOF) {
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if ((a + b + c + d) == n)
... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, n, count = 0;
while (scanf("%d", &n) != EOF) {
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if ((a + b + c + d) == n)
... | [
"assignment.add"
] | 11,449 | 11,450 | u107750881 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n, count = 0;
while (cin >> n) {
for (int i = 0; i <= 9; i++)
for (int j = 0; j <= 9; j++)
for (int k = 0; k <= 9; k++)
for (int l = 0; l <= 9; l++)
if (i + j + k + l == n)
count++;
cout << count << ... | #include <iostream>
using namespace std;
int main() {
int n, count = 0;
while (cin >> n) {
for (int i = 0; i <= 9; i++)
for (int j = 0; j <= 9; j++)
for (int k = 0; k <= 9; k++)
for (int l = 0; l <= 9; l++)
if (i + j + k + l == n)
count++;
cout << count << ... | [
"assignment.add"
] | 11,451 | 11,452 | u988010981 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int sum = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n) {
sum++;
... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int sum = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n) {
sum++;
... | [
"io.output.newline.add"
] | 11,453 | 11,454 | u082125213 | cpp |
p00008 | #include <algorithm>
#include <iostream>
#include <string>
int main() {
int n, x;
int i, j, k, l;
while (std::cin >> n) {
x = 0;
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
for (k = 1; k < 10; k++) {
for (l = 1; l < 10; l++) {
if (n == i + j + k + l) {
... | #include <algorithm>
#include <iostream>
#include <string>
int main() {
int n, x;
int i, j, k, l;
while (std::cin >> n) {
x = 0;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
for (k = 0; k < 10; k++) {
for (l = 0; l < 10; l++) {
if (n == i + j + k + l) {
... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 11,455 | 11,456 | u140289110 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int num;
cin >> num;
while (cin >> num) {
int answer = 0;
for (int a = 0; a != 10; ++a) {
for (int b = 0; b != 10; ++b) {
for (int c = 0; c != 10; ++c) {
for (int d = 0; d != 10; ++d)
if (a + b + c + d == num)
... | #include <iostream>
using namespace std;
int main() {
int num;
while (cin >> num) {
int answer = 0;
for (int a = 0; a != 10; ++a) {
for (int b = 0; b != 10; ++b) {
for (int c = 0; c != 10; ++c) {
for (int d = 0; d != 10; ++d)
if (a + b + c + d == num)
ans... | [] | 11,457 | 11,458 | u435432051 | cpp |
p00008 | #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int n;
while (scanf("%d", &n) != EOF) {
int count = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c +... | #include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int n;
while (scanf("%d", &n) != EOF) {
int count = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c +... | [
"control_flow.branch.if.condition.change"
] | 11,459 | 11,460 | u842986906 | cpp |
p00008 | #include <cstdio>
using namespace std;
int main(void) {
int i, j, k, l, ans = 0, n;
while (scanf("%d", &n) != EOF) {
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
for (k = 0; k < 10; k++) {
for (l = 0; l < 10; l++) {
if (i + j + k + l == n) {
ans++;
... | #include <cstdio>
using namespace std;
int main(void) {
int i, j, k, l, ans, n;
while (scanf("%d", &n) != EOF) {
ans = 0;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
for (k = 0; k < 10; k++) {
for (l = 0; l < 10; l++) {
if (i + j + k + l == n) {
... | [
"assignment.add"
] | 11,465 | 11,466 | u682037079 | cpp |
p00008 | #include <stdio.h>
int main(void) {
int n;
int a, b, c, d;
int cnt;
int i, j, k, l;
while (scanf("%d", &n) != EOF) {
cnt = 0;
if (n <= 36) {
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
for (k = 1; k < 10; k++) {
for (l = 1; l < 10; l++) {
i... | #include <stdio.h>
int main(void) {
int n;
int a, b, c, d;
int cnt;
int i, j, k, l;
while (scanf("%d", &n) != EOF) {
cnt = 0;
if (n <= 36) {
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
for (k = 0; k < 10; k++) {
for (l = 0; l < 10; l++) {
i... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 11,467 | 11,468 | u379956761 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n, t;
int out[100] = {0};
while (cin >> n) {
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n) {
out[t]... | #include <iostream>
using namespace std;
int main() {
int n, t = 0;
int out[100] = {0};
while (cin >> n) {
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n) {
ou... | [
"variable_declaration.value.change",
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 11,469 | 11,470 | u343612457 | cpp |
p00008 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int a, b, c, d, n, k;
cin >> n;
k = 0;
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if (a + b + c + d == n) {
k = k +... | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int a, b, c, d, n, k;
while (cin >> n) {
k = 0;
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if (a + b + c + d == n)... | [] | 11,471 | 11,472 | u835414158 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int num;
int c = 0;
while (cin >> num) {
c = 0;
if (num > 36 || num < 0) {
cout << 0 << endl;
continue;
} else {
for (int i = 0; i <= 9; i++)
for (int j = 0; j <= 9; j++)
for (int k = 0; k <= 9; k++)
... | #include <iostream>
using namespace std;
int main() {
int num;
int c = 0;
while (cin >> num) {
c = 0;
if (num > 36 || num < 0) {
cout << 0 << endl;
continue;
} else {
for (int i = 0; i <= 9; i++)
for (int j = 0; j <= 9; j++)
for (int k = 0; k <= 9; k++)
... | [] | 11,473 | 11,474 | u870091376 | cpp |
p00008 | #include <iostream>
using namespace std;
int seach(int n, int m) {
if (m == 4) {
return (n == 0);
} else {
int res = 0;
for (int i = 0; i < 10; i++) {
res += seach(n - i, m + 1);
}
return res;
}
}
int main() {
int n;
cin >> n;
cout << seach(n, 0) << endl;
return 0;
} | #include <iostream>
using namespace std;
int seach(int n, int m) {
if (m == 4) {
return (n == 0);
} else {
int res = 0;
for (int i = 0; i < 10; i++) {
res += seach(n - i, m + 1);
}
return res;
}
}
int main() {
int n;
while (cin >> n)
cout << seach(n, 0) << endl;
return 0;
} | [] | 11,477 | 11,478 | u875838458 | cpp |
p00008 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int nCount = 0;
int n[50];
int m = 0;
char str[3];
while (scanf("%d", &n[m]) != EOF)
m++;
for (int a = 0; a < m + 1; a++) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int nCount = 0;
int n[50];
int m = 0;
char str[3];
while (scanf("%d", &n[m]) != EOF)
m++;
for (int a = 0; a < m; a++) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k+... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 11,479 | 11,480 | u834923246 | cpp |
p00008 | #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, counter = 0;
while (scanf("%d", n) == -1) {
for (int a = ... | #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, counter = 0;
while (scanf("%d", &n) != -1) {
counter = 0;... | [
"control_flow.loop.condition.change",
"misc.opposites",
"expression.operator.compare.change",
"assignment.add"
] | 11,525 | 11,526 | u797095866 | cpp |
p00008 | #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, counter = 0;
while (scanf("%d", &n) == -1) {
for (int a =... | #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, counter = 0;
while (scanf("%d", &n) != -1) {
counter = 0;... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"assignment.add"
] | 11,528 | 11,526 | u797095866 | cpp |
p00008 | #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, counter = 0;
while (scanf("%d", &n) != -1) {
for (int a... | #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, counter = 0;
while (scanf("%d", &n) != -1) {
counter = 0;... | [
"assignment.add"
] | 11,529 | 11,526 | u797095866 | cpp |
p00008 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
while (scanf("%d", &n) != EOF) {
int cou = 0;
cin >> n;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int l = 0; l <= 9; l++) {
if (i ... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
while (scanf("%d", &n) != EOF) {
int cou = 0;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int l = 0; l <= 9; l++) {
if (i + j + k + l == ... | [] | 11,530 | 11,531 | u547616245 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n, count = 0;
while (cin >> n) {
for (int a = 0; a <= 9; a++)
for (int b = 0; b <= 9; b++)
for (int c = 0; c <= 9; c++)
for (int d = 0; d <= 9; d++)
if (a + b + c + d == n)
count++;
cout << count << e... | #include <iostream>
using namespace std;
int main() {
int n, count = 0;
while (cin >> n) {
for (int a = 0; a <= 9; a++)
for (int b = 0; b <= 9; b++)
for (int c = 0; c <= 9; c++)
for (int d = 0; d <= 9; d++)
if (a + b + c + d == n)
count++;
cout << count << e... | [
"assignment.add"
] | 11,532 | 11,533 | u080939948 | cpp |
p00008 |
#include <iostream>
using namespace std;
int main() {
int n, a;
while (cin >> n) {
int x = 0;
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
for (int k = 0; k < 9; k++) {
a = n - i - j - k;
if (a >= 0 && a <= 9)
x++;
}
}
}
co... |
#include <iostream>
using namespace std;
int main() {
int n, a;
while (cin >> n) {
int x = 0;
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
a = n - i - j - k;
if (a >= 0 && a <= 9)
x++;
}
}
}
... | [
"literal.number.change",
"control_flow.loop.condition.change"
] | 11,536 | 11,537 | u829912068 | cpp |
p00008 | #include <stdio.h>
int main() {
int i, j, k, l, cou, n;
while (scanf("%d", &n) != EOF) {
cou = 0;
for (i = 0; i <= 9; i++) {
for (j = 0; j <= 9; j++) {
for (k = 0; k <= 9; k++) {
for (l = 0; l <= 9; l++) {
if (i + j + k + l == n)
cou++;
}
}... | #include <stdio.h>
int main() {
int i, j, k, l, cou, n;
while (scanf("%d", &n) != EOF) {
cou = 0;
for (i = 0; i <= 9; i++) {
for (j = 0; j <= 9; j++) {
for (k = 0; k <= 9; k++) {
for (l = 0; l <= 9; l++) {
if (i + j + k + l == n)
cou++;
}
}... | [] | 11,538 | 11,539 | u784626891 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int count = 0;
for (int a = 0; a <= 9; ++a) {
for (int b = 0; b <= 9; ++b) {
for (int c = 0; c <= 9; ++c) {
for (int d = 0; d <= 9; ++d) {
if (a + b + c + d == n) {
++count;
}
}
... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int count = 0;
for (int a = 0; a <= 9; ++a) {
for (int b = 0; b <= 9; ++b) {
for (int c = 0; c <= 9; ++c) {
for (int d = 0; d <= 9; ++d) {
if (a + b + c + d == n) {
++count;
... | [] | 11,540 | 11,541 | u439031549 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int s;
while (cin >> s) {
int c = 0;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int l = 0; l <= 9; l++) {
if ((i + j + k + l) == s) {
c++;
... | #include <iostream>
using namespace std;
int main() {
int s;
while (cin >> s) {
int c = 0;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int l = 0; l <= 9; l++) {
if ((i + j + k + l) == s) {
c++;
... | [
"io.output.newline.add"
] | 11,542 | 11,543 | u743623717 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int counter = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
if (0 <= n - a - b - c && n - a - b - c <= 9) {
counter++;
}
}
}
}
cout << counte... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int counter = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
if (0 <= n - a - b - c && n - a - b - c <= 9) {
counter++;
}
}
... | [] | 11,544 | 11,545 | u364509382 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int cnt;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n)
cnt++;
}
... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int cnt = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n)
cnt++;
... | [
"variable_declaration.value.change"
] | 11,548 | 11,549 | u403618837 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int cnt;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n)
cnt++;
}
... | #include <iostream>
using namespace std;
int main() {
int n, cnt;
while (cin >> n) {
cnt = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n)
cnt++;
... | [
"variable_declaration.add",
"assignment.change"
] | 11,548 | 11,550 | u403618837 | cpp |
p00008 | #include <algorithm>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#include <vector>
int n;
using namespace std;
int main() {
std::ios::sync_with_stdio(false);
while (cin >> n) {
int counter = 0;
for (int i = 0; i <= 9; i++) {
for (... | #include <algorithm>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#include <vector>
int n;
using namespace std;
int main() {
std::ios::sync_with_stdio(false);
while (cin >> n) {
int counter = 0;
for (int i = 0; i <= 9; i++) {
for (... | [
"io.output.change"
] | 11,552 | 11,553 | u835248700 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, n;
int x = 0;
while (cin >> n) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == n) {
x++;... | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, n;
int x = 0;
while (cin >> n) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == n) {
x++;... | [
"assignment.add"
] | 11,554 | 11,555 | u131691870 | cpp |
p00008 | #include <iostream>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int n, a, ans = 0;
while (cin >> n) {
rep(i, 10) {
rep(j, 10) {
rep(k, 10) {
a = n - i - j - k;
if (a >= 0 && a < 10) {
ans++;
}
}
}
}
... | #include <iostream>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
int n, a, ans = 0;
while (cin >> n) {
rep(i, 10) {
rep(j, 10) {
rep(k, 10) {
a = n - i - j - k;
if (a >= 0 && a < 10) {
ans++;
}
}
}
}
... | [
"assignment.add"
] | 11,556 | 11,557 | u805752636 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int count = 0;
if (n <= 36) {
for (int a = 0; a <= n; a++) {
for (int b = 0; b <= n; b++) {
for (int c = 0; c <= n; c++) {
for (int d = 0; d <= n; d++) {
if (a + b + c + d == ... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int count = 0;
if (n <= 36) {
for (int a = 0; a <= 9; a++) {
for (int b = 0; b <= 9; b++) {
for (int c = 0; c <= 9; c++) {
for (int d = 0; d <= 9; d++) {
if (a + b + c + d == ... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 11,558 | 11,559 | u018567183 | cpp |
p00008 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int a;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int l = 0; l <= 9; l++) {
if (i + j + k + l == n)
a... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int a = 0;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int l = 0; l <= 9; l++) {
if (i + j + k + l == n)
... | [
"variable_declaration.value.change"
] | 11,560 | 11,561 | u767646996 | cpp |
p00008 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a = 0, b = 0;
while (cin >> a) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == a) {
b++... | #include <iostream>
#include <string>
using namespace std;
int main() {
int a = 0, b = 0;
while (cin >> a) {
b = 0;
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == a) {
... | [
"assignment.add"
] | 11,562 | 11,563 | u928678704 | cpp |
p00008 | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main(void) {
// n<=50
int n, i, j, k, l, cnt;
while (cin >> n) {
cnt = 0;
for (i = 0; i <= 9; i++) {
for (j = i; j <= 9; j++) {
for (k = j; k <= 9; k++) {
for (l = k; l <= 9; l++)
if (i +... | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main(void) {
// n<=50
int n, i, j, k, l, cnt;
while (cin >> n) {
cnt = 0;
for (i = 0; i <= 9; i++) {
for (j = 0; j <= 9; j++) {
for (k = 0; k <= 9; k++) {
for (l = 0; l <= 9; l++)
if (i +... | [
"assignment.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change"
] | 11,566 | 11,567 | u690299834 | cpp |
p00008 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a;
while (cin >> a) {
cin >> a;
int b = 0;
for (int c = 0; c < 10; c++)
for (int d = 0; d < 10; d++)
for (int e = 0; e < 10; e++)
for (int f = 0; f < 10; f++) {
if (c + d + e + f == a)
... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a;
while (cin >> a) {
int b = 0;
for (int c = 0; c < 10; c++)
for (int d = 0; d < 10; d++)
for (int e = 0; e < 10; e++)
for (int f = 0; f < 10; f++) {
if (c + d + e + f == a)
b =... | [] | 11,570 | 11,571 | u339305413 | cpp |
p00008 | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0008
#include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
int ans = 0;
for (int a = 0; a <= 9; a++) {
for (int b = 0; b <= 9; b++) {
for (int c = 0; c <= 9; c++) {
for (in... | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0008
#include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
while (cin >> n) {
int ans = 0;
for (int a = 0; a <= 9; a++) {
for (int b = 0; b <= 9; b++) {
for (int c = 0; c <= 9; c++) ... | [] | 11,575 | 11,576 | u929568713 | cpp |
p00008 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctype.h>
#include <functional>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int count = 0, num;
while (cin >> num) {
num ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctype.h>
#include <functional>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int count = 0, num;
while (cin >> num) {
coun... | [
"assignment.variable.change",
"identifier.change"
] | 11,581 | 11,582 | u464296040 | cpp |
p00008 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int n = 0;
int C = 0;
int a, b, c, d;
while (scanf("%d", &n) != EOF) {
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if (a + b + c + d ... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int n = 0;
int C = 0;
int a, b, c, d;
while (scanf("%d", &n) != EOF) {
C = 0;
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if (a + ... | [
"assignment.add"
] | 11,583 | 11,584 | u499289652 | cpp |
p00008 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int n = 0;
int C = 0;
int a, b, c, d;
while (scanf("%d", &n) != EOF) {
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if (a + b + c + d ... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int n = 0;
int C = 0;
int a, b, c, d;
while (scanf("%d", &n) != EOF) {
C = 0;
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if (a + ... | [
"assignment.add"
] | 11,585 | 11,584 | u499289652 | cpp |
p00008 | #include "bits/stdc++.h"
using namespace std;
int main() {
int x;
cin >> x;
int ans = 0;
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == x)
ans++;
}
}
}
}... | #include "bits/stdc++.h"
using namespace std;
int main() {
int x;
while (cin >> x) {
int ans = 0;
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == x)
ans++;
... | [] | 11,588 | 11,589 | u321462250 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n, i, j, k, l, C = 0;
while (cin >> n) {
C = 0;
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
for (k = 1; k < 10; k++) {
for (l = 1; l < 10; l++) {
if (n == i + j + k + l) {
C = C + 1;
... | #include <iostream>
using namespace std;
int main() {
int n, i, j, k, l, C = 0;
while (cin >> n) {
C = 0;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
for (k = 0; k < 10; k++) {
for (l = 0; l < 10; l++) {
if (n == i + j + k + l) {
C = C + 1;
... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 11,592 | 11,593 | u341761787 | cpp |
p00008 | #include <iostream>
using namespace std;
#define RENT 100000
int main() {
int n, ans;
int counter = 0;
while (cin >> n) {
for (int i = 0; i < 10; i++) {
for (int q = 0; q < 10; q++) {
for (int w = 0; w < 10; w++) {
for (int e = 0; e < 10; e++) {
ans = i + q + w + e;
... | #include <iostream>
using namespace std;
#define RENT 100000
int main() {
int n, ans;
int counter = 0;
while (cin >> n) {
counter = 0;
for (int i = 0; i < 10; i++) {
for (int q = 0; q < 10; q++) {
for (int w = 0; w < 10; w++) {
for (int e = 0; e < 10; e++) {
ans = i + ... | [
"assignment.add"
] | 11,594 | 11,595 | u434581790 | cpp |
p00008 | #include <iostream>
using namespace std;
#define RENT 100000
int main() {
int n, ans;
int counter = 0;
while (cin >> n) {
ans = 0;
for (int i = 0; i < 10; i++) {
for (int q = 0; q < 10; q++) {
for (int w = 0; w < 10; w++) {
for (int e = 0; e < 10; e++) {
ans = i + q + ... | #include <iostream>
using namespace std;
#define RENT 100000
int main() {
int n, ans;
int counter = 0;
while (cin >> n) {
counter = 0;
for (int i = 0; i < 10; i++) {
for (int q = 0; q < 10; q++) {
for (int w = 0; w < 10; w++) {
for (int e = 0; e < 10; e++) {
ans = i + ... | [
"assignment.variable.change",
"identifier.change"
] | 11,597 | 11,595 | u434581790 | cpp |
p00008 | #include <bits/stdc++.h>
using namespace std;
int a, b, x;
int mySet(int d) {
for (int i = 0; i < 10; i++) {
if (d < 3) {
mySet(d + 1);
} else if (d == 3) {
if (a == x) {
b++;
}
}
a++;
}
return a = a - 10;
}
int main(void) {
while (scanf("%d", &x) != EOF) {
mySet... | #include <bits/stdc++.h>
using namespace std;
int a, b, x;
int mySet(int d) {
for (int i = 0; i < 10; i++) {
if (d < 3) {
mySet(d + 1);
} else if (d == 3) {
if (a == x) {
b++;
}
}
a++;
}
return a = a - 10;
}
int main(void) {
while (scanf("%d", &x) != EOF) {
mySet... | [
"assignment.variable.change",
"function.return_value.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 11,598 | 11,599 | u949389125 | cpp |
p00008 | #include <bits/stdc++.h>
using namespace std;
int a, b, x;
int mySet(int d) {
for (int i = 0; i < 10; i++) {
if (d < 3) {
mySet(d + 1);
} else if (d == 3) {
if (a == x) {
b++;
}
}
a++;
}
return a = a - 10;
}
int main(void) {
while (scanf("%d", &x) != EOF) {
mySet... | #include <bits/stdc++.h>
using namespace std;
int a, b, x;
int mySet(int d) {
for (int i = 0; i < 10; i++) {
if (d < 3) {
mySet(d + 1);
} else if (d == 3) {
if (a == x) {
b++;
}
}
a++;
}
return a = a - 10;
}
int main(void) {
while (scanf("%d", &x) != EOF) {
mySet... | [
"assignment.add"
] | 11,601 | 11,599 | u949389125 | cpp |
p00008 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int N;
int count = 0;
while (cin >> N) {
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
int s = a + b + c + d;
... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int N;
int count = 0;
while (cin >> N) {
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
int s = a + b + c + d;
... | [
"assignment.add"
] | 11,604 | 11,605 | u361673277 | cpp |
p00008 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int n, ans, i, j, k, l;
cin >> n;
ans = 0;
for (i... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int n, ans, i, j, k, l;
while (cin >> n) {
ans = ... | [] | 11,610 | 11,611 | u397206668 | cpp |
p00008 | #include <iostream>
using namespace std;
int main(void) {
int a, b = 0;
while (cin >> a) {
for (int A = 0; A < 10; A++) {
for (int B = 0; B < 10; B++) {
for (int C = 0; C < 10; C++) {
for (int D = 0; D < 10; D++) {
if (A + B + C + D == a)
b++;
}
... | #include <iostream>
using namespace std;
int main(void) {
int a, b = 0;
while (cin >> a) {
for (int A = 0; A < 10; A++) {
for (int B = 0; B < 10; B++) {
for (int C = 0; C < 10; C++) {
for (int D = 0; D < 10; D++) {
if (A + B + C + D == a)
b++;
}
... | [
"assignment.add"
] | 11,612 | 11,613 | u499174489 | cpp |
p00008 | #include <iostream>
using namespace std;
int N;
int solve() {
int ans = 0;
for (int i = 0; i <= 9; ++i) {
for (int j = 0; j <= 9; ++j) {
for (int k = 0; k <= 9; ++k) {
for (int l = 0; l <= 9; ++l) {
int tmp = i + j + k + l;
if (tmp == N)
ans++;
}
}
... | #include <iostream>
using namespace std;
int N;
int solve() {
int ans = 0;
for (int i = 0; i <= 9; ++i) {
for (int j = 0; j <= 9; ++j) {
for (int k = 0; k <= 9; ++k) {
for (int l = 0; l <= 9; ++l) {
int tmp = i + j + k + l;
if (tmp == N)
ans++;
}
}
... | [] | 11,614 | 11,615 | u650071126 | cpp |
p00008 | #include <iostream>
using namespace std;
int main(void) {
int cnt = 0, n;
while (cin >> n) {
for (int a = 0; a <= 9; ++a)
for (int b = 0; b <= 9; ++b)
for (int c = 0; c <= 9; ++c)
for (int d = 0; d <= 9; ++d)
if (a + b + c + d == n)
++cnt;
cout << cnt << en... | #include <iostream>
using namespace std;
int main(void) {
int cnt = 0, n;
while (cin >> n) {
cnt = 0;
for (int a = 0; a <= 9; ++a)
for (int b = 0; b <= 9; ++b)
for (int c = 0; c <= 9; ++c)
for (int d = 0; d <= 9; ++d)
if (a + b + c + d == n)
++cnt;
cout... | [
"assignment.add"
] | 11,616 | 11,617 | u322168578 | cpp |
p00008 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
while (cin >> n) {
int s = 0;
for (int i = 1; i <= 9; i++)
for (int j = 1; j <= 9; j++)
for (int k = 1; k <= 9; k++)
for (int l = 1; l <= 9; l++)
if (i +... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
while (cin >> n) {
int s = 0;
for (int i = 0; i <= 9; i++)
for (int j = 0; j <= 9; j++)
for (int k = 0; k <= 9; k++)
for (int l = 0; l <= 9; l++)
if (i +... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 11,618 | 11,619 | u458173932 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int num = 0;
if (n > 36) {
cout << "0" << endl;
} else {
for (int i = 0; i < 10; i++) {
if (i > n) {
break;
}
for (int j = 0; j < 10; j++) {
if (i + j > n) {
... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int num = 0;
if (n > 36) {
cout << "0" << endl;
} else {
for (int i = 0; i < 10; i++) {
if (i > n) {
break;
}
for (int j = 0; j < 10; j++) {
if (i + j > n) {
... | [] | 11,620 | 11,621 | u070671920 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n, a, b, c, d, cnt = 0;
while (cin >> n) {
cnt = 0;
for (a = 0; a < 10 && a < n; a++) {
for (b = 0; b < 10 && b < n; b++) {
for (c = 0; c < 10 && c < n; c++) {
for (d = 0; d < 10 && d < n; d++) {
if (a + b + c + d ... | #include <iostream>
using namespace std;
int main() {
int n, a, b, c, d, cnt = 0;
while (cin >> n) {
cnt = 0;
for (a = 0; a < 10 && a <= n; a++) {
for (b = 0; b < 10 && b <= n; b++) {
for (c = 0; c < 10 && c <= n; c++) {
for (d = 0; d < 10 && d <= n; d++) {
if (a + b + c ... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 11,622 | 11,623 | u146477988 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n, a, b, c, d, cnt = 0;
while (cin >> n) {
cnt = 0;
for (a = 0; a < 10 && a < n; a++) {
for (b = 0; b < 10 && b < n; b++) {
for (c = 0; c < 10 && c < n; c++) {
for (d = 0; d < 10 && d < n; d++) {
if (a + b + c + d ... | #include <iostream>
using namespace std;
int main() {
int n, a, b, c, d, cnt = 0;
while (cin >> n) {
cnt = 0;
for (a = 0; a < 10 && a <= n; a++) {
for (b = 0; b < 10 && b <= n; b++) {
for (c = 0; c < 10 && c <= n; c++) {
for (d = 0; d < 10 && d <= n; d++) {
if (a + b + c ... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 11,624 | 11,623 | u146477988 | cpp |
p00008 | #include <cstdio>
using namespace std;
int main() {
int n;
while (scanf(" %d ", &n) == 1) {
int c = 0;
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
for (int k = 0; k < 9; k++) {
for (int l = 0; l < 9; l++) {
if (i + j + k + l == n) {
c++;
... | #include <cstdio>
using namespace std;
int main() {
int n;
while (scanf(" %d ", &n) == 1) {
int c = 0;
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int l = 0; l <= 9; l++) {
if (i + j + k + l == n) {
c++... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 11,629 | 11,630 | u871901071 | cpp |
p00008 | #include <iostream>
using namespace std;
int main(void) {
int n, i = 0;
while (cin >> n, !cin.eof()) {
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (n == a + b + c + d) {
i = i +... | #include <iostream>
using namespace std;
int main(void) {
int n, i = 0;
while (cin >> n, !cin.eof()) {
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (n == a + b + c + d) {
i = i +... | [
"assignment.add"
] | 11,638 | 11,639 | u073800835 | cpp |
p00008 | #include <cstdio>
int solve(int a, int b) {
if (a == 0) {
if (0 <= b && b <= 9)
return 1;
else
return 0;
}
int res = 0;
for (int i = 0; i < 10; i++) {
res += solve(a - 1, b - i);
}
return res;
}
int main() {
int a;
scanf("%d", &a);
printf("%d\n", solve(3, a));
return 0;
} | #include <cstdio>
int solve(int a, int b) {
if (a == 0) {
if (0 <= b && b <= 9)
return 1;
else
return 0;
}
int res = 0;
for (int i = 0; i < 10; i++) {
res += solve(a - 1, b - i);
}
return res;
}
int main() {
int a;
while (~scanf("%d", &a))
printf("%d\n", solve(3, a));
ret... | [] | 11,640 | 11,641 | u611853667 | cpp |
p00008 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int n, MAX = 9, c;
while (scanf("%d", &n) != EOF) {
c = 0;
for (int a = 0; a <= MAX; a++) {
for (int b = 0; b <= MAX; b++) {
for (int c = 0; c <= MAX; c++) {
for (int d ... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int n, MAX = 9, count;
while (scanf("%d", &n) != EOF) {
count = 0;
for (int a = 0; a <= MAX; a++) {
for (int b = 0; b <= MAX; b++) {
for (int c = 0; c <= MAX; c++) {
for... | [
"identifier.change",
"assignment.variable.change",
"io.output.change"
] | 11,642 | 11,643 | u310778860 | cpp |
p00008 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int n, MAX = 9, count;
while (scanf("%d", &n) != EOF) {
count = 0;
for (int a = 0; a <= MAX; a++) {
for (int b = 0; b <= MAX; b++) {
for (int c = 0; c <= MAX; c++) {
for... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int n, MAX = 9, count;
while (scanf("%d", &n) != EOF) {
count = 0;
for (int a = 0; a <= MAX; a++) {
for (int b = 0; b <= MAX; b++) {
for (int c = 0; c <= MAX; c++) {
for... | [
"identifier.change",
"io.output.change"
] | 11,644 | 11,643 | u310778860 | cpp |
p00008 | #include <iostream>
using namespace std;
int n;
int bfs(int now, int d) {
int ans = 0;
if (d == 4) {
if (now == n)
return 1;
else
return 0;
} else {
for (int i = 0; i < 10; i++)
ans += bfs(now + i, d + 1);
}
return ans;
}
int main() {
cin >> n;
cout << bfs(0, 0) << endl;
} | #include <iostream>
using namespace std;
int n;
int bfs(int now, int d) {
int ans = 0;
if (d == 4) {
if (now == n)
return 1;
else
return 0;
} else {
for (int i = 0; i < 10; i++)
ans += bfs(now + i, d + 1);
}
return ans;
}
int main() {
while (cin >> n)
cout << bfs(0, 0) <<... | [] | 11,734 | 11,735 | u334491063 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int sum = 0;
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == n)
sum++;
}
}
}
}
cou... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int sum = 0;
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == n)
sum++;
... | [] | 11,739 | 11,740 | u111842551 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n, ans = 0;
while (cin >> n) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == n)
ans++;
}
... | #include <iostream>
using namespace std;
int main() {
int n, ans = 0;
while (cin >> n) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
for (int l = 0; l < 10; l++) {
if (i + j + k + l == n)
ans++;
}
... | [
"assignment.add"
] | 11,741 | 11,742 | u742075772 | cpp |
p00008 | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
#define pi 3.141592653589793283462
int main() {
int c;
int d = 0;
while (cin >> c) {
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int ... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
#define pi 3.141592653589793283462
int main() {
int c;
int d = 0;
while (cin >> c) {
for (int i = 0; i <= 9; i++) {
for (int j = 0; j <= 9; j++) {
for (int k = 0; k <= 9; k++) {
for (int ... | [
"assignment.add"
] | 11,743 | 11,744 | u544156467 | cpp |
p00008 | #include <algorithm>
#include <bitset>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
#define rep(I, N) for (int I = 0; I < (int)(N... | #include <algorithm>
#include <bitset>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
#define rep(I, N) for (int I = 0; I < (int)(N... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 11,745 | 11,746 | u092829549 | cpp |
p00008 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int calc(int i, int count, int sum) {
if (count == 0) {
if (sum == i) {
return 1;
} else {
return 0;
}
} else {
int count2 = 0;
for (int j = 0; j < 10; j++) {
count2 += calc(i, c... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int calc(int i, int count, int sum) {
if (count == 0) {
if (sum == i) {
return 1;
} else {
return 0;
}
} else {
int count2 = 0;
for (int j = 0; j < 10; j++) {
count2 += calc(i, c... | [] | 11,748 | 11,749 | u018134297 | cpp |
p00008 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
while (cin >> n) {
int count = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d+... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int count = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
... | [] | 11,750 | 11,751 | u198011997 | cpp |
p00008 | // Sum of 4 Integers
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, ans = 0;
while (scanf("%d", &n) != EOF) {
for (int a = 0; a <= 9; a++)
for (int b = 0; b <= 9; b++)
for (int c = 0; c <= 9; c++)
for (int d = 0; d <= 9; d++)
if (a + b + c + d == n)
... | // Sum of 4 Integers
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, ans = 0;
while (scanf("%d", &n) != EOF) {
ans = 0;
for (int a = 0; a <= 9; a++)
for (int b = 0; b <= 9; b++)
for (int c = 0; c <= 9; c++)
for (int d = 0; d <= 9; d++)
if (a + b + c + d... | [
"assignment.add"
] | 11,757 | 11,758 | u515601943 | cpp |
p00008 | #include <iostream>
int main() {
int a, b, c, d, i, n;
std::cin >> n;
i = 0;
for (a = 0; a <= 9; a++) {
for (b = 0; b <= 9; b++) {
for (c = 0; c <= 9; c++) {
for (d = 0; d <= 9; d++) {
if (a + b + c + d == n) {
i++;
}
}
}
}
}
std::cout << i... | #include <iostream>
int main() {
int a, b, c, d, i, n;
while (std::cin >> n) {
i = 0;
for (a = 0; a <= 9; a++) {
for (b = 0; b <= 9; b++) {
for (c = 0; c <= 9; c++) {
for (d = 0; d <= 9; d++) {
if (a + b + c + d == n) {
i++;
}
}
... | [] | 11,761 | 11,762 | u827103673 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, n, iCount;
cin >> n;
iCount = 0;
for (a = 0; a <= 9; a++) {
for (b = 0; b <= 9; b++) {
for (c = 0; c <= 9; c++) {
for (d = 0; d <= 9; d++) {
if ((a + b + c + d) == n)
iCount++;
}
}
... | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, n, iCount;
while (cin >> n) {
iCount = 0;
for (a = 0; a <= 9; a++) {
for (b = 0; b <= 9; b++) {
for (c = 0; c <= 9; c++) {
for (d = 0; d <= 9; d++) {
if ((a + b + c + d) == n)
iCount++;... | [] | 11,767 | 11,768 | u948204119 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int n;
int i, j, k, l;
int cnt = 0;
while (cin >> n) {
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
for (k = 0; k < 10; k++) {
for (l = 0; l < 10; l++) {
if (i + j + k + l == n) {
cnt++;
... | #include <iostream>
using namespace std;
int main() {
int n;
int i, j, k, l;
int cnt = 0;
while (cin >> n) {
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
for (k = 0; k < 10; k++) {
for (l = 0; l < 10; l++) {
if (i + j + k + l == n) {
cnt++;
... | [
"assignment.add"
] | 11,771 | 11,772 | u822202919 | cpp |
p00008 | #include <iostream>
int n, count = 0;
void f(int, int, int, int);
int main() {
while (std::cin >> n) {
for (int a = 0; a <= 9; a++)
for (int b = 0; b <= 9; b++)
for (int c = 0; c <= 9; c++)
for (int d = 0; d <= 9; d++)
f(a, b, c, d);
std::cout << count << std::endl;
}
... |
#include <iostream>
int n, count = 0;
void f(int, int, int, int);
int main() {
while (std::cin >> n) {
count = 0;
for (int a = 0; a <= 9; a++)
for (int b = 0; b <= 9; b++)
for (int c = 0; c <= 9; c++)
for (int d = 0; d <= 9; d++)
f(a, b, c, d);
std::cout << count << ... | [
"assignment.add"
] | 11,773 | 11,774 | u894396835 | cpp |
p00008 | #include <iostream>
using namespace std;
int main() {
int t = 0, n;
while (cin >> n) {
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n)
++t;
}
... | #include <iostream>
using namespace std;
int main() {
int t, n;
while (cin >> n) {
t = 0;
for (int a = 0; a < 10; a++) {
for (int b = 0; b < 10; b++) {
for (int c = 0; c < 10; c++) {
for (int d = 0; d < 10; d++) {
if (a + b + c + d == n)
++t;
}
... | [
"assignment.add"
] | 11,775 | 11,776 | u554423044 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.