Datasets:

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 <array> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0...
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0...
[ "expression.operation.binary.remove" ]
1,508,000
1,507,999
u554990639
cpp
p04011
#include <iostream> using namespace std; int main(void) { // Your code here! 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; }
#include <iostream> using namespace std; int main(void) { // Your code here! 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", "io.output.change" ]
1,508,001
1,508,002
u856606883
cpp
p04011
#include <iostream> using namespace std; int main(void) { // Your code here! 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(void) { // Your code here! 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,003
1,508,004
u777656471
cpp
p04011
#include <iostream> 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; return 0; }
#include <iostream> 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; return 0; }
[ "identifier.change", "io.output.change" ]
1,508,005
1,508,006
u959405654
cpp
p04011
#include <iostream> #include <stdio.h> using namespace std; int main(void) { 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> #include <stdio.h> using namespace std; int main(void) { 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,007
1,508,008
u738501135
cpp
p04011
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<bool> vb; typedef vector<string> vs; typedef vector<ll> vl; typedef vector<vector<int, int>> vvi; #define pb push_back #define mp make_pair #define f first #defin...
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<bool> vb; typedef vector<string> vs; typedef vector<ll> vl; typedef vector<vector<int, int>> vvi; #define pb push_back #define mp make_pair #define f first #defin...
[ "identifier.change", "io.output.change" ]
1,508,013
1,508,014
u583511881
cpp
p04011
#include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <vector> #define ff(i, m, n) for (int i = m; i < n; i++) #define i64 int64_t using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (a <= b) { cout << a * c << endl; return 0; } cout << a * c...
#include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <vector> #define ff(i, m, n) for (int i = m; i < n; i++) #define i64 int64_t using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (a <= b) { cout << a * c << endl; return 0; } cout << b * c...
[ "identifier.change", "io.output.change" ]
1,508,021
1,508,022
u771541325
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y, ans; cin >> n >> k >> x >> y; if (n > k) ans = k * x + (n - k) * y; else ans = k * x; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y, ans; cin >> n >> k >> x >> y; if (n > k) ans = k * x + (n - k) * y; else ans = n * x; cout << ans << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,029
1,508,030
u167584903
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; cin >> k; cin >> x; cin >> y; if (n > k) { cout << x * k + y * (n - k) << endl; } else { cout << x * k << 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; cin >> k; cin >> x; cin >> y; if (n > k) { cout << x * k + y * (n - k) << endl; } else { cout << x * n << endl; } return 0; }
[ "identifier.change", "io.output.change" ]
1,508,033
1,508,034
u021358975
cpp
p04011
#include <bits/stdc++.h> typedef long long ll; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(x) (x).begin(), (x).end() using namespace std; //素因数分解 vector<pair<ll, int>> factorize(ll n) { vector<pair<ll, int>> res; for (ll i = 2; i * i <= n; i++) { if (n % i) continue; res.emplace_back(i,...
#include <bits/stdc++.h> typedef long long ll; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(x) (x).begin(), (x).end() using namespace std; //素因数分解 vector<pair<ll, int>> factorize(ll n) { vector<pair<ll, int>> res; for (ll i = 2; i * i <= n; i++) { if (n % i) continue; res.emplace_back(i,...
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,044
1,508,045
u355371431
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; // N泊する int K; cin >> K; // K泊まではX円(1日あたり) int X, Y; cin >> X >> Y; int sum = 0; if (N <= K) { sum = N * X; } else if (N > K) { sum = N * X + (N - K) * Y; } cout << sum << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; // N泊する int K; cin >> K; // K泊まではX円(1日あたり) int X, Y; cin >> X >> Y; int sum = 0; if (N <= K) { sum = N * X; } else if (N > K) { sum = K * X + (N - K) * Y; } cout << sum << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,053
1,508,054
u062198110
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y, s = 0; cin >> N >> K >> X >> Y; if (N > K) { s = (X * K) + Y * (N - K); } else { s = X * K; } cout << s << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y, s = 0; cin >> N >> K >> X >> Y; if (N > K) { s = (X * K) + Y * (N - K); } else { s = X * N; } cout << s << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,067
1,508,068
u323864528
cpp
p04011
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; (a > b) ? cout << b * c + (a - b) * d : cout << b * c; return 0; }
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; (a > b) ? cout << b * c + (a - b) * d : cout << a * c; return 0; }
[ "identifier.change", "expression.operation.binary.change" ]
1,508,069
1,508,070
u738164318
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int sum; if (K <= N) sum = X * K + Y * (N - K); else sum = X * K; cout << sum << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int sum; if (K <= N) sum = X * K + Y * (N - K); else sum = X * N; cout << sum << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,087
1,508,088
u583302068
cpp
p04011
#include <iostream> using namespace std; int main() { int n, k, x, y, m, s, f; ; cin >> n >> k >> x >> y; m = n - k; s = k * x; f = m * y; if (n > k) { cout << s + f << endl; } else cout << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int n, k, x, y, m, s, f; ; cin >> n >> k >> x >> y; m = n - k; s = k * x; f = m * y; if (n > k) { cout << s + f << endl; } else cout << n * x << endl; return 0; }
[ "identifier.change", "io.output.change" ]
1,508,093
1,508,094
u206381506
cpp
p04011
#include <iostream> using namespace std; int main() { int n, k, x, y, m, s, f; ; cin >> n >> k >> x >> y; m = n - k; s = k * x; f = m * y; if (n > k) { cout << s + f << endl; } else cout << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int n, k, x, y, m, s, f; ; cin >> n >> k >> x >> y; m = n - k; s = k * x; f = m * y; if (n > k) { cout << s + f << endl; } else cout << n * x << endl; return 0; }
[ "identifier.change", "io.output.change" ]
1,508,095
1,508,094
u206381506
cpp
p04011
#include <bits/stdc++.h> #include <numeric> #include <stdio.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define repone(i, n) for (int i = 1; i < (int)(n); ++i) #define repo(i, o, n) for (int i = o; i < (int)(n); ++i) #define Rep(j, n) for (int j = 0; j < (int)(n); ++j) #define Repo(j, o...
#include <bits/stdc++.h> #include <numeric> #include <stdio.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define repone(i, n) for (int i = 1; i < (int)(n); ++i) #define repo(i, o, n) for (int i = o; i < (int)(n); ++i) #define Rep(j, n) for (int j = 0; j < (int)(n); ++j) #define Repo(j, o...
[ "identifier.change", "expression.operation.binary.change" ]
1,508,116
1,508,115
u893330446
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; else cout << x * k + y * (n - k); 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; else cout << x * k + y * (n - k); return 0; }
[ "identifier.change", "io.output.change" ]
1,508,123
1,508,124
u300556027
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 << N * X << endl; } else { cout << N * X + (N - K + 1) * 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", "io.output.change", "expression.operation.binary.remove" ]
1,508,157
1,508,158
u596200441
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 << N * X << endl; } else { cout << N * 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", "io.output.change" ]
1,508,159
1,508,158
u596200441
cpp
p04011
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, n) for (int i = (int)(n); i >= 0; i--) #define repm(i, m, n) for (int i = (int)(m); i < (int)(n); i++) #define repmr(i, m, n) for (int i = (int)(n); i >= (int)(m); i--) #define all(x) (x).begin(), (x).end() #define inf 2e9 u...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, n) for (int i = (int)(n); i >= 0; i--) #define repm(i, m, n) for (int i = (int)(m); i < (int)(n); i++) #define repmr(i, m, n) for (int i = (int)(n); i >= (int)(m); i--) #define all(x) (x).begin(), (x).end() #define inf 2e9 u...
[ "expression.operation.binary.remove", "assignment.change" ]
1,508,163
1,508,164
u917101497
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int cost = N * X; if (N > K) { cost -= (N - K) * (Y - X); } cout << cost << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int cost = N * X; if (N > K) { cost += (N - K) * (Y - X); } cout << cost << endl; return 0; }
[ "expression.operator.change" ]
1,508,165
1,508,166
u104057163
cpp
p04011
#include <bits/stdc++.h> #include <iostream> #define ll long long #define rp(i, n) for (int i = 0; i < n; i++) #define rpd(i, n) for (int i = n - 1; i >= 0; i--) using namespace std; int main() { ll n, k, x, y; cin >> n >> k >> x >> y; cout << x * min(k, n) + y * min(0ll, n - k); cout << endl; return 0; }...
#include <bits/stdc++.h> #include <iostream> #define ll long long #define rp(i, n) for (int i = 0; i < n; i++) #define rpd(i, n) for (int i = n - 1; i >= 0; i--) using namespace std; int main() { ll n, k, x, y; cin >> n >> k >> x >> y; cout << x * min(k, n) + y * max(0ll, n - k); cout << endl; return 0; }...
[ "misc.opposites", "identifier.change", "call.function.change", "io.output.change" ]
1,508,179
1,508,180
u422558819
cpp
p04011
#include <bits/stdc++.h> #include <iostream> #define ll long long #define rp(i, n) for (int i = 0; i < n; i++) #define rpd(i, n) for (int i = n - 1; i >= 0; i--) using namespace std; int main() { ll n, k, x, y; cin >> n >> k >> x >> y; cout << x * min(k, n) + y * (0, n - k); cout << endl; return 0; }
#include <bits/stdc++.h> #include <iostream> #define ll long long #define rp(i, n) for (int i = 0; i < n; i++) #define rpd(i, n) for (int i = n - 1; i >= 0; i--) using namespace std; int main() { ll n, k, x, y; cin >> n >> k >> x >> y; cout << x * min(k, n) + y * max(0ll, n - k); cout << endl; return 0; }...
[ "call.add", "call.arguments.change" ]
1,508,181
1,508,180
u422558819
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; (n - k) >= 0 ? cout << (n - k) * y + k * x : cout << k * x; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; (n - k) >= 0 ? cout << (n - k) * y + k * x : cout << n * x; }
[ "identifier.change", "expression.operation.binary.change" ]
1,508,182
1,508,183
u404145225
cpp
p04011
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int sum = 0; if (k >= n) { sum += (k - n) * x; } else { sum += k * x + (n - k) * y; } cout << sum << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int sum = 0; if (k >= n) { sum += n * x; } else { sum += k * x + (n - k) * y; } cout << sum << endl; return 0; }
[]
1,508,220
1,508,221
u318027064
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << (n > k ? n * x + (n - k) * y : n * x) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << (n > k ? k * x + (n - k) * y : n * x) << endl; return 0; }
[ "identifier.change", "io.output.change" ]
1,508,222
1,508,223
u902149880
cpp
p04011
#include <bits/stdc++.h> using namespace std; long long int n, k, x, y; int main() { // freopen("input14.txt","r",stdin);freopen("output14.txt","w",stdout); cin >> n >> k >> x >> y; if (n >= k) { cout << x * k + (n - k) * y; } else { cout << x * k; } return 0; }
#include <bits/stdc++.h> using namespace std; long long int n, k, x, y; int main() { // freopen("input14.txt","r",stdin);freopen("output14.txt","w",stdout); cin >> n >> k >> x >> y; if (n >= k) { cout << x * k + (n - k) * y; } else { cout << x * n; } return 0; }
[ "identifier.change", "io.output.change" ]
1,508,228
1,508,229
u162126904
cpp
p04011
#include <algorithm> #include <cstdlib> #include <iomanip> //小数点以下を表示させる(setprecision()) #include <iostream> //入出力 #include <list> #include <map> #include <math.h> //算術演算子 #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> // #include <bits/stdc++.h> using namespace...
#include <algorithm> #include <cstdlib> #include <iomanip> //小数点以下を表示させる(setprecision()) #include <iostream> //入出力 #include <list> #include <map> #include <math.h> //算術演算子 #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> // #include <bits/stdc++.h> using namespace...
[ "call.add", "call.arguments.change" ]
1,508,230
1,508,231
u966508131
cpp
p04011
#include <algorithm> #include <cctype> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <sstream> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y...
#include <algorithm> #include <cctype> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <sstream> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y...
[ "expression.operator.arithmetic.change", "io.output.change" ]
1,508,236
1,508,237
u000113982
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 << endl; } else { cout << x * k + 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 << x * n << endl; } else { cout << x * k + y * (n - k) << endl; } return 0; }
[ "identifier.change", "io.output.change" ]
1,508,244
1,508,245
u692131329
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 << endl; } else { cout << x * k + y * (k - n) << 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 << x * n << endl; } else { cout << x * k + y * (n - k) << endl; } return 0; }
[ "identifier.change", "io.output.change", "expression.operation.binary.remove" ]
1,508,246
1,508,245
u692131329
cpp
p04011
#include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int ans; if (n <= k) ans = n * k; else { ans = x * k; ans += (n - k) * y; } cout << ans << endl; }
#include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int ans; if (n <= k) ans = n * x; else { ans = x * k; ans += (n - k) * y; } cout << ans << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,252
1,508,253
u716314620
cpp
p04011
#include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int ans; if (n <= k) ans = x * k; else { ans = x * k; ans += (n - k) * y; } cout << ans << endl; }
#include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int ans; if (n <= k) ans = n * x; else { ans = x * k; ans += (n - k) * y; } cout << ans << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,254
1,508,253
u716314620
cpp
p04011
#include <algorithm> #include <cctype> #include <cmath> #include <ctype.h> #include <iostream> #include <map> #include <queue> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < (int)n; ++i) #define REP1(j, n) for (int j = 0; j < (int)n; ++j) #define REPD(i,...
#include <algorithm> #include <cctype> #include <cmath> #include <ctype.h> #include <iostream> #include <map> #include <queue> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < (int)n; ++i) #define REP1(j, n) for (int j = 0; j < (int)n; ++j) #define REPD(i,...
[ "identifier.change", "io.output.change" ]
1,508,259
1,508,260
u817523595
cpp
p04011
#include <cmath> #include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << k * x + max(0, n - k) * y << endl; return 0; }
#include <cmath> #include <iostream> 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; return 0; }
[ "call.add", "call.arguments.change" ]
1,508,261
1,508,262
u069877747
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; int ans; cin >> n >> k >> x >> y; ans = max(n, k) * x; ans += max(0, n - k) * y; cout << ans; 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; int ans; cin >> n >> k >> x >> y; ans = min(n, k) * x; ans += max(0, n - k) * y; cout << ans; return 0; }
[ "misc.opposites", "assignment.value.change", "identifier.change", "call.function.change", "expression.operation.binary.change" ]
1,508,263
1,508,264
u371203536
cpp
p04011
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, a, n) for (int i = (a); i < (n); ++i) using namespace std; typedef long long ll; void Main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int res = K * X + (N - K < 0 ? (N - K) * Y : 0); cout << res << endl; } int main() { ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, a, n) for (int i = (a); i < (n); ++i) using namespace std; typedef long long ll; void Main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int res = min(N, K) * X + (N - K > 0 ? (N - K) * Y : 0); cout << res << endl; } int ma...
[ "call.add", "call.arguments.change", "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
1,508,265
1,508,266
u215692812
cpp
p04011
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, a, n) for (int i = (a); i < (n); ++i) using namespace std; typedef long long ll; void Main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int res = K * X + (N - K > 0 ? (N - K) * Y : 0); cout << res << endl; } int main() { ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, a, n) for (int i = (a); i < (n); ++i) using namespace std; typedef long long ll; void Main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int res = min(N, K) * X + (N - K > 0 ? (N - K) * Y : 0); cout << res << endl; } int ma...
[ "call.add", "call.arguments.change" ]
1,508,267
1,508,266
u215692812
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (a < b) { cout << a * c << endl; } else { cout << (a - b) * d + a * c << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (a < b) { cout << a * c << endl; } else { cout << (a - b) * d + b * c << endl; } }
[ "identifier.change", "io.output.change" ]
1,508,271
1,508,272
u845851868
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int ans; if (N <= K) cout << X * K << endl; else cout << X * K + (N - K) * Y << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int ans; if (N <= K) cout << X * N << endl; else cout << X * K + (N - K) * Y << endl; }
[ "identifier.change", "io.output.change" ]
1,508,273
1,508,274
u690326065
cpp
p04011
// Created by liszt on 2019/08/01. #include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y, ans; cin >> n >> k >> x >> y; if (n > k) { ans = k * x; n -= k; ans += k * y; } else { ans = n * x; } cout << ans << endl; return 0; }
// Created by liszt on 2019/08/01. #include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y, ans; cin >> n >> k >> x >> y; if (n > k) { ans = k * x; n -= k; ans += n * y; } else { ans = n * x; } cout << ans << endl; return 0; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,280
1,508,281
u370447425
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 << n * k << endl; else { cout << k * x + (n - k) * y << 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 + (n - k) * y << endl; } return 0; }
[ "identifier.change", "io.output.change" ]
1,508,290
1,508,291
u038307191
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N; cin >> K; cin >> X; cin >> 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() { int N, K, X, Y; cin >> N; cin >> K; cin >> X; cin >> Y; if (N > K) { cout << (K * X) + ((N - K) * Y) << endl; } else { cout << (N * X) << endl; } }
[ "identifier.change", "io.output.change" ]
1,508,294
1,508,295
u775501928
cpp
p04011
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { int n, k, x, y, ans; cin >> n >> k >> x >> y; if (n - k > 0) { ans = k * x + (n - k) * y; } else { ans = k * x; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int main() { int n, k, x, y, ans; cin >> n >> k >> x >> y; if (n - k > 0) { ans = k * x + (n - k) * y; } else { ans = n * x; } cout << ans << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,305
1,508,306
u874723578
cpp
p04011
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <string> #include <tuple> #include <vector> #define int long using namespace std; signed main() { int N, K, X, Y; cin >> N >> K >> X >> Y; if (N >= K) { cout << K * X + (N - K) * Y << endl; } else { cout << K * N << e...
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <string> #include <tuple> #include <vector> #define int long using namespace std; signed main() { int N, K, X, Y; cin >> N >> K >> X >> Y; if (N >= K) { cout << K * X + (N - K) * Y << endl; } else { cout << X * N << e...
[ "identifier.change", "io.output.change" ]
1,508,309
1,508,310
u322714721
cpp
p04011
#include <iostream> using namespace std; int main() { ios ::sync_with_stdio(false); cin.tie(0); int n, k, x, y; cin >> n >> k >> x >> y; long long int ans; if (n <= k) { ans = k * x; } else { ans = (k * x) + (n - k) * y; } cout << ans << "\n"; }
#include <iostream> using namespace std; int main() { ios ::sync_with_stdio(false); cin.tie(0); int n, k, x, y; cin >> n >> k >> x >> y; long long int ans; if (n <= k) { ans = n * x; } else { ans = (k * x) + (n - k) * y; } cout << ans << "\n"; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,316
1,508,317
u282896139
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; cout << K * X + max(N - K, 0) * 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(N - K, 0) * Y << endl; }
[ "call.add", "call.arguments.change" ]
1,508,318
1,508,319
u507188501
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,323
1,508,324
u093744128
cpp
p04011
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (int)n; i++) const int MOD = 1000000007; // long long a; 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 <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (int)n; i++) const int MOD = 1000000007; // long long a; 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,329
1,508,330
u138062788
cpp
p04011
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) // for文マクロ using namespace std; typedef unsigned long ul; typedef long long ll; typedef pair<ul, ul> P; //ペア タイプでふ int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << ((a > b) ? b * c + (a - b) * d : a * d); }
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) // for文マクロ using namespace std; typedef unsigned long ul; typedef long long ll; typedef pair<ul, ul> P; //ペア タイプでふ int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << ((a > b) ? b * c + (a - b) * d : a * c); }
[ "identifier.change", "io.output.change" ]
1,508,334
1,508,335
u369980487
cpp
p04011
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) // for文マクロ using namespace std; typedef unsigned long ul; typedef long long ll; typedef pair<ul, ul> P; //ペア タイプでふ int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << ((a > b) ? b * c + (a - b) * d : b * d); }
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) // for文マクロ using namespace std; typedef unsigned long ul; typedef long long ll; typedef pair<ul, ul> P; //ペア タイプでふ int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << ((a > b) ? b * c + (a - b) * d : a * c); }
[ "identifier.change", "io.output.change" ]
1,508,336
1,508,335
u369980487
cpp
p04011
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long double ld; typedef long long int ll; ty...
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long double ld; typedef long long int ll; ty...
[ "identifier.change", "io.output.change" ]
1,508,342
1,508,343
u961198482
cpp
p04011
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long double ld; typedef long long int ll; ty...
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long double ld; typedef long long int ll; ty...
[ "identifier.change", "io.output.change" ]
1,508,344
1,508,343
u961198482
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 << n * x << endl; } else { cout << n * 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", "io.output.change" ]
1,508,345
1,508,346
u244626757
cpp
p04011
#include <iostream> using namespace std; int main() { int n, k, x, y; int res = 0; cin >> n >> k >> x >> y; if (n <= k) res = x * n; else res = x * n + y * (n - k); cout << res << endl; }
#include <iostream> using namespace std; int main() { int n, k, x, y; int res = 0; cin >> n >> k >> x >> y; if (n <= k) res = x * n; else res = x * k + y * (n - k); cout << res << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,347
1,508,348
u331302877
cpp
p04011
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <string> #include <vector> typedef char SINT8; typedef unsigned char UINT8; typedef short SINT16; typedef unsigned short UINT16; typedef int SINT32; typedef unsigned int ...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <string> #include <vector> typedef char SINT8; typedef unsigned char UINT8; typedef short SINT16; typedef unsigned short UINT16; typedef int SINT32; typedef unsigned int ...
[ "expression.operation.binary.remove" ]
1,508,359
1,508,360
u824905100
cpp
p04011
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (a <= b) cout << a * c; else cout << a * c + (a - b) * d; }
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (a <= b) cout << a * c; else cout << b * c + (a - b) * d; }
[ "identifier.change", "io.output.change" ]
1,508,367
1,508,368
u659075447
cpp
p04011
#include <algorithm> #include <cmath> #include <iostream> 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; } }
#include <algorithm> #include <cmath> #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; } }
[ "identifier.change", "io.output.change" ]
1,508,369
1,508,370
u401900157
cpp
p04011
#include <iostream> using namespace std; int main() { int N, K, X, Y, cost; cin >> N >> K >> X >> Y; if (N <= K) { cost = X * K; } else { cost = X * K + (N - K) * Y; } cout << cost << endl; }
#include <iostream> using namespace std; int main() { int N, K, X, Y, cost; cin >> N >> K >> X >> Y; if (N <= K) { cost = X * N; } else { cost = X * K + (N - K) * Y; } cout << cost << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,371
1,508,372
u591779169
cpp
p04011
#include <iostream> using namespace std; int main() { int N, K, X, Y, cost; cin >> N >> K >> X >> Y; if (N <= K) { cost = X * K; } else { cost = X * K + (N - K) * Y; } cout << cost << endl; }
#include <iostream> using namespace std; int main() { int N, K, X, Y, cost; cin >> N >> K >> X >> Y; if (N <= K) { cost = X * N; } else { cost = X * K + (N - K) * Y; } cout << cost << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,371
1,508,373
u591779169
cpp
p04011
#include <cmath> #include <iomanip> #include <iostream> #include <sstream> #include <string> using namespace std; int main(int argc, char *argv[]) { 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; } return 0; }
#include <cmath> #include <iomanip> #include <iostream> #include <sstream> #include <string> using namespace std; int main(int argc, char *argv[]) { 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,379
1,508,380
u335104842
cpp
p04011
#include <cmath> #include <iomanip> #include <iostream> #include <sstream> #include <string> using namespace std; int main(int argc, char *argv[]) { 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 <cmath> #include <iomanip> #include <iostream> #include <sstream> #include <string> using namespace std; int main(int argc, char *argv[]) { 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,381
1,508,380
u335104842
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << k * x + min(0, n - k) * y; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << n * x + max(0, n - k) * (y - x); }
[ "identifier.change", "io.output.change", "misc.opposites", "call.function.change" ]
1,508,382
1,508,383
u885523920
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << n * x + max(0, n - k) * y; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << n * x + max(0, n - k) * (y - x); }
[]
1,508,384
1,508,383
u885523920
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << n * x + min(0, n - k) * y; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << n * x + max(0, n - k) * (y - x); }
[ "misc.opposites", "identifier.change", "call.function.change", "io.output.change" ]
1,508,385
1,508,383
u885523920
cpp
p04011
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> // Common file #include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update using namespace std; using namespace __gnu_pbds; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> o...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> // Common file #include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update using namespace std; using namespace __gnu_pbds; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> o...
[ "identifier.change", "io.output.change" ]
1,508,386
1,508,387
u933476247
cpp
p04011
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> // Common file #include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update using namespace std; using namespace __gnu_pbds; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> o...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> // Common file #include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update using namespace std; using namespace __gnu_pbds; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> o...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.change", "io.output.change" ]
1,508,388
1,508,387
u933476247
cpp
p04011
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int N, K, X, Y, adj = 0; cin >> N >> K >> X >> Y; cout << (N <= K ? X * K : X * K + (N - K) * Y) << endl; }
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int N, K, X, Y, adj = 0; cin >> N >> K >> X >> Y; cout << (N <= K ? X * N : X * K + (N - K) * Y) << endl; }
[ "identifier.change", "io.output.change" ]
1,508,400
1,508,401
u317177661
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N; int K; int X; int Y; cin >> N >> K >> X >> Y; if (N <= K) { cout << X * N; } else { cout << X * N + Y * (N - K); } }
#include <bits/stdc++.h> using namespace std; int main() { int N; int K; int X; int Y; cin >> N >> K >> X >> Y; if (N <= K) { cout << X * N; } else { cout << X * K + Y * (N - K); } }
[ "identifier.change", "io.output.change" ]
1,508,407
1,508,408
u379928983
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N; int K; int X; int Y; cin >> N >> K >> X >> Y; if (N <= K) { cout << X * K; } else { cout << X * K + (N - K) * Y; } }
#include <bits/stdc++.h> using namespace std; int main() { int N; int K; int X; int Y; cin >> N >> K >> X >> Y; if (N <= K) { cout << X * N; } else { cout << X * K + Y * (N - K); } }
[ "identifier.change", "io.output.change", "expression.operation.binary.remove" ]
1,508,409
1,508,408
u379928983
cpp
p04011
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pii pair<int, int> #define vpii vector<pii> #define vll vector<ll> #define vi vector<int> #define pb push_back #define f first #define s second int main() { int n, k, x, y; cin >> n >> k >> x >> y; if (n <= k) { cout << n * x; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pii pair<int, int> #define vpii vector<pii> #define vll vector<ll> #define vi vector<int> #define pb push_back #define f first #define s second int main() { int n, k, x, y; cin >> n >> k >> x >> y; if (n <= k) { cout << n * x; ...
[ "identifier.change", "io.output.change", "expression.operation.binary.remove" ]
1,508,413
1,508,414
u702142173
cpp
p04011
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pii pair<int, int> #define vpii vector<pii> #define vll vector<ll> #define vi vector<int> #define pb push_back #define f first #define s second int main() { int n, k, x, y; cin >> n >> k >> x >> y; if (n <= k) { cout << k * x; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pii pair<int, int> #define vpii vector<pii> #define vll vector<ll> #define vi vector<int> #define pb push_back #define f first #define s second int main() { int n, k, x, y; cin >> n >> k >> x >> y; if (n <= k) { cout << n * x; ...
[ "identifier.change", "io.output.change" ]
1,508,415
1,508,414
u702142173
cpp
p04011
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> 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 * n + y * (n - k) << endl; } return 0; }
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> 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 + y * (n - k) << endl; } return 0; }
[ "identifier.change", "io.output.change" ]
1,508,431
1,508,432
u127768253
cpp
p04011
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> 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 * n + y * (k - n) << endl; } return 0; }
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> 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 + y * (n - k) << endl; } return 0; }
[ "identifier.change", "io.output.change", "expression.operation.binary.remove" ]
1,508,433
1,508,432
u127768253
cpp
p04011
#include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << (n > k ? k * x + (n - k) * y : k * x) << endl; }
#include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << (n > k ? k * x + (n - k) * y : n * x) << endl; }
[ "identifier.change", "io.output.change" ]
1,508,434
1,508,435
u539199630
cpp
p04011
#include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << (n > k ? k * x + (n - k) * y : k * x) << endl; }
#include <iostream> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << (n > k ? (k * x + (n - k) * y) : n * x) << endl; }
[ "identifier.change", "io.output.change" ]
1,508,434
1,508,436
u539199630
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; else cout << k * x + (n - k) * y; }
#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; }
[ "identifier.change", "io.output.change" ]
1,508,441
1,508,442
u246602391
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; else cout << k * x + (n - k) * y; }
#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; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.change", "io.output.change" ]
1,508,443
1,508,442
u246602391
cpp
p04011
/*     ∧_∧ やあ    (´・ω・`)     /     ようこそ、バーボンハウスへ。    /∇y:::::\    [ ̄]     このテキーラはサービスだから、まず飲んで落ち着いて欲しい。    |:⊃:|:::::|   |──|  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| うん、「また」なんだ。済まない。  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| ̄  仏の顔もって言うしね、謝って許してもらおうとも思っていない。  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄/|     ∇ ∇ ∇ ∇   /./|   でも、この提出を見たとき、君は、きっと言葉では言い表せない     ┴ ┴ ┴ ┴ / /  |   「ときめき」みたいなものを感じてくれ...
/*     ∧_∧ やあ    (´・ω・`)     /     ようこそ、バーボンハウスへ。    /∇y:::::\    [ ̄]     このテキーラはサービスだから、まず飲んで落ち着いて欲しい。    |:⊃:|:::::|   |──|  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| うん、「また」なんだ。済まない。  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| ̄  仏の顔もって言うしね、謝って許してもらおうとも思っていない。  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄/|     ∇ ∇ ∇ ∇   /./|   でも、この提出を見たとき、君は、きっと言葉では言い表せない     ┴ ┴ ┴ ┴ / /  |   「ときめき」みたいなものを感じてくれ...
[ "call.add", "call.arguments.change" ]
1,508,446
1,508,447
u625092455
cpp
p04011
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; int main() { cin.tie(0); ios::sync_with_stdio(false); int N, K, X, Y; cin >> N >> K >> X >> Y; if (N <= K) cout << K * X << endl; else cout << X * K + (N - K) * Y << endl; return 0; }
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; int main() { cin.tie(0); ios::sync_with_stdio(false); int N, K, X, Y; cin >> N >> K >> X >> Y; if (N <= K) cout << N * X << endl; else cout << X * K + (N - K) * Y << endl; return 0; }
[ "identifier.change", "io.output.change" ]
1,508,452
1,508,453
u520129469
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 << endl; else cout << n * 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.operation.binary.remove", "control_flow.branch.if.condition.change" ]
1,508,458
1,508,459
u859897687
cpp
p04011
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <string.h> #include <vector> #define REP(i, n) for (int i = 0; (i) < (n); ++(i)) using namespace std; int a, b, c, d; int main() { cin >> a >> b >> c >> d; if (a <= b) cout <...
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <string.h> #include <vector> #define REP(i, n) for (int i = 0; (i) < (n); ++(i)) using namespace std; int a, b, c, d; int main() { cin >> a >> b >> c >> d; if (a <= b) cout <...
[ "identifier.change", "io.output.change", "expression.operation.binary.remove" ]
1,508,468
1,508,467
u697232864
cpp
p04011
#include <algorithm> #include <complex> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <unordered_map> #include <vector> #define rep(i, a) for (int i = 0; i < (a); i++) using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; ...
#include <algorithm> #include <complex> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <unordered_map> #include <vector> #define rep(i, a) for (int i = 0; i < (a); i++) using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; ...
[ "identifier.change", "io.output.change" ]
1,508,469
1,508,470
u536712674
cpp
p04011
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int sum; if (n >= k) sum = k * x + (n - k) * y; else sum = k * x; cout << sum << endl; }
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int sum; if (n > k) sum = k * x + (n - k) * y; else sum = n * x; cout << sum << endl; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,471
1,508,472
u847913816
cpp
p04011
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int sum; if (n > k) sum = k * x + (n - k) * y; else sum = k * x; cout << sum << endl; }
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; int sum; if (n > k) sum = k * x + (n - k) * y; else sum = n * x; cout << sum << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,473
1,508,472
u847913816
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; else if (N > K) { N = N - K; int sum = K * X + N * Y; cout << sum; } cout << 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; } else if (N > K) { N = N - K; int sum = K * X + N * Y; cout << sum; } cout << endl; return 0; }
[ "identifier.change", "io.output.change" ]
1,508,476
1,508,477
u601575292
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y, ans; cin >> N >> K >> X >> Y; if (K >= N) { ans = K * X; } else { ans = K * X + (N - K) * Y; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y, ans; cin >> N >> K >> X >> Y; if (K >= N) { ans = N * X; } else { ans = K * X + (N - K) * Y; } cout << ans << endl; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,478
1,508,479
u552201227
cpp
p04011
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; if (n < k) cout << x * n << endl; else cout << (n - k) * y + n * x << endl; }
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; if (n < k) cout << x * n << endl; else cout << (n - k) * y + k * x << endl; }
[ "identifier.change", "io.output.change" ]
1,508,480
1,508,481
u207521866
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 << n * x + (n - k) * y << endl; else cout << x * n << 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 + (n - k) * y << endl; else cout << x * n << endl; }
[ "identifier.change", "io.output.change" ]
1,508,482
1,508,483
u658899890
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << min(k, n) * x + max(0, n - k); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k, x, y; cin >> n >> k >> x >> y; cout << min(k, n) * x + max(0, n - k) * y; return 0; }
[ "expression.operation.binary.add" ]
1,508,486
1,508,487
u058348416
cpp
p04011
#include <cstdio> int main() { int n, k, x, y, sum; scanf("%d %d %d %d", &n, &k, &x, &y); if (n > k) { sum = k * x + y * (n - k); } else { sum = k * x; } printf("%d", sum); }
#include <cstdio> int main() { int n, k, x, y, sum; scanf("%d %d %d %d", &n, &k, &x, &y); if (n > k) { sum = k * x + y * (n - k); } else { sum = n * x; } printf("%d", sum); }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,495
1,508,496
u357467583
cpp
p04011
#include <algorithm> #include <bits/stdtr1c++.h> using namespace std; int main() { int N, K, X, Y, ans; cin >> N; cin >> K; cin >> X; cin >> Y; if (K < N) { ans = (N - K) * Y + K * X; } else { ans = K * X; } cout << ans << endl; return 0; }
#include <algorithm> #include <bits/stdtr1c++.h> using namespace std; int main() { int N, K, X, Y, ans; cin >> N; cin >> K; cin >> X; cin >> Y; if (K < N) { ans = (N - K) * Y + K * X; } else { ans = N * X; } cout << ans << endl; return 0; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,499
1,508,500
u162758522
cpp
p04011
#include <bits/stdc++.h> using namespace std; #define YES cout << "YES" << endl; #define NO cout << "NO" << endl; #define Yes cout << "Yes" << endl; #define No cout << "No" << endl; #define INF INT_MAX #define MOD 1000000007 #define PI acos(-1) using ll = long long; using ull = unsigned long long; using Pii = pair<...
#include <bits/stdc++.h> using namespace std; #define YES cout << "YES" << endl; #define NO cout << "NO" << endl; #define Yes cout << "Yes" << endl; #define No cout << "No" << endl; #define INF INT_MAX #define MOD 1000000007 #define PI acos(-1) using ll = long long; using ull = unsigned long long; using Pii = pair<...
[ "identifier.change", "io.output.change" ]
1,508,504
1,508,505
u458798873
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,510
1,508,511
u427681070
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; if (N - K <= 0) cout << N * X; else cout << N * X + (K - N) * Y; }
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; if (N - K <= 0) cout << N * X; else cout << K * X + (N - K) * Y; }
[ "identifier.change", "io.output.change", "expression.operation.binary.remove" ]
1,508,517
1,508,518
u785409986
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; cout << N * X + max(N - K, 0) * Y << endl; return 0; }
#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(N - K, 0) * Y << endl; return 0; }
[ "call.add", "call.arguments.add" ]
1,508,519
1,508,520
u239087789
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; cout << K * X + max(N - K, 0) * Y << endl; return 0; }
#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(N - K, 0) * Y << endl; return 0; }
[ "call.add", "call.arguments.change" ]
1,508,521
1,508,520
u239087789
cpp
p04011
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y, S; cin >> N >> K >> X >> Y; if (N >= K) { S = X * K + Y * (N - K); cout << S; } else { S = X * K; cout << S; } }
#include <bits/stdc++.h> using namespace std; int main() { int N, K, X, Y, S; cin >> N >> K >> X >> Y; if (N >= K) { S = X * K + Y * (N - K); cout << S; } else { S = X * N; cout << S; } }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,527
1,508,528
u096069679
cpp
p04011
#include <cstdio> #include <iostream> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int ans = 0; int flag = 0; if (N - K < 0) { ans += N * X; } else { ans += N * X + (N - K) * Y; } cout << ans << endl; return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { int N, K, X, Y; cin >> N >> K >> X >> Y; int ans = 0; int flag = 0; if (N - K < 0) { ans += N * X; } else { ans += K * X + (N - K) * Y; } cout << ans << endl; return 0; }
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
1,508,531
1,508,532
u848339218
cpp