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 |
|---|---|---|---|---|---|---|---|
p00077 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (cin >> s) {
while (s.find("@") != -1) {
int x = s.find("@");
string buf;
for (int i = 0; i < s[x + 1]; i++)
buf += s[x + 2];
s.replace(x, 3, buf);
}
cout << s << endl;
}
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (cin >> s) {
while (s.find("@") != -1) {
int x = s.find("@");
string buf;
for (int i = 0; i < s[x + 1] - '0'; i++)
buf += s[x + 2];
s.replace(x, 3, buf);
}
cout << s << endl;
}
}
| [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 29,553 | 29,554 | u114860785 | cpp |
p00077 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (cin >> s) {
while (s.find("@") != 0) {
int x = s.find("@");
string buf;
for (int i = 0; i < s[x + 1] - '0'; i++)
buf += s[x + 2];
s.replace(x, 3, buf);
}
cout << s << endl;
}
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (cin >> s) {
while (s.find("@") != -1) {
int x = s.find("@");
string y;
for (int i = 0; i < s[x + 1] - '0'; i++)
y += s[x + 2];
s.replace(x, 3, y);
}
cout << s << endl;
}
}
| [
"literal.number.change",
"control_flow.loop.condition.change",
"identifier.change",
"assignment.variable.change",
"call.arguments.change"
] | 29,558 | 29,561 | u568978611 | cpp |
p00077 | #include <stdio.h>
#include <string.h>
int main(void) {
int len;
int i, j, k;
char str[128];
while (fgets(str, 128, stdin) != NULL) {
len = strlen(str);
for (i = 0; i < len; i++) {
if (str[i] == '@') {
i++;
for (k = 0; k <= str[i] - '0'; k++) {
printf("%c", str[i + 1]);... | #include <stdio.h>
#include <string.h>
int main(void) {
int len;
int i, j, k;
char str[128];
while (fgets(str, 128, stdin) != NULL) {
len = strlen(str);
for (i = 0; i < len; i++) {
if (str[i] == '@') {
i++;
for (k = 0; k < str[i] - '0'; k++) {
printf("%c", str[i + 1]);
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 29,562 | 29,563 | u494396694 | cpp |
p00077 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
for (int j = 0; j < s[i + 1] - '0'; j++) {
cout << s[i + 2];
}
i += 2;
} else {
cout << s[i];
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
for (int j = 0; j < s[i + 1] - '0'; j++) {
cout << s[i + 2];
}
i += 2;
} else {
cout << s[i];
... | [] | 29,577 | 29,578 | u327778409 | cpp |
p00077 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
for (int j = 0; j < s[i + 1] - '0'; j++) {
cout << s[i + 2];
}
i += 2;
} else
cout << s[i];
}
}... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
for (int j = 0; j < s[i + 1] - '0'; j++) {
cout << s[i + 2];
}
i += 2;
} else
cout << s[i];
}
... | [] | 29,579 | 29,580 | u927516039 | cpp |
p00077 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define vi vector<int>
#define vvi vector<vector<int>>
#define ll long long int
#define vl vector<ll>
#define vvl vector<... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define vi vector<int>
#define vvi vector<vector<int>>
#define ll long long int
#define vl vector<ll>
#define vvl vector<... | [
"literal.number.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 29,581 | 29,582 | u287295208 | cpp |
p00077 | #include "bits/stdc++.h"
using namespace std;
string s;
int main(void) {
while (cin >> s) {
for (int i = 0; i < s.length(); ++i) {
if (s[i] == '@') {
for (int j = 0; j < s[i + 1] - '0'; ++j) {
cout << s[i + 2];
}
i = i + 2;
} else {
cout << s[i];
}
... | #include "bits/stdc++.h"
using namespace std;
string s;
int main(void) {
while (cin >> s) {
for (int i = 0; i < s.length(); ++i) {
if (s[i] == '@') {
for (int j = 0; j < s[i + 1] - '0'; ++j) {
cout << s[i + 2];
}
i = i + 2;
} else {
cout << s[i];
}
... | [] | 29,583 | 29,584 | u944777079 | cpp |
p00077 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
while (cin >> s) {
for (int i = 0; i < s.size(); ++i) {
if (s[i] == '@') {
int x = s[i + 1] - '0';
cout << string(x, s[i + 2]);
} else {
cout << s[i];
}
}
cout << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
while (cin >> s) {
for (int i = 0; i < s.size(); ++i) {
if (s[i] == '@') {
int x = s[i + 1] - '0';
cout << string(x, s[i + 2]);
i += 2;
} else {
cout << s[i];
}
}
cout << endl;
}
} | [
"assignment.add"
] | 29,585 | 29,586 | u547616245 | cpp |
p00077 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
string str;
while (cin >> str) {
for (int i = 0; i < str.size(); i++) {
if (str[i] != '@') {
cout << str[i];
continue;
}
for (int j = 0; j < str[i + 1] - '0'; j++) {
cout << str[i + 2];
}
... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
string str;
while (cin >> str) {
for (int i = 0; i < str.size(); i++) {
if (str[i] != '@') {
cout << str[i];
continue;
}
for (int j = 0; j < str[i + 1] - '0'; j++) {
cout << str[i + 2];
}
... | [] | 29,587 | 29,588 | u726778078 | cpp |
p00077 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define LOOP(i, x, n) for (int i = x; i < n; i++)
#define ALL(v) (v).begin(), (v).end()
#define PB push_back
#define MP make_pair
#define FR first
#define SC second
#define int long long
using namespace std;
const int MOD = 1000000007;
const int INF... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define LOOP(i, x, n) for (int i = x; i < n; i++)
#define ALL(v) (v).begin(), (v).end()
#define PB push_back
#define MP make_pair
#define FR first
#define SC second
#define int long long
using namespace std;
const int MOD = 1000000007;
const int INF... | [] | 29,591 | 29,592 | u280914315 | cpp |
p00077 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
int a;
cin >> s;
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
a = s[i + 1] - '0';
for (int j = 0; j < a; j++) {
cout << s[i + 2];
}
i += 2;
... |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
int a;
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
a = s[i + 1] - '0';
for (int j = 0; j < a; j++) {
cout << s[i + 2];
... | [] | 29,595 | 29,596 | u802096158 | cpp |
p00077 | #include <algorithm>
#include <cmath>
#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;
int main() {
string buffer;
while (ci... | #include <algorithm>
#include <cmath>
#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;
int main() {
string buffer;
while (ci... | [
"expression.unary.arithmetic.remove"
] | 29,597 | 29,598 | u372495136 | cpp |
p00077 | #include <iostream>
#include <string>
using namespace std;
void solve() {
string str;
while (cin >> str) {
for (int i = 0; i < str.size(); ++i) {
if (str[i] == '@') {
for (int j = 0; j < (str[i + 1] - '0'); ++j) {
cout << str[i + 2];
}
i += 2;
} else {
cou... | #include <iostream>
#include <string>
using namespace std;
void solve() {
string str;
while (cin >> str) {
for (int i = 0; i < str.size(); ++i) {
if (str[i] == '@') {
for (int j = 0; j < (str[i + 1] - '0'); ++j) {
cout << str[i + 2];
}
i += 2;
} else {
cou... | [] | 29,599 | 29,600 | u579833671 | cpp |
p00077 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
string out = "";
int n;
while (cin >> s) {
for (int i = 0; i < s.length(); i++) {
if (s[i] == '@') {
i++;
n = s[i] - '0';
i++;
for... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
string out = "";
int n;
while (cin >> s) {
out = "";
for (int i = 0; i < s.length(); i++) {
if (s[i] == '@') {
i++;
n = s[i] - '0';
i+... | [
"assignment.add"
] | 29,603 | 29,604 | u621997536 | cpp |
p00077 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (getline(cin, s), !cin.eof())
while (1) {
size_t p = s.find("@");
if (p == string::npos)
break;
s.replace(p, 3, string(int(s[p + 1] - '0'), s[p + 2]));
}
cout << s << "\n";
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (getline(cin, s), !cin.eof()) {
while (1) {
size_t p = s.find("@");
if (p == string::npos)
break;
s.replace(p, 3, string(int(s[p + 1] - '0'), s[p + 2]));
}
cout << s << "\n";
}
} | [] | 29,611 | 29,612 | u912237403 | cpp |
p00077 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (getline(cin, s), !cin.eof())
while (1) {
size_t p = s.find("@");
if (p == string::npos)
break;
s.replace(p, 3, string(int(s[p + 1] - '0'), s[p + 2]));
}
cout << s << "\n";
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while (getline(cin, s), !cin.eof()) {
while (1) {
size_t p = s.find("@");
if (p == string::npos)
break;
s.replace(p, 3, string(s[p + 1] - '0', s[p + 2]));
}
cout << s << "\n";
}
} | [
"call.remove",
"call.arguments.change"
] | 29,611 | 29,613 | u912237403 | cpp |
p00077 | //============================================================================
// Name : 0077.cpp
// Author : afterCmidday
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#... | //============================================================================
// Name : 0077.cpp
// Author : afterCmidday
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 29,614 | 29,615 | u682037079 | cpp |
p00077 | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char input[101];
while (scanf(" %s", input) != EOF) {
for (int i = 0; i < strlen(input); i++) {
if (input[i] == '@') {
for (int j = 0; j < input[i + 1] - '0'; j++) {
cout << input[i + 2] << endl;... | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char input[101];
while (scanf(" %s", input) != EOF) {
for (int i = 0; i < strlen(input); i++) {
if (input[i] == '@') {
for (int j = 0; j < input[i + 1] - '0'; j++) {
cout << input[i + 2];
... | [
"expression.operation.binary.remove"
] | 29,616 | 29,617 | u408260374 | cpp |
p00070 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, k, n) for (int i = (k); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) begin(a), end(a)
#define MS(m, v) memset(m, v, sizeof(m))
#define D10 fixed << setprecision(5)
typedef vector<int> vi;
typedef vector<string> vs;
typedef pair<int, int> P;
typ... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, k, n) for (int i = (k); i < (n); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) begin(a), end(a)
#define MS(m, v) memset(m, v, sizeof(m))
#define D10 fixed << setprecision(5)
typedef vector<int> vi;
typedef vector<string> vs;
typedef pair<int, int> P;
typ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operation.binary.change"
] | 29,726 | 29,727 | u877319405 | cpp |
p00070 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int res[10][1000];
int main() {
vector<int> v;
for (int i = 0; i < 10; i++) {
v.push_back(i);
}
sort(v.begin(), v.end());
do {
int tmp = 0;
for (int j = 0; j < 10; j++) {
tmp += v[j] * (1 + j);
res[j][tm... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int res[10][1000];
int main() {
vector<int> v;
for (int i = 0; i < 10; i++) {
v.push_back(i);
}
sort(v.begin(), v.end());
int mx = 0;
do {
int tmp = 0;
for (int j = 0; j < 10; j++) {
tmp += v[j] * (1 + j);
... | [
"variable_declaration.add",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 29,736 | 29,737 | u662697164 | cpp |
p00070 | #include <cmath>
#include <cstring>
#include <iostream>
using namespace std;
int x[10][600][1024], y[10][600], n, s;
int main() {
x[0][0][0] = 1;
for (int i = 1; i < 10; i++) {
for (int j = 0; j < 500; j++) {
for (int k = 0; k < 1024; k++) {
for (int l = 0; l < 10; l++) {
if ((k / (1 << ... | #include <cmath>
#include <cstring>
#include <iostream>
using namespace std;
int x[11][600][1024], y[11][600], n, s;
int main() {
x[0][0][0] = 1;
for (int i = 1; i <= 10; i++) {
for (int j = 0; j < 500; j++) {
for (int k = 0; k < 1024; k++) {
for (int l = 0; l < 10; l++) {
if ((k / (1 <<... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change"
] | 29,738 | 29,739 | u852311840 | cpp |
p00070 | #include <cmath>
#include <cstring>
#include <iostream>
using namespace std;
int x[10][600][1024], y[10][600], n, s;
int main() {
x[0][0][0] = 1;
for (int i = 1; i < 10; i++) {
for (int j = 0; j < 500; j++) {
for (int k = 0; k < 1024; k++) {
for (int l = 0; l < 10; l++) {
if ((k / (1 << ... | #include <cmath>
#include <cstring>
#include <iostream>
using namespace std;
int x[11][600][1024], y[11][600], n, s;
int main() {
x[0][0][0] = 1;
for (int i = 1; i <= 10; i++) {
for (int j = 0; j < 500; j++) {
for (int k = 0; k < 1024; k++) {
for (int l = 0; l < 10; l++) {
if ((k / (1 <<... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 29,740 | 29,739 | u852311840 | cpp |
p00070 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, c) ... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, c) ... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 29,783 | 29,784 | u505648358 | cpp |
p00070 | #include <iostream>
using namespace std;
int n, s;
int dp[350][1024];
int rec(int k, int sum, int u) {
int res = 0;
if (k == 0 && sum == 0)
return 1;
if (dp[sum][u] >= 0)
return dp[sum][u];
if (k == 0)
return 0;
for (int i = 0; i < 10; i++) {
if (u >> i & 1) {
if (sum - k * i >= 0)
... | #include <iostream>
using namespace std;
int n, s;
int dp[350][1024];
int rec(int k, int sum, int u) {
int res = 0;
if (k == 0 && sum == 0)
return 1;
if (dp[sum][u] >= 0)
return dp[sum][u];
if (k == 0)
return 0;
for (int i = 0; i < 10; i++) {
if (u >> i & 1) {
if (sum - k * i >= 0)
... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 29,787 | 29,788 | u914140574 | cpp |
p00070 |
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using nam... | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using name... | [
"control_flow.branch.if.condition.change"
] | 29,789 | 29,790 | u837172355 | cpp |
p00071 | #include <cstdio>
using namespace std;
char field[8][12];
void bomb(int x, int y) {
field[x][y] = '0';
for (int i = -3; i <= 3; i++) {
if (x + i >= 0 && x + i < 8 && field[x + i][y] == '1') {
bomb(x + i, y);
}
if (y + i >= 0 && y + i < 8 && field[x][y + i] == '1') {
bomb(x, y + i);
}
... | #include <cstdio>
using namespace std;
char field[8][12];
void bomb(int x, int y) {
field[x][y] = '0';
for (int i = -3; i <= 3; i++) {
if (x + i >= 0 && x + i < 8 && field[x + i][y] == '1') {
bomb(x + i, y);
}
if (y + i >= 0 && y + i < 8 && field[x][y + i] == '1') {
bomb(x, y + i);
}
... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 29,886 | 29,887 | u858885710 | cpp |
p00071 | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
typedef pair<int, int> P;
typedef queue<P> Q;
const int dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0};
int main() {
int n;
cin >> n;
int count = 0;
while (n > count) {
vector<string> v(8, "00000000");
for (a... | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
typedef pair<int, int> P;
typedef queue<P> Q;
const int dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0};
int main() {
int n;
cin >> n;
int count = 0;
while (n > count) {
vector<string> v(8, "00000000");
for (a... | [
"literal.string.change",
"io.output.change"
] | 29,896 | 29,897 | u398354652 | cpp |
p00071 | #include <cstdio>
char bom[10][10];
int dy[] = {-1, -2, -3, 0, 0, 0, 1, 2, 3, 0, 0, 0},
dx[] = {0, 0, 0, 1, 2, 3, 0, 0, 0, -1, -2, -3};
void dfs(int y, int x) {
if (y < 0 || x < 0 || y > 8 || x > 8)
return;
if (bom[y][x] == 0)
return;
if (bom[y][x] == '1') {
bom[y][x] = '0';
for (int i = 0; i ... | #include <cstdio>
char bom[10][10];
int dy[] = {-1, -2, -3, 0, 0, 0, 1, 2, 3, 0, 0, 0},
dx[] = {0, 0, 0, 1, 2, 3, 0, 0, 0, -1, -2, -3};
void dfs(int y, int x) {
if (y < 0 || x < 0 || y > 8 || x > 8)
return;
if (bom[y][x] == 0)
return;
if (bom[y][x] == '1') {
bom[y][x] = '0';
for (int i = 0; i ... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 29,898 | 29,899 | u933218756 | cpp |
p00071 | #include <bits/stdc++.h>
using namespace std;
int n, a, b, c;
char miti[10][10];
void bobm(int x, int y) {
for (int s = 1; s <= 3; s++) {
if (x + s < 9) {
if (miti[x + s][y] == '1') {
miti[x + s][y] = '0';
bobm(x + s, y);
}
}
if (y - s > 0) {
if (miti[x][y - s] == '1') {
... | #include <bits/stdc++.h>
using namespace std;
int n, a, b, c;
char miti[10][10];
void bobm(int x, int y) {
for (int s = 1; s <= 3; s++) {
if (x + s < 9) {
if (miti[x + s][y] == '1') {
miti[x + s][y] = '0';
bobm(x + s, y);
}
}
if (y - s > 0) {
if (miti[x][y - s] == '1') {
... | [
"literal.string.change",
"io.output.change"
] | 29,900 | 29,901 | u885545255 | cpp |
p00071 | #include <bits/stdc++.h>
using namespace std;
int n, a, b, c;
char miti[10][10];
void bobm(int x, int y) {
for (int s = 1; s <= 3; s++) {
if (x + s < 9) {
if (miti[x + s][y] == '1') {
miti[x + s][y] = '0';
bobm(x + s, y);
}
}
if (y - s > 0) {
if (miti[x][y - s] == '1') {
... | #include <bits/stdc++.h>
using namespace std;
int n, a, b, c;
char miti[10][10];
void bobm(int x, int y) {
for (int s = 1; s <= 3; s++) {
if (x + s < 9) {
if (miti[x + s][y] == '1') {
miti[x + s][y] = '0';
bobm(x + s, y);
}
}
if (y - s > 0) {
if (miti[x][y - s] == '1') {
... | [
"literal.string.change",
"io.output.change"
] | 29,902 | 29,901 | u885545255 | cpp |
p00071 | #include <algorithm>
#include <array>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <valarray>
#include <vector>
using namespace ... | #include <algorithm>
#include <array>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <valarray>
#include <vector>
using namespace ... | [
"expression.operation.binary.add"
] | 29,903 | 29,904 | u849555829 | cpp |
p00079 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include... | [
"expression.operation.binary.add"
] | 29,931 | 29,932 | u372495136 | cpp |
p00079 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define reps(i, f, n) for (int i = f; i < int(n); i++)
#define rep(i, n) reps(i, 0, n)
#define X real... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define reps(i, f, n) for (int i = f; i < int(n); i++)
#define rep(i, n) reps(i, 0, n)
#define X real... | [
"control_flow.loop.condition.change"
] | 29,933 | 29,934 | u488108750 | cpp |
p00079 | #include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-8;
const double INF = 1e12;
typedef complex<double> P;
namespace std {
bool operator<(const P &a, const P &b) {
return real(a) != real(b) ? real(a) < real(b) : imag(a) < imag(b);
}
} // namespace std
double cross(const P &a, const P &b) { return im... | #include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-8;
const double INF = 1e12;
typedef complex<double> P;
namespace std {
bool operator<(const P &a, const P &b) {
return real(a) != real(b) ? real(a) < real(b) : imag(a) < imag(b);
}
} // namespace std
double cross(const P &a, const P &b) { return im... | [
"call.add",
"call.arguments.change"
] | 29,935 | 29,936 | u228756885 | cpp |
p00079 | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
double goa(double xh, double yh, double xc, double yc) {
double X = xc - xh;
double Y = yc - yh;
double a;
a = sqrt((xc - xh) * (xc - xh) + (yc - yh) * (yc - yh));
return a;
}
double mense(double a, double b, double c) {
double z;... | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
double goa(double xh, double yh, double xc, double yc) {
double X = xc - xh;
double Y = yc - yh;
double a;
a = sqrt((xc - xh) * (xc - xh) + (yc - yh) * (yc - yh));
return a;
}
double mense(double a, double b, double c) {
double z;... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 29,948 | 29,949 | u745328149 | cpp |
p00079 |
#include <algorithm>
#include <cmath>
#include <complex>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define INF 1000000000007
using namespace std;
typedef ... |
#include <algorithm>
#include <cmath>
#include <complex>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define INF 1000000000007
using namespace std;
typedef ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 29,950 | 29,951 | u534550471 | cpp |
p00079 | #include <algorithm>
#include <cmath>
#include <complex>
#include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
xy_t P[110];
int main() {
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
double sum = 0.0;
for (int ... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
xy_t P[110];
int main() {
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int... | [] | 29,952 | 29,953 | u876038795 | cpp |
p00079 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
double sum = 0;
double x[21], y[21];
double hen[30];
double shen;
int count = 0;
double z;
while (scanf("%lf,%lf", &x[count], &y[count]) != EOF) {
if (count > 0) {
hen[count - 1] = sqrt(... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
double sum = 0;
double x[21], y[21];
double hen[30];
double shen;
int count = 0;
double z;
while (scanf("%lf,%lf", &x[count], &y[count]) != EOF) {
if (count > 0) {
hen[count - 1] = sqrt(... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 29,954 | 29,955 | u952951927 | cpp |
p00079 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
double sum = 0;
double x[21], y[21];
double hen[30];
double shen;
int count = 0;
double z;
while (scanf("%lf,%lf", &x[count], &y[count]) != EOF) {
if (count > 0) {
hen[count - 1] = sqrt(... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
double sum = 0;
double x[21], y[21];
double hen[30];
double shen;
int count = 0;
double z;
while (scanf("%lf,%lf", &x[count], &y[count]) != EOF) {
if (count > 0) {
hen[count - 1] = sqrt(... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 29,956 | 29,955 | u952951927 | cpp |
p00079 | #include <cmath>
#include <iostream>
using namespace std;
double Length(double x1, double y1, double x2, double y2) {
return sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
}
double Triangle_Area(double a, double b, double c) {
double z = (a + b + c) / 2.0;
return sqrt(z * (z - a) * (z - b) * (z - c));
}
int main()... | #include <cmath>
#include <iostream>
using namespace std;
double Length(double x1, double y1, double x2, double y2) {
return sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
}
double Triangle_Area(double a, double b, double c) {
double z = (a + b + c) / 2.0;
return sqrt(z * (z - a) * (z - b) * (z - c));
}
int main()... | [
"variable_declaration.add",
"control_flow.loop.condition.change"
] | 29,958 | 29,959 | u823513038 | cpp |
p00079 | #include <bits/stdc++.h>
#define rep(i, l, n) for (int i = l; i < n; i++)
#define rer(i, l, n) for (int i = l; i <= n; i++)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define pb(a) push_back(a)
#define mk(a, b) make_pair(a, b)
#define fi first
#define se second
using namespace std;
typedef long lo... | #include <bits/stdc++.h>
#define rep(i, l, n) for (int i = l; i < n; i++)
#define rer(i, l, n) for (int i = l; i <= n; i++)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define pb(a) push_back(a)
#define mk(a, b) make_pair(a, b)
#define fi first
#define se second
using namespace std;
typedef long lo... | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 29,960 | 29,961 | u188938853 | cpp |
p00079 | #include <bits/stdc++.h>
#define rep(i, l, n) for (int i = l; i < n; i++)
#define rer(i, l, n) for (int i = l; i <= n; i++)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define pb(a) push_back(a)
#define mk(a, b) make_pair(a, b)
#define fi first
#define se second
using namespace std;
typedef long lo... | #include <bits/stdc++.h>
#define rep(i, l, n) for (int i = l; i < n; i++)
#define rer(i, l, n) for (int i = l; i <= n; i++)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define pb(a) push_back(a)
#define mk(a, b) make_pair(a, b)
#define fi first
#define se second
using namespace std;
typedef long lo... | [
"variable_declaration.type.primitive.change"
] | 29,962 | 29,961 | u188938853 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).real(); }
int main() {
double x, y;
double s = 0;
vector<xy_t> vertex;
while (scanf("%lf,%lf", &x, &y) != EOF) {
vertex.p... | #include <cmath>
#include <complex>
#include <cstdio>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
double x, y;
double s = 0;
vector<xy_t> vertex;
while (scanf("%lf,%lf", &x, &y) != EOF) {
vertex.p... | [
"call.function.change",
"function.return_value.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"call.add"
] | 29,963 | 29,964 | u098622705 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).real(); }
int main() {
double x, y;
double s = 0;
vector<xy_t> vertex;
while (scanf("%lf,%lf", &x, &y) != EOF) {
vertex.p... | #include <cmath>
#include <complex>
#include <cstdio>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
double x, y;
double s = 0;
vector<xy_t> vertex;
while (scanf("%lf,%lf", &x, &y) != EOF) {
vertex.p... | [
"call.function.change",
"function.return_value.change",
"call.add",
"call.arguments.change"
] | 29,966 | 29,964 | u098622705 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).real(); }
int main() {
double x, y;
double s = 0;
vector<xy_t> vertex;
while (scanf("%lf,%lf", &x, &y) != EOF) {
vertex.p... | #include <cmath>
#include <complex>
#include <cstdio>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
double x, y;
double s = 0;
vector<xy_t> vertex;
while (scanf("%lf,%lf", &x, &y) != EOF) {
vertex.p... | [
"call.function.change",
"function.return_value.change"
] | 29,967 | 29,964 | u098622705 | cpp |
p00079 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
double v[20][2];
double x, y;
int n = 0;
while (scanf("%lf,%lf", &x, &y) != EOF) {
... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
double v[128][2];
double x, y;
int n = 0;
while (scanf("%lf,%lf", &x, &y) != EOF) {... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change"
] | 29,969 | 29,970 | u810204701 | cpp |
p00079 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
double v[32][2];
double x, y;
int n = 0;
while (scanf("%lf,%lf", &x, &y) != EOF) {
... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
double v[128][2];
double x, y;
int n = 0;
while (scanf("%lf,%lf", &x, &y) != EOF) {... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 29,971 | 29,970 | u810204701 | cpp |
p00079 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
double v[128][2];
double x, y;
int n = 0;
while (scanf("%lf,%lf", &x, &y) != EOF) {... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
double v[128][2];
double x, y;
int n = 0;
while (scanf("%lf,%lf", &x, &y) != EOF) {... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 29,972 | 29,970 | u810204701 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
typedef complex<double> xy;
xy p[20];
int n = 0;
double x, y, s;
while (~scanf("%lf, %lf", &x, &y)) {
p[n++] = xy(x, y);
}
for (int i = 1; i < n - 1; i++) {
s += (conj(p[i] - p[0]) * (p[i +... | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
typedef complex<double> xy;
xy p[20];
int n = 0;
double x, y, s;
while (~scanf("%lf, %lf", &x, &y)) {
p[n++] = xy(x, y);
}
for (int i = 1; i < n - 1; i++) {
s += (conj(p[i] - p[0]) * (p[i +... | [
"assignment.value.change",
"call.function.change",
"expression.operation.binary.change"
] | 29,975 | 29,976 | u840245750 | cpp |
p00079 |
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
char c;
double x, y;
xy_t P[20];
const int MAX = 1... |
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef complex<double> xy_t;
char c;
double x, y;
xy_t P[20];
const int MAX = 1... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 29,977 | 29,978 | u087252596 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <iostream>
#include <stdio.h>
using namespace std;
typedef complex<double> xy_t;
double dot_product(xy_t a, xy_t b) { return (conj(a) * b).real(); }
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
xy_t o, a, b;
double sum = 0, x, y;
... | #include <cmath>
#include <complex>
#include <iostream>
#include <stdio.h>
using namespace std;
typedef complex<double> xy_t;
double dot_product(xy_t a, xy_t b) { return (conj(a) * b).real(); }
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
xy_t o, a, b;
double sum = 0, x, y;
... | [
"assignment.change"
] | 29,980 | 29,981 | u152052808 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0]... | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0... | [
"expression.operation.unary.add",
"control_flow.loop.condition.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 29,982 | 29,983 | u910697883 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0]... | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0... | [
"expression.operation.unary.add",
"control_flow.loop.condition.change"
] | 29,985 | 29,983 | u910697883 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0... | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0... | [
"assignment.add"
] | 29,987 | 29,988 | u910697883 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0]... | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0... | [
"expression.operation.unary.add",
"control_flow.loop.condition.change"
] | 29,982 | 29,988 | u910697883 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0]... | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0... | [
"expression.operation.unary.add",
"control_flow.loop.condition.change"
] | 29,985 | 29,988 | u910697883 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0]... | #include <cmath>
#include <complex>
#include <cstdio>
using namespace std;
typedef complex<double> xy_t;
int main() {
xy_t P[110];
int N = 0;
double x, y;
while (~scanf("%lf,%lf", &x, &y)) {
P[N++] = xy_t(x, y);
}
double sum = 0.0;
for (int i = 0; i + 2 < N; ++i) {
xy_t a = P[0], b = P[i + 1], c =... | [
"expression.operation.unary.add",
"control_flow.loop.condition.change"
] | 29,982 | 29,989 | u910697883 | cpp |
p00079 | #include <algorithm>
#include <cctype>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int size(string x) {
string::size_type size = x.size();
return size;
}
#define fu(l, k) for (int ... | #include <algorithm>
#include <cctype>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int size(string x) {
string::size_type size = x.size();
return size;
}
#define fu(l, k) for (int ... | [
"control_flow.return.add"
] | 29,990 | 29,991 | u442849342 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <stdio.h>
using namespace std;
typedef complex<double> xy_t;
xy_t p[110];
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y) != EOF) {
p[N++] = xy_t(x, y);
}
double sum = 0... | #include <cmath>
#include <complex>
#include <stdio.h>
using namespace std;
typedef complex<double> xy_t;
xy_t p[110];
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y) != EOF) {
p[N++] = xy_t(x, y);
}
double sum = 0... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 29,994 | 29,995 | u674300731 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <stdio.h>
using namespace std;
typedef complex<double> xy_t;
xy_t p[110];
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y) != EOF) {
p[N++] = xy_t(x, y);
}
double sum = 0... | #include <cmath>
#include <complex>
#include <stdio.h>
using namespace std;
typedef complex<double> xy_t;
xy_t p[110];
double cross_product(xy_t a, xy_t b) { return (conj(a) * b).imag(); }
int main() {
int N = 0;
double x, y;
while (scanf("%lf,%lf", &x, &y) != EOF) {
p[N++] = xy_t(x, y);
}
double sum = 0... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 29,998 | 29,995 | u674300731 | cpp |
p00079 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n = 0;
double x, y;
complex<double> v[20];
while (scanf("%lf,%lf", x, y)) {
v[n] = complex<double>(x, y);
n++;
}
double s = 0.0;
for (int i = 1; (i + 1) < n; i++) {
s += abs((conj(... |
#include <cmath>
#include <complex>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n = 0;
double x, y;
complex<double> v[20];
while (scanf("%lf,%lf", &x, &y) > 0) {
v[n] = complex<double>(x, y);
n++;
}
double s = 0.0;
for (int i = 1; (i + 1) < n; i++) {
s += abs... | [
"control_flow.loop.condition.change"
] | 29,999 | 30,000 | u231716965 | cpp |
p00079 | // 32
#include <cmath>
#include <complex>
#include <cstdio>
using namespace std;
int main() {
double x, y, px, py;
scanf("%lf,%lf,%lf,%lf", &x, &y, &px, &py);
double s = 0;
complex<double> p(x, y), pp(px, py);
for (double cx, cy; scanf("%lf,%lf", &cx, &cy) != EOF;) {
complex<double> cp(cx, cy);
doub... | // 32
#include <cmath>
#include <complex>
#include <cstdio>
using namespace std;
int main() {
double x, y, px, py;
scanf("%lf,%lf%lf,%lf", &x, &y, &px, &py);
double s = 0;
complex<double> p(x, y), pp(px, py);
for (double cx, cy; scanf("%lf,%lf", &cx, &cy) != EOF;) {
complex<double> cp(cx, cy);
doubl... | [
"literal.string.change",
"call.arguments.change"
] | 30,005 | 30,004 | u766225878 | cpp |
p00079 | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
struct rec {
double x, y;
};
int main() {
int n;
struct rec dot[21] = {0};
double ans = 0, a, b, c, z;
for (int i = 0; i < 20; i++) {
if (scanf("%lf,%lf", &dot[i].x, &dot[i].y) == EOF) {
n = i;
break;
}
}
... | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
struct rec {
double x, y;
};
int main() {
int n;
struct rec dot[21] = {0};
double ans = 0, a, b, c, z;
for (int i = 0; i < 20; i++) {
if (scanf("%lf,%lf", &dot[i].x, &dot[i].y) == EOF) {
n = i;
break;
}
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 30,006 | 30,007 | u086117092 | cpp |
p00079 | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
struct rec {
double x, y;
};
int main() {
int n;
struct rec dot[21] = {0};
double ans = 0, a, b, c, z;
for (int i = 0; i < 20; i++) {
if (scanf("%lf,%lf", &dot[i].x, &dot[i].y) == EOF) {
n = i;
break;
}
}
... | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
struct rec {
double x, y;
};
int main() {
int n;
struct rec dot[21] = {0};
double ans = 0, a, b, c, z;
for (int i = 0; i < 20; i++) {
if (scanf("%lf,%lf", &dot[i].x, &dot[i].y) == EOF) {
n = i;
break;
}
}
... | [
"control_flow.loop.for.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 30,008 | 30,007 | u086117092 | cpp |
p00079 | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
struct rec {
double x, y;
};
int main() {
int n;
struct rec dot[21] = {0};
double ans = 0, a, b, c, z;
for (int i = 0; i < 20; i++) {
if (scanf("%lf,%lf", &dot[i].x, &dot[i].y) == EOF) {
n = i;
break;
}
}
... | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
struct rec {
double x, y;
};
int main() {
int n;
struct rec dot[21] = {0};
double ans = 0, a, b, c, z;
for (int i = 0; i < 20; i++) {
if (scanf("%lf,%lf", &dot[i].x, &dot[i].y) == EOF) {
n = i;
break;
}
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 30,009 | 30,007 | u086117092 | cpp |
p00079 | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
struct rec {
double x, y;
};
int main() {
int n;
struct rec dot[21] = {0};
double ans = 0, a, b, c, z;
for (int i = 0; i < 20; i++) {
if (scanf("%lf,%lf", &dot[i].x, &dot[i].y) == EOF) {
n = i;
break;
}
}
... | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
struct rec {
double x, y;
};
int main() {
int n;
struct rec dot[21] = {0};
double ans = 0, a, b, c, z;
for (int i = 0; i < 20; i++) {
if (scanf("%lf,%lf", &dot[i].x, &dot[i].y) == EOF) {
n = i;
break;
}
}
... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 30,010 | 30,007 | u086117092 | cpp |
p00079 | // start: 23:15
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef pair<int, int> xy;
double triangle(double x1, double y1, double x2, double y2, double x3,
double y3) {
// 正規化(ベクトルに変換)
// 掛け算
// 1... | // start: 23:15
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef pair<double, double> xy;
// 三角形の面積を求める
double triangle(double x1, double y1, double x2, double y2, double x3,
double y3) {
// 正規化(ベクトル... | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 30,017 | 30,018 | u336000501 | cpp |
p00079 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
using namespace std;
#define X first
#define Y second
typedef pair<double, double> Point;
double sq(int a) { return a * a; }
double gD(Point p1, Point p2) {
return sqrt(sq(p1.X - p2.X) + sq(p1.Y - p2.Y));
}
int main() {
Point p[123456];
... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
using namespace std;
#define X first
#define Y second
typedef pair<double, double> Point;
double sq(double a) { return a * a; }
double gD(Point p1, Point p2) {
return sqrt(sq(p1.X - p2.X) + sq(p1.Y - p2.Y));
}
int main() {
Point p[123456]... | [
"variable_declaration.type.primitive.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 30,021 | 30,022 | u228816757 | cpp |
p00079 | #include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
using namespace std;
#define X first
#define Y second
typedef pair<double, double> Point;
double sq(int a) { return a * a; }
double gD(Point p1, Point p2) {
return sqrt(sq(p1.X - p2.X) + sq(p1.Y - p2.Y));
}
int main() {
Point p[123456];
... | #include <cmath>
#include <cstdio>
#include <iostream>
#include <utility>
using namespace std;
#define X first
#define Y second
typedef pair<double, double> Point;
double sq(double a) { return a * a; }
double gD(Point p1, Point p2) {
return sqrt(sq(p1.X - p2.X) + sq(p1.Y - p2.Y));
}
int main() {
Point p[123456]... | [
"variable_declaration.type.primitive.change"
] | 30,023 | 30,022 | u228816757 | cpp |
p00079 | #include <cstdio>
#include <cstdlib>
#include <iostream>
int main() {
double x0, y0, x1, y1, x, y, s = 0;
char c;
std::cin >> x0 >> c >> y0;
x1 = x0;
y1 = y0;
while (std::cin >> x >> c >> y) {
s += x1 * y - y1 * x;
x1 = x;
y1 = y;
}
s += x1 * y0 - y1 * x0;
printf("%.6f\n", abs(s / 2));
} | #include <cmath>
#include <cstdio>
#include <iostream>
int main() {
double x0, y0, x1, y1, x, y, s = 0;
char c;
std::cin >> x0 >> c >> y0;
x1 = x0;
y1 = y0;
while (std::cin >> x >> c >> y) {
s += x1 * y - y1 * x;
x1 = x;
y1 = y;
}
s += x1 * y0 - y1 * x0;
printf("%.6f\n", fabs(s / 2));
} | [
"identifier.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 30,024 | 30,025 | u912237403 | cpp |
p00079 | #include <cstdlib>
#include <iostream>
int main() {
double x0, y0, x1, y1, x, y, s = 0;
char c;
std::cin >> x0 >> c >> y0;
x1 = x0;
y1 = y0;
while (std::cin >> x >> c >> y) {
s += x1 * y - y1 * x;
x1 = x;
y1 = y;
}
s += x1 * y0 - y1 * x0;
std::cout << abs(s / 2) << "\n";
} | #include <cmath>
#include <iostream>
int main() {
double x0, y0, x1, y1, x, y, s = 0;
char c;
std::cin >> x0 >> c >> y0;
x1 = x0;
y1 = y0;
while (std::cin >> x >> c >> y) {
s += x1 * y - y1 * x;
x1 = x;
y1 = y;
}
s += x1 * y0 - y1 * x0;
std::cout << fabs(s / 2) << "\n";
} | [
"identifier.change",
"call.function.change",
"expression.operation.binary.change"
] | 30,026 | 30,027 | u912237403 | cpp |
p00069 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string... | [
"control_flow.branch.if.condition.change"
] | 30,075 | 30,076 | u297043950 | cpp |
p00069 | #include <bits/stdc++.h>
using namespace std;
string amida[31];
int n, start, goal, d;
bool check() {
int c = start;
for (int i = 0; i < d; i++) {
if (c < n - 1 && amida[i][c] == '1')
c++;
else if (0 < c && amida[i][c - 1] == '1')
c--;
}
return c == goal;
}
bool is(int i, int j) {
if (... | #include <bits/stdc++.h>
using namespace std;
string amida[31];
int n, start, goal, d;
bool check() {
int c = start;
for (int i = 0; i < d; i++) {
if (c < n - 1 && amida[i][c] == '1')
c++;
else if (0 < c && amida[i][c - 1] == '1')
c--;
}
return c == goal;
}
bool is(int i, int j) {
if (... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 30,077 | 30,078 | u228756885 | cpp |
p00069 | #include <cstdio>
#include <iostream>
#include <string>
#include <utility>
using namespace std;
int main() {
while (1) {
int n, m, atari, d;
int a[10]; // amida
string s[30];
scanf(" %d", &n);
if (n == 0)
break;
for (int i = 0; i < n; ++i)
a[i] = i + 1;
scanf(" %d %d %d", &... | #include <cstdio>
#include <iostream>
#include <string>
#include <utility>
using namespace std;
int main() {
while (1) {
int n, m, atari, d;
int a[10]; // amida
string s[30];
scanf(" %d", &n);
if (n == 0)
break;
for (int i = 0; i < n; ++i)
a[i] = i + 1;
scanf(" %d %d %d", &... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove",
"variable_access.subscript.index.change"
] | 30,079 | 30,080 | u231562319 | cpp |
p00069 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int n, m, atari, d;
bool check(vector<int> line, vector<vector<int>> sideline, int col = -1,
int row = -1) {
int i, j;
if (col != -1 && row != -1)
sideline[col][row] = 1;
for (i = 0; i < d; i++) {
for (j = 0; j < n - 1... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int n, m, atari, d;
bool check(vector<int> line, vector<vector<int>> sideline, int col = -1,
int row = -1) {
int i, j;
if (col != -1 && row != -1)
sideline[col][row] = 1;
for (i = 0; i < d; i++) {
for (j = 0; j < n - 1... | [
"literal.string.change",
"io.output.change"
] | 30,085 | 30,086 | u660367323 | cpp |
p00069 | // Drawing Lots ?
#include <bits/stdc++.h>
using namespace std;
vector<int> mv(string s) {
vector<int> tmp;
for (int i = 0; i < s.length(); i++)
tmp.push_back(s[i]);
return tmp;
}
int main() {
int n, m, g, d;
vector<vector<int>> input;
while (cin >> n) {
if (n == 0)
break;
cin >> m >> g ... | // Drawing Lots ?
#include <bits/stdc++.h>
using namespace std;
vector<int> mv(string s) {
vector<int> tmp;
for (int i = 0; i < s.length(); i++)
tmp.push_back(s[i]);
return tmp;
}
int main() {
int n, m, g, d;
vector<vector<int>> input;
while (cin >> n) {
if (n == 0)
break;
cin >> m >> g ... | [
"control_flow.branch.if.condition.change"
] | 30,087 | 30,088 | u515601943 | cpp |
p00069 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
#define REP(i, n) for (ll i = 0; i < n; ++i)
#define REPR(i, n) for (ll i = 1; i < n; ++i)
#define FOR(i, a, b) for (ll i = a; i < b; ++i)
#define DEBUG(x) cout << #x << ": "... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
#define REP(i, n) for (ll i = 0; i < n; ++i)
#define REPR(i, n) for (ll i = 1; i < n; ++i)
#define FOR(i, a, b) for (ll i = a; i < b; ++i)
#define DEBUG(x) cout << #x << ": "... | [
"expression.operation.unary.arithmetic.remove"
] | 30,092 | 30,093 | u289594538 | cpp |
p00069 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#def... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#def... | [
"control_flow.break.add"
] | 30,094 | 30,095 | u700120734 | cpp |
p00069 | #include <bits/stdc++.h>
#define FOR(v, a, b) for (int v = (a); v < (b); ++v)
#define FORE(v, a, b) for (int v = (a); v <= (b); ++v)
#define REP(v, n) FOR(v, 0, n)
#define UNWORDS(vec, str) \
for (int i = 0; i < (vec).size(); ++i) ... | #include <bits/stdc++.h>
#define FOR(v, a, b) for (int v = (a); v < (b); ++v)
#define FORE(v, a, b) for (int v = (a); v <= (b); ++v)
#define REP(v, n) FOR(v, 0, n)
#define UNWORDS(vec, str) \
for (int i = 0; i < (vec).size(); ++i) ... | [
"control_flow.branch.if.add"
] | 30,101 | 30,102 | u301021544 | cpp |
p00069 | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repb(i, a, b) for (int i = a; i >= b; i--)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define pb(a) push_back(a)
#define int long long
#define fi first
#define se second
using namespace std;
typedef vector<int> vi;
t... | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repb(i, a, b) for (int i = a; i >= b; i--)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define pb(a) push_back(a)
#define int long long
#define fi first
#define se second
using namespace std;
typedef vector<int> vi;
t... | [
"assignment.add"
] | 30,103 | 30,104 | u188938853 | cpp |
p00069 | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <ss... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <ss... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 30,105 | 30,106 | u160041984 | cpp |
p00069 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
int k[10];
string s[30];
signed main() {
int a;
while (cin >> a, a) {
for (int i = 0; i < a; i++)
k[i] = i;
int b, c, d;
cin >> b >> c >> d... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
int k[10];
string s[30];
signed main() {
int a;
while (cin >> a, a) {
for (int i = 0; i < a; i++)
k[i] = i;
int b, c, d;
cin >> b >> c >> d... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 30,107 | 30,108 | u584110575 | cpp |
p00069 | #include <algorithm>
#include <cmath>
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int n, m, g, d;
char b;
END:
while (cin >> n >> m >> g >> d, n) {
int hl[d][n - 1], rtr[d + 1], tr[d];
m--, g--;
rtr[d] = g;
rep(i, d) rep(j, n - 1) cin >> b, h... | #include <algorithm>
#include <cmath>
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int n, m, g, d;
char b;
END:
while (cin >> n >> m >> g >> d, n) {
int hl[d][n - 1], rtr[d + 1], tr[d];
m--, g--;
rtr[d] = g;
rep(i, d) rep(j, n - 1) cin >> b, h... | [
"literal.number.change",
"io.output.change"
] | 30,109 | 30,110 | u530523861 | cpp |
p00069 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#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 <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include ... | [
"control_flow.branch.if.condition.change"
] | 30,111 | 30,112 | u535943957 | cpp |
p00069 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
while (true) {
int N;
cin >> N;
if (!N)
break;
int M, G, D;
cin >> M >> G >> D;
vector<string> lots(D);
for (int i = 0; i < D; ++i) {
cin >> lots[i];
lots[i] =... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
while (true) {
int N;
cin >> N;
if (!N)
break;
int M, G, D;
cin >> M >> G >> D;
vector<string> lots(D);
for (int i = 0; i < D; ++i) {
cin >> lots[i];
lots[i] =... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 30,113 | 30,114 | u525048109 | cpp |
p00069 | #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;
bool solve(v... | #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;
bool solve(v... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 30,115 | 30,116 | u270308012 | cpp |
p00069 | #include <iostream>
#include <vector>
using namespace std;
int n, m, goal, d;
bool check(vector<int> line, vector<string> path) {
int i, j;
for (i = 0; i < d; i++)
for (j = 0; j < n - 1; j++)
if (path[i][j] == '1')
swap(line[j], line[j + 1]);
return line[goal - 1] == m;
}
int main() {
int i... | #include <iostream>
#include <vector>
using namespace std;
int n, m, goal, d;
int check(vector<int> line, vector<string> path) {
int i, j;
for (i = 0; i < d; i++)
for (j = 0; j < n - 1; j++)
if (path[i][j] == '1')
swap(line[j], line[j + 1]);
return line[goal - 1] == m;
}
int main() {
int f,... | [
"function.return_type.change",
"variable_declaration.add",
"variable_declaration.remove"
] | 30,119 | 30,120 | u392015442 | cpp |
p00069 | #include <cstring>
#include <iostream>
using namespace std;
const int MAX = 12;
bool cross[MAX][MAX];
int n, start, goal, d;
void init() { memset(cross, false, sizeof(cross)); }
bool move() {
int pos = start;
for (int i = 0; i < d; i++) {
if (cross[i][pos])
pos++;
else if (cross[i][pos - 1])
... | #include <cstring>
#include <iostream>
using namespace std;
const int MAX = 12;
bool cross[MAX][MAX];
int n, start, goal, d;
void init() { memset(cross, false, sizeof(cross)); }
bool move() {
int pos = start;
for (int i = 1; i <= d; i++) {
if (cross[i][pos])
pos++;
else if (cross[i][pos - 1])
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 30,121 | 30,122 | u303602145 | cpp |
p00069 | #include <algorithm>
#include <iostream>
using namespace std;
int d, a[31][12];
bool ok(int s, int g) {
for (int i = 0; i < d; i++) {
if (a[i][s - 1] == 1)
s--;
else if (a[i][s] == 1)
s++;
}
if (s == g)
return true;
return false;
}
int main(void) {
int n, m, g;
char in;
while... | #include <algorithm>
#include <iostream>
using namespace std;
int d, a[31][12];
bool ok(int s, int g) {
for (int i = 0; i < d; i++) {
if (a[i][s - 1] == 1)
s--;
else if (a[i][s] == 1)
s++;
}
if (s == g)
return true;
return false;
}
int main(void) {
int n, m, g;
char in;
while... | [
"control_flow.break.add"
] | 30,127 | 30,128 | u047988051 | cpp |
p00069 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <ctype.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#includ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <ctype.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#includ... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 30,131 | 30,132 | u041086527 | cpp |
p00069 | #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;... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change",
"misc.off_by_one"
] | 30,133 | 30,134 | u514537648 | cpp |
p00081 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 30,204 | 30,205 | u297043950 | cpp |
p00081 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <vector>
using namespace std;
#define EPS (1e-10)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator-(Point p) { return Point(x - p.x... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <vector>
using namespace std;
#define EPS (1e-20)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator-(Point p) { return Point(x - p.x... | [
"preprocessor.define.value.change",
"literal.float.change",
"identifier.change",
"call.function.change"
] | 30,210 | 30,211 | u296395710 | cpp |
p00081 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <vector>
using namespace std;
#define EPS (1e-20)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator-(Point p) { return Point(x - p.x... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <vector>
using namespace std;
#define EPS (1e-20)
class Point {
public:
double x, y;
Point(double x = 0, double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y); }
Point operator-(Point p) { return Point(x - p.x... | [
"identifier.change",
"call.function.change"
] | 30,212 | 30,211 | u296395710 | cpp |
p00081 | #include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;
#define EPS 1e-10
#define equals(a, b) (fabs((a) - (b)) < EPS)
class Point {
public:
long double x, y;
Point(long double x = 0, long double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y... | #include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;
#define EPS 1e-10
#define equals(a, b) (fabs((a) - (b)) < EPS)
class Point {
public:
long double x, y;
Point(long double x = 0, long double y = 0) : x(x), y(y) {}
Point operator+(Point p) { return Point(x + p.x, y + p.y... | [
"control_flow.loop.condition.change"
] | 30,215 | 30,216 | u852311840 | cpp |
p00081 | #include <cmath>
#include <complex>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
float x1, y1, x2, y2, xp, yp;
double x0, y0, x, y, _x, _y, a, b;
while (scanf("%f,%f,%f,%f,%f,%f", &x1, &y1, &x2, &y2, &xp, &yp) != EOF) {
double angle = atan2(y2 - y1, x2 - x1);
... | #include <cmath>
#include <complex>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
float x1, y1, x2, y2, xp, yp;
double x0, y0, x, y, _x, _y, a, b;
while (scanf("%f,%f,%f,%f,%f,%f", &x1, &y1, &x2, &y2, &xp, &yp) != EOF) {
double angle = atan2(y2 - y1, x2 - x1);
... | [
"control_flow.loop.condition.change",
"assignment.change"
] | 30,217 | 30,218 | u301021544 | cpp |
p00081 | #include <cmath>
#include <complex>
#include <cstdio>
using namespace std;
typedef complex<double> xy_t;
double dot_product(xy_t a, xy_t b) { return (conj(a) * b).real(); }
int main() {
double x[3], y[3];
xy_t p[3], a, b, c, d;
while (~scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x[0], &y[0], &x[1], &y[1], &x[2],
... | #include <cmath>
#include <complex>
#include <cstdio>
using namespace std;
typedef complex<double> xy_t;
double dot_product(xy_t a, xy_t b) { return (conj(a) * b).real(); }
int main() {
double x[3], y[3];
xy_t p[3], a, b, c, d;
while (~scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x[0], &y[0], &x[1], &y[1], &x[2],
... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 30,219 | 30,220 | u910697883 | cpp |
p00081 | #include <bits/stdc++.h>
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
using namespace std;
static const int COUNTER_CLOCKWISE = 1;
static const int CLOCKWISE = -1;
static const int ONLINE_BACK = 2;
static const int ONLINE_FRONT = -2;
static const int ON_SEGMENT = 0;
struct Point {
double x, y;
... | #include <bits/stdc++.h>
#define EPS (1e-10)
#define equals(a, b) (fabs((a) - (b)) < EPS)
using namespace std;
static const int COUNTER_CLOCKWISE = 1;
static const int CLOCKWISE = -1;
static const int ONLINE_BACK = 2;
static const int ONLINE_FRONT = -2;
static const int ON_SEGMENT = 0;
struct Point {
double x, y;
... | [
"literal.string.change",
"control_flow.loop.condition.change"
] | 30,222 | 30,223 | u924665348 | cpp |
p00081 | #include <stdio.h>
#include <string.h>
int main() {
double x1, y1, x2, y2, xq, yq, x, y;
while (0 <= scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq)) {
x = ((x2 - x1) * (x2 - x1) * xq + (x2 - x1) * (y2 - y1) * (yq - y1) +
(y2 - y1) * (y2 - y1) * x1) /
((y2 - y1) * (y2 - y1) + (x... | #include <stdio.h>
#include <string.h>
int main() {
double x1, y1, x2, y2, xq, yq, x, y;
while (0 <= scanf("%lf,%lf,%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2, &xq, &yq)) {
x = ((x2 - x1) * (x2 - x1) * xq + (x2 - x1) * (y2 - y1) * (yq - y1) +
(y2 - y1) * (y2 - y1) * x1) /
((y2 - y1) * (y2 - y1) + (x... | [
"assignment.value.change",
"expression.operation.binary.change"
] | 30,224 | 30,225 | u907421301 | cpp |
p00081 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
#define EPS 1e-6
int main(void) {
double x1, y1, x2, y2, xq, yq;
double a, b, c, d;
double X, Y;
double retx, rety;
while (cin >> x1) {
cin.ignore();
cin >> y1;
cin.ignore();
cin >> x2;
cin.ignore();
cin >> ... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
#define EPS 1e-6
int main(void) {
double x1, y1, x2, y2, xq, yq;
double a, b, c, d;
double X, Y;
double retx, rety;
while (cin >> x1) {
cin.ignore();
cin >> y1;
cin.ignore();
cin >> x2;
cin.ignore();
cin >> ... | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 30,226 | 30,227 | u378761086 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.