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 |
|---|---|---|---|---|---|---|---|
p04011 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
int ans = 0;
if (n < k)
ans += n * x;
if (k <= n)
ans += k * x + (k - n) * y;
cout << ans << endl;
} | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
int ans = 0;
if (n < k)
ans += n * x;
if (k <= n)
ans += k * x + (n - k) * y;
cout << ans << endl;
} | [
"expression.operation.binary.remove",
"assignment.change"
] | 1,508,539 | 1,508,540 | u089885969 | cpp |
p04011 | #include <cstdio>
using namespace std;
int main() {
int N, K, X, Y;
scanf("%d %d %d %d", &N, &K, &X, &Y);
if (K < N) {
printf("%d\n", X * N + (N - K) * Y);
} else {
printf("%d\n", X * N);
}
return 0;
} | #include <cstdio>
using namespace std;
int main() {
int N, K, X, Y;
scanf("%d %d %d %d", &N, &K, &X, &Y);
if (K < N) {
printf("%d\n", X * K + (N - K) * Y);
} else {
printf("%d\n", X * N);
}
return 0;
} | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,508,545 | 1,508,546 | u341347211 | cpp |
p04011 | #include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
signed main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << max(a, b) * c + max(a - b, 0ll) * d << endl;
}
| #include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
signed main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << min(a, b) * c + max(a - b, 0ll) * d << endl;
}
| [
"misc.opposites",
"identifier.change",
"call.function.change",
"io.output.change"
] | 1,508,550 | 1,508,551 | u073057072 | cpp |
p04011 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <set>
#include <vector>
typedef long l;
typedef long long ll;
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K)
cout << K * X + (N - K) * Y << endl;
else if (N <= K)
... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <set>
#include <vector>
typedef long l;
typedef long long ll;
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K)
cout << K * X + (N - K) * Y << endl;
else if (N <= K)
... | [
"identifier.change",
"io.output.change"
] | 1,508,577 | 1,508,578 | u546943614 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << x * k + y * (n - k);
else
cout << x * k;
cout << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << x * k + y * (n - k);
else
cout << x * n;
cout << endl;
} | [
"identifier.change",
"io.output.change"
] | 1,508,585 | 1,508,586 | u676029460 | cpp |
p04011 | #include <algorithm>
#include <climits>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#define MAX 1000000007
using namespace std;
#define ll long long
#define dbg if (0)
#define ISRANGE(val, lo, hi) ((lo <= val) && (val < hi))
int main() {
ll ans, n, k, x, y;
cin >> n >> k >> x >> y;
a... | #include <algorithm>
#include <climits>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#define MAX 1000000007
using namespace std;
#define ll long long
#define dbg if (0)
#define ISRANGE(val, lo, hi) ((lo <= val) && (val < hi))
int main() {
ll ans, n, k, x, y;
cin >> n >> k >> x >> y;
a... | [
"expression.operation.binary.remove",
"assignment.change"
] | 1,508,587 | 1,508,588 | u828752458 | cpp |
p04011 | #define _USE_NATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <numer... | #define _USE_NATH_DEFINES
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <numer... | [
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 1,508,605 | 1,508,606 | u419390395 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
long int n, k, x, y;
cin >> n >> k >> x >> y;
if (n < k) {
cout << k * n << '\n';
} else {
cout << k * x + (n - k) * y << '\n';
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
long int n, k, x, y;
cin >> n >> k >> x >> y;
if (n < k) {
cout << n * x << '\n';
} else {
cout << k * x + (n - k) * y << '\n';
}
return 0;
} | [
"expression.operation.binary.remove"
] | 1,508,607 | 1,508,608 | u227379863 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, a, b) for (i = a; i < b; i++)
#define rep(i, n) REP(i, 0, n)
int main() {
int i, j, k, n, m, l, f;
int x, y;
cin >> n >> k >> x >> y;
cout << x * (max(n, k)) + y * (max(0, n - k)) << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define REP(i, a, b) for (i = a; i < b; i++)
#define rep(i, n) REP(i, 0, n)
int main() {
int i, j, k, n, m, l, f;
int x, y;
cin >> n >> k >> x >> y;
cout << x * (min(n, k)) + y * (max(0, n - k)) << endl;
} | [
"misc.opposites",
"io.output.change"
] | 1,508,609 | 1,508,610 | u854612287 | cpp |
p04011 | #include <stdio.h>
int main(void) {
int n, k, x, y;
scanf("%d%d%d%d", &n, &k, &x, &y);
printf("%d\n", (n > k) ? k * x + (n - k) * y : k * x);
return 0;
} | #include <stdio.h>
int main(void) {
int n, k, x, y;
scanf("%d%d%d%d", &n, &k, &x, &y);
printf("%d\n", (n > k) ? k * x + (n - k) * y : n * x);
return 0;
} | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,508,613 | 1,508,614 | u088895504 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
int cost = N * X + max(0, N - K) * Y;
cout << cost << endl;
}
| #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
int cost = min(N, K) * X + max(0, N - K) * Y;
cout << cost << endl;
}
| [
"call.add",
"call.arguments.add"
] | 1,508,617 | 1,508,618 | u047102107 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
int cost = K * X + max(0, N - K) * Y;
cout << cost << endl;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
int cost = min(N, K) * X + max(0, N - K) * Y;
cout << cost << endl;
}
| [
"call.add",
"call.arguments.change"
] | 1,508,619 | 1,508,618 | u047102107 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= x) {
cout << n * x << endl;
} else {
cout << k * x + (n - k) * y << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k) {
cout << n * x << endl;
} else {
cout << k * x + (n - k) * y << endl;
}
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,508,623 | 1,508,624 | u488967980 | cpp |
p04011 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
ll N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N >= K)
cout << (K * X) + ((N - K) * Y) << endl;
else
cout << N * K << endl;
} | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
ll N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N >= K)
cout << (K * X) + ((N - K) * Y) << endl;
else
cout << N * X << endl;
}
| [
"identifier.change",
"io.output.change"
] | 1,508,625 | 1,508,626 | u003019316 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for (int64 i = 0; i < (n); i++)
#define FOR(i, a, b) for (int64 i = (a); i < (b); i++)
#define all(x) x.begin(), x.end()
#define fs first
#define sc second
using int32 = int_fast32_t;
using uint32 = uint_... | #include <bits/stdc++.h>
using namespace std;
#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for (int64 i = 0; i < (n); i++)
#define FOR(i, a, b) for (int64 i = (a); i < (b); i++)
#define all(x) x.begin(), x.end()
#define fs first
#define sc second
using int32 = int_fast32_t;
using uint32 = uint_... | [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 1,508,627 | 1,508,628 | u360980679 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for (int64 i = 0; i < (n); i++)
#define FOR(i, a, b) for (int64 i = (a); i < (b); i++)
#define all(x) x.begin(), x.end()
#define fs first
#define sc second
using int32 = int_fast32_t;
using uint32 = uint_... | #include <bits/stdc++.h>
using namespace std;
#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for (int64 i = 0; i < (n); i++)
#define FOR(i, a, b) for (int64 i = (a); i < (b); i++)
#define all(x) x.begin(), x.end()
#define fs first
#define sc second
using int32 = int_fast32_t;
using uint32 = uint_... | [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 1,508,629 | 1,508,628 | u360980679 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << x * k << endl;
else
cout << (x * k) + (n - k) * y << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << x * n << endl;
else
cout << (x * k) + (n - k) * y << endl;
return 0;
} | [
"identifier.change",
"io.output.change"
] | 1,508,630 | 1,508,631 | u759417460 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << n * k << endl;
else
cout << (x * k) + (n - k) * y << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << x * n << endl;
else
cout << (x * k) + (n - k) * y << endl;
return 0;
} | [
"identifier.change",
"io.output.change"
] | 1,508,632 | 1,508,631 | u759417460 | cpp |
p04011 | #include <algorithm>
#include <array>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#... | #include <algorithm>
#include <array>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#... | [
"identifier.change",
"io.output.change"
] | 1,508,666 | 1,508,667 | u303059352 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << k * x + (n - k) * y << endl;
} else {
cout << k * x << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << n * x << endl;
} | [
"identifier.change",
"io.output.change"
] | 1,508,670 | 1,508,671 | u424333771 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << k * x << endl;
}
| #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << n * x << endl;
} | [
"identifier.change",
"io.output.change"
] | 1,508,672 | 1,508,671 | u424333771 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N <= K) {
cout << N * X;
} else {
cout << N * X + (N - K) * Y;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N <= K) {
cout << N * X;
} else {
cout << K * X + (N - K) * Y;
}
return 0;
} | [
"identifier.change",
"io.output.change"
] | 1,508,688 | 1,508,689 | u385617244 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N <= K) {
cout << N * K;
} else {
cout << N * K + (N - K) * Y;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N <= K) {
cout << N * X;
} else {
cout << K * X + (N - K) * Y;
}
return 0;
} | [
"identifier.change",
"io.output.change",
"expression.operation.binary.remove"
] | 1,508,690 | 1,508,689 | u385617244 | cpp |
p04011 | #include "bits/stdc++.h"
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K) {
cout << K * X + Y * (N - K) << endl;
return 0;
} else
cout << K * X << endl;
} | #include "bits/stdc++.h"
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K) {
cout << K * X + Y * (N - K) << endl;
return 0;
} else
cout << N * X << endl;
} | [
"identifier.change",
"io.output.change"
] | 1,508,698 | 1,508,699 | u711340028 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K)
cout << K * X + (N - K) * Y << endl;
else
cout << K * X << endl;
}
| #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K)
cout << K * X + (N - K) * Y << endl;
else
cout << N * X << endl;
}
| [
"identifier.change",
"io.output.change"
] | 1,508,705 | 1,508,706 | u277806686 | cpp |
p04011 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int N, n, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K) {
n = N - K;
N = K;
} else {
n = 0;
N = K;
}
cout << N * X + n * Y << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int N, n, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K) {
n = N - K;
N = K;
} else {
n = 0;
}
cout << N * X + n * Y << endl;
return 0;
} | [] | 1,508,713 | 1,508,714 | u581348871 | cpp |
p04011 | #include <iostream>
int main() {
int N, K, Y, X, s;
std::cin >> N;
std::cin >> K;
std::cin >> X;
std::cin >> Y;
if (N <= K) {
s = N * X;
} else {
s = N * X + (N - K) * Y;
}
std::cout << s << std::endl;
} | #include <iostream>
int main() {
int N, K, Y, X, s;
std::cin >> N;
std::cin >> K;
std::cin >> X;
std::cin >> Y;
if (N <= K) {
s = N * X;
} else {
s = K * X + (N - K) * Y;
}
std::cout << s << std::endl;
} | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,717 | 1,508,718 | u177399681 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
cout << max(n, k) * x + min(0, n - k) * y << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
cout << min(n, k) * x + max(0, n - k) * y << endl;
} | [
"misc.opposites",
"identifier.change",
"call.function.change",
"io.output.change"
] | 1,508,727 | 1,508,728 | u572077985 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n;
cin >> k;
cin >> x;
cin >> y;
int ans;
if (k < n) {
ans = n * x;
} else {
ans = k * x + (n - k) * y;
}
cout << ans << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n;
cin >> k;
cin >> x;
cin >> y;
int ans;
if (n <= k) {
ans = n * x;
} else {
ans = k * x + (n - k) * y;
}
cout << ans << endl;
return 0;
}
| [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 1,508,729 | 1,508,730 | u883048396 | cpp |
p04011 | #include <stdio.h>
int main(void) {
int N, K, X, Y;
int cost;
scanf("%d", &N);
scanf("%d", &K);
scanf("%d", &X);
scanf("%d", &Y);
if (N > K) {
cost = K * X + (N - K) * Y;
} else {
cost = K * X;
}
printf("%d\n", cost);
return 0;
}
| #include <stdio.h>
int main(void) {
int N, K, X, Y;
int cost;
scanf("%d", &N);
scanf("%d", &K);
scanf("%d", &X);
scanf("%d", &Y);
if (N > K) {
cost = K * X + (N - K) * Y;
} else {
cost = N * X;
}
printf("%d\n", cost);
return 0;
}
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,731 | 1,508,732 | u516922881 | cpp |
p04011 | #include <stdio.h>
int main(void) {
int N, K, X, Y;
int cost;
scanf("%d", &N);
scanf("%d", &K);
scanf("%d", &X);
scanf("%d", &Y);
if (N > K) {
cost = K * X + (N - K) * Y;
} else {
cost = K * X;
}
printf("%d", cost);
return 0;
} | #include <stdio.h>
int main(void) {
int N, K, X, Y;
int cost;
scanf("%d", &N);
scanf("%d", &K);
scanf("%d", &X);
scanf("%d", &Y);
if (N > K) {
cost = K * X + (N - K) * Y;
} else {
cost = N * X;
}
printf("%d\n", cost);
return 0;
}
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 1,508,733 | 1,508,732 | u516922881 | cpp |
p04011 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define N (1000000000 + 7)
in... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define N (1000000000 + 7)
in... | [
"identifier.change",
"io.output.change"
] | 1,508,736 | 1,508,737 | u744305661 | cpp |
p04011 | #include <algorithm>
#include <bits/stdc++.h>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <utility>
#include <vector>
... | #include <algorithm>
#include <bits/stdc++.h>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <utility>
#include <vector>
... | [
"identifier.change",
"io.output.change"
] | 1,508,738 | 1,508,739 | u789417951 | cpp |
p04011 | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << k * x << endl;
} | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << n * x << endl;
}
| [
"identifier.change",
"io.output.change"
] | 1,508,742 | 1,508,743 | u633967774 | cpp |
p04011 | #include "bits/stdc++.h"
using namespace std;
int main(void) {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n >= k) {
cout << k * x + (n - k) * y << endl;
} else {
cout << k * x << endl;
}
}
| #include "bits/stdc++.h"
using namespace std;
int main(void) {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << k * x + (n - k) * y << endl;
} else {
cout << n * x << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 1,508,752 | 1,508,753 | u637515289 | cpp |
p04011 | #include "bits/stdc++.h"
using namespace std;
int main(void) {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << k * x + (n - k) * y << endl;
} else {
cout << k * x << endl;
}
}
| #include "bits/stdc++.h"
using namespace std;
int main(void) {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << k * x + (n - k) * y << endl;
} else {
cout << n * x << endl;
}
}
| [
"identifier.change",
"io.output.change"
] | 1,508,754 | 1,508,753 | u637515289 | cpp |
p04011 | #include "bits/stdc++.h"
using namespace std;
int main(void) {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n < k) {
cout << k * x + (n - k) * y << endl;
} else {
cout << k * x << endl;
}
}
| #include "bits/stdc++.h"
using namespace std;
int main(void) {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << k * x + (n - k) * y << endl;
} else {
cout << n * x << endl;
}
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 1,508,755 | 1,508,753 | u637515289 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a > b) {
cout << b * c + (a - b) * d << endl;
} else {
cout << b * c << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a > b) {
cout << b * c + (a - b) * d << endl;
} else {
cout << a * c << endl;
}
return 0;
} | [
"identifier.change",
"io.output.change"
] | 1,508,756 | 1,508,757 | u942393279 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y, ans;
cin >> N >> K >> X >> Y;
if (N > K)
cout << (N - K + 1) * Y + K * X << endl;
else
cout << N * X << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y, ans;
cin >> N >> K >> X >> Y;
if (N > K)
cout << (N - K) * Y + K * X << endl;
else
cout << N * X << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 1,508,760 | 1,508,761 | u119345557 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y, ans;
cin >> N >> K >> X >> Y;
if (N > K)
cout << (N - K) * Y + K * X << endl;
else
cout << (K - N) * X << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y, ans;
cin >> N >> K >> X >> Y;
if (N > K)
cout << (N - K) * Y + K * X << endl;
else
cout << N * X << endl;
return 0;
} | [] | 1,508,762 | 1,508,761 | u119345557 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N < K) {
cout << N * X << "\n";
}
cout << (K * X) + (N - K) * Y << "\n";
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N <= K) {
cout << N * X << "\n";
} else {
cout << (K * X) + (N - K) * Y << "\n";
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else.add"
] | 1,508,765 | 1,508,766 | u566640130 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << k * x << endl;
}
| #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << n * x << endl;
}
| [
"identifier.change",
"io.output.change"
] | 1,508,767 | 1,508,768 | u843842420 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (k <= n)
cout << (n * x) << endl;
else
cout << (k * x) + y * (n - k) << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << (n * x) << endl;
else
cout << (k * x) + y * (n - k) << endl;
return 0;
}
| [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 1,508,769 | 1,508,770 | u174404613 | cpp |
p04011 | #include <algorithm>
#include <deque>
#include <iostream>
#include <map>
#include <string>
using namespace std;
#define REP(i, b, e) for (int i = (int)b; i < (int)e; i++)
#define Rep(i, n) REP(i, 0, n)
#define rep(i, n) REP(i, 1, n + 1)
typedef long long ll;
int N, K, X, Y;
int main() {
cin >> N >> K >> X >> Y;
ll... | #include <algorithm>
#include <deque>
#include <iostream>
#include <map>
#include <string>
using namespace std;
#define REP(i, b, e) for (int i = (int)b; i < (int)e; i++)
#define Rep(i, n) REP(i, 0, n)
#define rep(i, n) REP(i, 1, n + 1)
typedef long long ll;
int N, K, X, Y;
int main() {
cin >> N >> K >> X >> Y;
ll... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,787 | 1,508,788 | u297045966 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
long n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << n * x << endl;
else
cout << n * x + (n - k) * y;
} | #include <iostream>
using namespace std;
int main() {
long n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << n * x << endl;
else
cout << k * x + (n - k) * y;
} | [
"identifier.change",
"io.output.change"
] | 1,508,789 | 1,508,790 | u480863807 | cpp |
p04011 | #include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
int n, k, x, y;
cin >> n;
cin >> k;
cin >> x;
cin >> y;
if (n - k > 0) {
cout << k * x + (n - k) * y << endl;
} else {
cout << k * x << endl;
}
}
| #include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
int n, k, x, y;
cin >> n;
cin >> k;
cin >> x;
cin >> y;
if (n - k > 0) {
cout << k * x + (n - k) * y << endl;
} else {
cout << n * x << endl;
}
}
| [
"identifier.change",
"io.output.change"
] | 1,508,791 | 1,508,792 | u355798276 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int n, k, x, y;
cin >> n >> k >> x >> y;
cout << (n < k ? k * x + (n - k) * y : n * x);
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int n, k, x, y;
cin >> n >> k >> x >> y;
cout << (n > k ? k * x + (n - k) * y : n * x);
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"io.output.change"
] | 1,508,795 | 1,508,796 | u598382605 | cpp |
p04011 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (k <= n)
cout << n * x << endl;
else
cout << (k * x) + ((n - k) * y) << endl;
return 0;
}
| #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (k >= n)
cout << n * x << endl;
else
cout << (k * x) + ((n - k) * y) << endl;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,508,801 | 1,508,802 | u006686215 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long N, K;
cin >> N >> K;
long long X, Y;
cin >> X >> Y;
cout << X * (min(N, K) + max(0LL, N - K) * Y) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long N, K;
cin >> N >> K;
long long X, Y;
cin >> X >> Y;
cout << (min(N, K) * X + max(0LL, N - K) * Y) << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 1,508,803 | 1,508,804 | u809665051 | cpp |
p04011 | #include <iostream>
using namespace std;
int main(void) {
int N, K, X, Y, sum = 0;
cin >> N >> K >> X >> Y;
if (K <= N) {
sum = N * X;
} else {
sum = K * X + (N - K) * Y;
}
cout << sum << endl;
} | #include <iostream>
using namespace std;
int main(void) {
int N, K, X, Y, sum = 0;
cin >> N >> K >> X >> Y;
if (K > N) {
sum = N * X;
} else {
sum = K * X + (N - K) * Y;
}
cout << sum << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,508,809 | 1,508,810 | u500026208 | cpp |
p04011 | #include <iostream>
using namespace std;
int main(void) {
int N, K, X, Y, sum = 0;
cin >> N >> K >> X >> Y;
if (K <= N) {
sum = K * X;
} else {
sum = K * X + (N - K) * Y;
}
cout << sum << endl;
} | #include <iostream>
using namespace std;
int main(void) {
int N, K, X, Y, sum = 0;
cin >> N >> K >> X >> Y;
if (K > N) {
sum = N * X;
} else {
sum = K * X + (N - K) * Y;
}
cout << sum << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,811 | 1,508,810 | u500026208 | cpp |
p04011 | #include <iostream>
using namespace std;
int main(void) {
int N, K, X, Y, sum = 0;
cin >> N >> K >> X >> Y;
if (N - K <= 0) {
sum = K * X;
} else {
sum = K * X + (N - K) * Y;
}
cout << sum << endl;
} | #include <iostream>
using namespace std;
int main(void) {
int N, K, X, Y, sum = 0;
cin >> N >> K >> X >> Y;
if (K > N) {
sum = N * X;
} else {
sum = K * X + (N - K) * Y;
}
cout << sum << endl;
} | [
"expression.operation.binary.remove",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,812 | 1,508,810 | u500026208 | cpp |
p04011 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << k * x << endl;
else
cout << ((k * x) + (n - k) * y) << endl;
return 0;
} | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << n * x << endl;
else
cout << ((k * x) + (n - k) * y) << endl;
return 0;
} | [
"identifier.change",
"io.output.change"
] | 1,508,813 | 1,508,814 | u166736517 | cpp |
p04011 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n < k)
cout << k * x << endl;
else
cout << ((k * x) + (n - k) * y) << endl;
return 0;
} | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n <= k)
cout << n * x << endl;
else
cout << ((k * x) + (n - k) * y) << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 1,508,815 | 1,508,814 | u166736517 | cpp |
p04011 | #include <iostream>
using namespace std;
int main(void) {
int x, y, n, k;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y;
else
cout << k * x;
cout << endl;
} | #include <iostream>
using namespace std;
int main(void) {
int x, y, n, k;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y;
else
cout << n * x;
cout << endl;
} | [
"identifier.change",
"io.output.change"
] | 1,508,819 | 1,508,820 | u911781487 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
int total = 0;
if (k <= n) {
total = x * k;
} else {
total = (x * k) + (y * (n - k));
}
cout << total << endl;
} | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
int total = 0;
if (k >= n) {
total = x * n;
} else {
total = (x * k) + (y * (n - k));
}
cout << total << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,821 | 1,508,822 | u451417461 | cpp |
p04011 | #include <bits/stdc++.h>
#define o(output) cout << output << endl
using namespace std;
string s, t, u;
int a, b, c, d;
int l[13] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
char A, B, C;
priority_queue<int, vector<int>, greater<int>> small;
int main() {
cin >> a >> B >> c >> d;
if (a <= b)
o(a * c);
else
... | #include <bits/stdc++.h>
#define o(output) cout << output << endl
using namespace std;
string s, t, u;
int a, b, c, d;
int l[13] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
char A, B, C;
priority_queue<int, vector<int>, greater<int>> small;
int main() {
cin >> a >> b >> c >> d;
if (a <= b)
o(a * c);
else
... | [
"identifier.change",
"expression.operation.binary.change",
"call.arguments.change",
"expression.operation.binary.remove"
] | 1,508,827 | 1,508,828 | u130196064 | cpp |
p04011 | #include <iostream>
using namespace std;
using ll = long long;
int main() {
ll N, X, Y, K;
cin >> N >> X >> Y >> K;
ll res = N * X + max(0ll, N - K) * (Y - X);
cout << res << endl;
return 0;
} | #include <iostream>
using namespace std;
using ll = long long;
int main() {
ll N, X, Y, K;
cin >> N >> K >> X >> Y;
ll res = N * X + max(0ll, N - K) * (Y - X);
cout << res << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 1,508,836 | 1,508,837 | u107292917 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << n * x << endl;
} else {
cout << k * x + (n - k) * y << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n < k) {
cout << n * x << endl;
} else {
cout << k * x + (n - k) * y << endl;
}
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,508,847 | 1,508,848 | u405923605 | cpp |
p04011 | #include <iostream>
using namespace std;
int N, K, X, Y;
int main() {
cin >> N >> K >> X >> Y;
if (N <= K)
cout << K * X;
else
cout << K * X + (N - K) * Y;
} | #include <iostream>
using namespace std;
int N, K, X, Y;
int main() {
cin >> N >> K >> X >> Y;
if (N <= K)
cout << N * X;
else
cout << K * X + (N - K) * Y;
} | [
"identifier.change",
"io.output.change"
] | 1,508,849 | 1,508,850 | u228214259 | cpp |
p04011 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << (n * x) + (n - k) * y << endl;
} else {
cout << n * x << endl;
}
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << (k * x) + (n - k) * y << endl;
} else {
cout << n * x << endl;
}
} | [
"identifier.change",
"io.output.change"
] | 1,508,855 | 1,508,856 | u394482932 | cpp |
p04011 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << (k * x) + (n - k) * y << endl;
} else {
cout << k * x << endl;
}
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << (k * x) + (n - k) * y << endl;
} else {
cout << n * x << endl;
}
} | [
"identifier.change",
"io.output.change"
] | 1,508,857 | 1,508,856 | u394482932 | cpp |
p04011 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << k * x + (n - k) * y << endl;
} else {
cout << k * x << endl;
}
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k) {
cout << (k * x) + (n - k) * y << endl;
} else {
cout << n * x << endl;
}
} | [
"identifier.change",
"io.output.change"
] | 1,508,858 | 1,508,856 | u394482932 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K)
cout << K * X + (N - K) * Y;
else
cout << K * X;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K)
cout << K * X + (N - K) * Y;
else
cout << N * X;
}
| [
"identifier.change",
"io.output.change"
] | 1,508,859 | 1,508,860 | u734774089 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (K < N)
cout << K * X + (N - K) * Y;
else
cout << K * X;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N > K)
cout << K * X + (N - K) * Y;
else
cout << N * X;
}
| [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 1,508,861 | 1,508,860 | u734774089 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n < k)
cout << k * x + (n - k) * y << endl;
else
cout << k * x << endl;
} | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n >= k)
cout << k * x + (n - k) * y << endl;
else
cout << n * x << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 1,508,868 | 1,508,869 | u451625046 | cpp |
p04011 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a > b) {
cout << b * c + (a - b) * d << endl;
} else {
cout << b * c << endl;
}
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a > b) {
cout << b * c + (a - b) * d << endl;
} else {
cout << a * c << endl;
}
} | [
"identifier.change",
"io.output.change"
] | 1,508,870 | 1,508,871 | u738475443 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y, output = 0;
cin >> n;
cin >> k;
cin >> x;
cin >> y;
if (n <= k) {
output = n * x;
} else {
output = (n - k + 1) * x;
output += (n - k) * y;
}
cout << output << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, k, x, y, output = 0;
cin >> n;
cin >> k;
cin >> x;
cin >> y;
if (n <= k) {
output = n * x;
} else {
output = k * x;
output += (n - k) * y;
}
cout << output << endl;
return 0;
} | [] | 1,508,872 | 1,508,873 | u939641510 | cpp |
p04011 | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <string.h>
#include <vector>
using namespace std;
const long long INF = 10000000000000LL;
typedef long long ll;
typedef pair<ll, ll> P;
ll N, Ma, Mb, K = 1, C[45];
ll A[45], B[45];
ll... | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <string.h>
#include <vector>
using namespace std;
const long long INF = 10000000000000LL;
typedef long long ll;
typedef pair<ll, ll> P;
ll N, Ma, Mb, K = 1, C[45];
ll A[45], B[45];
ll... | [] | 1,508,876 | 1,508,877 | u770256251 | cpp |
p04011 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#inclu... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#inclu... | [
"identifier.change",
"io.output.change"
] | 1,508,880 | 1,508,881 | u745906650 | cpp |
p04011 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d, ans;
cin >> a >> b >> c >> d;
ans = min(a, b) * c + min(a - b, 0) * d;
cout << ans << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d, ans;
cin >> a >> b >> c >> d;
ans = min(a, b) * c + max(a - b, 0) * d;
cout << ans << endl;
return 0;
}
| [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change",
"expression.operation.binary.change"
] | 1,508,882 | 1,508,883 | u899712094 | cpp |
p04011 | #include <iostream>
int main() {
int day, target, x, y;
std::cin >> day >> target >> x >> y;
if (day < target) {
std::cout << day * x << std::endl;
} else {
std::cout << day * x + (day - target) * y;
}
return 0;
} |
#include <iostream>
int main() {
int day, target, x, y;
std::cin >> day >> target >> x >> y;
if (day < target) {
std::cout << day * x << std::endl;
} else {
std::cout << target * x + (day - target) * y;
}
return 0;
} | [
"identifier.change",
"expression.operation.binary.change"
] | 1,508,891 | 1,508,892 | u210398438 | cpp |
p04011 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define SPEEDY \
cin.tie(0); ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define SPEEDY \
cin.tie(0); ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,508,895 | 1,508,896 | u848736574 | cpp |
p04011 | #include <stdio.h>
int main(void) {
int x, y, n, k, sum;
scanf("%d%d%d%d", &n, &k, &x, &y);
if (n - k < 0)
sum = k * x;
else
sum = k * x + (n - k) * y;
printf("%d\n", sum);
return 0;
}
| #include <stdio.h>
int main(void) {
int x, y, n, k, sum;
scanf("%d%d%d%d", &n, &k, &x, &y);
if (n - k <= 0)
sum = n * x;
else
sum = k * x + (n - k) * y;
printf("%d\n", sum);
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,897 | 1,508,898 | u754664532 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
long long int ans = 0;
cin >> N >> K >> X >> Y;
if (N > K)
ans += (N - K) * Y + K * X;
else
ans = N * K;
cout << ans;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
long long int ans = 0;
cin >> N >> K >> X >> Y;
if (N > K)
ans += (N - K) * Y + K * X;
else
ans = N * X;
cout << ans;
return 0;
} | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,899 | 1,508,900 | u595893956 | cpp |
p04011 | #include <iostream>
#include <string>
using namespace std;
int main() {
int N;
int K;
int X;
int Y;
cin >> N;
cin >> K;
cin >> X;
cin >> Y;
if (N > K) {
cout << K * X + N * Y - K * Y << endl;
} else {
cout << K * X << endl;
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int N;
int K;
int X;
int Y;
cin >> N;
cin >> K;
cin >> X;
cin >> Y;
if (N > K) {
cout << K * X + N * Y - K * Y << endl;
} else {
cout << N * X << endl;
}
} | [
"identifier.change",
"io.output.change"
] | 1,508,901 | 1,508,902 | u576039333 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
cout << x * min(n, k) + y * min(0, n - min(n, k)) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
cout << x * min(n, k) + y * (n - min(n, k)) << endl;
return 0;
} | [
"call.arguments.change"
] | 1,508,903 | 1,508,904 | u996047857 | cpp |
p04011 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
cout << x * min(n, k) + y * min(0, n - min(n, k)) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
cout << x * min(n, k) + y * max(0, n - min(n, k)) << endl;
return 0;
} | [
"misc.opposites",
"identifier.change",
"call.function.change",
"io.output.change"
] | 1,508,903 | 1,508,905 | u996047857 | cpp |
p04011 | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << k * x << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << n * x << endl;
return 0;
} | [
"identifier.change",
"io.output.change"
] | 1,508,908 | 1,508,909 | u737836687 | cpp |
p04011 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n, k, x, y;
cin >> n;
cin >> k;
cin >> x;
cin >> y;
int ans;
if (n <= k)
ans = n * x;
else
ans = n * x + (n - k) * y;
printf("%d\n", ans);
return 0;
} | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int n, k, x, y;
cin >> n;
cin >> k;
cin >> x;
cin >> y;
int ans;
if (n <= k)
ans = n * x;
else
ans = k * x + (n - k) * y;
printf("%d\n", ans);
return 0;
} | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,910 | 1,508,911 | u348670055 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a < b)
cout << c * a << endl;
else
cout << c * a + d * (a - b) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a < b)
cout << c * a << endl;
else
cout << c * b + d * (a - b) << endl;
return 0;
} | [
"identifier.change",
"io.output.change"
] | 1,508,919 | 1,508,920 | u300752229 | cpp |
p04011 | #include <cstdio>
#include <iostream>
#include <string>
int main() {
int n, k, x, y;
scanf("%d%d%d%d", &n, &k, &x, &y);
if (n <= k) {
printf("%d\n", n * x);
} else {
printf("%d\n", n * x + (n - k) * y);
}
} | #include <cstdio>
#include <iostream>
#include <string>
int main() {
int n, k, x, y;
scanf("%d%d%d%d", &n, &k, &x, &y);
if (n <= k) {
printf("%d\n", n * x);
} else {
printf("%d\n", k * x + (n - k) * y);
}
} | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,508,935 | 1,508,936 | u725515700 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N <= K) {
cout << N * X << endl;
} else {
cout << K * X + (K - N) * Y << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N <= K) {
cout << N * X << endl;
} else {
cout << K * X + (N - K) * Y << endl;
}
return 0;
}
| [
"expression.operation.binary.remove"
] | 1,508,939 | 1,508,940 | u516470041 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N < K) {
cout << N * X << endl;
} else {
cout << K * X + (K - N) * Y << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N <= K) {
cout << N * X << endl;
} else {
cout << K * X + (N - K) * Y << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 1,508,941 | 1,508,940 | u516470041 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N < K) {
cout << (N * X) << endl;
} else {
cout << (N * X) + (N - K) * Y << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N < K) {
cout << (N * X) << endl;
} else {
cout << (K * X) + (N - K) * Y << endl;
}
return 0;
}
| [
"identifier.change",
"io.output.change"
] | 1,508,944 | 1,508,945 | u726670418 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N < K) {
cout << (N * X) << endl;
} else {
cout << (N * X) + (K - N) * Y << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N >> K >> X >> Y;
if (N < K) {
cout << (N * X) << endl;
} else {
cout << (K * X) + (N - K) * Y << endl;
}
return 0;
}
| [
"identifier.change",
"io.output.change",
"expression.operation.binary.remove"
] | 1,508,947 | 1,508,945 | u726670418 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
int sum = 0;
if (n - k > 0)
sum = (n - k) * y + k * x;
else
sum = k * x;
cout << sum << endl;
}
| #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
int sum = 0;
if (n - k > 0)
sum = (n - k) * y + k * x;
else
sum = n * x;
cout << sum << endl;
}
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,958 | 1,508,959 | u359440499 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
int sum;
if (n - k > 0)
sum = (n - k) * y + k * x;
else
sum = k * x;
cout << sum << endl;
}
| #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
int sum = 0;
if (n - k > 0)
sum = (n - k) * y + k * x;
else
sum = n * x;
cout << sum << endl;
}
| [
"variable_declaration.value.change",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,960 | 1,508,959 | u359440499 | cpp |
p04011 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
// ranker
using namespace std;
#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
// ranker
using namespace std;
#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,508,969 | 1,508,970 | u591295155 | cpp |
p04011 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
using namesp... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
using namesp... | [
"call.add",
"call.arguments.change"
] | 1,508,973 | 1,508,974 | u261965335 | cpp |
p04011 | #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) ... | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,508,987 | 1,508,988 | u693386219 | cpp |
p04011 | #include <iostream>
using namespace std;
#include <algorithm>
#include <stdio.h>
#include <vector>
#define _USE_MATH_DEFINES
#include <cstdlib>
#include <math.h>
#include <string>
int Board[100][100] = {};
int dx[8] = {1, 2, 1, 2, -1, -2, -1, -2}, dy[8] = {2, 1, -2, -1, -2, -1, 2, 1};
int main() {
int n, k, x, y;
... | #include <iostream>
using namespace std;
#include <algorithm>
#include <stdio.h>
#include <vector>
#define _USE_MATH_DEFINES
#include <cstdlib>
#include <math.h>
#include <string>
int Board[100][100] = {};
int dx[8] = {1, 2, 1, 2, -1, -2, -1, -2}, dy[8] = {2, 1, -2, -1, -2, -1, 2, 1};
int main() {
int n, k, x, y;
... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,508,989 | 1,508,990 | u484516280 | cpp |
p04011 | #include <cstdint>
#include <cstdio>
using namespace std;
int main() {
int32_t n, k, x, y;
int32_t payment;
scanf("%d\n%d\n%d\n%d\n", n, k, x, y);
payment = n >= k ? k * x : n * x;
payment += n >= k ? (n - k) * y : 0;
printf("%d\n", payment);
}
| #include <cstdint>
#include <cstdio>
using namespace std;
int main() {
int32_t n, k, x, y;
int32_t payment;
scanf("%d\n%d\n%d\n%d\n", &n, &k, &x, &y);
payment = n >= k ? k * x : n * x;
payment += n >= k ? (n - k) * y : 0;
printf("%d\n", payment);
}
| [
"expression.operation.unary.reference.add"
] | 1,508,994 | 1,508,995 | u826144345 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << k * x << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n, k, x, y;
cin >> n >> k >> x >> y;
if (n > k)
cout << k * x + (n - k) * y << endl;
else
cout << n * x << endl;
return 0;
}
| [
"identifier.change",
"io.output.change"
] | 1,509,000 | 1,509,001 | u100200422 | cpp |
p04011 | #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int N;
cin >> N;
int K;
cin >> K;
int X;
cin >> X;
int Y;
cin >> Y;
int sum = 0;
if (N > K) {
sum = X * N;
} else {
sum = X * K;
sum = sum + (Y * (N - K));
}
cout << sum << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int N;
cin >> N;
int K;
cin >> K;
int X;
cin >> X;
int Y;
cin >> Y;
int sum = 0;
if (K > N) {
sum = X * N;
} else {
sum = X * K;
sum = sum + (Y * (N - K));
}
cout << sum << endl;
return 0;
} | [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 1,509,002 | 1,509,003 | u072613858 | cpp |
p04011 | #include <stdio.h>
int main() {
int n, k, x, y, sum;
scanf("%d %d %d %d", &n, &k, &x, &y);
if (n - k)
sum = k * x + (n - k) * y;
else
sum = k * x;
printf("%d\n", sum);
return 0;
} | #include <stdio.h>
int main() {
int n, k, x, y, sum;
scanf("%d %d %d %d", &n, &k, &x, &y);
if (n > k)
sum = k * x + (n - k) * y;
else
sum = n * x;
printf("%d\n", sum);
return 0;
} | [
"control_flow.branch.if.condition.change",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,509,008 | 1,509,009 | u399607713 | cpp |
p04011 | #include <iostream>
#include <string>
using namespace std;
int main() {
int n, k, x, y;
int i;
while (cin >> n >> k >> x >> y) {
if (k <= n) {
cout << x * k + y * (n - k) << endl;
} else {
cout << x * k << endl;
}
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int n, k, x, y;
int i;
while (cin >> n >> k >> x >> y) {
if (k <= n) {
cout << x * k + y * (n - k) << endl;
} else {
cout << x * n << endl;
}
}
return 0;
} | [
"identifier.change",
"io.output.change"
] | 1,509,022 | 1,509,023 | u226744311 | cpp |
p04011 | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i =... | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i =... | [
"call.add",
"call.arguments.add"
] | 1,509,032 | 1,509,033 | u886790158 | cpp |
p04011 | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N;
cin >> K;
cin >> X;
cin >> Y;
if (N - K > 0) {
cout << K * X + (N - K) * Y << endl;
} else {
cout << K * X << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int N, K, X, Y;
cin >> N;
cin >> K;
cin >> X;
cin >> Y;
if (N - K > 0) {
cout << K * X + (N - K) * Y << endl;
} else {
cout << N * X << endl;
}
} | [
"identifier.change",
"io.output.change"
] | 1,509,036 | 1,509,037 | u480008027 | cpp |
p04011 | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
long long n, k, x, y, ans = 0;
cin >> n >> k >> x >> y;
if (n < k)
cout << n * x << endl;
else {
ans += x * k;
ans += (n - k) * y;
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
long long n, k, x, y, ans = 0;
cin >> n >> k >> x >> y;
if (n < k)
cout << n * x << endl;
else {
ans += x * k;
ans += (n - k) * y;
cout << ans;
}
return 0;
} | [] | 1,509,047 | 1,509,048 | u415086188 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.