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
p02277
// ues the stable sort-mergesort to chek quick-sort #include <iostream> #include <limits.h> using namespace std; const int MAX = 100000; const int STN = INT_MAX; struct Card { char suit; int num; }; Card L[MAX / 2 + 2]; Card R[MAX / 2 + 2]; void merge(Card *A, int left, int mid, int right) { int n1 = mid - l...
// ues the stable sort-mergesort to chek quick-sort #include <iostream> #include <limits.h> using namespace std; const int MAX = 100000; const int STN = INT_MAX; struct Card { char suit; int num; }; Card L[MAX / 2 + 2]; Card R[MAX / 2 + 2]; void merge(Card *A, int left, int mid, int right) { int n1 = mid - l...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
121,089
121,090
u258435638
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,094
121,095
u215648812
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,096
121,095
u215648812
cpp
p02277
#include <iostream> #include <utility> #include <vector> using namespace std; int partition(vector<pair<char, int>> &A, int p, int r) { int i = p - 1; for (int j = p; j < r; j++) { if (A[j].second > A[r].second) continue; swap(A[++i], A[j]); } swap(A[++i], A[r]); return i; } void quick_sort(vec...
#include <iostream> #include <utility> #include <vector> using namespace std; int partition(vector<pair<char, int>> &A, int p, int r) { int i = p - 1; for (int j = p; j < r; j++) { if (A[j].second > A[r].second) continue; swap(A[++i], A[j]); } swap(A[++i], A[r]); return i; } void quick_sort(vec...
[ "expression.operator.compare.change", "assignment.value.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
121,097
121,098
u510526182
cpp
p02277
#include <iostream> #include <utility> #include <vector> using namespace std; int partition(vector<pair<char, int>> &A, int p, int r) { int i = p - 1; for (int j = p; j < r; j++) { if (A[j].second > A[r].second) continue; swap(A[++i], A[j]); } swap(A[++i], A[r]); return i; } void quick_sort(vec...
#include <iostream> #include <utility> #include <vector> using namespace std; int partition(vector<pair<char, int>> &A, int p, int r) { int i = p - 1; for (int j = p; j < r; j++) { if (A[j].second > A[r].second) continue; swap(A[++i], A[j]); } swap(A[++i], A[r]); return i; } void quick_sort(vec...
[ "identifier.change", "io.output.change" ]
121,099
121,098
u510526182
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) ...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) ...
[ "assignment.variable.change", "identifier.change", "variable_access.subscript.index.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
121,100
121,101
u722526744
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) ...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) ...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
121,102
121,101
u722526744
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) L[i] = ...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) L[i] = ...
[ "assignment.variable.change", "identifier.change", "variable_access.subscript.index.change", "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo", "literal.string.change", "call.arguments.change", "io.output.change" ]
121,106
121,105
u722526744
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) L[i] = ...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) L[i] = ...
[ "assignment.variable.change", "identifier.change", "variable_access.subscript.index.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
121,107
121,105
u722526744
cpp
p02277
#include <cassert> #include <iostream> #include <queue> #define INF 922337203685477580 typedef long long ll; using namespace std; typedef struct { char type; ll value; } Card; int partition(Card *A, int p, int r) { int x = A[r].value; int i = p - 1; for (int j = p; j < r; j++) { if (A[j].value <= x) {...
#include <cassert> #include <iostream> #include <queue> #define INF 922337203685477580 typedef long long ll; using namespace std; typedef struct { char type; ll value; } Card; int partition(Card *A, int p, int r) { ll x = A[r].value; int i = p - 1; for (int j = p; j < r; j++) { if (A[j].value <= x) { ...
[ "variable_declaration.type.change" ]
121,110
121,111
u981265766
cpp
p02277
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> using namespace std; const int INF = 0x3f3f3f3f; const int MAXN = 100005; struct card { char suit; int value; }; card A1[MAXN], A2[MAXN], L[MAXN / 2], R[MAXN / 2]; void merge(card A[], int left, int ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> using namespace std; const int INF = 0x3f3f3f3f; const int MAXN = 100005; struct card { char suit; int value; }; card A1[MAXN], A2[MAXN], L[MAXN / 2], R[MAXN / 2]; void merge(card A[], int left, int ...
[ "identifier.change", "expression.operation.binary.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
121,112
121,113
u324907960
cpp
p02277
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> using namespace std; const int INF = 0x3f3f3f3f; const int MAXN = 100005; struct card { char suit; int value; }; card A1[MAXN], A2[MAXN], L[MAXN / 2], R[MAXN / 2]; void merge(card A[], int left, int ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> using namespace std; const int INF = 0x3f3f3f3f; const int MAXN = 100005; struct card { char suit; int value; }; card A1[MAXN], A2[MAXN], L[MAXN / 2], R[MAXN / 2]; void merge(card A[], int left, int ...
[ "identifier.change", "expression.operation.binary.change" ]
121,114
121,113
u324907960
cpp
p02277
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; const int INF = (1 << 30); const int N = 100005; struct Card { char suit; int value; } card[N], t[N]; Card L[N / 2 + 1], R[N / 2 + 1]; void _merge(Card a[], int l, int m, int r) //[l, r) { int i, j, k; int n1 = m - l; int n2 = r ...
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; const int INF = (1 << 30); const int N = 100005; struct Card { char suit; int value; } card[N], t[N]; Card L[N / 2 + 1], R[N / 2 + 1]; void _merge(Card a[], int l, int m, int r) //[l, r) { int i, j, k; int n1 = m - l; int n2 = r ...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
121,115
121,116
u145367012
cpp
p02277
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; const int INF = (1 << 30); const int N = 100005; struct Card { char suit; int value; } card[N], t[N]; Card L[N / 2 + 1], R[N / 2 + 1]; void _merge(Card a[], int l, int m, int r) //[l, r) { int i, j, k; int n1 = m - l; int n2 = r ...
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; const int INF = (1 << 30); const int N = 100005; struct Card { char suit; int value; } card[N], t[N]; Card L[N / 2 + 1], R[N / 2 + 1]; void _merge(Card a[], int l, int m, int r) //[l, r) { int i, j, k; int n1 = m - l; int n2 = r ...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
121,117
121,116
u145367012
cpp
p02277
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; const int INF = (1 << 30); const int N = 100005; struct Card { char suit; int value; } card[N], t[N], temp; Card L[N / 2 + 1], R[N / 2 + 1]; void _merge(Card a[], int l, int m, int r) //[l, r) { int i, j, k; int n1 = m - l; int n...
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; const int INF = (1 << 30); const int N = 100005; struct Card { char suit; int value; } card[N], t[N], temp; Card L[N / 2 + 1], R[N / 2 + 1]; void _merge(Card a[], int l, int m, int r) //[l, r) { int i, j, k; int n1 = m - l; int n...
[ "literal.number.change", "expression.operation.binary.change" ]
121,118
121,119
u145367012
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) L[i...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) L[i...
[ "identifier.change", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
121,122
121,123
u303240337
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) L[i...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) L[i...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
121,124
121,123
u303240337
cpp
p02277
#include <climits> #include <iostream> #include <vector> using namespace std; class Card { public: uint8_t suit; int32_t num; Card() { suit = 'S'; num = 1; } Card(uint8_t suit, int32_t num) : suit(suit), num(num) {} Card &operator=(int n) { num = n; return *this; } }; bool operator<(...
#include <climits> #include <iostream> #include <vector> using namespace std; class Card { public: uint8_t suit; int32_t num; Card() { suit = 'S'; num = 1; } Card(uint8_t suit, int32_t num) : suit(suit), num(num) {} Card &operator=(int n) { num = n; return *this; } }; bool operator<(...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,127
121,128
u828599533
cpp
p02277
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 100000 #define LARGE 2000000000 typedef struct { char suit; int value; } Card; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(Card *, int, int, int, int); void mergeSort(Card *, int, int, int); int partition(Card *, int, int, int); void quic...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 100000 #define LARGE 2000000000 typedef struct { char suit; int value; } Card; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(Card *, int, int, int, int); void mergeSort(Card *, int, int, int); int partition(Card *, int, int, int); void quic...
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
121,129
121,130
u896148161
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 20000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) L[i...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) L[i]...
[ "preprocessor.define.value.change", "literal.integer.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
121,131
121,132
u334460795
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) L[i]...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) L[i]...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
121,133
121,132
u334460795
cpp
p02277
#include <iostream> #define INF 2000000000 typedef struct { char c; long long n; } data; int partition(data *, int, int); void quickSort(data *, int, int); void merge(int *, int, int, int); void mergeSort(data *, int, int); int main() { int n; std::cin >> n; data A[n], B[n]; for (int i = 0; i < n; i++) { ...
#include <iostream> #define INF 2000000000 typedef struct { char c; int n; } data; int partition(data *, int, int); void quickSort(data *, int, int); void merge(int *, int, int, int); void mergeSort(data *, int, int); int main() { int n; std::cin >> n; data A[n], B[n]; for (int i = 0; i < n; i++) { std:...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.narrow.change" ]
121,135
121,136
u752082358
cpp
p02277
#include <bits/stdc++.h> #define INF 1234567890 using namespace std; int partition(int *A, char *B, int p, int r) { int x = A[r]; int i = p - 1; for (int j = p; j < r; j++) { if (A[j] <= x) { i++; swap(A[i], A[j]); swap(B[i], B[j]); } } swap(A[i + 1], A[r]); swap(B[i + 1], B[r]); ...
#include <bits/stdc++.h> #define INF 1234567890 using namespace std; int partition(int *A, char *B, int p, int r) { int x = A[r]; int i = p - 1; for (int j = p; j < r; j++) { if (A[j] <= x) { i++; swap(A[i], A[j]); swap(B[i], B[j]); } } swap(A[i + 1], A[r]); swap(B[i + 1], B[r]); ...
[ "expression.operation.binary.remove", "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,137
121,138
u212664316
cpp
p02277
#include <bits/stdc++.h> #define INF 1234567890 using namespace std; int partition(int *A, char *B, int p, int r) { int x = A[r]; int i = p - 1; for (int j = p; j < r; j++) { if (A[j] <= x) { i++; swap(A[i], A[j]); swap(B[i], B[j]); } } swap(A[i + 1], A[r]); swap(B[i + 1], B[r]); ...
#include <bits/stdc++.h> #define INF 1234567890 using namespace std; int partition(int *A, char *B, int p, int r) { int x = A[r]; int i = p - 1; for (int j = p; j < r; j++) { if (A[j] <= x) { i++; swap(A[i], A[j]); swap(B[i], B[j]); } } swap(A[i + 1], A[r]); swap(B[i + 1], B[r]); ...
[ "expression.operation.binary.remove" ]
121,140
121,138
u212664316
cpp
p02277
#include <iostream> #define M 100000 #define S 2000000000 using namespace std; struct card { int num; char d; }; void merge(card *a, int l, int m, int r) { card L[m / 2 + 2]; card R[m / 2 + 2]; int n1 = m - l; int n2 = r - m; int b = 0, c = 0; for (int i = 0; i < n1; i++) L[i] = a[l + i]; for ...
#include <iostream> #define M 100000 #define S 2000000000 using namespace std; struct card { int num; char d; }; void merge(card *a, int l, int m, int r) { card L[M / 2 + 2]; card R[M / 2 + 2]; int n1 = m - l; int n2 = r - m; int b = 0, c = 0; for (int i = 0; i < n1; i++) L[i] = a[l + i]; for ...
[ "identifier.change", "expression.operation.binary.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,141
121,142
u908968819
cpp
p02277
#include <iostream> #define M 100000 #define S 2000000000 using namespace std; struct card { int num; char d; }; void merge(card *a, int l, int m, int r) { card L[m / 2 + 2]; card R[m / 2 + 2]; int n1 = m - l; int n2 = r - m; int b = 0, c = 0; for (int i = 0; i < n1; i++) L[i] = a[l + i]; for ...
#include <iostream> #define M 100000 #define S 2000000000 using namespace std; struct card { int num; char d; }; void merge(card *a, int l, int m, int r) { card L[M / 2 + 2]; card R[M / 2 + 2]; int n1 = m - l; int n2 = r - m; int b = 0, c = 0; for (int i = 0; i < n1; i++) L[i] = a[l + i]; for ...
[ "identifier.change", "expression.operation.binary.change" ]
121,143
121,142
u908968819
cpp
p02277
#include <bits/stdc++.h> #define MAX 100000 #define SENTINEL 2000000000 using namespace std; struct Card { char design; int num; }; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void mergeSort(Card[], int, int, int); int partition(Card[], int, int, int); void quickSort(Card[], int, int, int); void merge(Card[], int, int...
#include <bits/stdc++.h> #define MAX 100000 #define SENTINEL 2000000000 using namespace std; struct Card { char design; int num; }; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void mergeSort(Card[], int, int, int); int partition(Card[], int, int, int); void quickSort(Card[], int, int, int); void merge(Card[], int, int...
[ "assignment.variable.change", "identifier.change", "control_flow.loop.for.initializer.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
121,144
121,145
u133380340
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) { L[...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) { L[...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "call.arguments.change", "call.function.change" ]
121,146
121,147
u801535964
cpp
p02277
#include <cstdio> #include <cstring> #include <iostream> #define SENTINEL 1000000001 using namespace std; struct Card { char suit; int num; }; void merge(Card A[], int left, int mid, int right) { int nl = mid - left; int nr = right - mid; Card L[nl + 1]; Card R[nr + 1]; L[nl].num = SENTINEL; R[nr].num...
#include <cstdio> #include <cstring> #include <iostream> #define SENTINEL 1000000001 using namespace std; struct Card { char suit; int num; }; void merge(Card A[], int left, int mid, int right) { int nl = mid - left; int nr = right - mid; Card L[nl + 1]; Card R[nr + 1]; L[nl].num = SENTINEL; R[nr].num...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
121,148
121,149
u808404363
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; int A[MAX], n; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j, k; for (i = 0; i < n1;...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; int A[MAX], n; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j, k; for (i = 0; i < n1;...
[ "literal.number.change", "assignment.value.change", "control_flow.branch.if.condition.change" ]
121,150
121,151
u014280919
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; int A[MAX], n; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j, k; for (i = 0; i < n1;...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; int A[MAX], n; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int n, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j, k; for (i = 0; i < n1;...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
121,152
121,151
u014280919
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = A[...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = A[...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change", "identifier.change", "call.arguments.change", "io.output.change" ]
121,153
121,154
u014280919
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = A[...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = A[...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change", "identifier.change", "call.arguments.change", "io.output.change" ]
121,155
121,154
u014280919
cpp
p02277
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = A[...
#include <stdio.h> #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = A[...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
121,156
121,154
u014280919
cpp
p02277
//#define FILE_INPUT_DEFINE #ifdef FILE_INPUT_DEFINE #include <fstream> #endif // FILE_INPUT_DEFINE #include <deque> #include <iostream> #include <string> #include <unordered_map> using namespace std; #define MAX 100000 struct SN { char S; int N; }; SN A[MAX]; void swap(int a, int b) { SN temp(A[a]); A[a...
//#define FILE_INPUT_DEFINE #ifdef FILE_INPUT_DEFINE #include <fstream> #endif // FILE_INPUT_DEFINE #include <deque> #include <iostream> #include <string> #include <unordered_map> using namespace std; #define MAX 100000 struct SN { char S; int N; }; SN A[MAX]; void swap(int a, int b) { SN temp(A[a]); A[a...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
121,157
121,158
u810434660
cpp
p02277
#include <stdio.h> using namespace std; #define MAX 100000 struct Card { char suit; int value; }; Card tempCard[MAX]; void swap(Card A[], int index1, int index2) { int temp; char c; temp = A[index1].value; c = A[index1].suit; A[index1].value = A[index2].value; A[index1].suit = A[index2].suit; A[i...
#include <stdio.h> using namespace std; #define MAX 100000 struct Card { char suit; int value; }; Card tempCard[MAX]; void swap(Card A[], int index1, int index2) { int temp; char c; temp = A[index1].value; c = A[index1].suit; A[index1].value = A[index2].value; A[index1].suit = A[index2].suit; A[i...
[ "identifier.change", "call.arguments.change" ]
121,159
121,160
u933366037
cpp
p02277
#include <iostream> using namespace std; #define MAX 100000 #define SENTINEL 20000000 struct Card { char suit; int value; }; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) ...
#include <iostream> using namespace std; #define MAX 100000 #define SENTINEL 20000000 struct Card { char suit; int value; }; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) ...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change", "io.output.change" ]
121,164
121,165
u001068672
cpp
p02277
#include <iostream> using namespace std; #define MAX 100000 #define SENTINEL 20000000 struct Card { char suit; int value; }; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) ...
#include <iostream> using namespace std; #define MAX 100000 #define SENTINEL 20000000 struct Card { char suit; int value; }; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(Card A[], int n, int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; i++) ...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
121,166
121,165
u001068672
cpp
p02277
#include <algorithm> #include <iostream> #include <stdio.h> #define rep(i, n) for (int i = 0; i < n; i++) #define rep3(i, k, n) for (int i = k; i < n; i++) #define INFTY 2000000000 #define MAX 500000 using namespace std; typedef struct Card { char s; int x; } C; int n; C L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge...
#include <algorithm> #include <iostream> #include <stdio.h> #define rep(i, n) for (int i = 0; i < n; i++) #define rep3(i, k, n) for (int i = k; i < n; i++) #define INFTY 2000000000 #define MAX 500000 using namespace std; typedef struct Card { char s; int x; } C; int n; C L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,167
121,168
u834847889
cpp
p02277
// // main.cpp // quick_sort // // Created by ???????????? on 2017/10/08. // Copyright ?? 2017 ????????????. All rights reserved. // #include <climits> #include <cmath> #include <iostream> #include <stdio.h> using namespace std; struct Card { char suit; int num; }; void swap(Card *a, Card *b) { Card temp ...
// // main.cpp // quick_sort // // Created by ???????????? on 2017/10/08. // Copyright ?? 2017 ????????????. All rights reserved. // #include <climits> #include <cmath> #include <iostream> #include <stdio.h> using namespace std; struct Card { char suit; int num; }; void swap(Card *a, Card *b) { Card temp ...
[ "expression.operation.binary.add" ]
121,169
121,170
u826441682
cpp
p02277
#include <cstdio> #include <utility> #define MAX 100000 #define SENTINEL 200000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void Merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; ++...
#include <cstdio> #include <utility> #define MAX 100000 #define SENTINEL 1000000001 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void Merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; +...
[ "preprocessor.define.value.change", "literal.integer.change", "assignment.value.change", "identifier.change", "variable_access.subscript.index.change" ]
121,171
121,172
u818475907
cpp
p02277
#include <cstdio> #include <utility> #define MAX 100000 #define SENTINEL 200000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void Merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; ++...
#include <cstdio> #include <utility> #define MAX 100000 #define SENTINEL 1000000001 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void Merge(struct Card A[], int left, int mid, int right) { int i, j, k; int n1 = mid - left; int n2 = right - mid; for (i = 0; i < n1; +...
[ "preprocessor.define.value.change", "literal.integer.change", "assignment.value.change", "identifier.change", "variable_access.subscript.index.change" ]
121,173
121,172
u818475907
cpp
p02277
#include <iostream> using namespace std; #define MAX 100001 #define SENTINEL 2000000000 struct Card { char suit; int val; }; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card B[], int left, int mid, int right) { int i, j, n1, n2, k; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1; i++) { ...
#include <iostream> using namespace std; #define MAX 100001 #define SENTINEL 2000000000 struct Card { char suit; int val; }; Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card B[], int left, int mid, int right) { int i, j, n1, n2, k; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1; i++) { ...
[ "io.output.change" ]
121,176
121,177
u347385753
cpp
p02277
#include <algorithm> template <class T> int partition(T &A, int first, int last) { const int pivot = A[last - 1].second; int bound = first - 1; for (int i = first; i < last; ++i) if (A[i].second <= pivot) std::swap(A[++bound], A[i]); return bound; } template <class T> void quickSort(T &A, int first, ...
#include <algorithm> template <class T> int partition(T &A, int first, int last) { const int pivot = A[last - 1].second; int bound = first - 1; for (int i = first; i < last; ++i) if (A[i].second <= pivot) std::swap(A[++bound], A[i]); return bound; } template <class T> void quickSort(T &A, int first, ...
[ "io.output.change", "io.output.newline.add" ]
121,181
121,182
u301727652
cpp
p02277
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <time.h> #include <tuple> #include <u...
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <time.h> #include <tuple> #include <u...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,183
121,184
u529214876
cpp
p02277
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <time.h> #include <tuple> #include <u...
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <time.h> #include <tuple> #include <u...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,185
121,184
u529214876
cpp
p02277
#include <stdio.h> #include <stdlib.h> const int MAXSIZE = 100000 + 2; const int INF = 1000000000 + 2; struct Card { char type; int data; } a[MAXSIZE], b[MAXSIZE]; struct Card L[MAXSIZE / 2 + 2], R[MAXSIZE / 2 + 2]; void Merge(struct Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right ...
#include <stdio.h> #include <stdlib.h> const int MAXSIZE = 100000 + 2; const int INF = 2000000000; struct Card { char type; int data; } a[MAXSIZE], b[MAXSIZE]; struct Card L[MAXSIZE / 2 + 2], R[MAXSIZE / 2 + 2]; void Merge(struct Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mi...
[ "literal.number.change", "variable_declaration.value.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
121,192
121,193
u681781162
cpp
p02277
#include <cstdio> #include <iostream> #define SENTINEL 1000000000 using namespace std; struct card { char c; int k; } a[100010], A[100010], temp; int partition(int p, int r) { int x = a[r].k, i = p - 1; int j; for (j = p; j < r; j++) if (a[j].k <= x) { i++; temp = a[j]; a[j] = a[i]; ...
#include <cstdio> #include <iostream> #define SENTINEL 1000000000 using namespace std; struct card { char c; int k; } a[100010], A[100010], temp; int partition(int p, int r) { int x = a[r].k, i = p - 1; int j; for (j = p; j < r; j++) if (a[j].k <= x) { i++; temp = a[j]; a[j] = a[i]; ...
[ "identifier.change", "call.arguments.change", "io.output.change" ]
121,194
121,195
u158658951
cpp
p02277
#include <cmath> #include <cstdio> #include <utility> #include <vector> using namespace std; //????????¢??°??? int partition(vector<pair<char, int>> &A, int p, int r) { int x = A[r].second; int i, j; i = p - 1; for (j = p; j < r; j++) { if (A[j].second <= x) { i = i + 1; swap(A[i], A[j]...
#include <cmath> #include <cstdio> #include <utility> #include <vector> using namespace std; //????????¢??°??? int partition(vector<pair<char, int>> &A, int p, int r) { int x = A[r].second; int i, j; i = p - 1; for (j = p; j < r; j++) { if (A[j].second <= x) { i = i + 1; swap(A[i], A[j]...
[ "identifier.change", "call.arguments.change" ]
121,196
121,197
u150659088
cpp
p02277
#include <climits> #include <iostream> #include <vector> using namespace std; struct Card { char suit; int val; }; int partition(vector<Card> &A, int p, int r) { int x = A[r].val; int i = p - 1; for (int j = p; j < r; ++j) { if (A[j].val <= x) { ++i; swap(A[i], A[j]); } } swap(A[i + ...
#include <climits> #include <iostream> #include <vector> using namespace std; struct Card { char suit; int val; }; int partition(vector<Card> &A, int p, int r) { int x = A[r].val; int i = p - 1; for (int j = p; j < r; ++j) { if (A[j].val <= x) { ++i; swap(A[i], A[j]); } } swap(A[i + ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,198
121,199
u036926685
cpp
p02277
#include <climits> #include <iostream> #include <vector> using namespace std; struct Card { char suit; int val; }; int partition(vector<Card> &A, int p, int r) { int x = A[r].val; int i = p - 1; for (int j = p; j < r; ++j) { if (A[j].val <= x) { ++i; swap(A[i], A[j]); } } swap(A[i + ...
#include <climits> #include <iostream> #include <vector> using namespace std; struct Card { char suit; int val; }; int partition(vector<Card> &A, int p, int r) { int x = A[r].val; int i = p - 1; for (int j = p; j < r; ++j) { if (A[j].val <= x) { ++i; swap(A[i], A[j]); } } swap(A[i + ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,200
121,199
u036926685
cpp
p02277
#include <cstdio> #include <cstring> #define rep(i, n) for (int i = 0; i < (n); ++i) #define err(...) fprintf(stderr, __VA_ARGS__) constexpr int INF = 0x3f3f3f3f; struct PP { int n; char c; PP() {} bool operator>(const PP &rhs) const { return (n > rhs.n); } bool operator<(const PP &rhs) const { return (n < r...
#include <cstdio> #include <cstring> #define rep(i, n) for (int i = 0; i < (n); ++i) #define err(...) fprintf(stderr, __VA_ARGS__) constexpr int INF = 0x3f3f3f3f; struct PP { int n; char c; PP() {} bool operator>(const PP &rhs) const { return (n > rhs.n); } bool operator<(const PP &rhs) const { return (n < r...
[ "expression.operation.binary.remove" ]
121,201
121,202
u413573086
cpp
p02277
#include <algorithm> #include <cassert> #include <climits> #include <fstream> #include <iostream> #include <stdint.h> #include <stdio.h> using namespace std; #define DEBUG (0) #if DEBUG #define DPRINTF(...) \ do { ...
#include <algorithm> #include <cassert> #include <climits> #include <fstream> #include <iostream> #include <stdint.h> #include <stdio.h> using namespace std; #define DEBUG (0) #if DEBUG #define DPRINTF(...) \ do { ...
[ "expression.operation.binary.remove", "literal.string.change", "call.arguments.change", "io.output.change", "identifier.change" ]
121,203
121,204
u166659979
cpp
p02277
#include <algorithm> #include <cassert> #include <climits> #include <fstream> #include <iostream> #include <stdint.h> #include <stdio.h> using namespace std; #define DEBUG (1) #if DEBUG #define DPRINTF(...) \ do { ...
#include <algorithm> #include <cassert> #include <climits> #include <fstream> #include <iostream> #include <stdint.h> #include <stdio.h> using namespace std; #define DEBUG (0) #if DEBUG #define DPRINTF(...) \ do { ...
[ "preprocessor.define.value.change", "literal.integer.change" ]
121,205
121,204
u166659979
cpp
p02277
#include <iostream> struct Card { char suit; int value; }; constexpr int MAXNUM = 100000; constexpr int SENTINEL = 2000000000; void merge(Card *A, int l, int m, int r) { int nl = m - l; int nr = r - m; Card L[MAXNUM / 2 + 2]; Card R[MAXNUM / 2 + 2]; for (int i = 0; i < nl; i++) { L[i] = A[l + i]; ...
#include <iostream> struct Card { char suit; int value; }; constexpr int MAXNUM = 100000; constexpr int SENTINEL = 2000000000; void merge(Card *A, int l, int m, int r) { int nl = m - l; int nr = r - m; Card L[MAXNUM / 2 + 2]; Card R[MAXNUM / 2 + 2]; for (int i = 0; i < nl; i++) { L[i] = A[l + i]; ...
[ "identifier.change", "expression.operation.binary.change" ]
121,206
121,207
u564398841
cpp
p02277
#include <algorithm> #include <array> #include <cstdio> #include <iostream> #include <list> #include <numeric> #include <queue> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #define _USE_MATH_DEFINES #include <map> #include <math.h> #define SENTINEL 1000000001 #define min...
#include <algorithm> #include <array> #include <cstdio> #include <iostream> #include <list> #include <numeric> #include <queue> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #define _USE_MATH_DEFINES #include <map> #include <math.h> #define SENTINEL 1000000001 #define min...
[]
121,208
121,209
u456512109
cpp
p02277
#include <bits/stdc++.h> using namespace std; #define r(i, n) for (auto i = 0; i < n; i++) #define s(c) static_cast<int>((c).size()) typedef struct { char suit; int num; } Card; void merge(Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j, k; Card L[n1 + 1], R[n...
#include <bits/stdc++.h> using namespace std; #define r(i, n) for (auto i = 0; i < n; i++) #define s(c) static_cast<int>((c).size()) typedef struct { char suit; int num; } Card; void merge(Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j, k; Card L[n1 + 1], R[n...
[ "expression.operation.binary.remove" ]
121,210
121,211
u556857282
cpp
p02277
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <utility> #include <vector> using namespace std; struct Card { char suit, rank; }; bool comp(Card a, Card b) { return a.rank <= b.rank; } int partition(Card A[], int p, int r) { int x = A[r].rank; int i = p - 1; for (int j...
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <utility> #include <vector> using namespace std; struct Card { char suit; int rank; }; bool comp(Card a, Card b) { return a.rank < b.rank; } int partition(Card A[], int p, int r) { int x = A[r].rank; int i = p - 1; for (...
[ "expression.operator.compare.change", "function.return_value.change", "expression.operation.binary.change", "literal.string.change", "call.arguments.change", "identifier.change", "call.function.change" ]
121,214
121,215
u733937602
cpp
p02277
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <utility> #include <vector> using namespace std; struct Card { char suit, rank; }; bool comp(Card a, Card b) { return a.rank < b.rank; } int partition(Card A[], int p, int r) { int x = A[r].rank; int i = p - 1; for (int j ...
#include <algorithm> #include <iostream> #include <math.h> #include <stdio.h> #include <utility> #include <vector> using namespace std; struct Card { char suit; int rank; }; bool comp(Card a, Card b) { return a.rank < b.rank; } int partition(Card A[], int p, int r) { int x = A[r].rank; int i = p - 1; for (...
[ "literal.string.change", "call.arguments.change" ]
121,216
121,215
u733937602
cpp
p02277
#include <cstring> #include <iostream> #include <utility> using namespace std; #define M 1000000000 int mycount = 0; struct card { char mark; int num; }; void merge(card *A, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j; card L[n1 + 1], R[n2 + 1]; for (i = 0; i <...
#include <cstring> #include <iostream> #include <utility> using namespace std; #define M 1000000000 int mycount = 0; struct card { char mark; int num; }; void merge(card *A, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j; card L[n1 + 1], R[n2 + 1]; for (i = 0; i <...
[ "assignment.value.change", "identifier.change", "call.arguments.change", "io.output.change" ]
121,217
121,218
u230220367
cpp
p02277
#include <cstring> #include <iostream> #include <utility> using namespace std; #define M 1000000000 int mycount = 0; struct card { char mark; int num; }; void merge(card *A, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j; card L[n1 + 1], R[n2 + 1]; for (i = 0; i <...
#include <cstring> #include <iostream> #include <utility> using namespace std; #define M 1000000000 int mycount = 0; struct card { char mark; int num; }; void merge(card *A, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j; card L[n1 + 1], R[n2 + 1]; for (i = 0; i <...
[ "assignment.value.change", "identifier.change" ]
121,219
121,218
u230220367
cpp
p02277
#include <algorithm> #include <iostream> #include <vector> struct Card { char suit; int num; bool operator==(const Card &other) { return suit == other.suit && num == other.num; } bool operator!=(const Card &other) { return !operator==(other); } }; std::istream &operator>>(std::istream &is, Card &value...
#include <algorithm> #include <iostream> #include <vector> struct Card { char suit; int num; bool operator==(const Card &other) { return suit == other.suit && num == other.num; } bool operator!=(const Card &other) { return !operator==(other); } }; std::istream &operator>>(std::istream &is, Card &valu...
[ "misc.opposites", "expression.operator.compare.change", "call.arguments.change", "function.return_value.change", "expression.operation.binary.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,220
121,221
u891005456
cpp
p02277
#include <algorithm> #include <iostream> #include <vector> struct Card { char suit; int num; bool operator==(const Card &other) { return suit == other.suit && num == other.num; } bool operator!=(const Card &other) { return !operator==(other); } }; std::istream &operator>>(std::istream &is, Card &value...
#include <algorithm> #include <iostream> #include <vector> struct Card { char suit; int num; bool operator==(const Card &other) { return suit == other.suit && num == other.num; } bool operator!=(const Card &other) { return !operator==(other); } }; std::istream &operator>>(std::istream &is, Card &valu...
[ "misc.opposites", "expression.operator.compare.change", "call.arguments.change", "function.return_value.change", "expression.operation.binary.change" ]
121,222
121,221
u891005456
cpp
p02277
#include <cstdio> #include <iostream> using namespace std; struct Card { char suit; int value; }; Card A[100000], B[100000]; int N; int partition(Card A[], int p, int r) { int i = p - 1; int x = A[r - 1].value; for (p; p < r; p++) { if (A[p].value <= x) { swap(A[++i], A[p]); } } return i;...
#include <cstdio> #include <iostream> using namespace std; struct Card { char suit; int value; }; Card A[100000], B[100000]; int N; int partition(Card A[], int p, int r) { int i = p - 1; int x = A[r - 1].value; for (p; p < r; p++) { if (A[p].value <= x) { swap(A[++i], A[p]); } } return i;...
[ "expression.operation.binary.remove" ]
121,223
121,224
u356390697
cpp
p02277
/* #include<iostream> #include<utility> using namespace std; #define INF 1999999999 pair<char, int> P[1000005]; pair<char, int> S[1000005], L[500005], R[500005]; long long sum=0; void merge(int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; for (int i=0; i<n1; i++) { L[i] =...
/* #include<iostream> #include<utility> using namespace std; #define INF 1999999999 pair<char, int> P[1000005]; pair<char, int> S[1000005], L[500005], R[500005]; long long sum=0; void merge(int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; for (int i=0; i<n1; i++) { L[i] =...
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
121,227
121,228
u612715617
cpp
p02277
#include <bits/stdc++.h> using namespace std; int n; pair<char, int> A[100000]; map<int, vector<char>> m; int partition(int p, int r) { int x = A[r].second; int i = p - 1; for (int j = p; j < r; j++) { if (A[j].second <= x) { i = i + 1; swap(A[i], A[j]); } } swap(A[i + 1], A[r]); return ...
#include <bits/stdc++.h> using namespace std; int n; pair<char, int> A[100000]; map<int, vector<char>> m; int partition(int p, int r) { int x = A[r].second; int i = p - 1; for (int j = p; j < r; j++) { if (A[j].second <= x) { i = i + 1; swap(A[i], A[j]); } } swap(A[i + 1], A[r]); return ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,229
121,230
u105296105
cpp
p02277
#include <climits> #include <cstdio> #include <cstdlib> #include <cstring> void merge(int *A, char *S, int left, int mid, int right) { int i, j; int n1 = mid - left; int n2 = right - mid; int L[n1 + 1]; int R[n2 + 1]; char Ls[n1 + 1]; char Rs[n2 + 1]; for (i = 0; i < n1; i++) L[i] = A[left + i]; ...
#include <climits> #include <cstdio> #include <cstdlib> #include <cstring> void merge(int *A, char *S, int left, int mid, int right) { int i, j; int n1 = mid - left; int n2 = right - mid; int L[n1 + 1]; int R[n2 + 1]; char Ls[n1 + 1]; char Rs[n2 + 1]; for (i = 0; i < n1; i++) L[i] = A[left + i]; ...
[ "identifier.change", "call.arguments.change", "io.output.change" ]
121,232
121,233
u832302504
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,234
121,235
u781750353
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b, j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(A...
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
[ "function.return_value.change", "control_flow.branch.if.condition.change" ]
121,236
121,237
u120979167
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
[ "control_flow.branch.if.condition.change" ]
121,238
121,237
u120979167
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap...
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap...
[ "control_flow.branch.if.condition.change" ]
121,239
121,240
u518803905
cpp
p02277
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define ll long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) ...
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define ll long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) ...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "expression.operation.binary.remove" ]
121,241
121,242
u395246068
cpp
p02277
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define ll long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) ...
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define ll long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) ...
[ "expression.operation.binary.remove" ]
121,243
121,242
u395246068
cpp
p02277
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define ll long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) ...
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define ll long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) ...
[ "identifier.change", "call.arguments.change", "io.output.change" ]
121,244
121,242
u395246068
cpp
p02277
/* * ALDS1_6_C.cpp * * Created on: Apr 30, 2018 * Author: 13743 */ #include <algorithm> #include <iostream> struct Card { char c; int x; }; void merge(Card *A, int l, int mid, int r) { int n1 = mid - l; int n2 = r - mid; Card L[n1 + 1]; Card R[n2 + 1]; for (int i = 0; i < n1; i++) { L[i]...
/* * ALDS1_6_C.cpp * * Created on: Apr 30, 2018 * Author: 13743 */ #include <algorithm> #include <iostream> struct Card { char c; int x; }; void merge(Card *A, int l, int mid, int r) { int n1 = mid - l; int n2 = r - mid; Card L[n1 + 1]; Card R[n2 + 1]; for (int i = 0; i < n1; i++) { L[i]...
[ "identifier.change", "expression.operation.binary.change" ]
121,245
121,246
u115352705
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Gard { char a; int b; }; bool compare_as_ints(Gard i, Gard j) { return (i.b < j.b); } int partition(Gard A[], int p, int r) { Gard x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap...
#include <algorithm> #include <iostream> using namespace std; struct Gard { char a; int b; }; bool compare_as_ints(Gard i, Gard j) { return (i.b < j.b); } int partition(Gard A[], int p, int r) { Gard x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,247
121,248
u676789038
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Gard { char a; int b; }; bool compare_as_ints(Gard i, Gard j) { return (i.b < j.b); } int partition(Gard A[], int p, int r) { Gard x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap...
#include <algorithm> #include <iostream> using namespace std; struct Gard { char a; int b; }; bool compare_as_ints(Gard i, Gard j) { return (i.b < j.b); } int partition(Gard A[], int p, int r) { Gard x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,249
121,248
u676789038
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
#include <algorithm> #include <iostream> using namespace std; struct Card { char a; int b; }; bool compare_as_ints(Card i, Card j) { return (i.b < j.b); } int partition(Card A[], int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].b <= x.b) { i++; swap(...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,250
121,251
u127724110
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; struct Card { char c; int a; }; bool compare(Card i, Card j) { return (i.a < j.a); } int partition(Card *A, int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].a <= x.a) { i++; swap(A[i], A[...
#include <algorithm> #include <iostream> using namespace std; struct Card { char c; int a; }; bool compare(Card i, Card j) { return (i.a < j.a); } int partition(Card *A, int p, int r) { Card x = A[r]; int i = p - 1; for (int j = p; j <= r - 1; j++) { if (A[j].a <= x.a) { i++; swap(A[i], A[...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,252
121,253
u790645814
cpp
p02277
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; #define infinity 2000000000 struct node { char pat; int num; }; node A[100010], B[100010]; node L[50010], R[50010]; int n; void merge(int left, int mid, int right) { int n1 = mid - left, n2 = right - mid; for (int i = 0; i < n1; i...
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; #define infinity 2000000000 struct node { char pat; int num; }; node A[100010], B[100010]; node L[50010], R[50010]; int n; void merge(int left, int mid, int right) { int n1 = mid - left, n2 = right - mid; for (int i = 0; i < n1; i...
[ "assignment.variable.change", "identifier.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,256
121,257
u347577008
cpp
p02277
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; #define infinity 2000000000 struct node { char pat; int num; }; node A[100010], B[100010]; node L[50010], R[50010]; int n; void merge(int left, int mid, int right) { int n1 = mid - left, n2 = right - mid; for (int i = 0; i < n1; i...
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; #define infinity 2000000000 struct node { char pat; int num; }; node A[100010], B[100010]; node L[50010], R[50010]; int n; void merge(int left, int mid, int right) { int n1 = mid - left, n2 = right - mid; for (int i = 0; i < n1; i...
[ "assignment.variable.change", "identifier.change" ]
121,258
121,257
u347577008
cpp
p02277
#include <iostream> using namespace std; #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) {...
#include <iostream> using namespace std; #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) { ...
[ "identifier.change", "call.arguments.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,259
121,260
u626935725
cpp
p02277
#include <iostream> using namespace std; #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) { ...
#include <iostream> using namespace std; #define MAX 100000 #define SENTINEL 2000000000 struct Card { char suit; int value; }; struct Card L[MAX / 2 + 2], R[MAX / 2 + 2]; void merge(struct Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; for (int i = 0; i < n1; i++) { ...
[ "identifier.change", "call.arguments.change" ]
121,261
121,260
u626935725
cpp
p02277
#include <iostream> using namespace std; struct Card { char c; int n; }; bool IsStable(Card A1[], Card A2[], int n) { for (int i = 0; i < n; i++) if (A1[i].c != A2[i].c) return false; return true; } void Marge(Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; ...
#include <iostream> using namespace std; struct Card { char c; int n; }; bool IsStable(Card A1[], Card A2[], int n) { for (int i = 0; i < n; i++) if (A1[i].c != A2[i].c) return false; return true; } void Marge(Card A[], int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; ...
[ "expression.operation.binary.remove" ]
121,265
121,266
u173380514
cpp
p02277
#include <algorithm> #include <iostream> using namespace std; #define INFTY 1000000001 typedef struct card { char mark; int num; } card; //安定で高速 void merge(card *A, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j; card L[n1 + 10], R[n2 + 10]; for (i = 0; i < n1; i+...
#include <algorithm> #include <iostream> using namespace std; #define INFTY 1000000001 typedef struct card { char mark; int num; } card; //安定で高速 void merge(card *A, int left, int mid, int right) { int n1 = mid - left; int n2 = right - mid; int i, j; card L[n1 + 10], R[n2 + 10]; for (i = 0; i < n1; i+...
[ "expression.operation.binary.remove" ]
121,269
121,270
u489432693
cpp
p02277
#include <iostream> using namespace std; #define N 100001 #define SENTINEL 999999998 // Merge function void Merge(int a[], char c[], int left, int mid, int right) { int n1, n2, i, j; int L[N], R[N]; char Lc[N], Rc[N]; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = a[left + i]...
#include <iostream> using namespace std; #define N 100001 #define SENTINEL 999999998 // Merge function void Merge(int a[], char c[], int left, int mid, int right) { int n1, n2, i, j; int L[N], R[N]; char Lc[N], Rc[N]; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = a[left + i]...
[ "assignment.value.change", "identifier.change", "expression.operation.binary.remove" ]
121,273
121,274
u575882803
cpp
p02277
#include <iostream> using namespace std; #define N 100001 #define SENTINEL 999999998 // Merge function void Merge(int a[], char c[], int left, int mid, int right) { int n1, n2, i, j; int L[N], R[N]; char Lc[N], Rc[N]; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = a[left + i]...
#include <iostream> using namespace std; #define N 100001 #define SENTINEL 999999998 // Merge function void Merge(int a[], char c[], int left, int mid, int right) { int n1, n2, i, j; int L[N], R[N]; char Lc[N], Rc[N]; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = a[left + i]...
[ "assignment.value.change", "identifier.change" ]
121,275
121,274
u575882803
cpp
p02277
#include <iostream> using namespace std; #define N 100001 #define SENTINEL 999999998 // Merge function void Merge(int a[], char c[], int left, int mid, int right) { int n1, n2, i, j; int L[N], R[N]; char Lc[N], Rc[N]; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = a[left + i]...
#include <iostream> using namespace std; #define N 100001 // SENTINEL is too big number #define SENTINEL 999999998 // Merge function void Merge(int a[], char c[], int left, int mid, int right) { int n1, n2, i, j; int L[N], R[N]; char Lc[N], Rc[N]; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1;...
[ "assignment.value.change", "identifier.change", "expression.operation.binary.remove" ]
121,273
121,276
u575882803
cpp
p02277
#include <iostream> using namespace std; #define N 100001 #define SENTINEL 999999998 // Merge function void Merge(int a[], char c[], int left, int mid, int right) { int n1, n2, i, j; int L[N], R[N]; char Lc[N], Rc[N]; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1; i++) { L[i] = a[left + i]...
#include <iostream> using namespace std; #define N 100001 // SENTINEL is too big number #define SENTINEL 999999998 // Merge function void Merge(int a[], char c[], int left, int mid, int right) { int n1, n2, i, j; int L[N], R[N]; char Lc[N], Rc[N]; n1 = mid - left; n2 = right - mid; for (i = 0; i < n1;...
[ "assignment.value.change", "identifier.change" ]
121,275
121,276
u575882803
cpp
p02277
#include <algorithm> #include <iostream> #include <vector> using namespace std; int Partition(vector<pair<char, int>> &A, int p, int r) { int x = A[r - 1].second; int i = p - 1; for (int j = p; j < r - 1; ++j) { if (A[j].second <= x) { ++i; swap(A[i], A[j]); } } swap(A[i + 1], A[r - 1]);...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int Partition(vector<pair<char, int>> &A, int p, int r) { int x = A[r - 1].second; int i = p - 1; for (int j = p; j < r - 1; ++j) { if (A[j].second <= x) { ++i; swap(A[i], A[j]); } } swap(A[i + 1], A[r - 1]);...
[ "expression.operation.binary.remove" ]
121,277
121,278
u205938947
cpp
p02277
//#include <algorithm> #include <iostream> #include <vector> using namespace std; struct card { char suit; int num; }; int partition_out(vector<card> &A, int q) { int n = A.size(); for (int i = 0; i < n; i++) { cout << A[i].suit << " " << A[i].num << endl; } return 0; } int partition(vector<card> &A,...
#include <iostream> #include <vector> using namespace std; struct card { char suit; int num; }; int card_out(vector<card> &A, int q) { int n = A.size(); for (int i = 0; i < n; i++) { cout << A[i].suit << " " << A[i].num << endl; } return 0; } int partition(vector<card> &A, int p, int r) { int x = A...
[ "identifier.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove", "call.function.change" ]
121,279
121,280
u912237403
cpp
p02277
#include <iostream> #include <vector> using namespace std; struct card { char suit; int num; }; int partition_out(vector<card> &A, int q) { int n = A.size(); for (int i = 0; i < n; i++) { cout << A[i].suit << " " << A[i].num << endl; } return 0; } int partition(vector<card> &A, int p, int r) { int ...
#include <iostream> #include <vector> using namespace std; struct card { char suit; int num; }; int card_out(vector<card> &A, int q) { int n = A.size(); for (int i = 0; i < n; i++) { cout << A[i].suit << " " << A[i].num << endl; } return 0; } int partition(vector<card> &A, int p, int r) { int x = A...
[ "identifier.change", "expression.operation.binary.remove", "call.function.change" ]
121,281
121,280
u912237403
cpp
p02277
/* ソートが安定(stable)かどうか確かめる 手続きを入れるより、 nがそこまで大きくないので 安定であると周知のソートアルゴリズムを使って ソートしたのと比較して一致するか見る。 */ /* 「pivotを中間に、大きいものと小さいものを交換していく」 という感じではなく、 「pivotより小さいものを探して、前の方に詰めていく(添え字iのとこ)」 という感じである。 */ #include <algorithm> #include <iostream> #include <vector> using namespace std; //カード記録用の構造体 // typedef struct CARD_TEMP ...
/* ソートが安定(stable)かどうか確かめる 手続きを入れるより、 nがそこまで大きくないので 安定であると周知のソートアルゴリズムを使って ソートしたのと比較して一致するか見る。 */ /* 「pivotを中間に、大きいものと小さいものを交換していく」 という感じではなく、 「pivotより小さいものを探して、前の方に詰めていく(添え字iのとこ)」 という感じである。 */ #include <algorithm> #include <iostream> #include <vector> using namespace std; //カード記録用の構造体 // typedef struct CARD_TEMP ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
121,282
121,283
u708195431
cpp
p02277
#include <algorithm> // require sort next_permutation count __gcd reverse etc. #include <cctype> // require tolower, toupper #include <cfloat> #include <climits> #include <cmath> // require fabs #include <cstdio> // require scanf printf #include <cstdlib> // require abs exit atof atoi #include <cstring> // requir...
#include <algorithm> // require sort next_permutation count __gcd reverse etc. #include <cctype> // require tolower, toupper #include <cfloat> #include <climits> #include <cmath> // require fabs #include <cstdio> // require scanf printf #include <cstdlib> // require abs exit atof atoi #include <cstring> // requir...
[ "identifier.change", "expression.operation.binary.change" ]
121,284
121,285
u597396610
cpp
p02278
#include <algorithm> #include <iostream> using namespace std; static const int MAX = 1000; static const int VMAX = 10000; int n, A[MAX], s; int B[MAX], T[MAX + 1]; int solve() { int ans = 0; bool V[MAX]; for (int i = 0; i < n; i++) { B[i] = A[i]; V[i] = false; } sort(B, B + n); for (int i = 0; i ...
#include <algorithm> #include <iostream> using namespace std; static const int MAX = 1000; static const int VMAX = 10000; int n, A[MAX], s; int B[MAX], T[VMAX + 1]; int solve() { int ans = 0; bool V[MAX]; for (int i = 0; i < n; i++) { B[i] = A[i]; V[i] = false; } sort(B, B + n); for (int i = 0; i...
[ "identifier.change", "expression.operation.binary.change", "misc.typo", "assignment.value.change", "call.arguments.change" ]
121,402
121,403
u201120946
cpp
p02278
#include <algorithm> #include <iostream> using namespace std; static const int MAX = 1000; static const int VMAX = 10000; int n, A[MAX], s; int B[MAX], T[VMAX + 1]; int solve() { int ans = 0; bool V[MAX]; for (int i = 0; i < n; i++) { B[i] = A[i]; V[i] = false; } sort(B, B + n); for (int i = 0; i...
#include <algorithm> #include <iostream> using namespace std; static const int MAX = 1000; static const int VMAX = 10000; int n, A[MAX], s; int B[MAX], T[VMAX + 1]; int solve() { int ans = 0; bool V[MAX]; for (int i = 0; i < n; i++) { B[i] = A[i]; V[i] = false; } sort(B, B + n); for (int i = 0; i...
[ "misc.typo", "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
121,404
121,403
u201120946
cpp
p02278
#include "bits/stdc++.h" using namespace std; using LL = long long; using ULL = unsigned long long; const double PI = acos(-1); template <class T> constexpr T INF() { return ::std::numeric_limits<T>::max(); } template <class T> constexpr T HINF() { return INF<T>() / 2; } template <typename T_char> T_char TL(T_char cX) ...
#include "bits/stdc++.h" using namespace std; using LL = long long; using ULL = unsigned long long; const double PI = acos(-1); template <class T> constexpr T INF() { return ::std::numeric_limits<T>::max(); } template <class T> constexpr T HINF() { return INF<T>() / 2; } template <typename T_char> T_char TL(T_char cX) ...
[ "assignment.change" ]
121,410
121,411
u018085514
cpp
p02278
#include <bits/stdc++.h> using namespace std; #define fordebug \ int hoge; \ cin >> hoge; #define DEKAI 1000000007; #define INF 200000000 #define int long long #define lp(i, n) for (int ...
#include <bits/stdc++.h> using namespace std; #define fordebug \ int hoge; \ cin >> hoge; #define DEKAI 1000000007; #define INF 200000000 #define int long long #define lp(i, n) for (int ...
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change", "expression.operator.arithmetic.change", "expression.operation.binary.remove" ]
121,412
121,413
u575569688
cpp
p02278
#include <bits/stdc++.h> using namespace std; #define fordebug \ int hoge; \ cin >> hoge; #define DEKAI 1000000007; #define INF 200000000 #define int long long #define lp(i, n) for (int ...
#include <bits/stdc++.h> using namespace std; #define fordebug \ int hoge; \ cin >> hoge; #define DEKAI 1000000007; #define INF 200000000 #define int long long #define lp(i, n) for (int ...
[ "expression.operator.arithmetic.change", "assignment.value.change", "expression.operation.binary.change" ]
121,414
121,413
u575569688
cpp
p02278
#include <algorithm> #include <cstdio> #include <map> #include <vector> using namespace std; int do_cycle(vector<int> &v, int x) { int s = 0, m = 1 << 30; for (auto &e : v) s += e, m = min(m, e); return min(s + (v.size() - 2) * m, s + m + (v.size() + 1) * x); } int main() { int N, x = 1 << 30, r; scanf(...
#include <algorithm> #include <cstdio> #include <map> #include <vector> using namespace std; int do_cycle(vector<int> &v, int x) { int s = 0, m = 1 << 30; for (auto &e : v) s += e, m = min(m, e); return min(s + (v.size() - 2) * m, s + m + (v.size() + 1) * x); } int main() { int N, x = 1 << 30, r = 0; sc...
[ "variable_declaration.value.change" ]
121,420
121,421
u300645821
cpp