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 |
|---|---|---|---|---|---|---|---|
p00123 | #include <iostream>
using namespace std;
int main() {
double t, ti;
cin >> t >> ti;
if (t < 35.50 && ti < 71.00) {
cout << "AAA" << endl;
} else if (t < 37.50 && ti < 77.00) {
cout << "AA" << endl;
} else if (t < 40.00 && ti < 83.00) {
cout << "A" << endl;
} else if (t < 43.00 && ti < 89.00)... | #include <iostream>
using namespace std;
int main() {
double t, ti;
while (cin >> t >> ti) {
if (t < 35.50 && ti < 71.00) {
cout << "AAA" << endl;
} else if (t < 37.50 && ti < 77.00) {
cout << "AA" << endl;
} else if (t < 40.00 && ti < 83.00) {
cout << "A" << endl;
} else if (t... | [] | 36,237 | 36,238 | u458808208 | cpp |
p00123 | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
while (cin >> a >> b) {
if (a < 35.50 && b < 71.00)
cout << "AAA" << endl;
else if (a < 37.50 && b < 77.00)
cout << "AA" << endl;
else if (a < 40.00 && b < 83.00)
cout << "A" << endl;
else if (a < 43.00 && b <... | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
while (cin >> a >> b) {
if (a < 35.50 && b < 71.00)
cout << "AAA" << endl;
else if (a < 37.50 && b < 77.00)
cout << "AA" << endl;
else if (a < 40.00 && b < 83.00)
cout << "A" << endl;
else if (a < 43.00 && b <... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 36,259 | 36,260 | u398354652 | cpp |
p00123 | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
while (cin >> a >> b) {
if (a < 35.50 && b < 71.00)
cout << "AAA" << endl;
else if (a < 37.50 && b < 77.00)
cout << "AA" << endl;
else if (a < 40.00 && b < 83.00)
cout << "A" << endl;
else if (a < 43.00 && b <... | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
while (cin >> a >> b) {
if (a < 35.50 && b < 71.00)
cout << "AAA" << endl;
else if (a < 37.50 && b < 77.00)
cout << "AA" << endl;
else if (a < 40.00 && b < 83.00)
cout << "A" << endl;
else if (a < 43.00 && b <... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 36,261 | 36,260 | u398354652 | cpp |
p00123 | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
while (cin >> a >> b) {
if (a < 35.50 && b < 71.00)
cout << "AAA" << endl;
else if (a < 37.50 && b < 77.00)
cout << "AA" << endl;
else if (a < 40.00 && b < 83.00)
cout << "A" << endl;
else if (a < 43.00 && b <... | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
while (cin >> a >> b) {
if (a < 35.50 && b < 71.00)
cout << "AAA" << endl;
else if (a < 37.50 && b < 77.00)
cout << "AA" << endl;
else if (a < 40.00 && b < 83.00)
cout << "A" << endl;
else if (a < 43.00 && b <... | [
"literal.string.change",
"io.output.change"
] | 36,262 | 36,260 | u398354652 | cpp |
p00123 | #include <iostream>
using namespace std;
int main() {
double a, b;
cin >> a >> b;
if (a < 35.50 && b < 71.00)
cout << "AAA\n";
else if (a < 37.50 && b < 77.00)
cout << "AA\n";
else if (a < 40.00 && b < 83.00)
cout << "A\n";
else if (a < 43.00 && b < 89.00)
cout << "B\n";
else if (a... | #include <iostream>
using namespace std;
int main() {
double a, b;
while (cin >> a >> b) {
if (a < 35.50 && b < 71.00)
cout << "AAA\n";
else if (a < 37.50 && b < 77.00)
cout << "AA\n";
else if (a < 40.00 && b < 83.00)
cout << "A\n";
else if (a < 43.00 && b < 89.00)
cou... | [] | 36,266 | 36,267 | u067723511 | cpp |
p00118 | #include <cstdio>
using namespace std;
void func(int, int);
int h, w;
char za[10][10];
int cnt;
int flg, flg1, flg2;
int main(void) {
int i, j;
scanf("%d %d", &h, &w);
while (!(h == 0 && w == 0)) {
for (i = 0; i < h; i++) {
scanf("%s", za[i]);
}
cnt = 0;
for (i = 0; i < h; i++) {
for ... | #include <cstdio>
using namespace std;
void func(int, int);
int h, w;
char za[101][101];
int cnt;
int flg, flg1, flg2;
int main(void) {
int i, j;
scanf("%d %d", &h, &w);
while (!(h == 0 && w == 0)) {
for (i = 0; i < h; i++) {
scanf("%s", za[i]);
}
cnt = 0;
for (i = 0; i < h; i++) {
fo... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 36,361 | 36,359 | u866810339 | cpp |
p00118 | #include <cstring>
#include <iostream>
#include <queue>
using namespace std;
#define MAX_N 2000
int x[MAX_N][MAX_N];
int col[MAX_N][MAX_N], cnt;
int h, w;
queue<int> Q;
void bfs(int c) {
while (!Q.empty()) {
int a = Q.front() / 10000;
int b = Q.front() % 10000;
Q.pop();
if (x[a][b] == x[a - 1][b] ... | #include <cstring>
#include <iostream>
#include <queue>
using namespace std;
#define MAX_N 2000
int x[MAX_N][MAX_N];
int col[MAX_N][MAX_N], cnt;
int h, w;
queue<int> Q;
void bfs(int c) {
while (!Q.empty()) {
int a = Q.front() / 10000;
int b = Q.front() % 10000;
Q.pop();
if (x[a][b] == x[a - 1][b] ... | [
"call.arguments.change",
"expression.operation.binary.change"
] | 36,373 | 36,374 | u852311840 | cpp |
p00118 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <utility>
#include <vector>
#define INF_LL 9000000000000000000
#define INF 2000000000
#define REP(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
using nam... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <utility>
#include <vector>
#define INF_LL 9000000000000000000
#define INF 2000000000
#define REP(i, n) for (int i = 0; i < (n); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
using nam... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 36,394 | 36,395 | u379956761 | cpp |
p00118 | #include <iostream>
using namespace std;
char table[100][100];
int w, h;
const int dir[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
void Dfs(int x, int y, char cur) {
table[x][y] = 'X';
for (int i = 0; i < 4; ++i) {
int next_x = x + dir[i][0];
int next_y = y + dir[i][1];
if (next_x >= 0 && next_x < w ... | #include <iostream>
using namespace std;
char table[100][100];
int w, h;
const int dir[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
void Dfs(int x, int y, char cur) {
table[x][y] = 'X';
for (int i = 0; i < 4; ++i) {
int next_x = x + dir[i][0];
int next_y = y + dir[i][1];
if (next_x >= 0 && next_x < w ... | [
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change"
] | 36,442 | 36,443 | u814050663 | cpp |
p00118 | #include <iostream>
using namespace std;
char map[101][101];
int vis[101][101];
int ans;
int H, W;
void dfs(int x, int y, char c) {
if (c != map[x][y])
return;
if (vis[x][y])
return;
vis[x][y] = 1;
if (x > 0)
dfs(x - 1, y, map[x][y]);
if (x < H - 1)
dfs(x + 1, y, map[x][y]);
if (y > 0)
d... | #include <iostream>
using namespace std;
char map[101][101];
int vis[101][101];
int ans;
int H, W;
void dfs(int x, int y, char c) {
if (c != map[x][y])
return;
if (vis[x][y])
return;
vis[x][y] = 1;
if (x > 0)
dfs(x - 1, y, map[x][y]);
if (x < H - 1)
dfs(x + 1, y, map[x][y]);
if (y > 0)
d... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 36,463 | 36,464 | u053110240 | cpp |
p00118 | #include <iostream>
using namespace std;
char map[101][101];
int vis[101][101];
int ans;
int H, W;
void dfs(int x, int y, char c) {
if (c != map[x][y])
return;
if (vis[x][y])
return;
vis[x][y] = 1;
if (x > 0)
dfs(x - 1, y, map[x][y]);
if (x < H - 1)
dfs(x + 1, y, map[x][y]);
if (y > 0)
d... | #include <iostream>
using namespace std;
char map[101][101];
int vis[101][101];
int ans;
int H, W;
void dfs(int x, int y, char c) {
if (c != map[x][y])
return;
if (vis[x][y])
return;
vis[x][y] = 1;
if (x > 0)
dfs(x - 1, y, map[x][y]);
if (x < H - 1)
dfs(x + 1, y, map[x][y]);
if (y > 0)
d... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 36,465 | 36,464 | u053110240 | cpp |
p00118 | #include <cstdio>
#include <iostream>
using namespace std;
const int MAX_N = 100;
char yard[MAX_N][MAX_N];
int h, w;
int dx[4] = {-1, 0, 1, 0}, dy[4] = {0, 1, 0, -1};
void dfs(int, int, char);
int main() {
while ((scanf("%d%d", &h, &w)) && h != 0 && w != 0) {
for (int i = 0; i < h; i++) {
for (int j = 0;... | #include <cstdio>
#include <iostream>
using namespace std;
const int MAX_N = 100;
char yard[MAX_N][MAX_N];
int h, w;
int dx[4] = {-1, 0, 1, 0}, dy[4] = {0, 1, 0, -1};
void dfs(int, int, char);
int main() {
while ((scanf("%d%d", &h, &w)) && h != 0 && w != 0) {
for (int i = 0; i < h; i++) {
for (int j = 0;... | [] | 36,475 | 36,476 | u111661266 | cpp |
p00118 | #include <iostream>
using namespace std;
char f[102][102];
char cnt_c[1];
void DFS(int y, int x) {
if (f[y][x] == '.' || f[y][x] == 0 || f[y][x] != cnt_c[0])
return;
if (f[y][x] == cnt_c[0]) {
f[y][x] = '.';
}
DFS(y + 1, x);
DFS(y - 1, x);
DFS(y, x + 1);
DFS(y, x - 1);
}
int main() {
int H, W... | #include <iostream>
using namespace std;
char f[102][102];
char cnt_c[1];
void DFS(int y, int x) {
if (f[y][x] == '.' || f[y][x] == 0 || f[y][x] != cnt_c[0])
return;
if (f[y][x] == cnt_c[0]) {
f[y][x] = '.';
}
DFS(y + 1, x);
DFS(y - 1, x);
DFS(y, x + 1);
DFS(y, x - 1);
}
int main() {
int H, W... | [
"control_flow.branch.if.condition.change"
] | 36,501 | 36,502 | u506705885 | cpp |
p00118 | #include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void destroy(vector<string> &field, int i, int j, int symbol) {
if (field[i][j] == symbol) {
int symbol = field[i][j];
field[i][j] = '-';
destroy(field, i - 1, j, symbol);
destroy(field, i + 1, j, symbol)... | #include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void destroy(vector<string> &field, int i, int j, int symbol) {
if (field[i][j] == symbol) {
int symbol = field[i][j];
field[i][j] = '-';
destroy(field, i - 1, j, symbol);
destroy(field, i + 1, j, symbol)... | [
"identifier.change",
"control_flow.loop.condition.change"
] | 36,590 | 36,591 | u777217452 | cpp |
p00120 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
string str;
const int INF = 1 << 30;
double min(double a, double b) { return a > b ? b : a; }
void swap(int *a, int *b) {
int temp = *a;
*a = *b;
*b = temp;
}
double dist(int a, int... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
string str;
const int INF = 1 << 30;
double min(double a, double b) { return a > b ? b : a; }
void swap(int *a, int *b) {
int temp = *a;
*a = *b;
*b = temp;
}
double dist(int a, int... | [
"literal.string.change",
"io.output.change"
] | 36,703 | 36,704 | u579029648 | cpp |
p00120 | #include <bits/stdc++.h>
using namespace std;
#define INF 10000000
int main() {
string str;
while (getline(cin, str)) {
vector<int> vec;
stringstream ss(str);
int wid, n = 0;
ss >> wid;
while (!ss.eof()) {
int s;
ss >> s;
vec.push_back(s);
n++;
}
double dp[(1 << ... | #include <bits/stdc++.h>
using namespace std;
#define INF 10000000
int main() {
string str;
while (getline(cin, str)) {
vector<double> vec;
stringstream ss(str);
int wid, n = 0;
ss >> wid;
while (!ss.eof()) {
double s;
ss >> s;
vec.push_back(s);
n++;
}
double dp[... | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"io.output.change"
] | 36,719 | 36,720 | u645134403 | cpp |
p00120 | #include <bits/stdc++.h>
using namespace std;
#define INF 10000000
int main() {
string str;
while (getline(cin, str)) {
vector<int> vec;
stringstream ss(str);
int wid, n = 0;
ss >> wid;
while (!ss.eof()) {
int s;
ss >> s;
vec.push_back(s);
n++;
}
double dp[1 << n... | #include <bits/stdc++.h>
using namespace std;
#define INF 10000000
int main() {
string str;
while (getline(cin, str)) {
vector<double> vec;
stringstream ss(str);
int wid, n = 0;
ss >> wid;
while (!ss.eof()) {
double s;
ss >> s;
vec.push_back(s);
n++;
}
double dp[... | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"io.output.change"
] | 36,721 | 36,720 | u645134403 | cpp |
p00120 | #include <bits/stdc++.h>
using namespace std;
#define INF 10000000
int main() {
string str;
while (getline(cin, str)) {
vector<double> vec;
stringstream ss(str);
int wid, n = 0;
ss >> wid;
while (!ss.eof()) {
double s;
ss >> s;
vec.push_back(s);
n++;
}
double dp[... | #include <bits/stdc++.h>
using namespace std;
#define INF 10000000
int main() {
string str;
while (getline(cin, str)) {
vector<double> vec;
stringstream ss(str);
int wid, n = 0;
ss >> wid;
while (!ss.eof()) {
double s;
ss >> s;
vec.push_back(s);
n++;
}
double dp[... | [
"literal.string.change",
"io.output.change"
] | 36,722 | 36,720 | u645134403 | cpp |
p00120 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
const int LOOP = 10000; //??????????????°
const double EPS = 1e-6; //??????????????¨(?°??????????????????????)
int L;
int N; //???????????±???????????°
//???????????±?????????????????... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
const int LOOP = 10000; //??????????????°
const double EPS = 1e-6; //??????????????¨(?°??????????????????????)
int L;
int N; //???????????±???????????°
//???????????±?????????????????... | [
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 36,726 | 36,727 | u933218756 | cpp |
p00120 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
const int LOOP = 10000; //??????????????°
const double EPS = 1e-6; //??????????????¨(?°??????????????????????)
int L;
int N; //???????????±???????????°
//???????????±?????????????????... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
const int LOOP = 10000; //??????????????°
const double EPS = 1e-6; //??????????????¨(?°??????????????????????)
int L;
int N; //???????????±???????????°
//???????????±?????????????????... | [
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 36,729 | 36,727 | u933218756 | cpp |
p00120 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
bool f;
double w;
vector<double> v;
int n;
double calc(int i, int j) {
return sqrt((v[i] + v[j]) * (v[i] + v[j]) - (v[i] - v[j]) * (v[i] - v[j]));
}
double memo[1 << 12][12];
void dfs(double l, int b, int p) {
if (~p) {
if (memo[b][p] <= l)
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
bool f;
double w;
vector<double> v;
int n;
double calc(int i, int j) {
return sqrt((v[i] + v[j]) * (v[i] + v[j]) - (v[i] - v[j]) * (v[i] - v[j]));
}
double memo[1 << 12][12];
void dfs(double l, int b, int p) {
if (~p) {
if (memo[b][p] <= l)
... | [
"literal.string.change",
"io.output.change"
] | 36,743 | 36,744 | u924665348 | cpp |
p00120 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
while (getline(cin, s)) {
double w;
vector<double> v;
stringstream ss(s);
ss >> w;
double t;
while (ss >> t)
v.push_back(t);
int n = v.size();
double dp[1 << n][n], inf = 1 << 25;
for... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
while (getline(cin, s)) {
double w;
vector<double> v;
stringstream ss(s);
ss >> w;
double t;
while (ss >> t)
v.push_back(t);
int n = v.size();
double dp[1 << n][n], inf = 1 << 25;
for... | [
"literal.string.change",
"io.output.change"
] | 36,745 | 36,746 | u924665348 | cpp |
p00120 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <stack>
#include <stdio.h>
#include <vector>
typedef long long int ll;
#define BIG_NUM 2000000000
#define MOD 1000000007
#define EPS 0.00000001
using namespace std;
struct Info {
double r;
};
double ***dp;
void func(char buf[300]) ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <stack>
#include <stdio.h>
#include <vector>
typedef long long int ll;
#define BIG_NUM 2000000000
#define MOD 1000000007
#define EPS 0.00000001
using namespace std;
struct Info {
double r;
};
double ***dp;
void func(char buf[300]) ... | [
"identifier.change",
"expression.operation.binary.change"
] | 36,747 | 36,748 | u697145890 | cpp |
p00120 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <stack>
#include <stdio.h>
#include <vector>
typedef long long int ll;
#define BIG_NUM 2000000000
#define MOD 1000000007
#define EPS 0.00000001
using namespace std;
struct Info {
double r;
};
double ***dp;
void func(char buf[300]) ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <stack>
#include <stdio.h>
#include <vector>
typedef long long int ll;
#define BIG_NUM 2000000000
#define MOD 1000000007
#define EPS 0.00000001
using namespace std;
struct Info {
double r;
};
double ***dp;
void func(char buf[300]) ... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"identifier.change",
"literal.number.change"
] | 36,747 | 36,749 | u697145890 | cpp |
p00120 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#includ... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#includ... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 36,754 | 36,755 | u999854911 | cpp |
p00120 | #include <cmath>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
double dp[1 << 12][12];
int n;
int c[12];
double d(int back, int next) {
return sqrt(pow(c[back] + c[next], 2) - pow(c[back] - c[next], 2));
}
double solve(int sta... | #include <cmath>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
double dp[1 << 12][12];
int n;
int c[12];
double d(int back, int next) {
return sqrt(pow(c[back] + c[next], 2) - pow(c[back] - c[next], 2));
}
double solve(int sta... | [
"literal.string.change",
"io.output.change"
] | 36,758 | 36,759 | u378761086 | cpp |
p00120 | #include <cmath>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
double dp[12][1 << 12];
int main() {
int width;
while (cin >> width) {
for (int i = 0; i < 12; ++i) {
for (int j = 0; j < (1 << 12); ++j) {
dp[i][j] = -1.0;
}
}
string ... | #include <cmath>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
double dp[12][1 << 12];
int main() {
int width;
while (cin >> width) {
for (int i = 0; i < 12; ++i) {
for (int j = 0; j < (1 << 12); ++j) {
dp[i][j] = -1.0;
}
}
string ... | [
"literal.string.change",
"io.output.change"
] | 36,760 | 36,761 | u825925708 | cpp |
p00120 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long int lli;
typedef pair<int,... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long int lli;
typedef pair<int,... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 36,766 | 36,767 | u313705878 | cpp |
p00120 | #include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <... | #include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <... | [
"literal.string.change",
"io.output.change"
] | 36,768 | 36,769 | u498504992 | cpp |
p00121 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
//反向bfs
using namespace std;
map<string, int> t;
int num;
int mv[] = {-4, 4, 1, -1}; //上下右左
void bfs(string st) {
queue<s... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
//反向bfs
using namespace std;
map<string, int> t;
int num;
int mv[] = {-4, 4, 1, -1}; //上下右左
void bfs(string st) {
queue<s... | [
"variable_declaration.name.change",
"identifier.change"
] | 36,794 | 36,795 | u011621222 | cpp |
p00125 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define fr first
#define sc second
typedef vector<int> vi;
typedef pair<int, int> pii;
typedef pair<int, pii> pip;
const int INF = (1 << 25);
const int dx[] = {1, 0, -1, 0}, dy[] = {0, -1, 0, 1};
int main() {
int y1, m1, d1, y2, m2, d2;
while (cin... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define fr first
#define sc second
typedef vector<int> vi;
typedef pair<int, int> pii;
typedef pair<int, pii> pip;
const int INF = (1 << 25);
const int dx[] = {1, 0, -1, 0}, dy[] = {0, -1, 0, 1};
int main() {
int y1, m1, d1, y2, m2, d2;
while (cin... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 36,836 | 36,837 | u695600391 | cpp |
p00125 | #include <bits/stdc++.h>
using namespace std;
int pm(int y, int m) {
int sum = 0;
int s[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
for (int i = 0; i < m; i++) {
sum += s[i];
if (i == 1 && y % 4 == 0 && (y % 100 != 0 || y % 400 == 0))
sum += 1;
}
return sum;
}
int main() {
int y1, ... | #include <bits/stdc++.h>
using namespace std;
int pm(int y, int m) {
int sum = 0;
int s[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
for (int i = 0; i < m - 1; i++) {
sum += s[i];
if (i == 1 && y % 4 == 0 && (y % 100 != 0 || y % 400 == 0))
sum += 1;
}
return sum;
}
int main() {
int ... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 36,855 | 36,856 | u398354652 | cpp |
p00125 | #include <iostream>
using namespace std;
#define REP(i, b, n) for (int i = b; i < n; i++)
#define rep(i, n) REP(i, 0, n)
int month[] = {
0,
31, // 1
28, // 2
31, // 3
30, // 4
31, // 5
30, // 6
31, // 7
31, // 8
30, // 9
31, // 10
30, // 11
31 // 12
};
int day(int ... | #include <iostream>
using namespace std;
#define REP(i, b, n) for (int i = b; i < n; i++)
#define rep(i, n) REP(i, 0, n)
int month[13] = {
0,
31, // 1
28, // 2
31, // 3
30, // 4
31, // 5
30, // 6
31, // 7
31, // 8
30, // 9
31, // 10
30, // 11
31 // 12
};
int day(in... | [
"variable_declaration.array_dimensions.change",
"identifier.change",
"call.arguments.change"
] | 36,857 | 36,858 | u157643087 | cpp |
p00125 | #include <iostream>
using namespace std;
#define REP(i, b, n) for (int i = b; i < n; i++)
#define rep(i, n) REP(i, 0, n)
int month[13] = {
0,
31, // 1
28, // 2
31, // 3
30, // 4
31, // 5
30, // 6
31, // 7
31, // 8
30, // 9
31, // 10
30, // 11
31 // 12
};
int day(in... | #include <iostream>
using namespace std;
#define REP(i, b, n) for (int i = b; i < n; i++)
#define rep(i, n) REP(i, 0, n)
int month[13] = {
0,
31, // 1
28, // 2
31, // 3
30, // 4
31, // 5
30, // 6
31, // 7
31, // 8
30, // 9
31, // 10
30, // 11
31 // 12
};
int day(in... | [
"identifier.change",
"call.arguments.change"
] | 36,859 | 36,858 | u157643087 | cpp |
p00125 | #include <iostream>
using namespace std;
bool isLeap(int y) {
if (y % 400 == 0)
return true;
if (y % 100 == 0)
return false;
if (y % 4 == 0)
return true;
return false;
}
int NumberOfDays(int y, int m, int d) {
int num = 0;
int mon[] = {0, 31, 28, 31, 30, 31, 30, 31, 30, 30, 31, 30, 31};
if ... | #include <iostream>
using namespace std;
bool isLeap(int y) {
if (y % 400 == 0)
return true;
if (y % 100 == 0)
return false;
if (y % 4 == 0)
return true;
return false;
}
int NumberOfDays(int y, int m, int d) {
int num = 0;
int mon[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
if ... | [
"literal.number.change"
] | 36,860 | 36,861 | u157859087 | cpp |
p00125 | #include <cstdio>
bool isLeap(int year) {
if (year % 400 == 0)
return true;
if (year % 100 == 0)
return false;
return (year % 4 == 0);
}
long long dateserial(int year, int month, int day) {
static int days[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
long long res = day;
for (int i = 0; i... | #include <cstdio>
bool isLeap(int year) {
if (year % 400 == 0)
return true;
if (year % 100 == 0)
return false;
return (year % 4 == 0);
}
long long dateserial(int year, int month, int day) {
static int days[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
long long res = day;
for (int i = 0; i... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 36,862 | 36,863 | u647134562 | cpp |
p00125 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include ... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include ... | [
"literal.number.change",
"assignment.value.change",
"assignment.change"
] | 36,864 | 36,865 | u907421301 | cpp |
p00125 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include ... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include ... | [
"literal.number.change",
"assignment.value.change"
] | 36,866 | 36,865 | u907421301 | cpp |
p00125 | #include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, c) \
for (__typeof((c).begin()) i =... | #include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, c) \
for (__typeof((c).begin()) i =... | [
"expression.unary.arithmetic.add"
] | 36,867 | 36,868 | u505648358 | cpp |
p00125 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool checkUru(const int y) {
if (y == 0)
return false;
if (y % 4 == 0) {
if (y % 100 == 0) {
if (y % 400 == 0) {
return true;
} else {
return false;
}
} else
return true;
} else
... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool checkUru(const int y) {
// if(y%4==0&&y%100!=0){
// return true;
//}
// else if(y%400==0){
// return true;
//}
// else
// return false;
if (y == 0)
return false;
if (y % 4 == 0) {
if (y % 100 == 0) {
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 36,869 | 36,870 | u266871004 | cpp |
p00125 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool checkUru(const int y) {
if (y == 0)
return false;
if (y % 4 == 0) {
if (y % 100 == 0) {
if (y % 400 == 0) {
return true;
} else {
return false;
}
} else
return true;
} else
... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool checkUru(const int y) {
// if(y%4==0&&y%100!=0){
// return true;
//}
// else if(y%400==0){
// return true;
//}
// else
// return false;
if (y == 0)
return false;
if (y % 4 == 0) {
if (y % 100 == 0) {
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 36,871 | 36,870 | u266871004 | cpp |
p00125 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 36,873 | 36,874 | u270308012 | cpp |
p00125 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | [] | 36,876 | 36,874 | u270308012 | cpp |
p00125 | #include <iostream>
using namespace std;
bool uru(int y) {
if (!(y % 400))
return true;
if (!(y % 100))
return false;
if (!(y % 4))
return true;
return false;
}
int day(int y, int m, int d) {
int res = 0;
int month[] = {31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30};
for (int i = 2000; i < y; i... | #include <iostream>
using namespace std;
bool uru(int y) {
if (!(y % 400))
return true;
if (!(y % 100))
return false;
if (!(y % 4))
return true;
return false;
}
int day(int y, int m, int d) {
int res = 0;
int month[] = {31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30};
for (int i = 0; i < y; i++)... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change"
] | 36,879 | 36,880 | u914140574 | cpp |
p00125 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = ... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = ... | [
"misc.opposites",
"assignment.value.change",
"expression.operation.binary.change",
"assignment.change"
] | 36,884 | 36,885 | u934534598 | cpp |
p00125 | #include <iostream>
using namespace std;
int fairfiled(int y, int m, int d) {
if (m < 3) {
--y;
m += 12;
}
return 365 * y + (y / 4) - (y / 100) + (y / 400) + (206 * (m + 1) / 10) + d -
428;
}
int main() {
int y1, m1, d1;
int y2, m2, d2;
int sum;
while (cin >> y1 >> m1 >> d1 >> y2 >> m2 ... | #include <iostream>
using namespace std;
int fairfiled(int y, int m, int d) {
if (m < 3) {
--y;
m += 12;
}
return 365 * y + (y / 4) - (y / 100) + (y / 400) + (306 * (m + 1) / 10) + d -
428;
}
int main() {
int y1, m1, d1;
int y2, m2, d2;
int sum;
while (cin >> y1 >> m1 >> d1 >> y2 >> m2 ... | [
"literal.number.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 36,888 | 36,889 | u615353970 | cpp |
p00126 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool ok[9][9];
int m[9][9];
void reset(int *r) {
for (int i = 0; i < 10; ++i)
*(r + i) = 0;
}
void func(int x, int y) {
int cn[10] = {};
for (int i = x; i < x + 3; ++i)
for (int j = y; j < y + 3; ++j)
cn[m[i][j]]++;
... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool ok[9][9];
int m[9][9];
void reset(int *r) {
for (int i = 0; i < 10; ++i)
*(r + i) = 0;
}
void func(int x, int y) {
int cn[10] = {};
for (int i = x; i < x + 3; ++i)
for (int j = y; j < y + 3; ++j)
cn[m[i][j]]++;
... | [
"literal.string.change",
"io.output.change"
] | 36,915 | 36,916 | u662227160 | cpp |
p00126 | #include <cstdio>
using namespace std;
int main() {
int N;
for (scanf("%d", &N); N--;) {
char pz[9][12] = {};
char res[9][12] = {};
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
scanf(" %c", &pz[i][j]);
}
}
for (int i = 0; i < 9; i++) {
for (int j = 0; j ... | #include <cstdio>
using namespace std;
int main() {
int N;
for (scanf("%d", &N); N--;) {
char pz[9][12] = {};
char res[9][12] = {};
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
scanf(" %c", &pz[i][j]);
}
}
for (int i = 0; i < 9; i++) {
for (int j = 0; j ... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 36,922 | 36,923 | u858885710 | cpp |
p00126 | #include "bits/stdc++.h"
#include <unordered_map>
#include <unordered_set>
#pragma warning(disable : 4996)
using namespace std;
using ld = long double;
template <class T> using Table = vector<vector<T>>;
const ld eps = 1e-9;
//// < "D:\D_Download\Visual Studio
///2015\Projects\programing_contest_c++\Debug\a.txt"
int m... | #include "bits/stdc++.h"
#include <unordered_map>
#include <unordered_set>
#pragma warning(disable : 4996)
using namespace std;
using ld = long double;
template <class T> using Table = vector<vector<T>>;
const ld eps = 1e-9;
//// < "D:\D_Download\Visual Studio
///2015\Projects\programing_contest_c++\Debug\a.txt"
int m... | [
"expression.operation.binary.remove"
] | 36,932 | 36,931 | u186082958 | cpp |
p00123 | #include <iostream>
using namespace std;
int main() {
int ms, ml;
while (cin >> ms >> ml) {
if (ms < 35.50)
ms = 0;
else if (ms < 37.50)
ms = 1;
else if (ms < 40.00)
ms = 2;
else if (ms < 43.00)
ms = 3;
else if (ms < 50.00)
ms = 4;
else if (ms < 55.00)
... | #include <iostream>
using namespace std;
int main() {
double ms, ml;
while (cin >> ms >> ml) {
if (ms < 35.50)
ms = 0;
else if (ms < 37.50)
ms = 1;
else if (ms < 40.00)
ms = 2;
else if (ms < 43.00)
ms = 3;
else if (ms < 50.00)
ms = 4;
else if (ms < 55.00)
... | [
"variable_declaration.type.primitive.change",
"control_flow.loop.condition.change"
] | 36,937 | 36,938 | u081124728 | cpp |
p00123 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include ... | [
"variable_declaration.type.primitive.change"
] | 36,943 | 36,944 | u439230786 | cpp |
p00123 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include ... | [
"variable_declaration.type.primitive.change"
] | 36,945 | 36,944 | u439230786 | cpp |
p00123 | #include <iostream>
using namespace std;
int main(void) {
double a, b;
cin >> a >> b;
if (a < 35.5 && b < 71.0)
cout << "AAA" << endl;
else if (a < 37.5 && b < 77.0)
cout << "AA" << endl;
else if (a < 40.0 && b < 83.0)
cout << "A" << endl;
else if (a < 43.0 && b < 89.0)
cout << "B" << endl... | #include <iostream>
using namespace std;
int main(void) {
double a, b;
while (cin >> a >> b) {
if (a < 35.5 && b < 71.0)
cout << "AAA" << endl;
else if (a < 37.5 && b < 77.0)
cout << "AA" << endl;
else if (a < 40.0 && b < 83.0)
cout << "A" << endl;
else if (a < 43.0 && b < 89.0)
... | [] | 36,952 | 36,953 | u117454239 | cpp |
p00123 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
#define MAX_CLASS 8
int check(double m, int type);
int main() {
double m500, m1000;
string cls[MAX_CLASS] = {"AAA", "AA", "A", "B", "C", "D", "D", "NA"};
while (cin >> m500 >> m1000) {
cout << cls[max(check(m500, 0), check(m1000... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
#define MAX_CLASS 8
int check(double m, int type);
int main() {
double m500, m1000;
string cls[MAX_CLASS] = {"AAA", "AA", "A", "B", "C", "D", "E", "NA"};
while (cin >> m500 >> m1000) {
cout << cls[max(check(m500, 0), check(m1000... | [
"literal.string.change"
] | 36,956 | 36,957 | u297043950 | cpp |
p00123 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
#define MAX_CLASS 8
int check(double m, int type);
int main() {
double m500, m1000;
string cls[MAX_CLASS] = {"AAA", "AA", "A", "B", "C", "D", "D", "NA"};
while (cin >> m500 >> m1000) {
cout << cls[max(check(m500, 0), check(m1000... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
#define MAX_CLASS 8
int check(double m, int type);
int main() {
double m500, m1000;
string cls[MAX_CLASS] = {"AAA", "AA", "A", "B", "C", "D", "E", "NA"};
while (cin >> m500 >> m1000) {
cout << cls[max(check(m500, 0), check(m1000... | [
"literal.string.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 36,958 | 36,957 | u297043950 | cpp |
p00123 | #include <cstdio>
#include <string>
main() {
using namespace std;
int i, j;
string lv[8] = {"AAA", "AA", "A", "B", "C", "D", "E", "NA"};
double lvd5[7] = {35.5, 37.5, 40.0, 43.0, 50.0, 55.0, 70.0};
int lvd1[7] = {71, 77, 83, 89, 105, 116, 148};
double ind1, ind2;
while (~scanf("%lf %lf", &ind1, &ind2)) {
... | #include <cstdio>
#include <string>
main() {
using namespace std;
int i, j;
string lv[8] = {"AAA", "AA", "A", "B", "C", "D", "E", "NA"};
double lvd5[7] = {35.5, 37.5, 40.0, 43.0, 50.0, 55.0, 70.0};
int lvd1[7] = {71, 77, 83, 89, 105, 116, 148};
double ind1, ind2;
while (~scanf("%lf %lf", &ind1, &ind2)) {
... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"io.output.change"
] | 36,959 | 36,960 | u745519209 | cpp |
p00123 | #include <iostream>
using namespace std;
int main() {
double time500, time1000;
while (cin >> time500 >> time1000) {
if (time500 < 35.5 && time1000 < 71.0)
cout << "AAA" << endl;
else if (time500 < 37.5 && time1000 < 77.0)
cout << "AA" << endl;
else if (time500 < 40.0 && time1000 < 83.0)
... | #include <iostream>
using namespace std;
int main() {
double time500, time1000;
while (cin >> time500 >> time1000) {
if (time500 < 35.5 && time1000 < 71.0)
cout << "AAA" << endl;
else if (time500 < 37.5 && time1000 < 77.0)
cout << "AA" << endl;
else if (time500 < 40.0 && time1000 < 83.0)
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 36,968 | 36,969 | u754367965 | cpp |
p00123 | #include <iostream>
using namespace std;
int main() {
double f, s;
while (cin >> f >> s) {
if (f < 35 && s < 71)
cout << "AAA";
else if (f < 37.5 && s < 77.0)
cout << "AA";
else if (f < 40.5 && s < 83.0)
cout << "A";
else if (f < 43.0 && s < 89.0)
cout << "B";
else if ... | #include <iostream>
using namespace std;
int main() {
double f, s;
while (cin >> f >> s) {
if (f < 35.5 && s < 71)
cout << "AAA";
else if (f < 37.5 && s < 77.0)
cout << "AA";
else if (f < 40.0 && s < 83.0)
cout << "A";
else if (f < 43.0 && s < 89.0)
cout << "B";
else i... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 36,972 | 36,973 | u589408547 | cpp |
p00123 | #include <stdio.h>
int main(void) {
float t, t1;
while (!(scanf("%f %f", &t, &t1))) {
if (t < 35.50 && t1 < 71.00) {
printf("AAA\n");
} else if (t < 37.50 && t1 < 77.00) {
printf("AA\n");
} else if (t < 40.00 && t1 < 83.00) {
printf("A\n");
} else if (t < 43.00 && t1 < 89.00) {
... | #include <stdio.h>
int main(void) {
float t, t1;
while (scanf("%f %f", &t, &t1) != EOF) {
if (t < 35.50 && t1 < 71.00) {
printf("AAA\n");
} else if (t < 37.50 && t1 < 77.00) {
printf("AA\n");
} else if (t < 40.00 && t1 < 83.00) {
printf("A\n");
} else if (t < 43.00 && t1 < 89.00) {... | [
"control_flow.loop.condition.change",
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 36,977 | 36,978 | u774866143 | cpp |
p00123 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <stack>
#include <string>
#include <strstream>
#include <vector>
using namespace std;
int main() {
float a, b;
cin >> a >> b;
if (a < 35.5 && b < 71)
puts("AAA");
else if (a < 37.5 && b <... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <stack>
#include <string>
#include <strstream>
#include <vector>
using namespace std;
int main() {
float a, b;
while (cin >> a >> b) {
if (a < 35.5 && b < 71)
puts("AAA");
else if (a... | [] | 36,980 | 36,981 | u839357378 | cpp |
p00123 | #include <iostream>
using namespace std;
int main() {
double a, b;
double A[] = {35.50, 37.50, 40.00, 43.00, 50.00, 55.00};
double B[] = {71, 77, 83, 89, 105, 116, 148};
string C[] = {"AAA", "AA", "A", "B", "C", "D", "E", "NA"};
while (cin >> a >> b) {
int i;
for (i = 0; i < 7; i++) {
if (a < ... | #include <iostream>
using namespace std;
int main() {
double a, b;
double A[] = {35.50, 37.50, 40.00, 43.00, 50.00, 55.00, 70.00};
double B[] = {71, 77, 83, 89, 105, 116, 148};
string C[] = {"AAA", "AA", "A", "B", "C", "D", "E", "NA"};
while (cin >> a >> b) {
int i;
for (i = 0; i < 7; i++) {
i... | [] | 36,986 | 36,987 | u228816757 | cpp |
p00124 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
struct Team {
string name;
int id;
int point;
bool operator<(const Team &r) const {
return point == r.point ? id < r.id : point > r.point;
}
};
int main() {
string name;
int n, a, b, c, i = 0;
while (cin >> n, n) {
... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
struct Team {
string name;
int id;
int point;
bool operator<(const Team &r) const {
return point == r.point ? id < r.id : point > r.point;
}
};
int main() {
string name;
int n, a, b, c, i = 0;
while (cin >> n, n) {
... | [
"call.arguments.change"
] | 37,036 | 37,037 | u858885710 | cpp |
p00124 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define mp make_pair
using namespace std;
struct Team {
int point;
int num;
string name;
bool operator<(const Team &t) const {
return point == t.point ? num < t.num... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define mp make_pair
using namespace std;
struct Team {
int point;
int num;
string name;
bool operator<(const Team &t) const {
return point == t.point ? num < t.num... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"assignment.change",
"io.output.change"
] | 37,038 | 37,039 | u765197056 | cpp |
p00124 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include... | [
"expression.operation.unary.arithmetic.remove",
"call.arguments.change"
] | 37,041 | 37,042 | u332822187 | cpp |
p00124 | #include <iostream>
#include <map>
using namespace std;
int main() {
int n, p = 0;
while (cin >> n, n) {
multimap<int, string, greater<int>> m;
if (p)
cout << endl;
p++;
while (n--) {
string s;
int a, b, c;
cin >> s >> a >> b >> c;
a = a * 3 + c;
m.insert(make_pai... | #include <iostream>
#include <map>
using namespace std;
int main() {
int n, p = 0;
while (cin >> n, n) {
multimap<int, string, greater<int>> m;
if (p)
cout << endl;
p++;
while (n--) {
string s;
int a, b, c;
cin >> s >> a >> b >> c;
a = a * 3 + c;
m.insert(make_pai... | [
"literal.string.change",
"io.output.change"
] | 37,052 | 37,053 | u962041986 | cpp |
p00124 | #define _USE_MATH_DEFINES
#include "bits/stdc++.h"
using namespace std;
//#define int long long
#define DBG 1
#define dump(o) \
if (DBG) { \
cerr << #o << " " << o << endl; ... | #define _USE_MATH_DEFINES
#include "bits/stdc++.h"
using namespace std;
//#define int long long
#define DBG 1
#define dump(o) \
if (DBG) { \
cerr << #o << " " << o << endl; ... | [
"literal.string.change",
"expression.operation.binary.change"
] | 37,054 | 37,055 | u927516039 | cpp |
p00124 | #include <iostream>
using namespace std;
typedef struct {
string name;
int score;
} Team;
int main(void) {
int n;
bool firstFlg = true;
while (cin >> n && n) {
if (!firstFlg)
cout << endl;
else
firstFlg = false;
Team t[n];
for (int i = 0; i < n; i++) {
int win, lose, draw... | #include <iostream>
using namespace std;
typedef struct {
string name;
int score;
} Team;
int main(void) {
int n;
bool firstFlg = true;
while (cin >> n && n) {
if (!firstFlg)
cout << endl;
else
firstFlg = false;
Team t[n];
for (int i = 0; i < n; i++) {
int win, lose, draw... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change"
] | 37,056 | 37,057 | u642549559 | cpp |
p00124 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | [
"assignment.change"
] | 37,058 | 37,059 | u270308012 | cpp |
p00124 | #include <algorithm>
#include <functional>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <string>
#include <vector>
using namespace std;
bool cmp(pair<int, string> a, pair<int, string> b) { return a.first > b.first; }
int main(void) {
bool b = false;
while (1) {
int a, n;
... | #include <algorithm>
#include <functional>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <string>
#include <vector>
using namespace std;
bool cmp(pair<int, string> a, pair<int, string> b) { return a.first > b.first; }
int main(void) {
bool b = false;
while (1) {
int a, n;
... | [
"expression.operation.binary.remove",
"io.output.change"
] | 37,060 | 37,061 | u117454239 | cpp |
p00124 | #include <algorithm>
#include <functional>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <string>
#include <vector>
using namespace std;
bool cmp(pair<int, string> a, pair<int, string> b) { return a.first > b.first; }
int main(void) {
bool b = false;
while (1) {
int a, n;
... | #include <algorithm>
#include <functional>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <string>
#include <vector>
using namespace std;
bool cmp(pair<int, string> a, pair<int, string> b) { return a.first > b.first; }
int main(void) {
bool b = false;
while (1) {
int a, n;
... | [
"io.output.change"
] | 37,062 | 37,061 | u117454239 | cpp |
p00124 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n, d = 0;
while (cin >> n, n) {
if (!d)
cout << endl;
int a, b, c, z[100], tmp;
string s[100], tmp2;
for (int i = 0; i < n; i++) {
cin >> s[i] >> a >> b >> c;
z[i] = a * 3 + c;
... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n, d = 0;
while (cin >> n, n) {
if (d)
cout << endl;
int a, b, c, z[100], tmp;
string s[100], tmp2;
for (int i = 0; i < n; i++) {
cin >> s[i] >> a >> b >> c;
z[i] = a * 3 + c;
... | [
"expression.operation.unary.logical.remove",
"control_flow.branch.if.condition.change"
] | 37,065 | 37,066 | u464972055 | cpp |
p00121 | #include <iostream>
#include <map>
#include <queue>
#include <string>
using namespace std;
#define FOR(i, k, n) for (int i = (k); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define INF 114514810
#define ELEM(array) (sizeof(array) / sizeof *(array))
#define MAX_N 100
typedef unsigned int UINT;
typedef long long ll;
... | #include <iostream>
#include <map>
#include <queue>
#include <string>
using namespace std;
#define FOR(i, k, n) for (int i = (k); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define INF 114514810
#define ELEM(array) (sizeof(array) / sizeof *(array))
#define MAX_N 100
typedef unsigned int UINT;
typedef long long ll;
... | [
"call.add"
] | 37,077 | 37,078 | u466432671 | cpp |
p00121 | #include <algorithm>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef pair<string, int> P;
map<string, int> m;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
queue<P> q;
q.push(P("0... | #include <algorithm>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef pair<string, int> P;
map<string, int> m;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
queue<P> q;
q.push(P("01... | [
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 37,081 | 37,082 | u781433064 | cpp |
p00121 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#define INF 1000000
using namespace std;
//?¢???????
// 7??°???????¢??????¨2??4????£????????????????7????£??????????????£?????????????1???7???????????°?????????????£???????????????°?????????... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#define INF 1000000
using namespace std;
//?¢???????
// 7??°???????¢??????¨2??4????£????????????????7????£??????????????£?????????????1???7???????????°?????????????£???????????????°?????????... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 37,087 | 37,088 | u694767517 | cpp |
p00121 | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, string> P;
int main() {
int d[4] = {-1, 1, -4, 1};
map<string, int> ans;
ans["01234567"] = 0;
queue<P> que;
que.push(P(0, "01234567"));
while (que.size()) {
P p = que.front();
que.pop();
int k = ans[p.second];
for (int i = 0;... | #include <bits/stdc++.h>
using namespace std;
using namespace std;
typedef pair<int, string> P;
int main() {
int d[4] = {-1, 1, -4, 4};
map<string, int> ans;
ans["01234567"] = 0;
queue<P> que;
que.push(P(0, "01234567"));
while (que.size()) {
P p = que.front();
que.pop();
int k = ans[p.second... | [
"literal.number.change"
] | 37,092 | 37,093 | u646461156 | cpp |
p00121 | #define LOCAL
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <queue>
#define SIZE 50000
using namespace std;
int map[8];
int factor[8];
int result[SIZE];
int dir[] = {-1, 1, -4, 4};
int cantor() {
int ans = 0;
for (int i = 0; i < 8; i++) {
int num = 0;
for (int j = i + 1; j < 8; j++... | //#define LOCAL
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <queue>
#define SIZE 50000
using namespace std;
int map[8];
int factor[8];
int result[SIZE];
int dir[] = {-1, 1, -4, 4};
int cantor() {
int ans = 0;
for (int i = 0; i < 8; i++) {
int num = 0;
for (int j = i + 1; j < 8; j... | [
"identifier.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 37,096 | 37,097 | u088046266 | cpp |
p00129 | // 36
#include <cmath>
#include <complex>
#include <iostream>
using namespace std;
typedef complex<double> P;
double cr(P a, P b) { return a.real() * b.imag() - a.imag() * b.real(); }
int main() {
for (int n; cin >> n, n;) {
P w[100];
double r[100];
for (int i = 0; i < n; i++) {
double x, y;
... | // 36
#include <cmath>
#include <complex>
#include <iostream>
using namespace std;
typedef complex<double> P;
double cr(P a, P b) { return a.real() * b.imag() - a.imag() * b.real(); }
int main() {
for (int n; cin >> n, n;) {
P w[100];
double r[100];
for (int i = 0; i < n; i++) {
double x, y;
... | [
"control_flow.loop.for.condition.change",
"call.remove",
"control_flow.branch.if.condition.change",
"call.arguments.add"
] | 37,206 | 37,207 | u766225878 | cpp |
p00129 | #include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int main() {
int i, j, n, m, f;
int a, b, c, d, r, x1, x2, y1, y2, mx[101], my[101], mr[101];
vector<int> tx, ty, sx, sy;
while (cin >> n) {
if (n == 0)
break;
for (i = 0; i < n; i++)
cin >> mx[i] >> my[i] >> mr[... | #include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int main() {
int i, j, n, m, f;
int a, b, c, d, r, x1, x2, y1, y2, mx[101], my[101], mr[101];
vector<int> tx, ty, sx, sy;
while (cin >> n) {
if (n == 0)
break;
for (i = 0; i < n; i++)
cin >> mx[i] >> my[i] >> mr[... | [
"assignment.change"
] | 37,208 | 37,209 | u416039078 | cpp |
p00129 | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef pair<double, P> C;
vector<C> circles;
#define FST first
#define SND second
typedef pair<P, P> S;
#define EPS (1e-5)
double dot(P a, P b) { return a.real() * b.real() + a.imag() * b.imag(); }
double cross(P a, P b) { return a.real() * b.... | #include <bits/stdc++.h>
using namespace std;
typedef complex<double> P;
typedef pair<double, P> C;
vector<C> circles;
#define FST first
#define SND second
typedef pair<P, P> S;
#define EPS (1e-5)
double dot(P a, P b) { return a.real() * b.real() + a.imag() * b.imag(); }
double cross(P a, P b) { return a.real() * b.... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 37,210 | 37,211 | u228816757 | cpp |
p00129 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> P;... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> P;... | [
"identifier.change",
"call.arguments.change"
] | 37,212 | 37,213 | u514537648 | cpp |
p00129 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> P;... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> P;... | [
"identifier.change",
"call.arguments.change"
] | 37,212 | 37,214 | u514537648 | cpp |
p00133 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
char c[8][8];
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> c[i][j];
}
}
cout << 90 << endl;
for (int i = 0; i < 8; i++) {
for (int j = 0; ... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
char c[8][8];
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> c[i][j];
}
}
cout << 90 << endl;
for (int i = 0; i < 8; i++) {
for (int j = 0; ... | [
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 37,245 | 37,246 | u033117704 | cpp |
p00133 | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define reep(i, a, b) for (int i = (a); i ... | #include <algorithm>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define reep(i, a, b) for (int i = (a); i ... | [
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 37,247 | 37,248 | u332822187 | cpp |
p00133 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ... | [
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 37,249 | 37,250 | u615353970 | cpp |
p00133 | #include <iostream>
using namespace std;
char x[10][10];
char y[10][10];
void TheRotate90() {
for (int j = 0; j < 8; j++) {
for (int k = 0; k < 8; k++) {
y[k][7 - j] = x[j][k];
}
}
}
int main() {
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> x[i][j];
}
}
for... | #include <iostream>
using namespace std;
char x[10][10];
char y[10][10];
void TheRotate90() {
for (int j = 0; j < 8; j++) {
for (int k = 0; k < 8; k++) {
y[k][7 - j] = x[j][k];
}
}
}
int main() {
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> x[i][j];
}
}
for... | [
"expression.operation.binary.remove"
] | 37,253 | 37,254 | u852311840 | cpp |
p00133 | #include <bits/stdc++.h>
using namespace std;
#define pb(n) push_back(n)
#define fi first
#define se second
#define all(r) (r).begin(), (r).end()
#define gsort(st, en) sort((st), (en), greater<int>())
#define vmax(ary) *max_element(all(ary))
#define vmin(ary) *min_element(all(ary))
#define debug(x) cout << #x << ": " ... | #include <bits/stdc++.h>
using namespace std;
#define pb(n) push_back(n)
#define fi first
#define se second
#define all(r) (r).begin(), (r).end()
#define gsort(st, en) sort((st), (en), greater<int>())
#define vmax(ary) *max_element(all(ary))
#define vmin(ary) *min_element(all(ary))
#define debug(x) cout << #x << ": " ... | [
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 37,258 | 37,259 | u073628131 | cpp |
p00133 | #include <bits/stdc++.h>
#define range(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, b) range(i, 0, b)
#define itrep(it, a) for (it = (a).begin(); it != (a).end(); it++)
#define all(a) (a).begin(), (a).end()
#define debug(x) cout << "debug " << x << endl;
#define INF (1 << 30)
using namespace std;
int main()... | #include <bits/stdc++.h>
#define range(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, b) range(i, 0, b)
#define itrep(it, a) for (it = (a).begin(); it != (a).end(); it++)
#define all(a) (a).begin(), (a).end()
#define debug(x) cout << "debug " << x << endl;
#define INF (1 << 30)
using namespace std;
int main()... | [
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 37,260 | 37,261 | u452212317 | cpp |
p00133 | #include <bits/stdc++.h>
#define r(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string s[8];
r(i, 8) cin >> s[i];
cout << 90 << endl;
r(i, 8) {
r(j, 8) cout << s[7 - i][j];
cout << endl;
}
cout << 180 << endl;
r(i, 8) {
r(j, 8) cout << s[7 - i][7 - j];
cout << endl;
... | #include <bits/stdc++.h>
#define r(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string s[8];
r(i, 8) cin >> s[i];
cout << 90 << endl;
r(i, 8) {
r(j, 8) cout << s[7 - j][i];
cout << endl;
}
cout << 180 << endl;
r(i, 8) {
r(j, 8) cout << s[7 - i][7 - j];
cout << endl;
... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 37,262 | 37,263 | u962041986 | cpp |
p00133 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include ... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include ... | [] | 37,264 | 37,265 | u907421301 | cpp |
p00133 | #include <cstring>
#include <iostream>
int main() {
char map[8][8], t_m[8][8];
for (int i = 0; i < 8; i++) {
std::cin >> map[i];
}
for (int i = 1; i < 4; i++) {
//ツ角ツ度ツ閉ェ(ツ9ツ0ツ,ツ1ツ8ツ0ツ,ツ2ツ7ツ0)ツ嘉アツ転ツつオツつスツ配ツ療アツづーツ催ャツづゥ
for (int y = 0; y < 8; y++) {
for (int x = 0; x < 8; x++) {
t_m[7 -... | #include <cstring>
#include <iostream>
int main() {
char map[8][8], t_m[8][8];
for (int i = 0; i < 8; i++) {
std::cin >> map[i];
}
for (int i = 1; i < 4; i++) {
//ツ角ツ度ツ閉ェ(ツ9ツ0ツ,ツ1ツ8ツ0ツ,ツ2ツ7ツ0)ツ嘉アツ転ツつオツつスツ配ツ療アツづーツ催ャツづゥ
for (int y = 0; y < 8; y++) {
for (int x = 0; x < 8; x++) {
t_m[x][... | [
"expression.operation.binary.remove",
"assignment.change"
] | 37,266 | 37,267 | u702258333 | cpp |
p00133 | #include <iostream>
using namespace std;
string b[8];
int main() {
for (int i = 0; i < 8; i++)
cin >> b[i];
cout << 90 << endl;
for (int i = 0; i < 8; i++) {
for (int j = 7; j >= 0; j--) {
cout << b[i][j];
}
cout << endl;
}
cout << 180 << endl;
for (int i = 7; i >= 0; i--) {
for (i... | #include <iostream>
using namespace std;
string b[8];
int main() {
for (int i = 0; i < 8; i++)
cin >> b[i];
cout << 90 << endl;
for (int i = 0; i < 8; i++) {
for (int j = 7; j >= 0; j--) {
cout << b[j][i];
}
cout << endl;
}
cout << 180 << endl;
for (int i = 7; i >= 0; i--) {
for (i... | [
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 37,268 | 37,269 | u706376958 | cpp |
p00133 | #include <iostream>
using namespace std;
int main() {
char mat[8][8];
for (int i = 0; i < 8; i++)
for (int j = 0; j < 8; j++)
cin >> mat[i][j];
cout << "90" << endl;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cout << mat[8 - i - 1][j];
}
cout << endl;
}
cout ... | #include <iostream>
using namespace std;
int main() {
char mat[8][8];
for (int i = 0; i < 8; i++)
for (int j = 0; j < 8; j++)
cin >> mat[i][j];
cout << "90" << endl;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cout << mat[8 - j - 1][i];
}
cout << endl;
}
cout ... | [
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 37,276 | 37,277 | u881100444 | cpp |
p00133 | #include <iostream>
using namespace std;
int func1(int n) { return n; }
int func2(int n) { return 7 - n; }
void output(char map[][8], int dir) {
int angle = dir * 90;
int i, j;
int *p1, *p2;
int (*f1)(int), (*f2)(int);
switch (dir) {
case 1:
f1 = &func2;
f2 = &func1;
p1 = &j;
p2 = &i;
... | #include <iostream>
using namespace std;
int func1(int n) { return n; }
int func2(int n) { return 7 - n; }
void output(char map[][8], int dir) {
int angle = dir * 90;
int i, j;
int *p1, *p2;
int (*f1)(int), (*f2)(int);
switch (dir) {
case 1:
f1 = &func2;
f2 = &func1;
p1 = &j;
p2 = &i;
... | [
"variable_access.subscript.index.change",
"io.output.change",
"call.arguments.change"
] | 37,279 | 37,280 | u653894695 | cpp |
p00133 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define mp... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define mp... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"assignment.value.change"
] | 37,281 | 37,282 | u041086527 | cpp |
p00134 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i+... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i+... | [
"variable_declaration.type.change",
"assignment.value.change",
"identifier.change"
] | 37,380 | 37,381 | u700120734 | cpp |
p00134 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i+... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i+... | [
"assignment.value.change",
"identifier.change"
] | 37,382 | 37,381 | u700120734 | cpp |
p00134 | #include <stdio.h>
int n, a;
long long s;
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++)
scanf("%d", &a), s += a;
printf("%lld\n", s / a);
return 0;
} | #include <stdio.h>
int n, a;
long long s;
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++)
scanf("%d", &a), s += a;
printf("%lld\n", s / n);
return 0;
} | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 37,393 | 37,394 | u823513038 | cpp |
p00134 | #include <bits //stdc++.h>
using namespace std;
int main() {
int n;
int ca = 0;
int b;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> b;
ca += b;
}
cout << ca / n << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n;
long long ca = 0;
long long b;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> b;
ca += b;
}
cout << ca / n << endl;
return 0;
} | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 37,411 | 37,409 | u705334572 | cpp |
p00134 | #include <stdio.h>
int main(void) {
int n;
long long unsigned val;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
int tmp;
scanf("%d", &tmp);
val += tmp;
}
val /= n;
printf("%d\n", val);
return 0;
} | #include <stdio.h>
int main(void) {
int n;
long long unsigned val = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
int tmp;
scanf("%d", &tmp);
val += tmp;
}
val /= n;
printf("%d\n", val);
return 0;
} | [
"variable_declaration.value.change"
] | 37,416 | 37,417 | u182576515 | cpp |
p00126 | #include <iostream>
using namespace std;
int main() {
int n;
int p[9][9];
char map[9][9];
int check[9];
cin >> n;
while (n) {
n--;
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
cin >> p[i][j];
map[i][j] = ' ';
}
}
for (int i = 0; i < 9; i++) {
... | #include <iostream>
using namespace std;
int main() {
int n;
int p[9][9];
char map[9][9];
int check[10];
cin >> n;
while (n) {
n--;
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
cin >> p[i][j];
map[i][j] = ' ';
}
}
for (int i = 0; i < 9; i++) {
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.branch.if.add"
] | 37,441 | 37,442 | u914140574 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.