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 |
|---|---|---|---|---|---|---|---|
p00064 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string.h>
using namespace std;
int main() {
string in;
int num = 0;
while (cin >> in) {
bool flag = false;
int temp = 0;
for (int i = 0; i < in.length(); i++) {
if ('0' <= in[i] && in[i] <= '9'... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string.h>
using namespace std;
int main() {
string in;
int num = 0;
while (cin >> in) {
bool flag = false;
int temp = 0;
for (int i = 0; i <= in.length(); i++) {
if ('0' <= in[i] && in[i] <= '9... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 28,571 | 28,572 | u471115210 | cpp |
p00064 | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int len;
char num[6] = {'\0'};
int total = 0;
char s[86];
while (cin >> s) {
for (int i = 0; i < strlen(s) - 1; i++) {
len = 0;
if (s[i] >= '0' && s[i] <= '9') {
for (int j = ... | #include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int len;
char num[6] = {'\0'};
int total = 0;
char s[86];
while (cin >> s) {
for (int i = 0; i <= strlen(s) - 1; i++) {
len = 0;
if (s[i] >= '0' && s[i] <= '9') {
for (int j = i; j < i + 5; j++... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 28,573 | 28,574 | u284889485 | cpp |
p00065 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
int a[3][1010];
while (getline(cin, s), s != "") {
int c, d;
stringstream ss(s);
ss >> c >> d;
a[0][c]++;
}
while (getline(cin, s), s != "") {
int c, d;
stringstream ss(s);
ss >> c >> d;
a[1][c]++;
}
... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
int a[3][1010];
while (getline(cin, s), s != "") {
int c, d;
stringstream ss(s);
ss >> c >> d;
a[0][c]++;
}
while (getline(cin, s), s != "") {
int c, d;
stringstream ss(s);
ss >> c >> d;
a[1][c]++;
}
... | [
"io.output.change"
] | 28,622 | 28,623 | u473115569 | cpp |
p00065 | #include <iostream>
#include <string>
using namespace std;
string S;
int x[100000][2];
int c = 0;
int main() {
while (getline(cin, S)) {
if (S.size() == 0) {
c++;
}
string T[2];
int ok = 0;
for (int i = 0; i < S.size(); i++) {
if (S[i] == ',') {
ok++;
} else {
T[o... | #include <iostream>
#include <string>
using namespace std;
string S;
int x[100000][2];
int c = 0;
int main() {
while (getline(cin, S)) {
if (S.size() == 0) {
c++;
continue;
}
string T[2];
int ok = 0;
for (int i = 0; i < S.size(); i++) {
if (S[i] == ',') {
ok++;
} el... | [] | 28,630 | 28,631 | u852311840 | cpp |
p00065 | #include <cstdlib>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
string in;
map<int, int> c, d;
map<int, int>::iterator p;
//¡ÌÇÝÝ
while (getline(cin, in)) {
if (in.size() == 1)
break;
int n = atoi(in.c_str());
p = c.find(n);
if (c.end... | #include <cstdlib>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
string in;
map<int, int> c, d;
map<int, int>::iterator p;
//¡ÌÇÝÝ
while (getline(cin, in)) {
if (in.size() == 0)
break;
int n = atoi(in.c_str());
p = c.find(n);
if (c.end... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 28,638 | 28,639 | u907421301 | cpp |
p00065 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using nam... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using nam... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 28,640 | 28,641 | u823048060 | cpp |
p00065 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> P;
in... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> P;
in... | [
"control_flow.branch.if.condition.change",
"control_flow.branch.if.add"
] | 28,642 | 28,643 | u274875240 | cpp |
p00066 | #include <iostream>
using namespace std;
string s;
main() {
while (cin >> s) {
int f = 0;
for (int i = 0; i < 3; i++) {
if (s[i * 3] != 's' && s[i * 3] == s[i * 3 + 1] &&
s[i * 3] == s[i * 3 + 2]) {
f = 1;
cout << s[i * 3] << endl;
}
}
for (int i = 0; i < 3; i++) ... | #include <iostream>
using namespace std;
string s;
main() {
while (cin >> s) {
int f = 0;
for (int i = 0; i < 3; i++) {
if (s[i * 3] != 's' && s[i * 3] == s[i * 3 + 1] &&
s[i * 3] == s[i * 3 + 2]) {
f = 1;
cout << s[i * 3] << endl;
}
}
for (int i = 0; i < 3; i++) ... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 28,709 | 28,710 | u868447400 | cpp |
p00066 | #include <iostream>
using namespace std;
string s;
main() {
while (cin >> s) {
int f = 0;
for (int i = 0; i < 3; i++) {
if (s[i * 3] != 's' && s[i * 3] == s[i * 3 + 1] &&
s[i * 3] == s[i * 3 + 2]) {
f = 1;
cout << s[i * 3] << endl;
}
}
for (int i = 0; i < 3; i++) ... | #include <iostream>
using namespace std;
string s;
main() {
while (cin >> s) {
int f = 0;
for (int i = 0; i < 3; i++) {
if (s[i * 3] != 's' && s[i * 3] == s[i * 3 + 1] &&
s[i * 3] == s[i * 3 + 2]) {
f = 1;
cout << s[i * 3] << endl;
}
}
for (int i = 0; i < 3; i++) ... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 28,711 | 28,710 | u868447400 | cpp |
p00066 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
while (cin >> s) {
string ox = "ox";
string res = "d";
for (int i = 0; i < 2; ++i) {
bool ok = false;
if (s[0] == ox[i] && s[0] == s[1] && s[1] == s[2])
ok = true;
if (s[0] == o... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
while (cin >> s) {
string ox = "ox";
string res = "d";
for (int i = 0; i < 2; ++i) {
bool ok = false;
if (s[0] == ox[i] && s[0] == s[1] && s[1] == s[2])
ok = true;
if (s[3] == o... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 28,716 | 28,717 | u703196441 | cpp |
p00066 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for (int i = s; i < (int)n; i++)
#define per(i, n) for (int i = n; i >= 0; i--)
#define ROF(i, s, n) for (int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(), (a).end()
#defin... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for (int i = s; i < (int)n; i++)
#define per(i, n) for (int i = n; i >= 0; i--)
#define ROF(i, s, n) for (int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(), (a).end()
#defin... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 28,718 | 28,719 | u145643522 | cpp |
p00066 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for (int i = s; i < (int)n; i++)
#define per(i, n) for (int i = n; i >= 0; i--)
#define ROF(i, s, n) for (int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(), (a).end()
#defin... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for (int i = s; i < (int)n; i++)
#define per(i, n) for (int i = n; i >= 0; i--)
#define ROF(i, s, n) for (int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(), (a).end()
#defin... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 28,720 | 28,719 | u145643522 | cpp |
p00066 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int stoi(string x) {
stringstream ss;
ss << x;
int tmp;
ss >> tmp;
retur... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int stoi(string x) {
stringstream ss;
ss << x;
int tmp;
ss >> tmp;
retur... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 28,724 | 28,725 | u746860079 | cpp |
p00066 | #include <bits/stdc++.h>
#define SIZE 300005
#define MOD 1000000007LL
#define INF 1 << 30
#define LLINF 1LL << 60
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, a, b) for (int i = a; i <= b; i++)
#define DOWN(i, b, a) for (int i = b; i >= a; i--)
#define SET(a, c) memset(a, c, sizeof a)
#define FORALL(i, ... | #include <bits/stdc++.h>
#define SIZE 300005
#define MOD 1000000007LL
#define INF 1 << 30
#define LLINF 1LL << 60
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, a, b) for (int i = a; i <= b; i++)
#define DOWN(i, b, a) for (int i = b; i >= a; i--)
#define SET(a, c) memset(a, c, sizeof a)
#define FORALL(i, ... | [
"expression.operation.binary.remove"
] | 28,730 | 28,731 | u316203371 | cpp |
p00066 | #include <bits/stdc++.h>
using namespace std;
int main() {
int dat[3][3];
char in;
int sum;
while (cin >> in) {
if (in == 'o')
dat[0][0] = 1;
else if (in == 'x')
dat[0][0] = -1;
else
dat[0][0] = 0;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
i... | #include <bits/stdc++.h>
using namespace std;
int main() {
int dat[3][3];
char in;
int sum;
while (cin >> in) {
if (in == 'o')
dat[0][0] = 1;
else if (in == 'x')
dat[0][0] = -1;
else
dat[0][0] = 0;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
i... | [
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 28,735 | 28,736 | u874419660 | cpp |
p00066 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; ++i)
#define REPR(i, n) for (... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; ++i)
#define REPR(i, n) for (... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"io.output.change"
] | 28,743 | 28,744 | u507234977 | cpp |
p00066 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
bool win(char *t, char c) {
for (int y = 0; y < 3; ++y) {
bo... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
bool win(char *t, char c) {
for (int y = 0; y < 3; ++y) {
bo... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 28,752 | 28,753 | u660774699 | cpp |
p00066 | #include <iostream>
int main() {
char c[9];
while (std::cin >> c) {
if (std::cin.eof())
break;
bool f = true;
for (int i = 0; i < 3; i++) {
if (c[i * 3] == c[i * 3 + 1] && c[i * 3] == c[i * 3 + 2]) {
if (c[i * 3] != 's') {
std::cout << c[i * 3] << std::endl;
f = ... | #include <iostream>
int main() {
char c[9];
while (std::cin >> c) {
if (std::cin.eof())
break;
bool f = true;
for (int i = 0; i < 3; i++) {
if (c[i * 3] == c[i * 3 + 1] && c[i * 3] == c[i * 3 + 2]) {
if (c[i * 3] != 's') {
std::cout << c[i * 3] << std::endl;
f = ... | [
"control_flow.break.remove",
"control_flow.continue.add",
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 28,754 | 28,755 | u702258333 | cpp |
p00066 | #include <iostream>
#include <string>
int main() {
using namespace std;
string str;
bool judge = false;
int x = 0;
while (cin >> str) {
for (;; x++) {
if (x == 4) {
for (int i = 1; i <= 4; i++) {
if (str[(x + i)] == str[x] && str[(x - i)] == str[x] &&
str[x] != 's') ... | #include <iostream>
#include <string>
int main() {
using namespace std;
string str;
bool judge = false;
int x = 0;
while (cin >> str) {
for (;; x++) {
if (x == 4) {
for (int i = 1; i <= 4; i++) {
if (str[(x + i)] == str[x] && str[(x - i)] == str[x] &&
str[x] != 's') ... | [
"assignment.add"
] | 28,757 | 28,758 | u108432367 | cpp |
p00066 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
char data[9];
int jadge = 0; // 0Èçø«ª¯//PÈço//2Èçx
while (cin >> data) {
jadge = 0;
for (int i = 0, j = 0; i < 3; i++, j += 2) { //¡ÉÀÔÆ«
if (data[0 + j] == 'o' && data[1 + j] == 'o' && data[2 + j] == 'o')
... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
char data[12];
int jadge = 0; // 0Èçø«ª¯//PÈço//2Èçx
while (cin >> data) {
jadge = 0;
for (int i = 0, j = 0; i < 3; i++, j += 3) { //¡ÉÀÔÆ«
if (data[0 + j] == 'o' && data[1 + j] == 'o' && data[2 + j] == 'o')
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.value.change"
] | 28,762 | 28,760 | u125634664 | cpp |
p00071 | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
char sute[1];
char m[8][8];
int w[12][2] = {{-3, 0}, {-2, 0}, {-1, 0}, {3, 0}, {2, 0}, {1, 0},
{0, -3}, {0, -2}, {0, -1}, {0, 1}, {0, 2}, {0, 3}};
void bomb(int i, int j) {
int ni, nj;
for (int k = 0; k < 12; ++k) {
m[i][j] = '0... | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
char sute[1];
char m[8][8];
int w[12][2] = {{-3, 0}, {-2, 0}, {-1, 0}, {3, 0}, {2, 0}, {1, 0},
{0, -3}, {0, -2}, {0, -1}, {0, 1}, {0, 2}, {0, 3}};
void bomb(int i, int j) {
int ni, nj;
for (int k = 0; k < 12; ++k) {
m[i][j] = '0... | [] | 28,769 | 28,770 | u140201022 | cpp |
p00071 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
#def... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
#def... | [
"io.output.change"
] | 28,771 | 28,772 | u467070262 | cpp |
p00071 | #include <bits/stdc++.h>
#define r(i, n) for (int i = 0; i < n; i++)
using namespace std;
int dx[] = {1, 2, 3, -1, -2, -3, 0, 0, 0, 0, 0, 0};
int dy[] = {0, 0, 0, 0, 0, 0, 1, 2, 3, -1, -2, -3};
int main() {
int n;
cin >> n;
r(pp, n) {
string s[8];
r(i, 8) cin >> s[i];
int x1, y1;
cin >> x1 >> y1;
... | #include <bits/stdc++.h>
#define r(i, n) for (int i = 0; i < n; i++)
using namespace std;
int dx[] = {1, 2, 3, -1, -2, -3, 0, 0, 0, 0, 0, 0};
int dy[] = {0, 0, 0, 0, 0, 0, 1, 2, 3, -1, -2, -3};
int main() {
int n;
cin >> n;
r(pp, n) {
string s[8];
r(i, 8) cin >> s[i];
int x1, y1;
cin >> x1 >> y1;
... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 28,775 | 28,776 | u962041986 | cpp |
p00071 | #include <bits/stdc++.h>
#define rep(i, j, k) for (int i = (int)j; i < (int)k; i++)
#define itrep(x) for (auto it = (x).begin(); it != (x).end(); it++)
#define Sort(x) sort((x).begin(), (x).end())
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#define vi vector<int>
#define INF (int)1e9
#defin... | #include <bits/stdc++.h>
#define rep(i, j, k) for (int i = (int)j; i < (int)k; i++)
#define itrep(x) for (auto it = (x).begin(); it != (x).end(); it++)
#define Sort(x) sort((x).begin(), (x).end())
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#define vi vector<int>
#define INF (int)1e9
#defin... | [
"literal.string.change",
"io.output.change"
] | 28,777 | 28,778 | u346403603 | cpp |
p00071 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int n, t[8][8];
string str;
int ch(int y, int x) {
if (0 <= y && y <= 7 && 0 <= x && x <= 7)
return t[y][x];
return 0;
}
void bomb(int y, int x) {
t[y][x] = 0;
for (int i = 0; i <= 3; i++) ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int n, t[8][8];
string str;
int ch(int y, int x) {
if (0 <= y && y <= 7 && 0 <= x && x <= 7)
return t[y][x];
return 0;
}
void bomb(int y, int x) {
t[y][x] = 0;
for (int i = 0; i <= 3; i++) ... | [
"expression.operation.binary.add"
] | 28,779 | 28,780 | u606460153 | cpp |
p00071 | #include <bits/stdc++.h>
using namespace std;
int main() {
int times;
cin >> times;
for (int i = 0; i < times; ++i) {
cout << endl;
int place[8][8];
bitset<8> bomb;
for (int j = 0; j < 8; ++j) {
cin >> bomb;
for (int k = 0; k < 8; ++k) {
place[j][k] = bomb[7 - k];
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int times;
cin >> times;
for (int i = 0; i < times; ++i) {
// cout<<endl;
int place[8][8];
bitset<8> bomb;
for (int j = 0; j < 8; ++j) {
cin >> bomb;
for (int k = 0; k < 8; ++k) {
place[j][k] = bomb[7 - k];
}
... | [] | 28,781 | 28,782 | u721764417 | cpp |
p00071 | #include <iostream>
#include <string>
#define COLS 8
#define ROWS 8
using namespace std;
void ExplodeBomb(int map[][COLS + 6], int x, int y) {
int dij[] = {1, 2, 3, -1, -2, -3};
if (map[y + 3][x + 3] == 0)
return;
map[y + 3][x + 3] = 0;
for (int i = 0; i < sizeof(dij) / sizeof(*dij); i++) {
Explode... | #include <iostream>
#include <string>
#define COLS 8
#define ROWS 8
using namespace std;
void ExplodeBomb(int map[][COLS + 6], int x, int y) {
int dij[] = {1, 2, 3, -1, -2, -3};
if (map[y + 3][x + 3] == 0)
return;
map[y + 3][x + 3] = 0;
for (int i = 0; i < sizeof(dij) / sizeof(*dij); i++) {
Explode... | [
"expression.operation.binary.add"
] | 28,783 | 28,784 | u280402997 | cpp |
p00071 | #include <stdio.h>
int ma[8][8];
int main() {
int n, data = 0, i, j, x, y, a, b;
scanf("%d", &n);
for (; n > 0; --n) {
++data;
for (i = 0; i < 8; ++i) {
for (j = 0; j < 8; j++) {
scanf("%1d", &ma[i][j]);
}
}
scanf("%d%d", &x, &y);
--x;
--y;
ma[y][x] = 0;
for... | #include <stdio.h>
int ma[8][8];
int main() {
int n, data = 0, i, j, x, y, a, b;
scanf("%d", &n);
for (; n > 0; --n) {
++data;
for (i = 0; i < 8; ++i) {
for (j = 0; j < 8; j++) {
scanf("%1d", &ma[i][j]);
}
}
scanf("%d%d", &x, &y);
--x;
--y;
ma[y][x] = 0;
for... | [
"control_flow.loop.for.condition.change"
] | 28,785 | 28,786 | u907421301 | cpp |
p00071 | #include <iostream>
#include <string>
using namespace std;
void bomb(string s[], int a, int b) {
s[a][b] = '0';
for (int i = 1; i <= 3; i++) {
if (b + i < 8 && s[a][b + i] == '1')
bomb(s, a, b + i);
if (b - i >= 0 && s[a][b - i] == '1')
bomb(s, a, b - i);
if (a + i < 8 && s[a + i][b] == '1'... | #include <iostream>
#include <string>
using namespace std;
void bomb(string s[], int a, int b) {
s[a][b] = '0';
for (int i = 1; i <= 3; i++) {
if (b + i < 8 && s[a][b + i] == '1')
bomb(s, a, b + i);
if (b - i >= 0 && s[a][b - i] == '1')
bomb(s, a, b - i);
if (a + i < 8 && s[a + i][b] == '1'... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 28,787 | 28,788 | u551847319 | cpp |
p00071 | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
using namespace std;
int N, sx, sy, field[8][9], dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
char c;
void bomb(int x, int y) {
field[y][x] = 0;
for ... | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
using namespace std;
int N, sx, sy, field[8][9], dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
char c;
void bomb(int x, int y) {
field[y][x] = 0;
for ... | [
"expression.operation.binary.remove"
] | 28,789 | 28,790 | u603085888 | cpp |
p00071 | #include <cstring>
#include <iostream>
using namespace std;
void bomb(int map[14][14], int x, int y) {
map[x][y] = 0;
for (int i = -3; i <= 3; i++) {
if (map[x + i][y]) {
bomb(map, x + i, y);
}
if (map[x][y + i]) {
bomb(map, x, y + i);
}
}
}
int main() {
int n;
cin >> n;
for (i... | #include <cstring>
#include <iostream>
using namespace std;
void bomb(int map[14][14], int x, int y) {
map[x][y] = 0;
for (int i = -3; i <= 3; i++) {
if (map[x + i][y]) {
bomb(map, x + i, y);
}
if (map[x][y + i]) {
bomb(map, x, y + i);
}
}
}
int main() {
int n;
cin >> n;
for (i... | [
"io.output.change"
] | 28,791 | 28,792 | u158037864 | cpp |
p00071 | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
string s[8];
void bomb(int x, int y) {
s[x][y] = '0';
for (int i = -3; i <= 3; i++) {
if (x + i >= 0 && x + i < 8 && s[x + i][y] == '1') {
s[x + i][y] = '0';
bomb(x + i, y);
}
if (y + i >= 0 && y + i < 8 && s[x][y ... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
string s[8];
void bomb(int x, int y) {
s[x][y] = '0';
for (int i = -3; i <= 3; i++) {
if (x + i >= 0 && x + i < 8 && s[x + i][y] == '1') {
s[x + i][y] = '0';
bomb(x + i, y);
}
if (y + i >= 0 && y + i < 8 && s[x][y ... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 28,793 | 28,794 | u802096158 | cpp |
p00071 | #include <algorithm>
#include <cstring>
#include <iostream>
using namespace std;
int dx[] = {-3, -2, -1, 0, 0, 0, 1, 2, 3, 0, 0, 0};
int dy[] = {0, 0, 0, 1, 2, 3, 0, 0, 0, -1, -2, -3};
char mas[8][8];
void solve(int, int);
int main() {
int n, x, y, HM = 1;
cin >> n;
while (n--) {
for (int i = 0; i < 8; i++) {... | #include <algorithm>
#include <cstring>
#include <iostream>
using namespace std;
int dx[] = {-3, -2, -1, 0, 0, 0, 1, 2, 3, 0, 0, 0};
int dy[] = {0, 0, 0, 1, 2, 3, 0, 0, 0, -1, -2, -3};
char mas[8][8];
void solve(int, int);
int main() {
int n, x, y, HM = 1;
cin >> n;
while (n--) {
for (int i = 0; i < 8; i++) {... | [
"io.output.change"
] | 28,808 | 28,809 | u095377734 | cpp |
p00071 | /*
0071:Bombs Chain
*/
#include <iostream>
#include <queue>
#include <utility>
using namespace std;
typedef pair<int, int> P;
char map[8][8];
int vx[4] = {1, 0, -1, 0};
int vy[4] = {0, 1, 0, -1};
void bomb(int sx, int sy);
int main(void) {
int dt;
cin >> dt;
for (int s = 0; s < dt; s++) {
int sx... | /*
0071:Bombs Chain
*/
#include <iostream>
#include <queue>
#include <utility>
using namespace std;
typedef pair<int, int> P;
char map[8][8];
int vx[4] = {1, 0, -1, 0};
int vy[4] = {0, 1, 0, -1};
void bomb(int sx, int sy);
int main(void) {
int dt;
cin >> dt;
for (int s = 0; s < dt; s++) {
int sx... | [] | 28,810 | 28,811 | u842986906 | cpp |
p00071 | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include... | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include... | [
"control_flow.loop.for.condition.change"
] | 28,813 | 28,814 | u609647473 | cpp |
p00072 | #include <algorithm>
#include <ios>
#include <iostream>
#include <vector>
using namespace std;
#include <vector>
struct UF {
int n;
vector<int> parent, rank;
UF(int n_ = 0) : n(n_), parent(n_), rank(n_, 0) {
for (int i = 0; i < n_; i++)
parent[i] = i;
}
int find(int a) { return parent[a] != a ? pare... | #include <algorithm>
#include <ios>
#include <iostream>
#include <vector>
using namespace std;
#include <vector>
struct UF {
int n;
vector<int> parent, rank;
UF(int n_ = 0) : n(n_), parent(n_), rank(n_, 0) {
for (int i = 0; i < n_; i++)
parent[i] = i;
}
int find(int a) { return parent[a] != a ? pare... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add"
] | 28,861 | 28,862 | u868447400 | cpp |
p00072 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define pb push_back
struct EDGE {
int to, cost;
EDGE(int a, int b) {
to = a;
to = b;
}
bool operator<(const EDGE &t) const { return cost > t.cost; }
};
vector<EDGE> v[100];
bool f[100];
int search() {
int res ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define pb push_back
struct EDGE {
int to, cost;
EDGE(int a, int b) {
to = a;
cost = b;
}
bool operator<(const EDGE &t) const { return cost > t.cost; }
};
vector<EDGE> v[100];
bool f[100];
int search() {
int re... | [
"assignment.variable.change",
"identifier.change",
"literal.string.change",
"call.arguments.change"
] | 28,865 | 28,866 | u334031393 | cpp |
p00072 | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#inclu... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#inclu... | [
"variable_declaration.type.change"
] | 28,893 | 28,894 | u827448139 | cpp |
p00072 | #include <iostream>
#include <stdio.h>
#include <vector>
#define INF 2147483647
using namespace std;
class Lantern {
public:
bool vector_find(vector<int> v, int key) {
for (int i = 0; i < v.size(); i++) {
if (v[i] == key) {
return 1;
}
}
return 0;
}
int Solve(int n, int roadlist[1... | #include <iostream>
#include <stdio.h>
#include <vector>
#define INF 2147483647
using namespace std;
class Lantern {
public:
bool vector_find(vector<int> v, int key) {
for (int i = 0; i < v.size(); i++) {
if (v[i] == key) {
return 1;
}
}
return 0;
}
int Solve(int n, int roadlist[1... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 28,914 | 28,915 | u884495090 | cpp |
p00072 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef vector<int> vi;
#define REP(i, n) for (i = 0; i < n; i++)
struct branch {
int n1, n2, w;
};
bool f(branch i, branch j) { return (i.w > j.w); }
int main() {
while (1) {
int n, i;
char c;
cin >> n;
if (n == 0)
... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef vector<int> vi;
#define REP(i, n) for (i = 0; i < n; i++)
struct branch {
int n1, n2, w;
};
bool f(branch i, branch j) { return (i.w > j.w); }
int main() {
while (1) {
int n, i;
char c;
cin >> n;
if (n == 0)
... | [
"assignment.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 28,932 | 28,933 | u912237403 | cpp |
p00073 | #include <cstdio>
#include <math.h>
int main() {
int x, h;
double S;
for (;;) {
scanf("%d", &x);
scanf("%d", &h);
if (x == 0 && h == 0)
break;
double th = sqrt((x / 2 * x / 2) + (h * h));
S = x * x;
S += 4 * ((double)x * th / 2);
printf("%f\n", S);
}
return 0;
} | #include <cstdio>
#include <math.h>
int main() {
int x, h;
double S;
for (;;) {
scanf("%d", &x);
scanf("%d", &h);
if (x == 0 && h == 0)
break;
double th = sqrt(((double)x / 2 * (double)x / 2) + (h * h));
S = x * x;
S += 4 * ((double)x * th / 2);
printf("%f\n", S);
}
return... | [
"type_conversion.add"
] | 28,982 | 28,983 | u017272236 | cpp |
p00073 | #include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int x, h;
double s;
while (1) {
cin >> x >> h;
if ((x == 0) && (h == 0))
break;
s = pow(x, 2.0) + x * sqrt(pow(h, 2.0) + pow(x, 2.0) / 4) * 2;
cout << setprecision(6) << s << endl;
... | #include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int x, h;
double s;
while (1) {
cin >> x >> h;
if ((x == 0) && (h == 0))
break;
s = pow(x, 2.0) + x * sqrt(pow(h, 2.0) + pow(x, 2.0) / 4) * 2;
cout << fixed << setprecision(6) << s <... | [
"io.output.change"
] | 28,984 | 28,985 | u706356703 | cpp |
p00073 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
typedef long long int ll;
using namespace std;
int x, h;
double y;
double ans;
int main() {
while (1) {
cin >> x >> h;
if (x == 0 && h ==... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
typedef long long int ll;
using namespace std;
int x, h;
double y;
double ans;
int main() {
while (1) {
cin >> x >> h;
if (x == 0 && h ==... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 28,990 | 28,991 | u700120734 | cpp |
p00073 | #include <bits/stdc++.h>
using namespace std;
int main() {
double x, h;
while (1) {
scanf("%lf %lf", &x, &h);
if (x == 0 && h == 0)
break;
double soku =
sqrt(((double)x * 0.5) * ((double)x * 0.5) + (double)h * (double)h);
printf("%f", (double)x * (double)x + (double)4 * (soku * (double... | #include <bits/stdc++.h>
using namespace std;
int main() {
double x, h;
while (1) {
scanf("%lf %lf", &x, &h);
if (x == 0 && h == 0)
break;
double soku =
sqrt(((double)x * 0.5) * ((double)x * 0.5) + (double)h * (double)h);
printf("%f\n",
(double)x * (double)x + (double)4 * (s... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 28,994 | 28,995 | u801331581 | cpp |
p00073 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 28,996 | 28,997 | u017136598 | cpp |
p00073 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 28,998 | 28,997 | u017136598 | cpp |
p00073 | #include <algorithm>
#include <cctype>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int size(string x) {
string::size_type size = x.size();
return size;
}
#define fu(l, k) for (int i = l; i < k; i++)
... | #include <algorithm>
#include <cctype>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int size(string x) {
string::size_type size = x.size();
return size;
}
#define fu(l, k) for (int i = l; i < k; i++)
... | [
"call.arguments.change",
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change",
"identifier.replace.add",
"literal.replace.remove",
"identifier.replace.remove",
"literal.replace.add"
] | 28,999 | 29,000 | u442849342 | cpp |
p00073 | #include <math.h>
#include <stdio.h>
int main(void) {
double x, h, c;
while (1) {
scanf("%f %f", &x, &h);
if (x == 0.0 && h == 0.0)
break;
c = (x / 2.0) * (x / 2.0) + h * h;
c = sqrt(c);
c = x * x + x * c / 2.0 * 4.0;
printf("%f\n", c);
}
return 0;
} | #include <math.h>
#include <stdio.h>
int main(void) {
double x, h, c;
while (1) {
scanf("%lf %lf", &x, &h);
if (x == 0.0 && h == 0.0)
break;
c = (x / 2.0) * (x / 2.0) + h * h;
c = sqrt(c);
c = x * x + x * c / 2.0 * 4.0;
printf("%lf\n", c);
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 29,003 | 29,002 | u067395187 | cpp |
p00073 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double x, h, seihou = 0, naname = 0, y = 0, sannkaku = 0, kotae = 0;
while (true) {
cin >> x >> h;
if (x == 0 && h == 0) {
break;
}
seihou = x * x;
y = x / 2;
naname = sqrt(y * y + h * h);
san... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double x, h, seihou = 0, naname = 0, y = 0, sannkaku = 0, kotae = 0;
while (true) {
cin >> x >> h;
if (x == 0 && h == 0) {
break;
}
seihou = x * x;
y = x / 2;
naname = sqrt(y * y + h * h);
san... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 29,004 | 29,005 | u748757006 | cpp |
p00066 | #include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
#define REP(i, j) for (int i = 0; i < j; i++)
#d... | #include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
#define REP(i, j) for (int i = 0; i < j; i++)
#d... | [
"literal.number.change"
] | 29,018 | 29,019 | u297043950 | cpp |
p00066 | #include <iostream>
#include <string>
int f(char a, char b, char c) {
return ((a != 's' && a == b && a == c) ? a : 0);
}
int main() {
std::string s;
int i, j;
while (getline(std::cin, s)) {
char c = (f(s[0], s[4], s[8]) || f(s[2], s[4], s[6])) ? s[4] : 0;
if (!c) {
for (i = 0; i < 3; i++) {
... | #include <iostream>
#include <string>
int f(char a, char b, char c) {
return ((a != 's' && a == b && a == c) ? a : 0);
}
int main() {
std::string s;
int i, j;
while (getline(std::cin, s)) {
char c = (f(s[0], s[4], s[8]) || f(s[2], s[4], s[6])) ? s[4] : 0;
if (!c) {
for (i = 0; i < 3; i++) {
... | [
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 29,024 | 29,025 | u912237403 | cpp |
p00067 | #include <iostream>
#include <math.h>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int map[12][12];
void SagasiteHappy(int i, int j) {
map[i][j] = 0;
if (i >= 0) {
if (map[i - 1][j] == 1) {
SagasiteHappy(i - 1, j);
}
}
if (i < 12) {
if (map[i + 1][j] == 1) {
... | #include <iostream>
#include <math.h>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int map[12][12];
void SagasiteHappy(int i, int j) {
map[i][j] = 0;
if (i > 0) {
if (map[i - 1][j] == 1) {
SagasiteHappy(i - 1, j);
}
}
if (i < 11) {
if (map[i + 1][j] == 1) {
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 29,087 | 29,088 | u484092586 | cpp |
p00067 | #include <cstdio>
int sima(int x, int y);
char SIMA[14][14];
int main() {
while (scanf("%s", SIMA[1]) != EOF) {
int i, j, ans = 0;
for (i = 2; i < 13; i++) {
scanf("%s", SIMA[i]);
}
for (i = 1; i < 13; i++) {
for (j = 1; j < 13; j++) {
if (SIMA[j][i] == '1') {
ans += sima... | #include <cstdio>
int sima(int x, int y);
char SIMA[14][14];
int main() {
while (scanf("%s", SIMA[1] + 1) != EOF) {
int i, j, ans = 0;
for (i = 2; i < 13; i++) {
scanf("%s", SIMA[i] + 1);
}
for (i = 1; i < 13; i++) {
for (j = 1; j < 13; j++) {
if (SIMA[j][i] == '1') {
ans... | [
"control_flow.loop.condition.change"
] | 29,091 | 29,092 | u810660681 | cpp |
p00067 | #include <cstdio>
int sima(int x, int y);
char SIMA[14][14];
int main() {
while (scanf("%s", SIMA[1]) != EOF) {
int i, j, ans = 0;
for (i = 2; i < 13; i++) {
scanf("%s", SIMA[i] + 1);
}
for (i = 1; i < 13; i++) {
for (j = 1; j < 13; j++) {
if (SIMA[j][i] == '1') {
ans += ... | #include <cstdio>
int sima(int x, int y);
char SIMA[14][14];
int main() {
while (scanf("%s", SIMA[1] + 1) != EOF) {
int i, j, ans = 0;
for (i = 2; i < 13; i++) {
scanf("%s", SIMA[i] + 1);
}
for (i = 1; i < 13; i++) {
for (j = 1; j < 13; j++) {
if (SIMA[j][i] == '1') {
ans... | [
"control_flow.loop.condition.change"
] | 29,093 | 29,092 | u810660681 | cpp |
p00067 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
char shima[13][13];
void tansaku(int ... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
char shima[13][13];
void tansaku(int ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 29,096 | 29,097 | u681511075 | cpp |
p00067 | #include <iostream>
#define MAP 12
using namespace std;
int map[MAP][MAP];
bool valid(int y, int x) {
if ((0 <= y && y < MAP) && (0 <= x && x < MAP)) {
if (map[y][x] == 1)
return true;
}
return false;
}
void remove_island(int y, int x) {
int nx, ny;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1,... | #include <iostream>
#define MAP 12
using namespace std;
int map[MAP][MAP];
bool valid(int y, int x) {
if ((0 <= y && y < MAP) && (0 <= x && x < MAP)) {
if (map[y][x] == 1)
return true;
}
return false;
}
void remove_island(int y, int x) {
int nx, ny;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1,... | [
"identifier.replace.add",
"literal.replace.remove"
] | 29,098 | 29,099 | u850145107 | cpp |
p00067 | // 0067
#include <stdio.h>
const int N = 12;
const int P = 4;
char a[N + P][N + P];
void Sink(int x, int y) {
if (a[x][y] == '1') {
a[x][y] = '0';
Sink(x + 1, y);
Sink(x - 1, y);
Sink(x, y + 1);
Sink(x, y - 1);
}
}
int main(void) {
int i, j;
int count = 0;
for (;;) {
count = 0;
... | // 0067
#include <stdio.h>
const int N = 12;
const int P = 4;
char a[N + P][N + P];
void Sink(int x, int y) {
if (a[x][y] == '1') {
a[x][y] = '0';
Sink(x + 1, y);
Sink(x - 1, y);
Sink(x, y + 1);
Sink(x, y - 1);
}
}
int main(void) {
int i, j;
int count = 0;
for (;;) {
count = 0;
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"literal.number.change",
"variable_access.subscript.index.change"
] | 29,105 | 29,106 | u260615292 | cpp |
p00067 | #include <cstdio>
#include <iostream>
using namespace std;
char a[12][12];
void irand(int i, int j) {
a[i][j] == '0';
if (i > 0 && a[i - 1][j] == '1')
irand(i - 1, j);
if (j > 0 && a[i][j - 1] == '1')
irand(i, j - 1);
if (i < 11 && a[i + 1][j] == '1')
irand(i + 1, j);
if (j < 11 && a[i][j + 1] == ... | #include <cstdio>
#include <iostream>
using namespace std;
char a[12][12];
void irand(int i, int j) {
a[i][j] = '0';
if (i > 0 && a[i - 1][j] == '1')
irand(i - 1, j);
if (j > 0 && a[i][j - 1] == '1')
irand(i, j - 1);
if (i < 11 && a[i + 1][j] == '1')
irand(i + 1, j);
if (j < 11 && a[i][j + 1] == '... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 29,107 | 29,108 | u095377734 | cpp |
p00067 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string str;
int xs[] = {0, 1, 0, -1}, ys[] = {1, 0, -1, 0};
bool m[10][10];
void dfs(int x, int y) {
for (int i = 0; i < 4; i++) {
int tx = x + xs[i], ty = y + ys[i];
if (tx < 0 || tx >= 12 || ty < 0 || ty >= 12)
continue;
... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string str;
int xs[] = {0, 1, 0, -1}, ys[] = {1, 0, -1, 0};
bool m[20][20];
void dfs(int x, int y) {
for (int i = 0; i < 4; i++) {
int tx = x + xs[i], ty = y + ys[i];
if (tx < 0 || tx >= 12 || ty < 0 || ty >= 12)
continue;
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 29,109 | 29,110 | u611853667 | cpp |
p00067 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <istream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <istream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#... | [
"call.add",
"expression.operation.binary.change",
"call.arguments.change"
] | 29,113 | 29,114 | u942982291 | cpp |
p00067 | #include <array>
#include <iostream>
using namespace std;
array<array<char, 12>, 12> maap;
void dfs(int x, int y) {
maap[x][y] = 0;
int dx[] = {0, -1, 1, 0}, dy[] = {1, 0, 0, -1};
for (int i = 0; i < 4; i++) {
int nx = x + dx[i], ny = y + dy[i];
if (nx >= 0 && nx < 12 && ny >= 0 && nx < 12 && maap[nx][ny... | #include <array>
#include <iostream>
using namespace std;
array<array<char, 12>, 12> maap;
void dfs(int x, int y) {
maap[x][y] = '0';
int dx[] = {0, -1, 1, 0}, dy[] = {1, 0, 0, -1};
for (int i = 0; i < 4; i++) {
int nx = x + dx[i], ny = y + dy[i];
if (nx >= 0 && nx < 12 && ny >= 0 && ny < 12 && maap[nx][... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 29,115 | 29,116 | u935017581 | cpp |
p00067 | #include <array>
#include <iostream>
using namespace std;
array<array<char, 12>, 12> maap;
void dfs(int x, int y) {
maap[x][y] = '0';
int dx[] = {0, -1, 1, 0}, dy[] = {1, 0, 0, -1};
for (int i = 0; i < 4; i++) {
int nx = x + dx[i], ny = y + dy[i];
if (nx >= 0 && nx < 12 && ny >= 0 && nx < 12 && maap[nx][... | #include <array>
#include <iostream>
using namespace std;
array<array<char, 12>, 12> maap;
void dfs(int x, int y) {
maap[x][y] = '0';
int dx[] = {0, -1, 1, 0}, dy[] = {1, 0, 0, -1};
for (int i = 0; i < 4; i++) {
int nx = x + dx[i], ny = y + dy[i];
if (nx >= 0 && nx < 12 && ny >= 0 && ny < 12 && maap[nx][... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 29,117 | 29,116 | u935017581 | cpp |
p00073 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define l... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define l... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 29,161 | 29,162 | u047399718 | cpp |
p00073 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define l... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define l... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 29,163 | 29,162 | u047399718 | cpp |
p00073 | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
double x, h;
while (1) {
scanf("%lf %lf", &x, &h);
if (x + h == 0)
break;
else
printf("%lf", (x * x) + 2 * x * sqrt((h * h) + ((x / 2) * (x / 2))));
}
return 0;
} | #include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main() {
double x, h;
while (1) {
scanf("%lf %lf", &x, &h);
if (x + h == 0)
break;
else
printf("%lf\n", (x * x) + 2 * x * sqrt((h * h) + ((x / 2) * (x / 2))));
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 29,164 | 29,165 | u925831343 | cpp |
p00074 | #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)
int main() {
... | #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)
int main() {
... | [] | 29,214 | 29,215 | u488108750 | cpp |
p00074 | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int H, M, S;
while (cin >> H >> M >> S, H != -1 && M != -1 && S != -1) {
S += M * 60 + H * 3600;
S = 2 * 3600 - S;
printf("%02d:%02d:%02d\n", S / 3600, S / 60, S % 60);
S *= 3;
printf("%02d:%02d:%02d\n"... | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int H, M, S;
while (cin >> H >> M >> S, H != -1 && M != -1 && S != -1) {
S += M * 60 + H * 3600;
S = 2 * 3600 - S;
printf("%02d:%02d:%02d\n", S / 3600, S / 60 % 60, S % 60);
S *= 3;
printf("%02d:%02d:%0... | [
"expression.operation.binary.add"
] | 29,216 | 29,217 | u364532954 | cpp |
p00074 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
while (cin >> a >> b >> c, a != -1 || b != -1 || c != -1) {
int now = a * 3600 + b * 60 + c;
int ans = 7200 - now;
cout << "0" << ans / 3600 << ":";
if (ans % 3600 / 60 < 10)
cout << "0";
cout << ans % 3600 / 60 << ":";
... | #include <iostream>
using namespace std;
int main() {
int a, b, c;
while (cin >> a >> b >> c, a != -1 || b != -1 || c != -1) {
int now = a * 3600 + b * 60 + c;
int ans = 7200 - now;
cout << "0" << ans / 3600 << ":";
if (ans % 3600 / 60 < 10)
cout << "0";
cout << ans % 3600 / 60 << ":";
... | [
"expression.operation.binary.remove",
"assignment.change"
] | 29,218 | 29,219 | u746860079 | cpp |
p00074 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <time.h>
#include <utility>
#include <vector>
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
#define rp(a) while (a--)
#define pb pus... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <time.h>
#include <utility>
#include <vector>
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
#define rp(a) while (a--)
#define pb pus... | [
"assignment.value.change",
"expression.operation.binary.remove"
] | 29,220 | 29,221 | u744420470 | cpp |
p00074 | #include <stdio.h>
int main(void) {
int v, h2, m2, s2, s, h, m, g, e, f, d, a, b, c;
scanf("%d %d %d", &a, &b, &c);
while (a != -1 && b != -1 && c != -1) {
e = a * 60;
g = (e + b) * 60 + c;
f = (2 * 3600) - g;
h = f / 3600;
m = (f - (h * 3600)) / 60;
s = f - (h * 3600 + m * 60);
v = (2... | #include <stdio.h>
int main(void) {
int v, h2, m2, s2, s, h, m, g, e, f, d, a, b, c;
scanf("%d %d %d", &a, &b, &c);
while (a != -1 && b != -1 && c != -1) {
e = a * 60;
g = (e + b) * 60 + c;
f = (2 * 3600) - g;
h = f / 3600;
m = (f - (h * 3600)) / 60;
s = f - (h * 3600 + m * 60);
v = (3... | [
"expression.operation.binary.remove",
"assignment.value.change",
"expression.operation.binary.change"
] | 29,222 | 29,223 | u909782545 | cpp |
p00074 | #include <cstdio>
using namespace std;
int main() {
int h, m, s;
while (1) {
int tmp;
int stan, stan_3;
scanf("%d %d %d", &h, &m, &s);
if (h == -1 && m == -1 && s == -1) {
break;
}
tmp = h * 3600 + m * 60 + s;
// printf("tmp=%d\n", tmp);
stan = 7200 - tmp;
stan_3 = 7... | #include <cstdio>
using namespace std;
int main() {
int h, m, s;
while (1) {
int tmp;
int stan, stan_3;
scanf("%d %d %d", &h, &m, &s);
if (h == -1 && m == -1 && s == -1) {
break;
}
tmp = h * 3600 + m * 60 + s;
// printf("tmp=%d\n", tmp);
stan = 7200 - tmp;
stan_3 = s... | [] | 29,224 | 29,225 | u881668270 | cpp |
p00074 | #include <cstdio>
#include <iostream>
using namespace std;
int s[3], t[3], u[3], _time, vtime;
void printtime(int sec) {
printf("%02d;%02d:%02d\n", sec / 3600, (sec / 60) % 60, sec % 60);
}
int main() {
while (true) {
cin >> s[0] >> s[1] >> s[2];
if (s[0] == -1) {
break;
}
_time = s[0] * 360... | #include <cstdio>
#include <iostream>
using namespace std;
int s[3], t[3], u[3], _time, vtime;
void printtime(int sec) {
printf("%02d:%02d:%02d\n", sec / 3600, (sec / 60) % 60, sec % 60);
}
int main() {
while (true) {
cin >> s[0] >> s[1] >> s[2];
if (s[0] == -1) {
break;
}
_time = s[0] * 360... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 29,226 | 29,227 | u852311840 | cpp |
p00074 | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repr(i, a, n) for (int i = a; i >= n; i--)
#define INF 999999999
#define INF_M 2147483647
#define pb(a) push_back(a)
using namespace std;
typedef pair<int, int> pii;
typedef long long int ll;
int main() {
int t, h, s;
while (cin >> t... | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repr(i, a, n) for (int i = a; i >= n; i--)
#define INF 999999999
#define INF_M 2147483647
#define pb(a) push_back(a)
using namespace std;
typedef pair<int, int> pii;
typedef long long int ll;
int main() {
int t, h, s;
while (cin >> t... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 29,233 | 29,234 | u155634813 | cpp |
p00074 | #include <cstdio>
using namespace std;
int main() {
int t, h, s, max = 2 * 60 * 60;
while (scanf("%d %d %d", &t, &h, &s) && t != -1) {
int ss = max - (s + h * 60 + t * 60 * 60);
printf("%02d:%02d:%02d\n", ss / 60 / 60, ss / 60, ss % 60);
ss *= 3;
printf("%02d:%02d:%02d\n", ss / 60 / 60, ss / 60 % ... | #include <cstdio>
using namespace std;
int main() {
int t, h, s, max = 2 * 60 * 60;
while (scanf("%d %d %d", &t, &h, &s) && t != -1) {
int ss = max - (s + h * 60 + t * 60 * 60);
printf("%02d:%02d:%02d\n", ss / 60 / 60, ss / 60 % 60, ss % 60);
ss *= 3;
printf("%02d:%02d:%02d\n", ss / 60 / 60, ss / ... | [
"expression.operation.binary.add"
] | 29,235 | 29,236 | u327778409 | cpp |
p00074 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#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
#def... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#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
#def... | [
"assignment.value.change",
"identifier.change"
] | 29,237 | 29,238 | u287295208 | cpp |
p00074 | #include "bits/stdc++.h"
using namespace std;
using namespace std;
int main() {
int a, b, c;
while (cin >> a >> b >> c) {
if (a == -1 || b == -1 || c == -1)
break;
int second = 7200 - (a * 3600 + b * 60 + c);
printf("%02d:%02d:%02d\n", second / 3600, second / 60, second % 60);
second = second... | #include "bits/stdc++.h"
using namespace std;
using namespace std;
int main() {
int a, b, c;
while (cin >> a >> b >> c) {
if (a == -1 || b == -1 || c == -1)
break;
int second = 7200 - (a * 3600 + b * 60 + c);
printf("%02d:%02d:%02d\n", second / 3600, second / 60 % 60, second % 60);
second = s... | [
"expression.operation.binary.add"
] | 29,239 | 29,240 | u944777079 | cpp |
p00074 | #include <stdio.h>
int main() {
int t, h, s, sum;
while (scanf("%d %d %d", &t, &h, &s), t != -1 && h != -1 && s != -1) {
sum = 120 * 60 - t * 3600 - h * 60 - s;
printf("%02d:%02d:%02d\n", sum / 3600, sum / 60, sum % 60);
sum *= 3;
printf("%02d:%02d:%02d\n", sum / 3600, (sum / 60) % 60, sum % 60);
... | #include <stdio.h>
int main() {
int t, h, s, sum;
while (scanf("%d %d %d", &t, &h, &s), t != -1 && h != -1 && s != -1) {
sum = 120 * 60 - t * 3600 - h * 60 - s;
printf("%02d:%02d:%02d\n", sum / 3600, (sum / 60) % 60, sum % 60);
sum *= 3;
printf("%02d:%02d:%02d\n", sum / 3600, (sum / 60) % 60, sum % ... | [
"call.arguments.change"
] | 29,241 | 29,242 | u354244251 | cpp |
p00074 | #include <cstdio>
using namespace std;
int main() {
int h, m, s, r1, r3;
while (scanf("%d %d %d", &h, &m, &s), h != -1 && m != -1 && s != -1) {
r1 = 120 * 60 - ((h * 60) + m) * 60 + s;
r3 = r1 * 3;
printf("%02d:%02d:%02d\n", r1 / 3600, (r1 / 60) % 60, r1 % 60);
printf("%02d:%02d:%02d\n", r3 / 3600... | #include <cstdio>
using namespace std;
int main() {
int h, m, s, r1, r3;
while (scanf("%d %d %d", &h, &m, &s), h != -1 && m != -1 && s != -1) {
r1 = 120 * 60 - (((h * 60) + m) * 60 + s);
r3 = r1 * 3;
printf("%02d:%02d:%02d\n", r1 / 3600, (r1 / 60) % 60, r1 % 60);
printf("%02d:%02d:%02d\n", r3 / 36... | [] | 29,243 | 29,244 | u869600431 | cpp |
p00074 | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
void printTime(int sec) {
printf("%02d:%02d:%02... | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
void printTime(int sec) {
printf("%02d:%02d:%02... | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 29,245 | 29,246 | u660774699 | cpp |
p00074 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int toSec(int h, int m, int s) { return (h * 60 + m) * 60 + s; }
vector<int> toHms(int sec) {
vector<int> v;
v.push_back(sec / (60 * 60));
sec -= v[0] * 60 * 60;
v.push_back(sec / 60);
v.push_back(sec - v[1] * ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int toSec(int h, int m, int s) { return (h * 60 + m) * 60 + s; }
vector<int> toHms(int sec) {
vector<int> v;
v.push_back(sec / (60 * 60));
sec -= v[0] * 60 * 60;
v.push_back(sec / 60);
v.push_back(sec - v[1] * ... | [
"call.arguments.change",
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.arguments.add"
] | 29,247 | 29,248 | u480459673 | cpp |
p00074 | #include <math.h>
#include <stdio.h>
int main(void) {
int h, m, s;
while (1) {
scanf("%d %d %d", &h, &m, &s);
if (h == -1 && m == -1 && s == -1)
break;
int time = h * 3600 + m * 60 + s;
int rem = 2 * 3600 - time;
printf("%02d:%02d:%02d\n", rem / 3600, (rem % 3600) / 60, rem % 60);
... | #include <math.h>
#include <stdio.h>
int main(void) {
int h, m, s;
while (1) {
scanf("%d %d %d", &h, &m, &s);
if (h == -1 && m == -1 && s == -1)
break;
int time = h * 3600 + m * 60 + s;
int rem = 2 * 3600 - time;
printf("%02d:%02d:%02d\n", rem / 3600, (rem % 3600) / 60, rem % 60);
... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 29,249 | 29,250 | u669807407 | cpp |
p00074 | #include <cstdio>
int h, m, s;
main() {
while (scanf("%d%d%d", &h, &m, &s) && h != -1) {
int r = 7200 - (h * 60 + m) * 60 + s;
for (int i = 0; i < 2; i++, r *= 3) {
printf("%02d:%02d:%02d\n", r / 60 / 60, (r / 60) % 60, r % 60);
}
}
return 0;
} | #include <cstdio>
int h, m, s;
main() {
while (scanf("%d%d%d", &h, &m, &s) && h != -1) {
int r = 7200 - (h * 60 + m) * 60 - s;
for (int i = 0; i < 2; i++, r *= 3) {
printf("%02d:%02d:%02d\n", r / 60 / 60, (r / 60) % 60, r % 60);
}
}
return 0;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 29,251 | 29,252 | u769144819 | cpp |
p00074 | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <vector>
#define all(n... | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <vector>
#define all(n... | [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 29,253 | 29,254 | u116766943 | cpp |
p00074 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, -1, 1};
void print_hms(int sec) {
i... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, -1, 1};
void print_hms(int sec) {
i... | [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 29,255 | 29,256 | u934534598 | cpp |
p00074 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int h, m, s, total, h1, m1, s1, total1;
while (1) {
cin >> h >> m >> s;
if (h == -1 && m == -1 && s == -1) {
break;
}
total1 = h * 3600 + m * 60 + s;
total1 = 120 * 60 - total1;
total1 *= 3;
total = h * 3600 ... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int h, m, s, total, h1, m1, s1, total1;
while (1) {
cin >> h >> m >> s;
if (h == -1 && m == -1 && s == -1) {
break;
}
total1 = h * 3600 + m * 60 + s;
total1 = 120 * 60 - total1;
total1 *= 3;
total = h * 3600 ... | [
"assignment.value.change",
"identifier.change"
] | 29,259 | 29,260 | u284889485 | cpp |
p00074 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int h, m, s;
int time;
int nokori, nokori3;
while (1) {
cin >> h >> m >> s;
if (h == -1 && m == -1 && s == -1) {
break;
}
time = 3600 * h + 60 * m + s;
nokori = 7200 - time;
nokori3 = 7200 - (time / 3);
... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int h, m, s;
int time;
int nokori, nokori3;
while (1) {
cin >> h >> m >> s;
if (h == -1 && m == -1 && s == -1) {
break;
}
time = 3600 * h + 60 * m + s;
nokori = 7200 - time;
nokori3 = nokori * 3;
printf(... | [] | 29,261 | 29,262 | u278285028 | cpp |
p00074 | #include <iostream>
using namespace std;
/** Problem0074 : Videotape **/
void print(int s) {
cout << s / 3600 << ":" << (s / 60) % 60 << ":" << s % 60 << endl;
}
int main() {
int h, m, s, sum, ans;
while (1) {
cin >> h >> m >> s;
if (h == -1 && m == -1 && s == -1)
break;
sum = h * 60 * 60 + m... | #include "stdio.h"
#include <iostream>
using namespace std;
/** Problem0074 : Videotape **/
void print(int s) {
printf("%02d:%02d:%02d\n", s / 3600, (s / 60) % 60, s % 60);
}
int main() {
int h, m, s, sum, ans;
while (1) {
cin >> h >> m >> s;
if (h == -1 && m == -1 && s == -1)
break;
sum = h ... | [
"import.add"
] | 29,263 | 29,264 | u358260180 | cpp |
p00074 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <istream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <istream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#... | [
"expression.operator.change",
"assignment.change"
] | 29,265 | 29,266 | u942982291 | cpp |
p00075 | #include <stdio.h>
int main() {
int id;
double h, w, bmi;
while (scanf("%d,%lf,%lf", &id, &w, &h) != EOF) {
bmi = w / h * h;
if (bmi >= 25.0)
printf("%d\n", id);
}
return 0;
} | #include <stdio.h>
int main() {
int id;
double h, w, bmi;
while (scanf("%d,%lf,%lf", &id, &w, &h) != EOF) {
bmi = w / h / h;
// printf("%f\n",bmi);
if (bmi >= 25.0)
printf("%d\n", id);
}
return 0;
} | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 29,411 | 29,412 | u182576515 | cpp |
p00075 | #include <cmath>
#include <iostream>
using namespace std;
double BMI(double height, double weight) {
return weight / pow(height / 100.0, 2);
}
int main() {
const int DATASETS = 1000;
int Number[DATASETS], C = 0;
double H[DATASETS], W[DATASETS];
char ch;
while (cin >> Number[C] >> ch >> H[C] >> ch >> W[... | #include <cmath>
#include <iostream>
using namespace std;
double BMI(double height, double weight) {
return weight / pow(height / 100.0, 2);
}
int main() {
const int DATASETS = 1000;
int Number[DATASETS], C = 0;
double H[DATASETS], W[DATASETS];
char ch;
while (cin >> Number[C] >> ch >> W[C] >> ch >> H[... | [
"identifier.change",
"control_flow.loop.condition.change"
] | 29,413 | 29,414 | u823513038 | cpp |
p00075 | #include <iostream>
using namespace std;
int num;
double h, w;
char a;
int main() {
while (cin >> num >> a >> h >> a >> w) {
if (h * h * 25 <= w) {
cout << num << endl;
}
}
} | #include <iostream>
using namespace std;
int num;
double h, w;
char a;
int main() {
while (cin >> num >> a >> w >> a >> h) {
if (h * h * 25 <= w) {
cout << num << endl;
}
}
} | [
"identifier.change",
"control_flow.loop.condition.change"
] | 29,415 | 29,416 | u852311840 | cpp |
p00075 | #include <cstdio>
using namespace std;
int main() {
int no;
double w, h, bmi;
while (~scanf("%lf,%lf,%lf", &no, &w, &h)) {
if (w / h / h >= 25)
printf("%d\n", no);
}
return 0;
} | #include <cstdio>
using namespace std;
int main() {
int no;
double w, h, bmi;
while (~scanf("%d,%lf,%lf", &no, &w, &h)) {
if (w / h / h >= 25)
printf("%d\n", no);
}
return 0;
} | [
"literal.string.change",
"control_flow.loop.condition.change"
] | 29,417 | 29,418 | u693225785 | cpp |
p00075 | #include <iostream>
using namespace std;
int main() {
double bmi;
int s;
double w, h;
while (scanf("%d,%lf,%lf", &s, &w, &h) + 1) {
bmi = w / (h * h);
if (bmi >= 25) {
cout << s;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
double bmi;
int s;
double w, h;
while (scanf("%d,%lf,%lf", &s, &w, &h) + 1) {
bmi = w / (h * h);
if (bmi >= 25) {
cout << s << endl;
}
}
return 0;
} | [
"io.output.newline.add"
] | 29,432 | 29,433 | u705334572 | cpp |
p00075 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
double s, w, h;
char g;
while (cin >> s >> g >> w >> g >> h) {
if (w / (s * s) >= 25)
cout << s << endl;
}
return 0;
} | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
double s, w, h;
char g;
while (cin >> s >> g >> w >> g >> h) {
if (w / (h * h) >= 25)
cout << s << endl;
}
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 29,440 | 29,441 | u065542086 | cpp |
p00075 | #include <cmath>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
vector<int> over;
int num;
double w, h;
while (scanf("%d,%f,%f", &num, &w, &h) != EOF) {
double bmi = w / (h * h);
if (bmi >= 25)
over.push_back(num);
}
if (over.empty()) {
printf("ツ該ツ督鳴づ按つオ\n");
} els... | #include <cmath>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
vector<int> over;
int num;
float w, h;
while (scanf("%d,%f,%f", &num, &w, &h) != EOF) {
double bmi = w / pow(h, 2);
if (bmi >= 25)
over.push_back(num);
}
if (over.empty()) {
printf("ツ該ツ督鳴づ按つオ\n");
} el... | [
"variable_declaration.type.primitive.change",
"call.add"
] | 29,465 | 29,466 | u706376958 | cpp |
p00075 | #include <cmath>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
vector<int> over;
int num;
double w, h;
while (scanf("%d,%f,%f", &num, &w, &h) != EOF) {
double bmi = w / pow(h, 2);
if (bmi >= 25)
over.push_back(num);
}
if (over.empty()) {
printf("ツ該ツ督鳴づ按つオ\n");
} e... | #include <cmath>
#include <cstdio>
#include <vector>
using namespace std;
int main() {
vector<int> over;
int num;
float w, h;
while (scanf("%d,%f,%f", &num, &w, &h) != EOF) {
double bmi = w / pow(h, 2);
if (bmi >= 25)
over.push_back(num);
}
if (over.empty()) {
printf("ツ該ツ督鳴づ按つオ\n");
} el... | [
"variable_declaration.type.primitive.change"
] | 29,467 | 29,466 | u706376958 | cpp |
p00075 | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> ans;
int a;
double b, c;
while (scanf("%d,%f,%f", &a, &b, &c) != EOF) {
if ((c / (b * b)) >= 25)
ans.push_back(a);
}
for (int i = 0; i < ans.size(); i++) {
cout << ans[i] << endl;
}
retu... | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> ans;
int a;
float b, c;
while (scanf("%d,%f,%f", &a, &b, &c) != EOF) {
if ((b / (c * c)) >= 25) {
ans.push_back(a);
}
}
for (int i = 0; i < ans.size(); i++) {
cout << ans[i] << endl;
}... | [
"variable_declaration.type.primitive.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 29,479 | 29,480 | u946229723 | cpp |
p00075 | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> ans;
int a;
float b, c;
while (scanf("%d,%f,%f", &a, &b, &c) != EOF) {
if ((c / (b * b)) >= 25)
ans.push_back(a);
}
for (int i = 0; i < ans.size(); i++) {
cout << ans[i] << endl;
}
retur... | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> ans;
int a;
float b, c;
while (scanf("%d,%f,%f", &a, &b, &c) != EOF) {
if ((b / (c * c)) >= 25) {
ans.push_back(a);
}
}
for (int i = 0; i < ans.size(); i++) {
cout << ans[i] << endl;
}... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 29,481 | 29,480 | u946229723 | cpp |
p00077 | #include <iostream>
using namespace std;
string s;
main() {
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
char c = s[i + 1];
int n = s[i + 2] - '0';
i += 2;
for (int j = 0; j < n; j++)
cout << c;
} else
cout << s[i];
}
... | #include <iostream>
using namespace std;
string s;
main() {
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
char c = s[i + 2];
int n = s[i + 1] - '0';
i += 2;
for (int j = 0; j < n; j++)
cout << c;
} else
cout << s[i];
}
... | [
"literal.number.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 29,549 | 29,550 | u868447400 | cpp |
p00077 | #include <iostream>
using namespace std;
#include <string>
int main() {
string s;
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
for (int j = s[i + 1]; j > 0; j--) {
cout << s[j + 1];
}
i += 2;
} else {
cout << s[i];
}
... | #include <iostream>
using namespace std;
#include <string>
int main() {
string s;
while (cin >> s) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == '@') {
for (int j = s[i + 1]; j > '0'; j--) {
cout << s[i + 2];
}
i += 2;
} else {
cout << s[i];
}
... | [
"control_flow.branch.if.condition.change",
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change",
"literal.number.change"
] | 29,551 | 29,552 | u604119703 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.