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 |
|---|---|---|---|---|---|---|---|
p02261 | //
// ALDS1_2_C.cpp
//
//
// Created by ?¢¨????????£??? on 2015/11/24.
//
//
#include <iostream>
#include <stdio.h>
using namespace ::std;
struct Card {
char suit;
char value;
};
void checkStable(Card A1[], Card A2[], int N) {
int stable_flg = 1;
for (int i = 0; i < N; i++) {
if (A1[i].suit != A2[i].s... | //
// ALDS1_2_C.cpp
//
//
// Created by ?¢¨????????£??? on 2015/11/24.
//
//
#include <iostream>
#include <stdio.h>
using namespace ::std;
struct Card {
char suit;
char value;
};
void checkStable(Card A1[], Card A2[], int N) {
int stable_flg = 1;
for (int i = 0; i < N; i++) {
if (A1[i].suit != A2[i].s... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,344 | 105,345 | u736039489 | cpp |
p02261 | #include <algorithm>
#include <iostream>
using namespace std;
class Card {
public:
int value;
char mark;
};
int main() {
int n;
cin >> n;
Card c1[100], c2[100];
for (int i = 0; i < n; i++) {
cin >> c1[i].mark >> c1[i].value;
c2[i] = c1[i];
}
// BubbleSort
for (int i = 0; i < n; i++) {
f... | #include <algorithm>
#include <iostream>
using namespace std;
class Card {
public:
int value;
char mark;
};
int main() {
int n;
cin >> n;
Card c1[100], c2[100];
for (int i = 0; i < n; i++) {
cin >> c1[i].mark >> c1[i].value;
c2[i] = c1[i];
}
// BubbleSort
for (int i = 0; i < n; i++) {
f... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,347 | 105,348 | u250086100 | cpp |
p02261 | #include <iostream>
using namespace std;
#define MAX 36
int n;
pair<char, int> card4Bubble[MAX];
pair<char, int> card4Selection[MAX];
void bubbleSort();
void selectionSort();
int main(void) {
char type;
int number;
cin >> n;
// input.
for (int i = 0; i < n; i++) {
cin >> type;
cin >> number;
... | #include <iostream>
using namespace std;
#define MAX 40
int n;
pair<char, int> card4Bubble[MAX];
pair<char, int> card4Selection[MAX];
void bubbleSort();
void selectionSort();
int main(void) {
char type;
int number;
cin >> n;
// input.
for (int i = 0; i < n; i++) {
cin >> type;
cin >> number;
... | [
"preprocessor.define.value.change",
"literal.integer.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 105,349 | 105,350 | u651428295 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void print_vec(vector<string> &vec, int n) {
for (int i = 0; i < n; i++) {
cout << vec[i];
if (i < n - 1)
cout << " ";
}
cout << endl;
}
int main() {
int n; // number of entries;
cin >> n;
vec... |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void print_vec(vector<string> &vec, int n) {
for (int i = 0; i < n; i++) {
cout << vec[i];
if (i < n - 1)
cout << " ";
}
cout << endl;
}
int main() {
int n; // number of entries;
cin >> n;
v... | [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 105,353 | 105,354 | u743887543 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void print_vec(vector<string> &vec, int n) {
for (int i = 0; i < n; i++) {
cout << vec[i];
if (i < n - 1)
cout << " ";
}
cout << endl;
}
int main() {
int n; // number of entries;
cin >> n;
vec... |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void print_vec(vector<string> &vec, int n) {
for (int i = 0; i < n; i++) {
cout << vec[i];
if (i < n - 1)
cout << " ";
}
cout << endl;
}
int main() {
int n; // number of entries;
cin >> n;
v... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 105,355 | 105,354 | u743887543 | cpp |
p02261 | #include <iostream>
#include <utility>
using namespace std;
struct card {
char suit;
int value;
};
void output(int n, card elements[]) {
for (int i = 0; i < n - 1; i++)
cout << elements[i].suit << elements[i].value << " ";
cout << elements[n - 1].suit << elements[n - 1].value << endl;
}
int bubble_sort(... | #include <iostream>
#include <utility>
using namespace std;
struct card {
char suit;
int value;
};
void output(int n, card elements[]) {
for (int i = 0; i < n - 1; i++)
cout << elements[i].suit << elements[i].value << " ";
cout << elements[n - 1].suit << elements[n - 1].value << endl;
}
int bubble_sort(... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,358 | 105,359 | u973694800 | cpp |
p02261 | #include <algorithm>
#include <iostream>
using namespace std;
struct Card {
char suit;
int num;
};
void swapc(Card &c1, Card &c2);
int main() {
Card c1[36], c2[36];
int i, j, n, mini, tmpn;
char tmpc, dum;
bool flag;
cin >> n;
for (i = 0; i < n; i++) {
cin.get(dum);
cin.get(c1[i].suit);
c... | #include <algorithm>
#include <iostream>
using namespace std;
struct Card {
char suit;
int num;
};
void swapc(Card &c1, Card &c2);
int main() {
Card c1[36], c2[36];
int i, j, n, mini, tmpn;
char tmpc, dum;
bool flag;
cin >> n;
for (i = 0; i < n; i++) {
cin.get(dum);
cin.get(c1[i].suit);
c... | [
"expression.operation.binary.remove",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,360 | 105,361 | u389538742 | cpp |
p02261 | #include <algorithm>
#include <iostream>
using namespace std;
struct Card {
char suit;
int num;
};
void swapc(Card &c1, Card &c2);
int main() {
Card c1[36], c2[36];
int i, j, n, mini, tmpn;
char tmpc, dum;
bool flag;
cin >> n;
for (i = 0; i < n; i++) {
cin.get(dum);
cin.get(c1[i].suit);
c... | #include <algorithm>
#include <iostream>
using namespace std;
struct Card {
char suit;
int num;
};
void swapc(Card &c1, Card &c2);
int main() {
Card c1[36], c2[36];
int i, j, n, mini, tmpn;
char tmpc, dum;
bool flag;
cin >> n;
for (i = 0; i < n; i++) {
cin.get(dum);
cin.get(c1[i].suit);
c... | [
"expression.operation.binary.remove"
] | 105,362 | 105,361 | u389538742 | cpp |
p02261 | #include <algorithm>
#include <iostream>
using namespace std;
struct Card {
int num;
char type;
};
void trace(int n, Card c[]) {
for (int i = 0; i < n; ++i) {
cout << c[i].type << c[i].num;
if (i < n - 1) {
cout << " ";
}
}
cout << endl;
}
void bubbleSort(int n, Card c[]) {
for (int i ... | #include <algorithm>
#include <iostream>
using namespace std;
struct Card {
int num;
char type;
};
void trace(int n, Card c[]) {
for (int i = 0; i < n; ++i) {
cout << c[i].type << c[i].num;
if (i < n - 1) {
cout << " ";
}
}
cout << endl;
}
void bubbleSort(int n, Card c[]) {
for (int i ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,363 | 105,364 | u356040899 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
struct trump {
int value;
char suit;
};
void print_trump(vector<trump> C, int N, bool is_stable) {
for (int i = 0; i < N; i++) {
cout << C[i].suit << C[i].value << (i + 1 == N ? "" : " ");
}
cout << endl;
if (is_stable) {
... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
struct trump {
int value;
char suit;
};
void print_trump(vector<trump> C, int N, bool is_stable) {
for (int i = 0; i < N; i++) {
cout << C[i].suit << C[i].value << (i + 1 == N ? "" : " ");
}
cout << endl;
if (is_stable) {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,365 | 105,366 | u368876271 | cpp |
p02261 | #include <iostream>
#include <tuple>
#include <utility>
#include <vector>
void DisplayCards(std::vector<std::tuple<char, int>> cards) {
for (int i = 0; i < cards.size(); i++) {
std::cout << std::get<0>(cards[i]) << std::get<1>(cards[i]);
if (i != cards.size() - 1) {
std::cout << " ";
} else {
... | #include <iostream>
#include <tuple>
#include <utility>
#include <vector>
void DisplayCards(std::vector<std::tuple<char, int>> &cards) {
for (int i = 0; i < cards.size(); i++) {
std::cout << std::get<0>(cards[i]) << std::get<1>(cards[i]);
if (i != cards.size() - 1) {
std::cout << " ";
} else {
... | [
"control_flow.loop.for.initializer.change"
] | 105,369 | 105,370 | u564398841 | cpp |
p02261 | // -*- mode:c++; coding:utf-8; indent-tabs-mode:nil; -*-
// ALDS1_2-C
#include <cstring>
#include <iostream>
struct card {
char mark;
unsigned int number;
};
static void print_cards(const card cards[], const unsigned int n) {
const char *sep = "";
for (unsigned int i = 0; i < n; ++i) {
const card *const ... | // -*- mode:c++; coding:utf-8; indent-tabs-mode:nil; -*-
// ALDS1_2-C
#include <cstring>
#include <iostream>
struct card {
char mark;
unsigned int number;
};
static void print_cards(const card cards[], const unsigned int n) {
const char *sep = "";
for (unsigned int i = 0; i < n; ++i) {
const card *const ... | [
"literal.string.change",
"expression.operation.binary.change"
] | 105,372 | 105,373 | u020697156 | cpp |
p02261 | // -*- mode:c++; coding:utf-8; c-basic-offset:2; -*-
// ALDS1_2-C: Stable Sort
#include <algorithm>
#include <cstring>
#include <iostream>
struct Card {
char suit;
unsigned int rank;
};
static void print_cards(const Card cards[], const unsigned int n) {
const char *sep = "";
for (unsigned int i = 0u; i < n; ... | // -*- mode:c++; coding:utf-8; c-basic-offset:2; -*-
// ALDS1_2-C: Stable Sort
#include <algorithm>
#include <cstring>
#include <iostream>
struct Card {
char suit;
unsigned int rank;
};
static void print_cards(const Card cards[], const unsigned int n) {
const char *sep = "";
for (unsigned int i = 0u; i < n; ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 105,375 | 105,376 | u020697156 | cpp |
p02261 | // -*- mode:c++; coding:utf-8; c-basic-offset:2; -*-
// ALDS1_2-C: Stable Sort
#include <algorithm>
#include <cstring>
#include <iostream>
struct Card {
char suit;
unsigned int rank;
bool operator<(const Card &rhs) const { return rank < rhs.rank; }
bool operator==(const Card &rhs) const {
return rank == r... | // -*- mode:c++; coding:utf-8; c-basic-offset:2; -*-
// ALDS1_2-C: Stable Sort
#include <algorithm>
#include <cstring>
#include <iostream>
struct Card {
char suit;
unsigned int rank;
bool operator<(const Card &rhs) const { return rank < rhs.rank; }
bool operator!=(const Card &rhs) const {
return rank != r... | [
"misc.opposites",
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 105,377 | 105,378 | u020697156 | cpp |
p02261 | // -*- mode:c++; coding:utf-8; c-basic-offset:2; -*-
// ALDS1_2-C: Stable Sort
#include <algorithm>
#include <cstring>
#include <iostream>
struct Card {
char suit;
unsigned int rank;
bool operator<(const Card &rhs) const { return rank < rhs.rank; }
bool operator==(const Card &rhs) const {
return rank == r... | // -*- mode:c++; coding:utf-8; c-basic-offset:2; -*-
// ALDS1_2-C: Stable Sort
#include <algorithm>
#include <cstring>
#include <iostream>
struct Card {
char suit;
unsigned int rank;
bool operator<(const Card &rhs) const { return rank < rhs.rank; }
bool operator!=(const Card &rhs) const {
return rank != r... | [
"misc.opposites",
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 105,377 | 105,380 | u020697156 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
//??????????????????????????????
void show_array(struct Card a[], int n) {
for (int i = 0; i < n; i++) {
if (i > 0)
cout << " ";
cout << a[i].suit << a[i].value;
}
cout << endl;
}
void BubbleSort(struct Card a[], int n)... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
//??????????????????????????????
void show_array(struct Card a[], int n) {
for (int i = 0; i < n; i++) {
if (i > 0)
cout << " ";
cout << a[i].suit << a[i].value;
}
cout << endl;
}
void BubbleSort(struct Card a[], int n)... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,381 | 105,382 | u224288634 | cpp |
p02261 | /*
* c.cc:
*/
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <util... | /*
* c.cc:
*/
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <util... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,383 | 105,384 | u137027976 | cpp |
p02261 | #include <iostream>
#include <string>
using namespace std;
static const int MAX = 36;
int main(void) {
int N, minj;
bool flag = true;
string A[MAX], B[MAX];
cin >> N;
for (int i = 0; i < N; i++) {
cin >> A[i];
B[i] = A[i];
}
//??????????????????
for (int i = 0; flag; i++) {
flag = false;
... | #include <iostream>
#include <string>
using namespace std;
static const int MAX = 36;
int main(void) {
int N, minj;
bool flag = true;
string A[MAX], B[MAX];
cin >> N;
for (int i = 0; i < N; i++) {
cin >> A[i];
B[i] = A[i];
}
//??????????????????
for (int i = 0; flag; i++) {
flag = false;
... | [
"control_flow.loop.for.initializer.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 105,385 | 105,386 | u463680481 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <stdio.h>
#define MAX 36
struct Card {
char suit, value;
};
void Bubble_sort(struct Card c[], int num) {
bool flag = true;
for (int i = 0; flag; i++) {
flag = false;
for (int j = num - 1; j >= i + 1; j--) {
if (c[j].value < c[j - 1].value) {
... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#define MAX 36
struct Card {
char suit, value;
};
void Bubble_sort(struct Card c[], int num) {
bool flag = true;
for (int i = 0; flag; i++) {
flag = false;
for (int j = num - 1; j >= i + 1; j--) {
if (c[j].value < c[j - 1].value) {
... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 105,387 | 105,388 | u317254140 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
int value;
char mark;
};
//????????????????????????????????¨
void BubbleSort(Card A[], int n) {
bool flag = 1;
for (int i = 0; flag; i++) {
flag = 0;
for (int j = n - 1; j > i; j--) {
if (A[j].value < A[j - 1].value) {
Card c = A[j];... | #include <iostream>
using namespace std;
struct Card {
int value;
char mark;
};
//????????????????????????????????¨
void BubbleSort(Card A[], int n) {
bool flag = 1;
for (int i = 0; flag; i++) {
flag = 0;
for (int j = n - 1; j > i; j--) {
if (A[j].value < A[j - 1].value) {
Card c = A[j];... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,389 | 105,390 | u078112258 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <vector>
struct TCard {
char Suit;
int Num;
bool operator==(const TCard &C) const {
return Suit == C.Suit && Num == C.Num;
}
};
typedef std::vector<TCard> TList;
TList Input() {
int Count;
std::cin >> Count;
TList List(Count);
for (int i = 0; i < Cou... | #include <algorithm>
#include <iostream>
#include <vector>
struct TCard {
char Suit;
int Num;
bool operator==(const TCard &C) const {
return Suit == C.Suit && Num == C.Num;
}
};
typedef std::vector<TCard> TList;
TList Input() {
int Count;
std::cin >> Count;
TList List(Count);
for (int i = 0; i < Cou... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 105,391 | 105,392 | u858711833 | cpp |
p02261 | #include <algorithm>
#include <iostream>
using namespace std;
struct card {
char suit;
int value;
};
void bubbleSort(card c[], int n);
void selectionSort(card c[], int n);
bool isSame(card A[], card B[], int n);
int main() {
int n;
cin >> n;
card A[n], B[n];
for (int i = 0; i < n; i++) {
cin >> A[i]... | #include <algorithm>
#include <iostream>
using namespace std;
struct card {
char suit;
int value;
};
void bubbleSort(card c[], int n);
void selectionSort(card c[], int n);
bool isSame(card A[], card B[], int n);
int main() {
int n;
cin >> n;
card A[n], B[n];
for (int i = 0; i < n; i++) {
cin >> A[i]... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,393 | 105,394 | u642900556 | cpp |
p02261 | #include <bits/stdc++.h>
using namespace std;
bool judge(void);
int N;
int i, j;
int X[36], Y[36];
char x[36], y[36];
bool judge() {
int i;
for (i = 0; i < N; i++) {
if (x[i] == y[i] && X[i] == Y[i]) {
continue;
} else {
return 0;
break;
}
}
return 1;
}
int main() {
int tmp, ... | #include <bits/stdc++.h>
using namespace std;
bool judge(void);
int N;
int i, j;
int X[36], Y[36];
char x[36], y[36];
bool judge() {
int i;
for (i = 0; i < N; i++) {
if (x[i] == y[i] && X[i] == Y[i]) {
continue;
} else {
return 0;
break;
}
}
return 1;
}
int main() {
int tmp, ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,459 | 105,458 | u567521458 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef vector<pair<char, int>> Trump;
namespace {
void BubbleSort(Trump &t, int N) {
bool flag = true;
while (flag) {
flag = false;
for (int i = N - 1; i > 0; --i)
... | #include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef vector<pair<char, int>> Trump;
namespace {
void BubbleSort(Trump &t, int N) {
bool flag = true;
while (flag) {
flag = false;
for (int i = N - 1; i > 0; --i)
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,462 | 105,463 | u980996039 | cpp |
p02261 | #include <iostream>
using namespace std;
#include <string>
class card {
public:
char c, suit;
int value;
card();
void input();
};
card::card() {}
void card::input() {
cin >> suit >> c;
value = c - '0';
}
void show(card *a, int n) {
for (int i = 0; i < n - 1; i++)
cout << a[i].suit << a[i].value <<... | #include <iostream>
using namespace std;
#include <string>
class card {
public:
char c, suit;
int value;
card();
void input();
};
card::card() {}
void card::input() {
cin >> suit >> c;
value = c - '0';
}
void show(card *a, int n) {
for (int i = 0; i < n - 1; i++)
cout << a[i].suit << a[i].value <<... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,464 | 105,465 | u986478725 | cpp |
p02261 | #include <iostream>
using namespace std;
#include <string>
class card {
public:
char c, suit;
int value;
card();
void input();
};
card::card() {}
void card::input() {
cin >> suit >> c;
value = c - '0';
}
void show(card *a, int n) {
for (int i = 0; i < n - 1; i++)
cout << a[i].suit << a[i].value <<... | #include <iostream>
using namespace std;
class card {
public:
char c, suit;
int value;
card();
void input();
};
card::card() {}
void card::input() {
cin >> suit >> c;
value = c - '0';
}
void show(card *a, int n) {
for (int i = 0; i < n - 1; i++)
cout << a[i].suit << a[i].value << " ";
cout << a[... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,464 | 105,466 | u986478725 | cpp |
p02261 | #include <iostream>
using namespace std;
const int MAX = 36;
int N;
pair<char, int> arr_bubble[MAX];
pair<char, int> arr_selection[MAX];
void bubble_sort();
void selection_sort();
int main() {
char type;
int number;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> type;
cin >> number;
arr_bubb... | #include <iostream>
using namespace std;
const int MAX = 36;
int N;
pair<char, int> arr_bubble[MAX];
pair<char, int> arr_selection[MAX];
void bubble_sort();
void selection_sort();
int main() {
char type;
int number;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> type;
cin >> number;
arr_bubb... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,469 | 105,470 | u228579910 | cpp |
p02261 | #include <iostream>
using namespace std;
void bubblesort(char Cp1[], char Cp2[], int N);
void selectionsort(char Cp1[], char Cp2[], int N);
bool isStable(char Cp1[], char Cp2[], int N);
int main() {
int N;
cin >> N;
char *Cp1 = new char[N];
char *Cp2 = new char[N];
char *Cp3 = new char[N];
char *Cp4 = new... | #include <iostream>
using namespace std;
void bubblesort(char Cp1[], char Cp2[], int N);
void selectionsort(char Cp1[], char Cp2[], int N);
bool isStable(char Cp1[], char Cp2[], int N);
int main() {
int N;
cin >> N;
char *Cp1 = new char[N];
char *Cp2 = new char[N];
char *Cp3 = new char[N];
char *Cp4 = new... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,471 | 105,472 | u825264062 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
struct card {
int card;
int number;
string mark;
};
bool check_stability(vector<card> &b, vector<card> &s) {
for (int i = 0; i < b.size(); i++) {
if (b[i].card != s[i].card)
return false;
}
return true;
}
int find_m... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
struct card {
int card;
int number;
string mark;
};
bool check_stability(vector<card> &b, vector<card> &s) {
for (int i = 0; i < b.size(); i++) {
if (b[i].card != s[i].card)
return false;
}
return true;
}
int find_m... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,473 | 105,474 | u222957942 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit;
int value;
};
void bubbleSort(Card c[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (c[j].value < c[j - 1].value) {
swap(c[j], c[j - 1]);
}
}
}
}
void selectionSort(Card c[], int n) {... | #include <iostream>
using namespace std;
struct Card {
char suit;
int value;
};
void bubbleSort(Card c[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (c[j].value < c[j - 1].value) {
swap(c[j], c[j - 1]);
}
}
}
}
void selectionSort(Card c[], int n) {... | [
"identifier.change",
"call.function.change"
] | 105,477 | 105,478 | u531736422 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit;
int value;
};
void bubbleSort(Card c[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (c[j].value < c[j - 1].value) {
swap(c[j], c[j - 1]);
}
}
}
}
void selectionSort(Card c[], int n) {... | #include <iostream>
using namespace std;
struct Card {
char suit;
int value;
};
void bubbleSort(Card c[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (c[j].value < c[j - 1].value) {
swap(c[j], c[j - 1]);
}
}
}
}
void selectionSort(Card c[], int n) {... | [
"identifier.change",
"call.arguments.change"
] | 105,479 | 105,478 | u531736422 | cpp |
p02261 | #include <iostream>
#include <vector>
using namespace std;
struct card {
int number;
char mark;
};
void BubbleSort(vector<card> &A) {
bool flag = true;
while (flag) {
flag = false;
for (int j = A.size() - 1; j >= 1; j--) {
if (A[j].number < A[j - 1].number) {
swap(A[j], A[j - 1]);
... | #include <iostream>
#include <vector>
using namespace std;
struct card {
int number;
char mark;
};
void BubbleSort(vector<card> &A) {
bool flag = true;
while (flag) {
flag = false;
for (int j = A.size() - 1; j >= 1; j--) {
if (A[j].number < A[j - 1].number) {
swap(A[j], A[j - 1]);
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,480 | 105,481 | u050511799 | cpp |
p02261 | #include <iostream>
#include <vector>
using namespace std;
struct Trump {
char mark;
int num;
};
vector<struct Trump> BubbleSort(vector<struct Trump> A, int n) {
int flag = 1;
while (flag == 1) {
flag = 0;
for (int i = n - 1; i > 0; i--) {
if (A[i].num < A[i - 1].num) {
struct Trump ch... | #include <iostream>
#include <vector>
using namespace std;
struct Trump {
char mark;
int num;
};
vector<struct Trump> BubbleSort(vector<struct Trump> A, int n) {
int flag = 1;
while (flag == 1) {
flag = 0;
for (int i = n - 1; i > 0; i--) {
if (A[i].num < A[i - 1].num) {
struct Trump ch... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,482 | 105,483 | u261444710 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void bubble(struct Card A[], int N) {
for (int i = 0; i < N; i++) {
for (int j = N - 1; j >= i; j--) {
if (A[j].value < A[j - 1].value) {
Card t = A[j];
A[j] = A[j - 1];
A[j - 1] = t;
}
}
}
}
... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void bubble(struct Card A[], int N) {
for (int i = 0; i < N; i++) {
for (int j = N - 1; j >= i; j--) {
if (A[j].value < A[j - 1].value) {
Card t = A[j];
A[j] = A[j - 1];
A[j - 1] = t;
}
}
}
}
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,484 | 105,485 | u233080611 | cpp |
p02261 | #include <cstdio>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
void bubblesort(std::vector<std::pair<char, int>> &array) {
std::pair<char, int> tmp;
for (int i = 0; i < array.size(); i++) {
for (int j = array.size() - 1; j > i; j--) {
if (array[j].second < array[j - 1].seco... | #include <cstdio>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
void bubblesort(std::vector<std::pair<char, int>> &array) {
std::pair<char, int> tmp;
for (int i = 0; i < array.size(); i++) {
for (int j = array.size() - 1; j > i; j--) {
if (array[j].second < array[j - 1].seco... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 105,488 | 105,489 | u128811851 | cpp |
p02261 | #include <iostream>
#include <stdio.h>
using namespace std;
struct Card {
char suit, value;
};
/*?????\?????????(0??????????????????)*/
void selection(struct Card A[], int N) {
for (int i = 0; i < N; i++) {
int mini = i;
for (int j = i; j < N; j++) {
if (A[j].value < A[mini].value)
mini = j;
... | #include <iostream>
#include <stdio.h>
using namespace std;
struct Card {
char suit, value;
};
/*?????\?????????(0??????????????????)*/
void selection(struct Card A[], int N) {
for (int i = 0; i < N; i++) {
int mini = i;
for (int j = i; j < N; j++) {
if (A[j].value < A[mini].value)
mini = j;
... | [
"identifier.change",
"call.arguments.change",
"io.output.change",
"literal.string.change",
"literal.string.case.change"
] | 105,496 | 105,497 | u993615433 | cpp |
p02261 | #include <iostream>
#include <stdio.h>
using namespace std;
struct Card {
char suit, value;
};
/*?????\?????????(0??????????????????)*/
void selection(struct Card A[], int N) {
for (int i = 0; i < N; i++) {
int mini = i;
for (int j = i; j < N; j++) {
if (A[j].value < A[mini].value)
mini = j;
... | #include <iostream>
#include <stdio.h>
using namespace std;
struct Card {
char suit, value;
};
/*?????\?????????(0??????????????????)*/
void selection(struct Card A[], int N) {
for (int i = 0; i < N; i++) {
int mini = i;
for (int j = i; j < N; j++) {
if (A[j].value < A[mini].value)
mini = j;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,498 | 105,497 | u993615433 | cpp |
p02261 | #include <iostream>
using namespace std;
class Card {
public:
int m;
int n;
};
int main(void) {
int n, min, f = 0;
Card b[36], s[36];
cin >> n;
for (int i = 0; i < n; i++) {
cin >> b[i].m >> b[i].n;
s[i] = b[i];
}
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; j > i; j--) {
if (... | #include <iostream>
using namespace std;
class Card {
public:
char m;
int n;
};
int main(void) {
int n, min, f = 0;
Card b[36], s[36];
cin >> n;
for (int i = 0; i < n; i++) {
cin >> b[i].m >> b[i].n;
s[i] = b[i];
}
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; j > i; j--) {
if ... | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,499 | 105,500 | u505651850 | cpp |
p02261 | #include <iostream>
using namespace std;
class Card {
public:
char m;
int n;
};
int main(void) {
int n, min, f = 0;
Card b[36], s[36];
cin >> n;
for (int i = 0; i < n; i++) {
cin >> b[i].m >> b[i].n;
s[i] = b[i];
}
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; j > i; j--) {
if ... | #include <iostream>
using namespace std;
class Card {
public:
char m;
int n;
};
int main(void) {
int n, min, f = 0;
Card b[36], s[36];
cin >> n;
for (int i = 0; i < n; i++) {
cin >> b[i].m >> b[i].n;
s[i] = b[i];
}
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; j > i; j--) {
if ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,501 | 105,500 | u505651850 | cpp |
p02261 | #include <iostream>
#include <vector>
struct Card {
char c, v;
Card() : c(0), v(0) {}
Card(const Card &card) : c(card.c), v(card.v) {}
Card &operator=(const Card &card) {
c = card.c;
v = card.v;
return (*this);
}
bool operator==(const Card &card) { return c == card.c && v == card.v; }
bool op... | #include <iostream>
#include <vector>
struct Card {
char c, v;
Card() : c(0), v(0) {}
Card(const Card &card) : c(card.c), v(card.v) {}
Card &operator=(const Card &card) {
c = card.c;
v = card.v;
return (*this);
}
bool operator==(const Card &card) { return c == card.c && v == card.v; }
bool op... | [
"expression.operation.binary.remove"
] | 105,502 | 105,503 | u445955169 | cpp |
p02261 | #include "bits/stdc++.h"
using namespace std;
struct Card {
char suit, value;
};
void bubble(struct Card aa[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j >= i + 1; j--) {
if (aa[j].value < aa[j - 1].value) {
swap(aa[j - 1], aa[j]);
}
}
}
}
void sectionsort(struct Ca... | #include "bits/stdc++.h"
using namespace std;
struct Card {
char suit, value;
};
void bubble(struct Card aa[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j >= i + 1; j--) {
if (aa[j].value < aa[j - 1].value) {
swap(aa[j - 1], aa[j]);
}
}
}
}
void sectionsort(struct Ca... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,504 | 105,505 | u944777079 | cpp |
p02261 | #include <algorithm>
#include <iostream>
using namespace std;
#define maxn 105
struct in {
char ch;
int val;
};
in a[maxn];
in b[maxn];
int n;
bool compareStable() {
for (int i = 0; i < n; i++) {
if (a[i].ch != b[i].ch)
return false;
}
return true;
}
void bubbleSort() {
bool flag = 1;
for (int i... | #include <algorithm>
#include <iostream>
using namespace std;
#define maxn 105
struct in {
char ch;
int val;
};
in a[maxn];
in b[maxn];
int n;
bool compareStable() {
for (int i = 0; i < n; i++) {
if (a[i].ch != b[i].ch)
return false;
}
return true;
}
void bubbleSort() {
bool flag = 1;
for (int i... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,506 | 105,507 | u551377717 | cpp |
p02261 | #include <iostream>
using namespace std;
// Data structrue for card
struct card {
char c;
int value;
};
// Print cards
void print(struct card C[], int n) {
for (int i = 0; i < n; i++) {
if (i > 0)
cout << " ";
cout << C[i].c << C[i].value;
}
cout << endl;
}
// Sort by bubble sort
void bubble... | #include <iostream>
using namespace std;
// Data structrue for card
struct card {
char c;
int value;
};
// Print cards
void print(struct card C[], int n) {
for (int i = 0; i < n; i++) {
if (i > 0)
cout << " ";
cout << C[i].c << C[i].value;
}
cout << endl;
}
// Sort by bubble sort
void bubble... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,509 | 105,510 | u432957752 | cpp |
p02261 | #include <iostream>
using namespace std;
typedef struct Card {
char suit;
int value;
} Card;
void bubblesort(Card c[], int n) {
int flag = 1;
while (flag) {
flag = 0;
for (int i = n - 1; i >= 1; --i) {
if (c[i].value < c[i - 1].value) {
Card temp = c[i];
c[i] = c[i - 1];
c[... | #include <iostream>
using namespace std;
typedef struct Card {
char suit;
int value;
} Card;
void bubblesort(Card c[], int n) {
int flag = 1;
while (flag) {
flag = 0;
for (int i = n - 1; i >= 1; --i) {
if (c[i].value < c[i - 1].value) {
Card temp = c[i];
c[i] = c[i - 1];
c[... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,513 | 105,514 | u443587731 | cpp |
p02261 | #include <iostream>
using namespace std;
typedef struct Card {
char suit;
int value;
} Card;
void bubblesort(Card c[], int n) {
int flag = 1;
while (flag) {
flag = 0;
for (int i = n - 1; i >= 1; --i) {
if (c[i].value < c[i - 1].value) {
Card temp = c[i];
c[i] = c[i - 1];
c[... | #include <iostream>
using namespace std;
typedef struct Card {
char suit;
int value;
} Card;
void bubblesort(Card c[], int n) {
int flag = 1;
while (flag) {
flag = 0;
for (int i = n - 1; i >= 1; --i) {
if (c[i].value < c[i - 1].value) {
Card temp = c[i];
c[i] = c[i - 1];
c[... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,516 | 105,514 | u443587731 | cpp |
p02261 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
using namespace std;
class P {
public:
int n;
string s;
int index;
bool operator<(P x) { return n <... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
using namespace std;
class P {
public:
int n;
string s;
int index;
bool operator<(P x) { return n <... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,520 | 105,521 | u350754611 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void bubble(struct Card A[], int N) {
int i, j;
for (i = 0; i < N; i++) {
for (j = N - 1; j > i; j--) {
if (A[j].value < A[j - 1].value) {
swap(A[j].value, A[j - 1].value);
}
}
}
}
void select(struct Card ... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void bubble(struct Card A[], int N) {
int i, j;
for (i = 0; i < N; i++) {
for (j = N - 1; j > i; j--) {
if (A[j].value < A[j - 1].value) {
swap(A[j], A[j - 1]);
}
}
}
}
void select(struct Card A[], int N) ... | [] | 105,522 | 105,523 | u426087162 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void BubbleSort(struct Card C[], int N) {
int i, j;
for (i = 0; i < N; i++) {
for (j = N - 1; j >= i; j--) {
if (C[j].value < C[j - 1].value)
swap(C[j], C[j - 1]);
}
}
}
void SelectionSort(struct Card A[], int N... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void BubbleSort(struct Card C[], int N) {
int i, j;
for (i = 0; i < N; i++) {
for (j = N - 1; j >= i; j--) {
if (C[j].value < C[j - 1].value)
swap(C[j], C[j - 1]);
}
}
}
void SelectionSort(struct Card A[], int N... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 105,524 | 105,525 | u690299834 | cpp |
p02261 | #include <iostream>
using namespace std;
struct foo {
int num;
char c;
};
int main() {
int n;
foo a[100], b[100];
cin >> n;
for (int i = 0; i < n; i++)
cin >> a[i].c >> a[i].num, b[i] = a[i];
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; i < j; j--) {
foo tmp = a[j];
if (a[j... | #include <iostream>
using namespace std;
struct foo {
int num;
char c;
};
int main() {
int n;
foo a[100], b[100];
cin >> n;
for (int i = 0; i < n; i++)
cin >> a[i].c >> a[i].num, b[i] = a[i];
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; i < j; j--) {
foo tmp = a[j];
if (a[j... | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,526 | 105,527 | u096656118 | cpp |
p02261 | #include <iostream>
using namespace std;
struct foo {
int num;
char c;
};
int main() {
int n;
foo a[100], b[100];
cin >> n;
for (int i = 0; i < n; i++)
cin >> a[i].c >> a[i].num, b[i] = a[i];
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; i < j; j--) {
foo tmp = a[j];
if (a[j... | #include <iostream>
using namespace std;
struct foo {
int num;
char c;
};
int main() {
int n;
foo a[100], b[100];
cin >> n;
for (int i = 0; i < n; i++)
cin >> a[i].c >> a[i].num, b[i] = a[i];
for (int i = 0; i < n - 1; i++) {
for (int j = n - 1; i < j; j--) {
foo tmp = a[j];
if (a[j... | [
"control_flow.branch.if.condition.change"
] | 105,528 | 105,527 | u096656118 | cpp |
p02261 | #include <algorithm>
#include <iostream>
using namespace std;
int cntSort;
void printArray(char B[], int A[], int N) {
for (int i = 0; i < N - 1; i++)
cout << B[i] << A[i] << " ";
cout << B[N - 1] << A[N - 1] << endl;
}
void insertionSort(int A[], char B[], int N) {
for (int i = 1; i < N; i++) {
int v... | #include <algorithm>
#include <iostream>
using namespace std;
int cntSort;
void printArray(char B[], int A[], int N) {
for (int i = 0; i < N - 1; i++)
cout << B[i] << A[i] << " ";
cout << B[N - 1] << A[N - 1] << endl;
}
void insertionSort(int A[], char B[], int N) {
for (int i = 1; i < N; i++) {
int v... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,529 | 105,530 | u940492895 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char value, suit;
};
void show(struct Card cards[], int n) {
for (int k = 0; k < n; ++k) {
if (k == n - 1) {
cout << cards[k].suit << cards[k].value;
} else {
cout << cards[k].suit << cards[k].value << " ";
}
}
cout << endl;
}
voi... | #include <iostream>
using namespace std;
struct Card {
char value, suit;
};
void show(struct Card cards[], int n) {
for (int k = 0; k < n; ++k) {
if (k == n - 1) {
cout << cards[k].suit << cards[k].value;
} else {
cout << cards[k].suit << cards[k].value << " ";
}
}
cout << endl;
}
voi... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,531 | 105,532 | u303093818 | cpp |
p02261 | #include <iostream>
using namespace std;
class Card {
public:
int num;
char ch;
};
inline void bubbleSort(Card a[], int n) {
bool flag = 1;
for (int i = 0; flag; i++) {
flag = 0;
for (int j = n - 1; j >= i + 1; j--) {
if (a[j].num < a[j - 1].num) {
swap(a[j], a[j - 1]);
flag = 1;
... | #include <iostream>
using namespace std;
class Card {
public:
int num;
char ch;
};
inline void bubbleSort(Card a[], int n) {
bool flag = 1;
for (int i = 0; flag; i++) {
flag = 0;
for (int j = n - 1; j >= i + 1; j--) {
if (a[j].num < a[j - 1].num) {
swap(a[j], a[j - 1]);
flag = 1;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,533 | 105,534 | u660370248 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <limits>
#include <string>
#include <vector>
#define INT_MAX 2147483647
#define INT_MIN -2147483647
using namespace std;
void bubble_sort(vector<pair<char, int>> &data) {
for (int i = 1; i < data.size(); ++i) {
for (int j = data.size() - 1; j >= i; --j) {
... | #include <algorithm>
#include <iostream>
#include <limits>
#include <string>
#include <vector>
#define INT_MAX 2147483647
#define INT_MIN -2147483647
using namespace std;
void bubble_sort(vector<pair<char, int>> &data) {
for (int i = 1; i < data.size(); ++i) {
for (int j = data.size() - 1; j >= i; --j) {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,535 | 105,536 | u922538592 | cpp |
p02261 | #include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int arr[36 + 5];
string str[36 + 5];
int a... | #include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int arr[36 + 5];
string str[36 + 5];
int a... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,539 | 105,540 | u813097547 | cpp |
p02261 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
struct card {
char c;
int num;
};
template <typename T>
void bsort(typename vector<T>::iterator itr_first,
typename vector<T>::iterator itr_last) {
for (int i = 0; i < itr_last - itr_first; ++i) {
for (auto itr = itr_las... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
struct card {
char c;
int num;
};
template <typename T>
void bsort(typename vector<T>::iterator itr_first,
typename vector<T>::iterator itr_last) {
for (int i = 0; i < itr_last - itr_first; ++i) {
for (auto itr = itr_las... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,544 | 105,545 | u968468437 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void selectionSort(struct Card A[], int N) {
int i, j, mini;
for (i = 0; i < N; i++) {
mini = i;
for (j = i; j < N; j++) {
if (A[j].value < A[mini].value)
mini = j;
}
Card t = A[i];
A[i] = A[mini];
... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void selectionSort(struct Card A[], int N) {
int i, j, mini;
for (i = 0; i < N; i++) {
mini = i;
for (j = i; j < N; j++) {
if (A[j].value < A[mini].value)
mini = j;
}
Card t = A[i];
A[i] = A[mini];
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,548 | 105,549 | u559945002 | cpp |
p02261 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int N;
string b[36], s[36];
void show() {
for (int i = 0; i < N; i++) {
cout << b[i] << (i == N - 1 ? '\n' : ' ');
}
cout << "Stable" << endl;
for (int i = 0; i < N; i++) {
cout << s[i] << (i == N - 1 ? '\n' : ' ');
}
for (int ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int N;
string b[36], s[36];
void show() {
for (int i = 0; i < N; i++) {
cout << b[i] << (i == N - 1 ? '\n' : ' ');
}
cout << "Stable" << endl;
for (int i = 0; i < N; i++) {
cout << s[i] << (i == N - 1 ? '\n' : ' ');
}
for (int ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,551 | 105,552 | u634500132 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
struct Card {
char suit, value;
};
void BubbleSort(struct Card C[], int n) {
Card tmp;
for (int i = 0; i < n; i++) {
for (int j = n - 1; j >= i; j--) {
if (C[j].value > C[j - 1].value) {
tmp = C[j];
C[j] = ... | #include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
struct Card {
char suit, value;
};
void BubbleSort(struct Card C[], int n) {
Card tmp;
for (int i = 0; i < n; i++) {
for (int j = n - 1; j >= i; j--) {
if (C[j].value < C[j - 1].value) {
tmp = C[j];
C[j] = ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 105,553 | 105,554 | u014280919 | cpp |
p02261 | #include <iostream>
#include <vector>
using namespace std;
struct Card {
char suit, value;
};
void Output(vector<Card> A) {
for (int i = 0; i < A.size(); i++) {
if (i > 0)
cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}
bool IsStable(vector<Card> C1, vector<Card> C2, int N) {... | #include <iostream>
#include <vector>
using namespace std;
struct Card {
char suit, value;
};
void Output(vector<Card> A) {
for (int i = 0; i < A.size(); i++) {
if (i > 0)
cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}
bool IsStable(vector<Card> C1, vector<Card> C2, int N) {... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,555 | 105,556 | u351660551 | cpp |
p02261 | #include <iostream>
#include <vector>
using namespace std;
struct Card {
char suit, value;
};
void Output(vector<Card> A) {
for (int i = 0; i < A.size(); i++) {
if (i > 0)
cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}
bool IsStable(vector<Card> C1, vector<Card> C2, int N) {... | #include <iostream>
#include <vector>
using namespace std;
struct Card {
char suit, value;
};
void Output(vector<Card> A) {
for (int i = 0; i < A.size(); i++) {
if (i > 0)
cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}
bool IsStable(vector<Card> C1, vector<Card> C2, int N) {... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"expression.operation.binary.remove",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,558 | 105,556 | u351660551 | cpp |
p02261 |
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define GET_ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
using namespace std;
struct Card {
char sui... |
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define GET_ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
using namespace std;
struct Card {
char sui... | [
"assignment.add"
] | 105,559 | 105,560 | u753127815 | cpp |
p02261 | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int n;
cin >> n;
string A[n];
for (int i = 0; i < n; i++)
cin >> A[i];
string C[n];
for (int i = 0; i < n; i++)
C[i] = A[i];
int ans = 0;
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int n;
cin >> n;
string A[n];
for (int i = 0; i < n; i++)
cin >> A[i];
string C[n];
for (int i = 0; i < n; i++)
C[i] = A[i];
int ans = 0;
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,561 | 105,562 | u152309810 | cpp |
p02261 | #include <stdio.h>
struct trump {
char moji;
int num;
};
void bubble(struct trump *, int);
void insertion(struct trump *, int);
int judge(struct trump *, struct trump *, int);
void bubble(struct trump k1[], int n) {
int i, j;
struct trump tmp;
for (i = 0; i < n; i++) {
for (j = n - 1; j >= i; j--) {
... | #include <stdio.h>
struct trump {
char moji;
int num;
};
void bubble(struct trump *, int);
void insertion(struct trump *, int);
int judge(struct trump *, struct trump *, int);
void bubble(struct trump k1[], int n) {
int i, j;
struct trump tmp;
for (i = 0; i < n; i++) {
for (j = n - 1; j > i; j--) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"identifier.change",
"call.arguments.change",
"io.output.change",
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change"
] | 105,567 | 105,568 | u407335067 | cpp |
p02261 | #include <stdio.h>
struct trump {
char moji;
int num;
};
void bubble(struct trump *, int);
void insertion(struct trump *, int);
int judge(struct trump *, struct trump *, int);
void bubble(struct trump k1[], int n) {
int i, j;
struct trump tmp;
for (i = 0; i < n; i++) {
for (j = n - 1; j >= i; j--) {
... | #include <stdio.h>
struct trump {
char moji;
int num;
};
void bubble(struct trump *, int);
void insertion(struct trump *, int);
int judge(struct trump *, struct trump *, int);
void bubble(struct trump k1[], int n) {
int i, j;
struct trump tmp;
for (i = 0; i < n; i++) {
for (j = n - 1; j > i; j--) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 105,569 | 105,568 | u407335067 | cpp |
p02261 | #include <stdio.h>
struct trump {
char moji;
int num;
};
void bubble(struct trump *, int);
void insertion(struct trump *, int);
int judge(struct trump *, struct trump *, int);
void bubble(struct trump k1[], int n) {
int i, j;
struct trump tmp;
for (i = 0; i < n; i++) {
for (j = n - 1; j >= i; j--) {
... | #include <stdio.h>
struct trump {
char moji;
int num;
};
void bubble(struct trump *, int);
void insertion(struct trump *, int);
int judge(struct trump *, struct trump *, int);
void bubble(struct trump k1[], int n) {
int i, j;
struct trump tmp;
for (i = 0; i < n; i++) {
for (j = n - 1; j > i; j--) {
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 105,571 | 105,568 | u407335067 | cpp |
p02261 | #include <stdio.h>
#define N 100
struct pair {
int n;
char m;
};
int main() {
int n, i;
struct pair card[N];
char space;
scanf("%d\n", &n);
for (i = 0; i < n; i++) {
scanf("%c%d%c", &card[i].m, &card[i].n, &space);
}
struct pair bubble[N], sel[N];
///////////////bubble//////////////////
for... | #include <stdio.h>
#define N 100
struct pair {
int n;
char m;
};
int main() {
int n, i;
struct pair card[N];
char space;
scanf("%d\n", &n);
for (i = 0; i < n; i++) {
scanf("%c%d%c", &card[i].m, &card[i].n, &space);
}
struct pair bubble[N], sel[N];
///////////////bubble//////////////////
for... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 105,574 | 105,575 | u407335067 | cpp |
p02261 | #include <stdio.h>
#define N 100
struct pair {
int n;
char m;
};
int main() {
int n, i;
struct pair card[N];
char space;
scanf("%d\n", &n);
for (i = 0; i < n; i++) {
scanf("%c%d%c", &card[i].m, &card[i].n, &space);
}
struct pair bubble[N], sel[N];
///////////////bubble//////////////////
for... | #include <stdio.h>
#define N 100
struct pair {
int n;
char m;
};
int main() {
int n, i;
struct pair card[N];
char space;
scanf("%d\n", &n);
for (i = 0; i < n; i++) {
scanf("%c%d%c", &card[i].m, &card[i].n, &space);
}
struct pair bubble[N], sel[N];
///////////////bubble//////////////////
for... | [
"control_flow.branch.if.condition.change"
] | 105,576 | 105,575 | u407335067 | cpp |
p02261 | #include <iostream>
using namespace std;
static const int MAX = 100;
struct Card {
char suit, value;
};
void bubbleSort(struct Card A[], int N) {
bool flag = true;
for (int i = 0; flag; i++) {
flag = false;
for (int j = N - 1; j > i + 1; j--) {
if (A[j].value < A[j - 1].value) {
Card tmp... | #include <iostream>
using namespace std;
static const int MAX = 100;
struct Card {
char suit, value;
};
void bubbleSort(struct Card A[], int N) {
bool flag = true;
for (int i = 0; flag; i++) {
flag = false;
for (int j = N - 1; j >= i + 1; j--) {
if (A[j].value < A[j - 1].value) {
Card tm... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 105,577 | 105,578 | u126478680 | cpp |
p02261 | #include <iostream>
using namespace std;
static const int MAX = 100;
struct Card {
char suit, value;
};
void bubbleSort(struct Card A[], int N) {
bool flag = true;
for (int i = 0; flag; i++) {
flag = false;
for (int j = N - 1; j >= i + 1; j--) {
if (A[j].value < A[j - 1].value) {
Card tm... | #include <iostream>
using namespace std;
static const int MAX = 100;
struct Card {
char suit, value;
};
void bubbleSort(struct Card A[], int N) {
bool flag = true;
for (int i = 0; flag; i++) {
flag = false;
for (int j = N - 1; j >= i + 1; j--) {
if (A[j].value < A[j - 1].value) {
Card tm... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change",
"expression.operation.binary.change"
] | 105,579 | 105,578 | u126478680 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void printCard(Card *a, int n) {
for (int i = 0; i < n; i++) {
if (i > 0) {
cout << " ";
}
cout << a[i].suit << a[i].value;
}
cout << endl;
}
bool checkStable(Card *ref, Card *test, int n) {
for (int i = 0; i < n... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void printCard(Card *a, int n) {
for (int i = 0; i < n; i++) {
if (i > 0) {
cout << " ";
}
cout << a[i].suit << a[i].value;
}
cout << endl;
}
bool checkStable(Card *ref, Card *test, int n) {
for (int i = 0; i < n... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,580 | 105,581 | u312838664 | cpp |
p02261 | #include <iostream>
using namespace std;
struct puke {
char Suit;
int Value;
};
void selectionSort(puke a[], int N) {
for (int i = 0; i < N; i++) //?????????????????§???????¬???°
{
int s = i;
for (int j = i; j < N; j++) {
if (a[j].Value < a[s].Value) {
s = j;
}
}
swap(a[i].Va... | #include <algorithm>
#include <iostream>
using namespace std;
struct puke {
char Suit;
int Value;
};
void selectionSort(puke a[], int N) {
for (int i = 0; i < N; i++) {
int s = i;
for (int j = i; j < N; j++) {
if (a[j].Value < a[s].Value) {
s = j;
}
}
swap(a[i].Value, a[s].Valu... | [
"import.add",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 105,586 | 105,587 | u901224447 | cpp |
p02261 | #include <algorithm>
#include <iostream>
using namespace std;
struct puke {
char Suit;
int Value;
};
void selectionSort(puke a[], int N) {
for (int i = 0; i < N; i++) {
int s = i;
for (int j = i; j < N; j++) {
if (a[j].Value < a[s].Value) {
s = j;
}
}
swap(a[i].Value, a[s].Valu... | #include <algorithm>
#include <iostream>
using namespace std;
struct puke {
char Suit;
int Value;
};
void selectionSort(puke a[], int N) {
for (int i = 0; i < N; i++) {
int s = i;
for (int j = i; j < N; j++) {
if (a[j].Value < a[s].Value) {
s = j;
}
}
swap(a[i].Value, a[s].Valu... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 105,588 | 105,587 | u901224447 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void bubble(Card A[], int N) {
for (int i = 0; i < N; i++) {
for (int j = N - 1; j >= i + 1; j--) {
if (A[j].value < A[j - 1].value) {
swap(A[j], A[j - 1]);
}
}
}
}
void selection(Card A[], int N) {
for (i... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void bubble(Card A[], int N) {
for (int i = 0; i < N; i++) {
for (int j = N - 1; j >= i + 1; j--) {
if (A[j].value < A[j - 1].value) {
swap(A[j], A[j - 1]);
}
}
}
}
void selection(Card A[], int N) {
for (i... | [
"literal.string.change",
"io.output.change"
] | 105,589 | 105,590 | u377471313 | cpp |
p02261 | // 1_2_C ??????????????????3.5
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <vector>
struct card {
char type;
int num;
};
// spap??¢??°
void swap(card *a, card *b) {
card temp = *a;
*a = *b;
*b = temp;
return;
}
//???????????????????????¢??°
int printCardArray(card data[], int num... | // 1_2_C ??????????????????3.5
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <vector>
struct card {
char type;
int num;
};
// spap??¢??°
void swap(card *a, card *b) {
card temp = *a;
*a = *b;
*b = temp;
return;
}
//???????????????????????¢??°
int printCardArray(card data[], int num... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 105,591 | 105,592 | u918247777 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit;
char value;
};
void trace(Card C[], int N) {
for (int i = 0; i < N; i++) {
if (i > 0)
cout << " ";
cout << C[i].suit << C[i].value;
}
cout << endl;
}
int selectionSort(Card C[], int N) {
int minj;
Card tmp;
int count = 0... | #include <iostream>
using namespace std;
struct Card {
char suit;
char value;
};
void trace(Card C[], int N) {
for (int i = 0; i < N; i++) {
if (i > 0)
cout << " ";
cout << C[i].suit << C[i].value;
}
cout << endl;
}
int selectionSort(Card C[], int N) {
int minj;
Card tmp;
int count = 0... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,600 | 105,601 | u475480520 | cpp |
p02261 | /**
* ??????????????????
?????????????????????????????´?????????????????????????????§?????????????????????(S,
H, C, D)??¨???????????°???(1, 2, ..., 9)???????§??????????????¨? 36
????????????????????¨????????????????????°??????????????? 8
???"H8"??????????????? 1 ???"D1"??¨??¨????????????
?????????????????????????????... | /**
* ??????????????????
?????????????????????????????´?????????????????????????????§?????????????????????(S,
H, C, D)??¨???????????°???(1, 2, ..., 9)???????§??????????????¨? 36
????????????????????¨????????????????????°??????????????? 8
???"H8"??????????????? 1 ???"D1"??¨??¨????????????
?????????????????????????????... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 105,604 | 105,605 | u188067886 | cpp |
p02261 | #include <bits/stdc++.h>
using namespace std;
char C[36][3];
char Cb[36][3];
char Cs[36][3];
int Ib[36];
int Is[36];
int N;
bool is_stable(char c[][3], int ind[]) {
char num = '1';
for (int i = 1; i < N; i++) {
if (c[i][1] == num) {
if (ind[i - 1] > ind[i]) {
return false;
}
}
num ... | #include <bits/stdc++.h>
using namespace std;
char C[36][3];
char Cb[36][3];
char Cs[36][3];
int Ib[36];
int Is[36];
int N;
bool is_stable(char c[][3], int ind[]) {
char num = '1';
for (int i = 1; i < N; i++) {
if (c[i][1] == num) {
if (ind[i - 1] > ind[i]) {
return false;
}
}
num ... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 105,606 | 105,607 | u648595971 | cpp |
p02261 | #include <bits/stdc++.h>
struct CARD {
char mark;
char num;
int index;
};
void selectionSort(CARD *A, int N) {
int minj;
for (int i = 0; i < N - 1; i++) {
minj = i;
for (int j = i; j < N; j++) {
if (A[j].num < A[minj].num)
minj = j;
}
if (minj != i) {
CARD tmp = A[i];
... | #include <bits/stdc++.h>
struct CARD {
char mark;
char num;
int index;
};
void selectionSort(CARD *A, int N) {
int minj;
for (int i = 0; i < N - 1; i++) {
minj = i;
for (int j = i; j < N; j++) {
if (A[j].num < A[minj].num)
minj = j;
}
if (minj != i) {
CARD tmp = A[i];
... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 105,628 | 105,629 | u476002798 | cpp |
p02261 | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define rep(i, from, to) for (int i = from; i < to; ++i)
#define REP(i, from, to) for (int i = from; i <= to; ++i)
using namespace std;
template <typename T>
ostream &operator<<(ostream &out, const vector<vector<T>> &v) {
for (size_t i = 0; ... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define rep(i, from, to) for (int i = from; i < to; ++i)
#define REP(i, from, to) for (int i = from; i <= to; ++i)
using namespace std;
template <typename T>
ostream &operator<<(ostream &out, const vector<vector<T>> &v) {
for (size_t i = 0; ... | [
"identifier.change",
"io.output.change",
"literal.string.change",
"literal.string.case.change"
] | 105,631 | 105,632 | u867328378 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void print(Card card[], int size) {
for (int i = 0; i < size; i++) {
if (i)
cout << ' ';
cout << card[i].suit << card[i].value;
}
cout << endl;
}
void selection(Card cards[], int size) {
int minj;
for (int i = 0; i ... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void print(Card card[], int size) {
for (int i = 0; i < size; i++) {
if (i)
cout << ' ';
cout << card[i].suit << card[i].value;
}
cout << endl;
}
void selection(Card cards[], int size) {
int minj;
for (int i = 0; i ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,640 | 105,641 | u772241565 | cpp |
p02261 | #include <iostream>
using namespace std;
struct card {
char suit, value;
};
void bubble(struct card a[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j >= i; j--) {
if (a[j].value < a[j - 1].value)
swap(a[j], a[j - 1]);
}
}
}
void selection(struct card a[], int n) {
for (i... | #include <iostream>
using namespace std;
struct card {
char suit, value;
};
void bubble(struct card a[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j >= i; j--) {
if (a[j].value < a[j - 1].value)
swap(a[j], a[j - 1]);
}
}
}
void selection(struct card a[], int n) {
for (i... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,642 | 105,643 | u675217322 | cpp |
p02261 | #include <iostream>
using namespace std;
struct card {
char suit, value;
};
void bubble(struct card a[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j >= i; j--) {
if (a[j].value < a[j - 1].value)
swap(a[j], a[j - 1]);
}
}
}
void selection(struct card a[], int n) {
for (i... | #include <iostream>
using namespace std;
struct card {
char suit, value;
};
void bubble(struct card a[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j >= i; j--) {
if (a[j].value < a[j - 1].value)
swap(a[j], a[j - 1]);
}
}
}
void selection(struct card a[], int n) {
for (i... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 105,644 | 105,643 | u675217322 | cpp |
p02261 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void BubbleSort(int, int);
void SelectionSort(int, int);
struct Card {
char pic, val;
};
void swap(Card *a, Card *b) {
Card tmp = *a;
*a = *b;
*b = tmp;
}
void printResult(Card *Seq, int n) {
for (int i = 0; i < n; i++) {
if... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void BubbleSort(int, int);
void SelectionSort(int, int);
struct Card {
char pic, val;
};
void swap(Card *a, Card *b) {
Card tmp = *a;
*a = *b;
*b = tmp;
}
void printResult(Card *Seq, int n) {
for (int i = 0; i < n; i++) {
if... | [
"control_flow.return.add",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,645 | 105,646 | u007523040 | cpp |
p02261 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void BubbleSort(int, int);
void SelectionSort(int, int);
struct Card {
char pic, val;
};
void swap(Card *a, Card *b) {
Card tmp = *a;
*a = *b;
*b = tmp;
}
void printResult(Card *Seq, int n) {
for (int i = 0; i < n; i++) {
if... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void BubbleSort(int, int);
void SelectionSort(int, int);
struct Card {
char pic, val;
};
void swap(Card *a, Card *b) {
Card tmp = *a;
*a = *b;
*b = tmp;
}
void printResult(Card *Seq, int n) {
for (int i = 0; i < n; i++) {
if... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,647 | 105,646 | u007523040 | cpp |
p02261 | ///
// File: alds1_2_c.cpp
// Author: ymiyamoto
//
// Created on Wed Oct 4 01:32:07 2017
//
#include <cstdint>
#include <iostream>
#include <vector>
using namespace std;
static vector<pair<uint32_t, char>> array1;
static vector<pair<uint32_t, char>> array2;
static void bubble_sort() {
for (uint32_t i = 0; i < ar... | ///
// File: alds1_2_c.cpp
// Author: ymiyamoto
//
// Created on Wed Oct 4 01:32:07 2017
//
#include <cstdint>
#include <iostream>
#include <vector>
using namespace std;
static vector<pair<uint32_t, char>> array1;
static vector<pair<uint32_t, char>> array2;
static void bubble_sort() {
for (uint32_t i = 0; i < ar... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,648 | 105,649 | u827214117 | cpp |
p02261 | ///
// File: alds1_2_c.cpp
// Author: ymiyamoto
//
// Created on Wed Oct 4 01:32:07 2017
//
#include <cstdint>
#include <iostream>
#include <vector>
using namespace std;
static vector<pair<uint32_t, char>> array1;
static vector<pair<uint32_t, char>> array2;
static void bubble_sort() {
for (uint32_t i = 0; i < ar... | ///
// File: alds1_2_c.cpp
// Author: ymiyamoto
//
// Created on Wed Oct 4 01:32:07 2017
//
#include <cstdint>
#include <iostream>
#include <vector>
using namespace std;
static vector<pair<uint32_t, char>> array1;
static vector<pair<uint32_t, char>> array2;
static void bubble_sort() {
for (uint32_t i = 0; i < ar... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,650 | 105,649 | u827214117 | cpp |
p02261 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<string> a, b;
string tmp;
int n, i;
cin >> n;
for (i = 0; i < n; i++) {
cin >> tmp;
a.push_back(tmp);
}
b.assign(a.begin(), a.end());
for (i = 0; i < n - 1; i++)
for (int j = n - 2; j != i - 1;... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<string> a, b;
string tmp;
int n, i;
cin >> n;
for (i = 0; i < n; i++) {
cin >> tmp;
a.push_back(tmp);
}
b.assign(a.begin(), a.end());
for (i = 0; i < n - 1; i++)
for (int j = n - 2; j != i - 1;... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,652 | 105,653 | u076398897 | cpp |
p02261 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<string> a, b;
string tmp;
int n, i;
cin >> n;
for (i = 0; i < n; i++) {
cin >> tmp;
a.push_back(tmp);
}
b.assign(a.begin(), a.end());
for (i = 0; i < n - 1; i++)
for (int j = n - 2; j != i - 1;... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<string> a, b;
string tmp;
int n, i;
cin >> n;
for (i = 0; i < n; i++) {
cin >> tmp;
a.push_back(tmp);
}
b.assign(a.begin(), a.end());
for (i = 0; i < n - 1; i++)
for (int j = n - 2; j != i - 1;... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,652 | 105,654 | u076398897 | cpp |
p02261 | #include <bits/stdc++.h>
using namespace std;
class card {
public:
int N;
vector<int> value;
vector<char> cha;
vector<string> init_array;
vector<string> array;
vector<string> Barray;
vector<string> Sarray;
void set(void) {
cin >> N;
value.resize(N);
cha.resize(N);
init_array.resize(N);... | #include <bits/stdc++.h>
using namespace std;
class card {
public:
int N;
vector<int> value;
vector<char> cha;
vector<string> init_array;
vector<string> array;
vector<string> Barray;
vector<string> Sarray;
void set(void) {
cin >> N;
value.resize(N);
cha.resize(N);
init_array.resize(N);... | [] | 105,655 | 105,656 | u411559868 | cpp |
p02261 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
typedef long long int ll;
using namespace std;
struct card {
char suit;
int value;
};
void bubble(struct card a[], int n) {
for (int... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
typedef long long int ll;
using namespace std;
struct card {
char suit, value;
};
void bubble(struct card a[], int n) {
for (int i = 0... | [] | 105,659 | 105,660 | u763287360 | cpp |
p02261 | #include <iostream>
using namespace std;
int bub(char c[][2], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (c[j][1] < c[j - 1][1]) {
swap(c[j], c[j - 1]);
}
}
}
return 0;
}
int sel(char k[][2], int n) {
for (int i = 0; i < n; i++) {
int minj = i;
... | #include <iostream>
using namespace std;
int bub(char c[][2], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (c[j][1] < c[j - 1][1]) {
swap(c[j], c[j - 1]);
}
}
}
return 0;
}
int sel(char k[][2], int n) {
for (int i = 0; i < n; i++) {
int minj = i;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,664 | 105,665 | u338380084 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit;
int value;
};
void bubble(struct Card c[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (c[j].value < c[j - 1].value) {
Card t = c[j];
c[j] = c[j - 1];
c[j - 1] = t;
}
}
... | #include <iostream>
using namespace std;
struct Card {
char suit;
int value;
};
void bubble(struct Card c[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (c[j].value < c[j - 1].value) {
Card t = c[j];
c[j] = c[j - 1];
c[j - 1] = t;
}
}
... | [
"literal.string.change",
"io.output.change"
] | 105,671 | 105,672 | u612835288 | cpp |
p02261 | #include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
typedef pair<char, int> P;
void myprint(vector<P> &a) {
for (auto it = a.begin(); it != a.end(); ++it) {
if (it != a.begin()) {
cout << " ";
}
cout << it->first << it->second;
}
cou... | #include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
typedef pair<char, int> P;
void myprint(vector<P> &a) {
for (auto it = a.begin(); it != a.end(); ++it) {
if (it != a.begin()) {
cout << " ";
}
cout << it->first << it->second;
}
cou... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,675 | 105,676 | u800918599 | cpp |
p02261 | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void bubbleSort(struct Card C[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (C[j].value < C[j - 1].value) {
swap(C[j], C[j - 1]);
}
}
}
}
void selectionSort(Card C[], int n) ... | #include <iostream>
using namespace std;
struct Card {
char suit, value;
};
void bubbleSort(struct Card C[], int n) {
for (int i = 0; i < n; i++) {
for (int j = n - 1; j > i; j--) {
if (C[j].value < C[j - 1].value) {
swap(C[j], C[j - 1]);
}
}
}
}
void selectionSort(Card C[], int n) ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,677 | 105,678 | u404850918 | cpp |
p02261 | #include "bits/stdc++.h"
using namespace std;
struct Card {
char suit;
int value;
};
void Print(vector<Card> &A) {
for (int i = 0; i < A.size(); ++i) {
if (i)
cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}
void SelectionSort(vector<Card> &A) {
for (int i = 0; i < A.size(); ... | #include "bits/stdc++.h"
using namespace std;
struct Card {
char suit;
int value;
};
void Print(vector<Card> &A) {
for (int i = 0; i < A.size(); ++i) {
if (i)
cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}
void SelectionSort(vector<Card> &A) {
for (int i = 0; i < A.size(); ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change",
"identifier.change",
"call.function.change"
] | 105,694 | 105,695 | u807503779 | cpp |
p02261 | #include "bits/stdc++.h"
using namespace std;
struct Card {
char suit;
int value;
};
void Print(vector<Card> &A) {
for (int i = 0; i < A.size(); ++i) {
if (i)
cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}
void SelectionSort(vector<Card> &A) {
for (int i = 0; i < A.size(); ... | #include "bits/stdc++.h"
using namespace std;
struct Card {
char suit;
int value;
};
void Print(vector<Card> &A) {
for (int i = 0; i < A.size(); ++i) {
if (i)
cout << " ";
cout << A[i].suit << A[i].value;
}
cout << endl;
}
void SelectionSort(vector<Card> &A) {
for (int i = 0; i < A.size(); ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,696 | 105,695 | u807503779 | cpp |
p02261 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
void BubbleSort(vector<string> &A) {
for (int i = 0; i <= A.size() - 1; i++) {
for (int j = A.size() - 1; j >= i + 1; j--) {
if (A[j][1] < A[j - 1][1]) {
string a = A[j];
A[j]... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
void BubbleSort(vector<string> &A) {
for (int i = 0; i <= A.size() - 1; i++) {
for (int j = A.size() - 1; j >= i + 1; j--) {
if (A[j][1] < A[j - 1][1]) {
string a = A[j];
A[j]... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,697 | 105,698 | u008293828 | cpp |
p02261 | #include <iostream>
using namespace std;
void bubbleSort(int A[], char C[], int N) {
int flag, j, i = 0;
flag = 1;
while (flag) {
flag = 0;
for (j = N - 1; j >= i + 1; j--) {
if (A[j] < A[j - 1]) {
swap(A[j], A[j - 1]);
swap(C[j], C[j - 1]);
flag = 1;
}
}
i++;
... | #include <iostream>
using namespace std;
void bubbleSort(int A[], char C[], int N) {
int flag, j, i = 0;
flag = 1;
while (flag) {
flag = 0;
for (j = N - 1; j >= i + 1; j--) {
if (A[j] < A[j - 1]) {
swap(A[j], A[j - 1]);
swap(C[j], C[j - 1]);
flag = 1;
}
}
i++;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,699 | 105,700 | u215304644 | cpp |
p02261 |
#include <iostream>
using namespace std;
struct Card {
char mark;
int value;
};
void bubbleSort(struct Card C[], int n) {
int i, j;
Card v;
for (i = 0; i < n; i++) {
for (j = n - 1; j >= i + 1; j++) {
if (C[j].value < C[j - 1].value) {
v = C[j];
C[j] = C[j - 1];
C[... | #include <iostream>
using namespace std;
struct Card {
char mark;
int value;
};
void bubbleSort(struct Card C[], int n) {
int i, j;
Card v;
for (i = 0; i < n; i++) {
for (j = n - 1; j >= i + 1; j--) {
if (C[j].value < C[j - 1].value) {
v = C[j];
C[j] = C[j - 1];
C[j ... | [
"identifier.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 105,701 | 105,702 | u694499356 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.