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 |
|---|---|---|---|---|---|---|---|
p00005 | #include <iostream>
using namespace std;
// プロトタイプ宣言
int gcd(int i, int j);
int main() {
int i, j;
while (cin >> i >> j) {
int tmp;
if (i < j) {
tmp = i;
i = j;
j = tmp;
}
int ret_gcd, ret_lcm;
ret_gcd = gcd(i, j);
ret_lcm = (i * j) / ret_gcd;
cout << ret_gcd << ' ... | #include <iostream>
using namespace std;
// プロトタイプ宣言
int gcd(int i, int j);
int main() {
int i, j;
while (cin >> i >> j) {
int tmp;
if (i < j) {
tmp = i;
i = j;
j = tmp;
}
int ret_gcd, ret_lcm;
ret_gcd = gcd(i, j);
ret_lcm = (i / ret_gcd) * j;
cout << ret_gcd << ' ... | [
"assignment.change"
] | 8,927 | 8,928 | u373988530 | cpp |
p00005 | #include <algorithm>
#include <cstdio>
int main() {
int a, b;
while (2 == scanf("%d%d", &a, &b))
printf("%d %d\n", std::__gcd(a, b), std::__gcd(a, b) * b);
return 0;
}
| #include <algorithm>
#include <cstdio>
int main() {
int a, b;
while (2 == scanf("%d%d", &a, &b))
printf("%d %d\n", std::__gcd(a, b), a / std::__gcd(a, b) * b);
return 0;
} | [
"expression.operation.binary.add"
] | 8,932 | 8,931 | u742075772 | cpp |
p00005 | #include <iostream>
using namespace std;
int gcd(int a, int b) {
// a < b ユークリッドの互除法
if (a == 0)
return b;
return gcd(b % a, a);
}
// lcm = a*b/gcd
int main() {
int a, b;
while (cin >> a >> b) {
int g = gcd(a, b);
cout << g << " " << a * b / g << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int gcd(int a, int b) {
// a < b ユークリッドの互除法
if (a == 0)
return b;
return gcd(b % a, a);
}
// lcm = a*b/gcd
int main() {
int a, b;
while (cin >> a >> b) {
int g = gcd(a, b);
cout << g << " " << a / g * b << endl;
}
return 0;
} | [
"expression.operation.binary.remove"
] | 8,933 | 8,934 | u150414576 | cpp |
p00005 | #include <iostream>
using namespace std;
int gcd(int a, int b) {
// a < b ユークリッドの互除法
if (a == 0)
return b;
return gcd(b % a, a);
}
// lcm = a*b/gcd
int main() {
int a, b;
while (cin >> a >> b) {
int g = gcd(a, b);
cout << g << " " << (a * b) / g << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int gcd(int a, int b) {
// a < b ユークリッドの互除法
if (a == 0)
return b;
return gcd(b % a, a);
}
// lcm = a*b/gcd
int main() {
int a, b;
while (cin >> a >> b) {
int g = gcd(a, b);
cout << g << " " << a / g * b << endl;
}
return 0;
} | [
"expression.operation.binary.add"
] | 8,935 | 8,934 | u150414576 | cpp |
p00005 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define loop(i, a, b) for (int i = (a); i < (int)(b); i++)
#... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define loop(i, a, b) for (int i = (a); i < (int)(b); i++)
#... | [] | 8,936 | 8,937 | u553881259 | cpp |
p00005 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b, ta, tb;
while (cin >> a >> b) {
ta = a;
tb = b;
if (a < b)
swap(a, b);
while (1) {
int tmp = b;
b = a % b;
a = tmp;
// cout<<a<<b<<endl;
if (b == 0)
break;
}
co... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
long long a, b, ta, tb;
while (cin >> a >> b) {
ta = a;
tb = b;
if (a < b)
swap(a, b);
while (1) {
long long tmp = b;
b = a % b;
a = tmp;
// cout<<a<<b<<endl;
if (b == 0)
break;
... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 8,938 | 8,939 | u746860079 | cpp |
p00005 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, f, g, l;
cin >> a >> b;
c = a;
d = b;
e = a;
f = b;
while (1) {
if (a > b) {
a %= b;
if (a == 0) {
g = b;
break;
}
} else if (a < b) {
b %= a;
if (b == 0) {
g = a;
... | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, f, g, l;
while (cin >> a >> b) {
c = a;
d = b;
e = a;
f = b;
while (1) {
if (a >= b) {
a %= b;
if (a == 0) {
g = b;
break;
}
} else if (a < b) {
b %= a;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 8,943 | 8,944 | u017200929 | cpp |
p00005 | #include "bits/stdc++.h"
#define REP(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
#define PB push_back
#define MP make_pair
using namespace std;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
int a, b;
while (cin >> a >> b) {
if (a < b)
sw... | #include "bits/stdc++.h"
#define REP(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
#define PB push_back
#define MP make_pair
using namespace std;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
int a, b;
while (cin >> a >> b) {
if (a <= b)
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"io.output.change"
] | 8,946 | 8,947 | u198011997 | cpp |
p00004 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
x = (c * e - b * f) / (a * e - b * d);
y = (c * d - a * f) / (b * d - a * e);
if (x == 0) {
x = 0.000;
}
if (y == 0) {
y = 0.00... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
x = (c * e - b * f) / (a * e - b * d);
y = (c * d - a * f) / (b * d - a * e);
if (x == 0) {
x = 0.000;
}
if (y == 0) {
y = 0... | [
"variable_declaration.type.primitive.change"
] | 8,948 | 8,949 | u377018319 | cpp |
p00004 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
-1000 <= a, b, c, d, e, f <= 1000;
x = (c * e - b * f) / (a * e - b * d);
y = (c * d - a * f) / (b * d - a * e);
if (x == -0.00) {
x = 0.0... | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
-1000 <= a, b, c, d, e, f <= 1000;
x = (c * e - b * f) / (a * e - b * d);
y = (c * d - a * f) / (b * d - a * e);
if (x == -0.00) {
x = 0... | [
"variable_declaration.type.primitive.change"
] | 8,950 | 8,951 | u674364816 | cpp |
p00004 | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
-1000 <= a, b, c, d, e, f <= 1000;
x = (c * e - b * f) / (a * e - b * d);
y = (c * d - a * f) / (b * d - a * e);
if (x == -0.00) {
x = 0.00... | #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
-1000 <= a, b, c, d, e, f <= 1000;
x = (c * e - b * f) / (a * e - b * d);
y = (c * d - a * f) / (b * d - a * e);
if (x == -0.00) {
x = 0... | [
"variable_declaration.type.primitive.change"
] | 8,953 | 8,951 | u674364816 | cpp |
p00004 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define all... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define all... | [
"variable_declaration.type.primitive.change"
] | 8,959 | 8,960 | u819979588 | cpp |
p00004 | #include <cmath>
#include <iostream>
#include <stdio.h>
#define EPS 0.001
using namespace std;
main() {
int a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
x = 1.0 * (c * e - b * f) / (a * e - b * d) + EPS;
y = 1.0 * (c * d - a * f) / (b * d - a * e) + EPS;
printf("%.3lf %... | #include <cmath>
#include <iostream>
#include <stdio.h>
#define EPS 0.00001
using namespace std;
main() {
int a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
x = 1.0 * (c * e - b * f) / (a * e - b * d) + EPS;
y = 1.0 * (c * d - a * f) / (b * d - a * e) + EPS;
printf("%.3lf... | [
"preprocessor.define.value.change",
"literal.float.change"
] | 8,963 | 8,964 | u318077239 | cpp |
p00004 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
x = (c * e - b * f) / (a * e - b * d);
y = (c * d - a * f) / (b * d - a * e);
if (abs(x) < 0.001)
x = 0;
if (abs(y) <... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double a, b, c, d, e, f;
double x, y;
while (cin >> a >> b >> c >> d >> e >> f) {
x = (c * e - b * f) / (a * e - b * d);
y = (c * d - a * f) / (b * d - a * e);
if (abs(x) < 0.001)
x = 0;
if (abs(y) <... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 8,967 | 8,968 | u368479254 | cpp |
p00004 | #include <iostream>
#include <stdio.h>
using namespace std;
void solve() {
int a;
while (cin >> a) {
int b, c, d, e, f;
cin >> b >> c >> d >> e >> f;
double x = (c * e - b * f) / (double)(a * e - b * d);
double y = (c * d - a * f) / (double)(b * d - a * e);
if (x == -0) {
x = 0;
}
... | #include <iostream>
#include <stdio.h>
using namespace std;
void solve() {
int a;
while (cin >> a) {
int b, c, d, e, f;
cin >> b >> c >> d >> e >> f;
double x = (c * e - b * f) / (double)(a * e - b * d);
double y = (c * d - a * f) / (double)(b * d - a * e);
if (x == -0) {
x = 0;
}
... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 8,971 | 8,972 | u579833671 | cpp |
p00004 | #include <cstdio>
#include <iomanip>
#include <iostream>
int main() {
int a, b, c, d, e, f;
while (std::cin >> a >> b >> c >> d >> e >> f) {
double x, y;
y = (c * d - a * f) / (b * d - a * e);
x = (c - b * y) / a;
if (x == 0)
x = 0;
if (y == 0)
y = 0;
printf("%.3f %.3f\n", x, y)... | #include <cstdio>
#include <iomanip>
#include <iostream>
int main() {
double a, b, c, d, e, f;
while (std::cin >> a >> b >> c >> d >> e >> f) {
double x, y;
y = (c * d - a * f) / (b * d - a * e);
x = (c - b * y) / a;
if (x == 0)
x = 0.000;
if (y == 0)
y = 0.000;
printf("%.3f %.3... | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"assignment.value.change"
] | 8,973 | 8,974 | u426260581 | cpp |
p00004 | #include <cstdio>
#include <iomanip>
#include <iostream>
int main() {
int a, b, c, d, e, f;
while (std::cin >> a >> b >> c >> d >> e >> f) {
double x, y;
y = (c * d - a * f) / (b * d - a * e);
x = (c - b * y) / a;
if (x == 0)
x = 0.000;
if (y == 0)
y = 0.000;
printf("%.3f %.3f\n... | #include <cstdio>
#include <iomanip>
#include <iostream>
int main() {
double a, b, c, d, e, f;
while (std::cin >> a >> b >> c >> d >> e >> f) {
double x, y;
y = (c * d - a * f) / (b * d - a * e);
x = (c - b * y) / a;
if (x == 0)
x = 0.000;
if (y == 0)
y = 0.000;
printf("%.3f %.3... | [
"variable_declaration.type.primitive.change"
] | 8,975 | 8,974 | u426260581 | cpp |
p00004 | #include <cstdio>
#include <iostream>
using namespace std;
void Solve(double a, double b, double c, double d, double e, double f) {
double x, y;
y = (a * f - d * c) / (a * e - d * b);
x = (c - b * y) / a;
if (x == 0)
x = 0.000;
if (y == 0)
y = 0.000;
printf("%4.3f %4.3f\n", x, y);
}
int main() {... | #include <cstdio>
#include <iostream>
using namespace std;
void Solve(double a, double b, double c, double d, double e, double f) {
double x, y;
y = (a * f - d * c) / (a * e - d * b);
x = (c - b * y) / a;
if (x == 0)
x = 0.000;
if (y == 0)
y = 0.000;
printf("%4.3f %4.3f\n", x, y);
}
int main() {... | [] | 8,976 | 8,977 | u333076897 | cpp |
p00004 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
double sisyagonyu(double num, int keta) {
if (keta < 1)
return num;
int i = num * pow(10, keta);
int sg = num * pow(10, keta + 1) - i * 10;
if (sg >= 5)
i++;
else if (sg <= -5)
i--;
return i /... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
double sisyagonyu(double num, int keta) {
if (keta < 1)
return num;
int i = num * pow(10, keta);
int sg = num * pow(10, keta + 1) - i * 10;
if (sg >= 5)
i++;
else if (sg <= -5)
i--;
return i /... | [] | 8,978 | 8,979 | u045912041 | cpp |
p00004 | #include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a, b, c, d, e, f;
vector<double> x, y;
while (cin >> a) {
double tmpY;
cin >> b >> c >> d >> e >> f;
if (a * e != b * d) {
y.push_back((c * d - a * f) / (b * d - a * e));
tmpY = (c * d - a * f) ... | #include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
int main() {
double a, b, c, d, e, f;
vector<double> x, y;
while (cin >> a) {
double tmpY;
cin >> b >> c >> d >> e >> f;
if (a * e != b * d) {
y.push_back((c * d - a * f) / (b * d - a * e));
tmpY = (c * d - a * ... | [
"variable_declaration.type.primitive.change"
] | 8,982 | 8,983 | u124909914 | cpp |
p00004 | #include <iostream>
#include <stdio.h>
using namespace std;
int det(int a00, int a01, int a10, int a11) { return a00 * a11 - a01 * a10; }
int main() {
int a, b, c, d, e, f;
while (cin >> a >> b >> c >> d >> e >> f) {
int t = det(a, b, d, e);
double x = (double)det(c, b, f, e) / t;
double y = (double)d... | #include <iostream>
#include <stdio.h>
using namespace std;
int det(int a00, int a01, int a10, int a11) { return a00 * a11 - a01 * a10; }
int main() {
int a, b, c, d, e, f;
while (cin >> a >> b >> c >> d >> e >> f) {
int t = det(a, b, d, e);
double x = (double)det(c, b, f, e) / t;
double y = (double)d... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 8,984 | 8,985 | u870091376 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (size_t i = str.size() - 1; i > 0; --i) {
cout << str[i];
}
cout << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = str.size() - 1; i >= 0; --i) {
cout << str[i];
}
cout << endl;
return 0;
} | [
"control_flow.loop.for.initializer.change",
"variable_declaration.type.primitive.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 9,088 | 9,089 | u820425665 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (size_t i = str.size() - 1; i >= 0; --i) {
cout << str[i];
}
cout << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = str.size() - 1; i >= 0; --i) {
cout << str[i];
}
cout << endl;
return 0;
} | [
"control_flow.loop.for.initializer.change",
"variable_declaration.type.primitive.change"
] | 9,090 | 9,089 | u820425665 | cpp |
p00006 | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
typedef unsigned long ul;
using namespace std;
int main() {
int len;
string str;
cin >> str;
len = str.length();
for (int i = len - 1; i >= 0; i--) {
cout << str.at(i)... | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
typedef unsigned long ul;
using namespace std;
int main() {
int len;
string str;
cin >> str;
len = str.length();
for (int i = len - 1; i >= 0; i--) {
cout << str.at(i)... | [] | 9,100 | 9,098 | u874628310 | cpp |
p00006 | #include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
using namespace std;
int main() {
int i, j;
char str[20] = {};
for (i = 0; cin >> str[i]; i++) {
}
for (j = i; j >= 0; j--) {
cout << str[j] << endl;
}
return 0;
} | #include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
using namespace std;
int main() {
int i, j;
char str[20] = {};
for (i = 0; cin >> str[i]; i++) {
}
for (j = i - 1; j >= 0; j--) {
cout << str[j];
}
cout << endl;
return 0;
} | [
"control_flow.loop.for.initializer.change"
] | 9,105 | 9,106 | u862519367 | cpp |
p00006 | #include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
using namespace std;
int main() {
int i, j;
char str[20] = {};
for (i = 0; cin >> str[i]; i++) {
}
for (j = i - 1; j >= 0; j--) {
cout << str[j] << endl;
}
return 0;
} | #include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
using namespace std;
int main() {
int i, j;
char str[20] = {};
for (i = 0; cin >> str[i]; i++) {
}
for (j = i - 1; j >= 0; j--) {
cout << str[j];
}
cout << endl;
return 0;
} | [] | 9,107 | 9,106 | u862519367 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
char a;
string str;
cin >> str;
for (int i = 0; i != str.size() - 1 - i; i++) {
a = str[i];
str[i] = str[str.size() - 1 - i];
str[str.size() - 1 - i] = a;
}
cout << str << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
char a;
string str;
cin >> str;
for (int i = 0; i < str.size() - 1 - i; i++) {
a = str[i];
str[i] = str[str.size() - 1 - i];
str[str.size() - 1 - i] = a;
}
cout << str << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 9,116 | 9,117 | u080939948 | cpp |
p00006 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define REMOVE(Itr, n) ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define REMOVE(Itr, n) ... | [] | 9,151 | 9,152 | u391016947 | cpp |
p00006 | #include <iostream>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = str.length() - 1; i >= 0; i--)
cout << str[i];
cout << NULL;
return 0;
} | #include <iostream>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = str.length() - 1; i >= 0; i--)
cout << str[i];
cout << endl;
return 0;
} | [
"io.output.change"
] | 9,185 | 9,182 | u295538678 | cpp |
p00006 | #include <stdio.h>
int main() {
int n = 0;
char a[1000];
for (int i = 0; i < 1000; i++)
a[i] = '\0';
scanf("%s", a);
while (a[n] != '\0')
n++;
for (int i = n - 1; i >= 0; i++)
printf("%c", a[i]);
printf("\n");
} | #include <stdio.h>
int main() {
int n = 0;
char a[1000];
for (int i = 0; i < 1000; i++)
a[i] = '\0';
scanf("%s", a);
while (a[n] != '\0')
n++;
for (int i = n - 1; i >= 0; i--)
printf("%c", a[i]);
printf("\n");
} | [] | 9,210 | 9,211 | u048151615 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() <= 20) {
for (int i = s.size();; i--) {
cout << s[i];
}
cout << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() <= 20) {
for (int i = s.size(); i--;) {
cout << s[i];
}
cout << endl;
}
return 0;
} | [] | 9,214 | 9,213 | u205248875 | cpp |
p00006 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
reverse(s.begin(), s.end());
cout << s << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
reverse(s.begin(), s.end());
cout << s << endl;
return 0;
}
| [] | 9,244 | 9,245 | u325351179 | cpp |
p00006 | #include <iostream>
#include <string.h>
using namespace std;
int main() {
char bun[25] = {};
int len;
cin >> bun;
len = strlen(bun);
for (int i = len - 1; i > 0; i--) {
cout << bun[i];
}
cout << endl;
return 0;
}
| #include <iostream>
#include <string.h>
using namespace std;
int main() {
char bun[25] = {};
int len;
cin >> bun;
len = strlen(bun);
for (int i = len - 1; i >= 0; i--) {
cout << bun[i];
}
cout << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 9,248 | 9,249 | u341761787 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string str;
cin >> str;
for (int i = str.size() - 1; i <= 0; i--)
cout << str[i];
cout << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string str;
cin >> str;
for (int i = str.size() - 1; i >= 0; i--)
cout << str[i];
cout << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 9,482 | 9,483 | u615353970 | cpp |
p00006 | #include <stdio.h>
#include <string.h>
int main() {
char str[21] = {};
char ch;
int n;
scanf("%s", str);
n = strlen(str);
for (int i = 0; i < n; i++) {
printf("%c", str[n - 1]);
}
printf("\n");
return 0;
} | #include <stdio.h>
#include <string.h>
int main() {
char str[21] = {};
char ch;
int n;
scanf("%s", str);
n = strlen(str);
for (int i = 0; i < n; i++) {
printf("%c", str[n - i - 1]);
}
printf("\n");
return 0;
} | [
"expression.operation.binary.add"
] | 9,518 | 9,519 | u745328149 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = str.size() - 1; i >= 0; i++)
cout << str[i];
cout << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = str.size() - 1; i >= 0; i--)
cout << str[i];
cout << endl;
return 0;
} | [] | 9,520 | 9,521 | u412625617 | cpp |
p00006 | #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 FOR(I, F, N) for (int I = F; I < (int... | #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 FOR(I, F, N) for (int I = F; I < (int... | [
"control_flow.loop.for.remove"
] | 9,526 | 9,525 | u092829549 | cpp |
p00006 | #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 FOR(I, F, N) for (int I = F; I < (int... | #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 FOR(I, F, N) for (int I = F; I < (int... | [] | 9,527 | 9,525 | u092829549 | cpp |
p00006 | #include <iostream>
#include <stdio.h>
int main() {
int i;
char s[21];
scanf("&s", s);
for (i = 0; s[i] != '\0'; i++)
;
if (i > 0)
i--;
for (; i >= 0; i--)
std::cout << s[i];
std::cout << std::endl;
return 0;
} | #include <iostream>
#include <stdio.h>
int main() {
int i;
char s[21];
scanf("%s", s);
for (i = 0; s[i] != '\0'; i++)
;
if (i > 0)
i--;
for (; i >= 0; i--)
std::cout << s[i];
std::cout << std::endl;
return 0;
} | [
"literal.string.change",
"call.arguments.change"
] | 9,537 | 9,538 | u867824281 | cpp |
p00006 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = s.size() - 1; i >= 0; ++i)
cout << s[i];
cout << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = s.size() - 1; i >= 0; --i)
cout << s[i];
cout << endl;
}
| [] | 9,541 | 9,542 | u745360181 | cpp |
p00006 | #include <iostream>
using namespace std;
int main() {
string in, buf;
int f = 0, b;
cin >> in;
b = in.size() - 1;
while (b - f > 1) {
buf = in[f];
in[f] = in[b];
in[b] = buf[0];
f++;
b--;
}
cout << in << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
string in, buf;
int f = 0, b;
cin >> in;
b = in.size() - 1;
while (b - f >= 1) {
buf = in[f];
in[f] = in[b];
in[b] = buf[0];
f++;
b--;
}
cout << in << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 9,578 | 9,579 | u621917792 | cpp |
p00006 | #include <cstdio>
#include <iostream>
#include <string.h>
using namespace std;
static const int MAXV = 21;
int main() {
char A[MAXV] = {};
cin >> A;
int i = 0;
for (; i < MAXV; i++) {
// printf("%c", A[i]);
if (A[i] == 0)
break;
}
i--;
for (; i != 0; i--) {
printf("%c", A[i]);
}
pr... | #include <cstdio>
#include <iostream>
#include <string.h>
using namespace std;
static const int MAXV = 21;
int main() {
char A[MAXV] = {};
cin >> A;
int i = 0;
for (; i < MAXV; i++) {
// printf("%c", A[i]);
if (A[i] == 0)
break;
}
i--;
for (; i != -1; i--) {
printf("%c", A[i]);
}
p... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 9,608 | 9,609 | u064604519 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = s.size() - 1; i--;) {
cout << s[i];
}
cout << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = s.size(); i--;) {
cout << s[i];
}
cout << endl;
} | [
"control_flow.loop.for.initializer.change",
"expression.operation.binary.remove"
] | 9,621 | 9,622 | u937978414 | cpp |
p00006 | #include <iostream>
using namespace std;
int main(void) {
string str;
cin >> str;
int l = str.size();
for (int i = l; i >= 0; i++) {
cout << str[i];
}
cout << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
string str;
cin >> str;
int l = str.size();
for (int i = l; i > 0; i--) {
cout << str[i - 1];
}
cout << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 9,623 | 9,624 | u491165315 | cpp |
p00006 | #include <stdio.h>
int main() {
char string[22];
char revString[22];
int i, s;
fgets(string, 20, stdin);
for (i = 21; string[i] != '\n'; i--) {
if (i == 0) {
break;
}
}
i--;
for (s = 0; i >= 0; i--) {
revString[s] = string[i];
s++;
}
revString[s] = '\0';
printf("%s\n", rev... | #include <stdio.h>
int main() {
char string[24];
char revString[24];
int i, s;
fgets(string, 22, stdin);
for (i = 21; string[i] != '\n'; i--) {
if (i == 0) {
break;
}
}
i--;
for (s = 0; i >= 0; i--) {
revString[s] = string[i];
s++;
}
revString[s] = '\0';
printf("%s\n", rev... | [
"literal.number.change",
"call.arguments.change"
] | 9,633 | 9,634 | u036626781 | cpp |
p00006 | #include <stdio.h>
int main() {
char string[22];
char revString[22];
int i, s;
fgets(string, 20, stdin);
for (i = 21; string[i] != '\n'; i--) {
if (i == 0) {
break;
}
}
i--;
for (s = 0; i >= 0; i--) {
revString[s] = string[i];
s++;
}
revString[s] = '\0';
printf("%s", revSt... | #include <stdio.h>
int main() {
char string[24];
char revString[24];
int i, s;
fgets(string, 22, stdin);
for (i = 21; string[i] != '\n'; i--) {
if (i == 0) {
break;
}
}
i--;
for (s = 0; i >= 0; i--) {
revString[s] = string[i];
s++;
}
revString[s] = '\0';
printf("%s\n", rev... | [
"literal.number.change",
"call.arguments.change",
"literal.string.change",
"io.output.change",
"io.output.newline.add"
] | 9,635 | 9,634 | u036626781 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = str.size(); i > 0; --i)
cout << str[i - 1] << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = str.size(); i > 0; --i)
cout << str[i - 1];
cout << endl;
return 0;
} | [] | 9,640 | 9,641 | u646183247 | cpp |
p00006 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
main() {
string str;
cin >> str;
for (int i = str.size() - 1; i >= 0; --i)
cout << str[i] << endl;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
main() {
string str;
cin >> str;
for (int i = str.size() - 1; i >= 0; --i)
cout << str[i];
cout << endl;
} | [] | 9,659 | 9,658 | u128939728 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string A;
char R;
cin >> A;
for (int i = 0; i <= A.length() / 2; i++) {
R = A[i];
A[i] = A[A.length() - i - 1];
A[A.length() - i - 1] = R;
}
cout << A;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string A;
char R;
cin >> A;
for (int i = 0; i < A.length() / 2; i++) {
R = A[i];
A[i] = A[A.length() - i - 1];
A[A.length() - i - 1] = R;
}
cout << A << "\n";
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"io.output.change"
] | 9,668 | 9,669 | u643789341 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string A;
char R;
cin >> A;
for (int i = 0; i <= A.length() / 2; i++) {
R = A[i];
A[i] = A[A.length() - i - 1];
A[A.length() - i - 1] = R;
}
cout << A << "\n";
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string A;
char R;
cin >> A;
for (int i = 0; i < A.length() / 2; i++) {
R = A[i];
A[i] = A[A.length() - i - 1];
A[A.length() - i - 1] = R;
}
cout << A << "\n";
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 9,671 | 9,669 | u643789341 | cpp |
p00006 | #include <iostream>
#include <string.h>
using namespace std;
int main() {
char a[20];
cin >> a;
for (int i = strlen(a) - 1; i > 0; i--) {
cout << a[i] << endl;
}
return 0;
} | #include <iostream>
#include <string.h>
using namespace std;
int main() {
char a[20];
cin >> a;
for (int i = strlen(a) - 1; i >= 0; i--) {
cout << a[i];
}
cout << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 9,684 | 9,685 | u610167524 | cpp |
p00006 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
reverse(s.begin(), s.end());
cout << s << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
reverse(s.begin(), s.end());
cout << s << endl;
return 0;
} | [] | 9,711 | 9,712 | u384070193 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = s.size() - 1; i > 0; i--) {
cout << s[i];
}
cout << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = s.size() - 1; i >= 0; i--) {
cout << s[i];
}
cout << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 9,715 | 9,716 | u765197056 | cpp |
p00006 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = 1; i < s.length(); i++) {
cout << s[s.length() - i];
}
cout << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
for (int i = 1; i < s.length() + 1; i++) {
cout << s[s.length() - i];
}
cout << endl;
return 0;
} | [
"control_flow.loop.for.condition.change"
] | 9,732 | 9,733 | u262602753 | cpp |
p00007 | //↓template↓
#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n) n.begin(), n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1}, alp[30];
long long fac[200005], finv[20... | //↓template↓
#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n) n.begin(), n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1}, alp[30];
long long fac[200005], finv[20... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"control_flow.loop.condition.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 10,594 | 10,595 | u861198832 | cpp |
p00007 | //↓template↓
#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n) n.begin(), n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1}, alp[30];
long long fac[200005], finv[20... | //↓template↓
#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n) n.begin(), n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1}, alp[30];
long long fac[200005], finv[20... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"control_flow.loop.condition.change"
] | 10,596 | 10,595 | u861198832 | cpp |
p00007 | //↓template↓
#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n) n.begin(), n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1}, alp[30];
long long fac[200005], finv[20... | //↓template↓
#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n) n.begin(), n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1}, alp[30];
long long fac[200005], finv[20... | [
"control_flow.loop.condition.change"
] | 10,597 | 10,595 | u861198832 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ans = 100000;
for (int i = 0; i < n; i++)
ans += ans * 5 / 100;
if (ans % 10000)
ans += (10000 - ans % 10000);
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ans = 100000;
for (int i = 0; i < n; i++) {
ans += ans * 5 / 100;
if (ans % 1000)
ans += (1000 - ans % 1000);
}
cout << ans << endl;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 10,598 | 10,599 | u334491063 | cpp |
p00007 | #include <iostream>
using namespace std;
int main(void) {
int money = 100000;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
money = money + ((int)(money * 0.05) + 900) / 1000 * 1000;
}
cout << money << endl;
} | #include <iostream>
using namespace std;
int main(void) {
int money = 100000;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
money = money + ((int)(money * 0.05) + 999) / 1000 * 1000;
}
cout << money << endl;
} | [
"literal.number.change",
"expression.operation.binary.change"
] | 10,600 | 10,601 | u615353970 | cpp |
p00007 | #include <iostream>
using namespace std;
// 1000未満切り上げ
int main() {
int weeks;
int debt = 100000;
cin >> weeks;
for (int i = 0; i < weeks; i++) {
debt * 1.05;
if (debt % 1000)
debt += (1000 - debt % 1000);
}
cout << debt << endl;
} | #include <iostream>
using namespace std;
// 1000未満切り上げ
int main() {
int weeks;
int debt = 100000;
cin >> weeks;
for (int i = 0; i < weeks; i++) {
debt *= 1.05;
if (debt % 1000)
debt += (1000 - debt % 1000);
}
cout << debt << endl;
} | [
"assignment.compound.arithmetic.replace.add",
"expression.operator.arithmetic.replace.remove",
"expression.operation.binary.change"
] | 10,606 | 10,607 | u150414576 | cpp |
p00007 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, i;
double a = 100000;
cin >> n;
for (i = 0; i < n; i++) {
a *= 1.05;
ceil(a);
while ((int)a % 1000 != 0) {
a += 1;
}
}
cout << a << endl;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, i;
double a = 100000;
cin >> n;
for (i = 0; i < n; i++) {
a *= 1.05;
ceil(a);
while ((int)a % 1000 != 0) {
a += 1;
}
}
cout << (int)a << endl;
} | [
"type_conversion.add"
] | 10,610 | 10,611 | u017200929 | cpp |
p00007 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
unsigned int week;
cin >> week;
float debt = 100; // in unit of 1000.
for (int i = 0; i < week; i++) {
debt *= 1.05;
debt = ceil(debt);
}
cout << debt * 1000 << endl;
return 0;
} | #include <iostream>
#include <math.h>
using namespace std;
int main() {
unsigned int week;
cin >> week;
float debt = 100; // in unit of 1000.
for (int i = 0; i < week; i++) {
debt *= 1.05;
debt = ceil(debt);
}
cout << (int)debt * 1000 << endl;
return 0;
} | [
"type_conversion.add"
] | 10,612 | 10,613 | u392184909 | cpp |
p00007 | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
double a = 100000;
for (int i = 0; i < n; i++) {
a *= 1.05;
a /= 1000;
a = ceil(a);
a *= 1000;
}
cout << a << endl;
return 0;
} | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
double a = 100000;
for (int i = 0; i < n; i++) {
a *= 1.05;
a /= 1000;
a = ceil(a);
a *= 1000;
}
cout << (int)a << endl;
return 0;
} | [
"type_conversion.add"
] | 10,616 | 10,617 | u774532206 | cpp |
p00007 | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
double a = 100000;
for (int i = 0; i < n; i++) {
a *= 1.05;
a /= 1000;
a = floor(a);
a *= 1000;
}
cout << a << endl;
return 0;
} | #define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
double a = 100000;
for (int i = 0; i < n; i++) {
a *= 1.05;
a /= 1000;
a = ceil(a);
a *= 1000;
}
cout << (int)a << endl;
return 0;
} | [
"misc.opposites",
"identifier.change",
"call.function.change"
] | 10,618 | 10,617 | u774532206 | cpp |
p00007 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n;
double d = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
d *= 1.05 / 1000;
if (d - floor(d) > 0.0001) {
d = ceil(d) * 1000;
} else
d *= 1000;
}
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n;
double d = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
d *= 1.05 / 1000;
if (d - floor(d) > 0.00001) {
d = ceil(d) * 1000;
} else
d *= 1000;
}
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 10,636 | 10,637 | u177949486 | cpp |
p00007 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n;
double d = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
d *= 1.05 / 1000;
if (d - floor(d) > 0.00001) {
d = ceil(d) * 1000;
} else
d *= 1000;
}
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n;
double d = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
d *= 1.05 / 1000;
if (d - floor(d) > 0.00001) {
d = ceil(d) * 1000;
} else
d *= 1000;
}
... | [
"type_conversion.add"
] | 10,638 | 10,637 | u177949486 | cpp |
p00007 | #include <cstdio>
int main() {
int n;
int a = 100;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
if (a % 100) {
a = a * 1.05 + 1;
} else {
a *= 1.05;
}
}
printf("%d000\n", a);
return 0;
} | #include <cstdio>
int main() {
int n;
int a = 100;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
if (a % 20) {
a = a * 1.05 + 1;
} else {
a *= 1.05;
}
}
printf("%d000\n", a);
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 10,641 | 10,642 | u708862509 | cpp |
p00007 | #include <iostream>
using namespace std;
#include <math.h>
int main() {
int n = 0;
double syakkin = 100000.0;
cin >> n;
for (int i = 0; i < n; i++) {
syakkin = syakkin * 1.05;
if (long(syakkin) % 1000 != 0) {
syakkin = syakkin - double(long(syakkin) % 1000) + 1000.0;
}
// cout << syak... | #include <iostream>
using namespace std;
#include <math.h>
int main() {
int n = 0;
double syakkin = 100000.0;
cin >> n;
for (int i = 0; i < n; i++) {
syakkin = syakkin * 1.05;
if (long(syakkin) % 1000 != 0) {
syakkin = syakkin - double(long(syakkin) % 1000) + 1000.0;
}
// cout << syak... | [
"call.arguments.change"
] | 10,645 | 10,646 | u500277183 | cpp |
p00007 | #include <cstdio>
using namespace std;
long long roundup(long long *x) {
(*x) += 900;
(*x) /= 1000;
(*x) *= 1000;
}
long long addinterest(long long *x) {
(*x) *= 1.05;
roundup(x);
}
int main() {
long long debt = 100000;
int n;
scanf("%d", &n);
while (n--)
addinterest(&debt);
printf("%lld\n"... | #include <cstdio>
using namespace std;
long long roundup(long long *x) {
(*x) += 999;
(*x) /= 1000;
(*x) *= 1000;
}
long long addinterest(long long *x) {
(*x) *= 1.05;
roundup(x);
}
int main() {
long long debt = 100000;
int n;
scanf("%d", &n);
while (n--)
addinterest(&debt);
printf("%lld\n"... | [
"literal.number.change",
"assignment.value.change"
] | 10,647 | 10,648 | u709185111 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n, i, j;
double debt = 100000;
cin >> n;
for (i = 0; i < n; i++) {
debt = (double)debt * 1.05;
if ((int)debt / 1000 * 1000 != (int)debt) {
debt = (int)debt / 1000 * 1000 + 1000;
}
}
cout << debt << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, i, j;
int debt = 100000;
cin >> n;
for (i = 0; i < n; i++) {
debt = (double)debt * 1.05;
if ((int)debt / 1000 * 1000 != (int)debt) {
debt = (int)debt / 1000 * 1000 + 1000;
}
}
cout << debt << endl;
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 10,649 | 10,650 | u256874901 | cpp |
p00007 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
int week, fraction;
cin >> week;
double debt = 100000;
double const rate = 1.05;
for (int i = 0; i < week; i++) {
debt = debt * rate;
fraction = (int)debt % 1000;
if (fraction > 0) {
debt = debt + 1000 - fraction;
... | #include <iostream>
#include <math.h>
using namespace std;
int main() {
int week, fraction;
cin >> week;
double debt = 100000;
double const rate = 1.05;
for (int i = 0; i < week; i++) {
debt = debt * rate;
fraction = (int)debt % 1000;
if (fraction > 0) {
debt = debt + 1000 - fraction;
... | [
"type_conversion.add"
] | 10,652 | 10,653 | u208108220 | cpp |
p00007 | #include <iostream>
using namespace std;
const double BORROWING_AMOUNT = 100000;
int main() {
int n;
cin >> n;
double value = BORROWING_AMOUNT;
for (int i = 1; i <= n; ++i) {
value += value * 0.05;
int mod = (int)value % 1000;
if (mod > 0) {
value += 1000 - mod;
}
}
cout << value <<... | #include <iostream>
using namespace std;
const double BORROWING_AMOUNT = 100000;
int main() {
int n;
cin >> n;
double value = BORROWING_AMOUNT;
for (int i = 1; i <= n; ++i) {
value += value * 0.05;
int mod = (int)value % 1000;
if (mod > 0) {
value += 1000 - mod;
}
}
cout << (int)val... | [
"type_conversion.add"
] | 10,664 | 10,665 | u379744035 | cpp |
p00007 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m... | [] | 10,666 | 10,667 | u017136598 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int debt = 100000;
for (int i = 0; i < n; ++i) {
debt *= 1.05;
if (debt % 1000 > 0)
debt += 1000;
debt /= 1000, debt *= 1000;
cout << debt << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int debt = 100000;
for (int i = 0; i < n; ++i) {
debt *= 1.05;
if (debt % 1000 > 0)
debt += 1000;
debt /= 1000, debt *= 1000;
}
cout << debt << endl;
return 0;
} | [] | 10,668 | 10,669 | u980996039 | cpp |
p00007 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
double v = 100000;
double r;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
v += v * 0.05;
r = fmod(v, 1000.0);
if (r != 0) {
v += (1000 - r);
}
}
cout << v << endl;
return 0;
} | #include <iostream>
#include <math.h>
using namespace std;
int main() {
double v = 100000;
double r;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
v += v * 0.05;
r = fmod(v, 1000.0);
if (r != 0) {
v += (1000 - r);
}
}
n = v;
cout << n << endl;
return 0;
} | [
"assignment.add",
"identifier.change",
"io.output.change"
] | 10,676 | 10,677 | u683997870 | cpp |
p00007 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double n;
cin >> n;
double ret = 100000;
for (int i = 0; i < n; i++) {
ret *= 1.05;
ret /= 1000;
ret = ceil(ret) * 1000;
}
cout << ret << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
double n;
cin >> n;
double ret = 100000;
for (int i = 0; i < n; i++) {
ret *= 1.05;
ret /= 1000;
ret = ceil(ret) * 1000;
}
cout << (int)ret << endl;
return 0;
} | [
"type_conversion.add"
] | 10,678 | 10,679 | u155634813 | cpp |
p00007 | #include <algorithm>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int price = 100000;
for (int i = 0; i < n; i++) {
price *= 1.05;
}
if (price % 1000 != 0)
price = price - (price % 1000) + 1000;
cout << price << endl;
} | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int price = 100000;
for (int i = 0; i < n; i++) {
price *= 1.05;
if (price % 1000 != 0)
price = price - (price % 1000) + 1000;
}
cout << price << endl;
} | [] | 10,680 | 10,681 | u403618837 | cpp |
p00007 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n;
double m = 100;
cin >> n;
while (n--) {
m = ceil(m * 1.05);
}
cout << m * 1000 << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, m = 100;
cin >> n;
while (n--) {
m = ceil(m * 1.05);
}
cout << m * 1000 << endl;
return 0;
} | [] | 10,682 | 10,683 | u327778409 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
double money = 100000;
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
//???????????????
money *= 1.05;
// 1000??????????????°?????????
double miman = money - ((int)(money * 0.001)) * 1000.0;
if (miman > 0) {
money = money - mi... | #include <iostream>
using namespace std;
int main() {
double money = 100000;
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
//???????????????
money *= 1.05;
// 1000??????????????°?????????
double miman = money - ((int)(money * 0.001)) * 1000.0;
if (miman > 0) {
money = money - mi... | [
"type_conversion.add"
] | 10,684 | 10,685 | u264049096 | cpp |
p00007 | #include <stdio.h>
int main() {
int i, n;
int sum = 100000;
scanf("%d", &n);
for (i = 0; i < n; i++) {
sum = sum * 1.05;
}
if (sum % 1000 != 0) {
sum = sum / 1000;
sum = (sum + 1) * 1000;
}
printf("%d\n", sum);
return 0;
} | #include <stdio.h>
int main() {
int i, n;
int sum = 100000;
scanf("%d", &n);
for (i = 0; i < n; i++) {
sum = sum * 1.05;
if (sum % 1000 != 0) {
sum = sum / 1000;
sum = (sum + 1) * 1000;
}
}
printf("%d\n", sum);
return 0;
} | [] | 10,686 | 10,687 | u071648444 | cpp |
p00007 | #include <iostream>
using namespace std;
int round(double num);
int main() {
int n = 100;
int w;
cin >> w;
for (int i = 0; i < w; i++) {
n = round(n * 1.05);
}
cout << n << endl;
return 0;
}
int round(double n) {
int m = n;
if (n > m)
return m + 1;
if (n == m)
return m;
} | #include <iostream>
using namespace std;
int round(double num);
int main() {
int n = 100;
int w;
cin >> w;
for (int i = 0; i < w; i++) {
n = round(n * 1.05);
}
cout << n * 1000 << endl;
return 0;
}
int round(double n) {
int m = n;
if (n > m)
return m + 1;
if (n == m)
return m;
} | [
"expression.operation.binary.add"
] | 10,690 | 10,691 | u866201769 | cpp |
p00007 | #include <iostream>
using namespace std;
int StartDebt = 100000;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
StartDebt *= 1.05;
}
if (StartDebt % 10000 != 0) {
StartDebt = 10000 * (StartDebt / 10000 + 1);
}
cout << StartDebt << endl;
return 0;
} | #include <iostream>
using namespace std;
int StartDebt = 100000;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
StartDebt *= 1.05;
if (StartDebt % 1000 != 0) {
StartDebt = 1000 * (StartDebt / 1000 + 1);
}
}
cout << StartDebt << endl;
return 0;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.change"
] | 10,692 | 10,693 | u050511799 | cpp |
p00007 | #include <cmath>
#include <iostream>
using namespace std;
int RoundUp(int Integer, int Power) {
int Place = pow(10, Power);
return Place * ceil(Integer / Place);
}
int main() {
int Debt = 100000;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
Debt = RoundUp(
1.05 * Debt,
3); //?????¬??... | #include <cmath>
#include <iostream>
using namespace std;
int RoundUp(int Integer, int Power) {
double Place = pow(10, Power);
return Place * ceil(Integer / Place);
}
int main() {
int Debt = 100000;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
Debt = RoundUp(
1.05 * Debt,
3); //?????... | [
"variable_declaration.type.primitive.change"
] | 10,694 | 10,695 | u050511799 | cpp |
p00007 | //
// main.cpp
// CppTest
//
// Created by Ryu on 2017/02/08.
// Copyright ?? 2017??´ Ryu. All rights reserved.
//
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
// insert code here...
cin.tie(0);
ios::sync_with_stdio... | //
// main.cpp
// CppTest
//
// Created by Ryu on 2017/02/08.
// Copyright ?? 2017??´ Ryu. All rights reserved.
//
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
// insert code here...
cin.tie(0);
ios::sync_with_stdio... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 10,696 | 10,697 | u636445019 | cpp |
p00007 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios ::sync_with_stdio(false);
int n;
cin >> n;
int t = 100000;
while (n--) {
t = t + t / 20;
int r = t % 1000;
t = t - r + (r >= 500 ? 1000 : 0);
}
cout << t << '\n';
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
ios ::sync_with_stdio(false);
int n;
cin >> n;
int t = 100000;
while (n--) {
t = t + t / 20;
int r = t % 1000;
t = t - r + (r > 0 ? 1000 : 0);
}
cout << t << '\n';
return 0;
} | [] | 10,699 | 10,700 | u296631814 | cpp |
p00007 | #include <iostream>
int main(void) {
int n;
std::cin >> n;
int cost = 100000;
double cost_temp;
for (int i = 0; i < 5; i++) {
cost_temp = cost * 1.05;
cost = cost_temp;
if (cost % 1000 != 0) {
cost += 1000;
}
cost = (cost / 1000) * 1000;
}
std::cout << cost << std::endl;
ret... | #include <iostream>
int main(void) {
int n;
std::cin >> n;
int cost = 100000;
double cost_temp;
for (int i = 0; i < n; i++) {
cost_temp = cost * 1.05;
cost = cost_temp;
if (cost % 1000 != 0) {
cost += 1000;
}
cost = (cost / 1000) * 1000;
}
std::cout << cost << std::endl;
ret... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 10,703 | 10,704 | u910664394 | cpp |
p00007 | #include <cstdio>
#include <cstdlib>
int main() {
int n;
scanf("%d", &n);
int ans = 100000;
for (int i = 0; i < n; i++) {
ans += 100000 * 0.05;
if (ans % 1000 > 0)
ans = ans - (ans % 1000) + 1000;
}
printf("%d\n", ans);
return 0;
} | #include <cstdio>
#include <cstdlib>
int main() {
int n;
scanf("%d", &n);
int ans = 100000;
for (int i = 0; i < n; i++) {
ans += (double)ans * 0.05;
if (ans % 1000 > 0)
ans = ans - (ans % 1000) + 1000;
}
printf("%d\n", ans);
return 0;
} | [
"expression.operation.binary.change"
] | 10,710 | 10,711 | u700746786 | cpp |
p00007 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int remaind = 10;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
remaind = (int)ceil(remaind * 1.05);
}
cout << remaind * 10000 << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int remaind = 100;
int n;
cin >> n;
for (int i = 0; i < n; i++) {
remaind = (int)ceil(remaind * 1.05);
}
cout << remaind * 1000 << endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"io.output.change"
] | 10,712 | 10,713 | u657228330 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int a = 100000, b = 0, t = 0;
cin >> t;
// if(t==0)cout<<a<<endl;
// else if(t<=100){
for (int k = 1; k <= t; k++) {
b = a * 1.05;
b = (b + 900) / 1000 * 1000;
a = b;
}
cout << a << endl;
//}
} | #include <iostream>
using namespace std;
int main() {
int a = 100000, b = 0, t;
cin >> t;
for (int k = 0; k < t; k++) {
b = a * 1.05;
b = (b + 999) / 1000 * 1000;
a = b;
}
cout << a << endl;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 10,718 | 10,717 | u586448184 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n, s = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
s *= 0.05;
if (s % 1000 != 0) {
s /= 1000;
s *= 1000;
s += 1000;
}
}
cout << s << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, s = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
s *= 1.05;
if (s % 1000 != 0) {
s /= 1000;
s *= 1000;
s += 1000;
}
}
cout << s << endl;
cin >> n;
return 0;
} | [
"literal.number.change",
"assignment.value.change"
] | 10,724 | 10,725 | u765942285 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int d = 100000;
int n;
cin >> n;
while (--n > 0) {
d *= 1.05;
if (d % 1000) {
d = (d / 1000 + 1) * 1000;
}
}
cout << d << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int d = 100000;
int n;
cin >> n;
while (n-- > 0) {
d *= 1.05;
if (d % 1000) {
d = (d / 1000 + 1) * 1000;
}
}
cout << d << endl;
return 0;
}
| [
"control_flow.loop.condition.change"
] | 10,731 | 10,732 | u003262124 | cpp |
p00007 | #include <iostream>
#include <math.h>
using namespace std;
int main() {
int n;
int a = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
a *= 1.05;
if (a % 100 != 0) {
a = (a / 1000 + 1) * 1000;
}
}
cout << a << endl;
}
| #include <iostream>
#include <math.h>
using namespace std;
int main() {
int n;
int a = 100000;
cin >> n;
for (int i = 0; i < n; i++) {
a *= 1.05;
if (a % 1000 != 0) {
a = (a / 1000 + 1) * 1000;
}
}
cout << a << endl;
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 10,736 | 10,737 | u286829185 | cpp |
p00007 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int sum = 100000;
cin >> n;
for (int i = 0; i < n; ++i) {
sum = sum + sum * 0.05;
if (sum % 10000 != 0) {
sum = sum / 10000;
sum = sum + 1;
sum = sum * 10000;
}
}
cout << sum << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int sum = 100000;
cin >> n;
for (int i = 0; i < n; ++i) {
sum = sum + sum * 0.05;
if (sum % 1000 != 0) {
sum = sum / 1000;
sum = sum + 1;
sum = sum * 1000;
}
}
cout << sum << endl;
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.change"
] | 10,738 | 10,739 | u745360181 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int cur = 100000;
for (int i = 0; i < n; i++) {
cur = 1.05 * cur;
cur = cur / 1000 * 1000;
}
cout << cur << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int cur = 100000;
for (int i = 0; i < n; i++) {
cur = 1.05 * cur;
cur = (cur + 999) / 1000 * 1000;
}
cout << cur << endl;
}
} | [] | 10,768 | 10,769 | u032250180 | cpp |
p00007 | #include <iostream>
using namespace std;
main() {
int n;
double money = 100000;
int i;
cin >> n;
for (i = 0; i < n; i++) {
money *= 1.05;
money /= 1000;
money += 0.9;
money = (int)money;
money *= 1000;
}
cout << (int)money << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int n;
double money = 100000;
int i;
cin >> n;
for (i = 0; i < n; i++) {
money *= 1.05;
money /= 1000;
money += 0.999;
money = (int)money;
money *= 1000;
}
cout << (int)money << endl;
return 0;
} | [
"function.parameters.parameter.add",
"literal.number.change",
"assignment.value.change"
] | 10,773 | 10,774 | u125634664 | cpp |
p00007 | #include <iostream>
using namespace std;
int main(void) {
int n;
double money = 100000;
int i;
cin >> n;
for (i = 0; i < n; i++) {
money *= 1.05;
money /= 1000;
money += 0.9;
money = (int)money;
money *= 1000;
}
cout << (int)money << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int n;
double money = 100000;
int i;
cin >> n;
for (i = 0; i < n; i++) {
money *= 1.05;
money /= 1000;
money += 0.999;
money = (int)money;
money *= 1000;
}
cout << (int)money << endl;
return 0;
} | [
"literal.number.change",
"assignment.value.change"
] | 10,775 | 10,774 | u125634664 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n, M, m;
M = 100;
cin >> n;
for (int i = 0; i < n; i++) {
m = (M + 19) / 20;
M += m;
}
cout << M;
} | #include <iostream>
using namespace std;
int main() {
int n, M, m;
M = 100;
cin >> n;
for (int i = 0; i < n; i++) {
m = (M + 19) / 20;
M += m;
}
cout << M * 1000 << endl;
} | [
"io.output.change"
] | 10,778 | 10,779 | u863381669 | cpp |
p00007 | #include <iostream>
using namespace std;
int main() {
int n, M, m;
M = 100;
cin >> n;
for (int i = 0; i < n; i++) {
m = (M + 9) / 20;
M += m;
}
cout << M * 1000;
cin >> m;
} | #include <iostream>
using namespace std;
int main() {
int n, M, m;
M = 100;
cin >> n;
for (int i = 0; i < n; i++) {
m = (M + 19) / 20;
M += m;
}
cout << M * 1000 << endl;
} | [
"literal.number.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 10,781 | 10,779 | u863381669 | cpp |
p00007 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int m = 100000, n;
cin >> n;
for (int i = 0; i < n; i++) {
m *= 1.05;
if (m % 100 != 0) {
m /= 1000;
m++;
... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
unsigned long m = 100000, n;
cin >> n;
for (int i = 0; i < n; i++) {
m *= 1.05;
if (m % 1000 != 0) {
m /= 1000;
... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 10,787 | 10,788 | u896370991 | cpp |
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 / 1000 + 0.9) * 1000;
}
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,795 | 10,796 | u419407022 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.