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 |
|---|---|---|---|---|---|---|---|
p02417 | #include <cctype>
#include <cstdio>
#include <cstring>
using namespace std;
int main(void) {
char input;
int counter[26] = {};
int i, len, sum, idx;
while (scanf("%c", &input) != EOF) {
if (islower(input))
idx = input - 'a';
else if (isupper(input))
idx = input - 'A';
else
continu... | #include <cctype>
#include <cstdio>
#include <cstring>
using namespace std;
int main(void) {
char input;
int counter[26] = {};
int i, len, sum, idx;
while (scanf("%c", &input) != EOF) {
if (islower(input))
idx = input - 'a';
else if (isupper(input))
idx = input - 'A';
else
continu... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 221,011 | 221,012 | u904431093 | cpp |
p02417 | #include <cctype>
#include <cstdio>
#include <cstring>
using namespace std;
int main(void) {
char input;
int counter[26] = {};
int i, len, sum, idx;
while (scanf("%c", &input) != EOF) {
if (islower(input))
idx = input - 'a';
else if (isupper(input))
idx = input - 'A';
else
continu... | #include <cctype>
#include <cstdio>
#include <cstring>
using namespace std;
int main(void) {
char input;
int counter[26] = {};
int i, len, sum, idx;
while (scanf("%c", &input) != EOF) {
if (islower(input))
idx = input - 'a';
else if (isupper(input))
idx = input - 'A';
else
continu... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 221,013 | 221,012 | u904431093 | cpp |
p02417 | #include <cctype>
#include <iostream>
using namespace std;
int main() {
char ch;
int count[26] = {};
while (cin >> ch) {
if (islower(ch)) { // islower???ch????°?????????????ture?????????
count
[ch -
'a']++; //??¢?????????????????????a???z????????£?¶?????????¢??????????????????????... | #include <cctype>
#include <iostream>
using namespace std;
int main() {
char ch;
int count[26] = {};
while (cin >> ch) {
if (islower(ch)) { // islower???ch????°?????????????ture?????????
count
[ch -
'a']++; //??¢?????????????????????a???z????????£?¶?????????¢??????????????????????... | [
"literal.string.change",
"io.output.change"
] | 221,021 | 221,019 | u960548659 | cpp |
p02417 | #include <cctype>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
char ch;
int cnt[26] = {0};
while (cin >> ch) {
if (islower(ch)) {
int num = ch - 'a';
cnt[num]++;
} else if (isupper(ch)) {
int num = ch - 'A';
cnt[num]++;
}
}
fo... | #include <cctype>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
char ch;
int cnt[26] = {0};
while (cin >> ch) {
if (islower(ch)) {
int num = ch - 'a';
cnt[num]++;
} else if (isupper(ch)) {
int num = ch - 'A';
cnt[num]++;
}
}
fo... | [
"literal.string.change",
"io.output.change"
] | 221,027 | 221,028 | u403618837 | cpp |
p02417 | #include <cctype>
#include <iostream>
using namespace std;
int main() {
char ch;
int count[26] = {0};
int i;
while (cin >> ch) {
count[tolower(ch) - 'a']++;
}
for (i = 0; i < 26; i++) {
cout << (char)(i + 'a') << ":" << count[i] << endl;
}
return 0;
} | #include <cctype>
#include <iostream>
using namespace std;
int main() {
char ch;
int count[26] = {0};
int i;
while (cin >> ch) {
count[tolower(ch) - 'a']++;
}
for (i = 0; i < 26; i++) {
cout << (char)(i + 'a') << " : " << count[i] << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 221,035 | 221,036 | u622377948 | cpp |
p02417 | #include <cctype>
#include <iostream>
using namespace std;
int main() {
char ch;
int count[26] = {0};
int i;
while (cin >> ch) {
count[tolower(ch) - 'a']++;
}
for (i = 0; i < 26; i++) {
cout << (char)(i + 'a') << ":"
<< " " << count[i] << endl;
}
return 0;
} | #include <cctype>
#include <iostream>
using namespace std;
int main() {
char ch;
int count[26] = {0};
int i;
while (cin >> ch) {
count[tolower(ch) - 'a']++;
}
for (i = 0; i < 26; i++) {
cout << (char)(i + 'a') << " : " << count[i] << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change",
"expression.operation.binary.remove"
] | 221,037 | 221,036 | u622377948 | cpp |
p02417 | #include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
char ch;
int cnt[26] = {};
while (cin >> ch) {
ch = tolower(ch);
if (isalpha(ch)) {
cnt[ch - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
cout << i + 'a' << " : " << cnt[i] << endl;
}
return 0... | #include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
char ch;
int cnt[26] = {};
while (cin >> ch) {
ch = tolower(ch);
if (isalpha(ch)) {
cnt[ch - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
cout << (char)(i + 'a') << " : " << cnt[i] << endl;
}
... | [
"type_conversion.add"
] | 221,044 | 221,045 | u896006100 | cpp |
p02417 | #include <iostream>
#include <string>
using namespace std;
int main() {
int ch, ch2, ch3;
int num;
int counter[26] = {0};
while (cin >> ch) {
ch2 = tolower(ch);
num = ch - 'a';
counter[num]++;
}
for (int i = 0; i < 26; i++) {
ch3 = 'a' + i;
cout << ch3 << " : " << counter[i] << endl;... | #include <iostream>
#include <string>
using namespace std;
int main() {
char ch, ch2, ch3;
int num;
int counter[26] = {0};
while (cin >> ch) {
ch2 = tolower(ch);
num = ch2 - 'a';
counter[num]++;
}
for (int i = 0; i < 26; i++) {
ch3 = 'a' + i;
cout << ch3 << " : " << counter[i] << end... | [
"variable_declaration.type.primitive.change",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 221,048 | 221,049 | u806850146 | cpp |
p02417 | #include <iostream>
#include <string>
using namespace std;
int main() {
int ch, ch2, ch3;
int num;
int counter[26] = {0};
while (cin >> ch) {
ch2 = tolower(ch);
num = ch2 - 'a';
counter[num]++;
}
for (int i = 0; i < 26; i++) {
ch3 = 'a' + i;
cout << ch3 << " : " << counter[i] << endl... | #include <iostream>
#include <string>
using namespace std;
int main() {
char ch, ch2, ch3;
int num;
int counter[26] = {0};
while (cin >> ch) {
ch2 = tolower(ch);
num = ch2 - 'a';
counter[num]++;
}
for (int i = 0; i < 26; i++) {
ch3 = 'a' + i;
cout << ch3 << " : " << counter[i] << end... | [
"variable_declaration.type.primitive.change"
] | 221,050 | 221,049 | u806850146 | cpp |
p02417 | #include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
map<char, int> data;
for (auto c = 'a'; c <= 'z'; c++) {
data[c] = 0;
}
string str;
while (cin >> str) {
for (string::iterator it = str.begin(); str.end() != it; ++it) {
char c = *it;
if (c >= 'A' && c <... | #include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
map<char, int> data;
for (auto c = 'a'; c <= 'z'; c++) {
data[c] = 0;
}
string str;
while (cin >> str) {
for (string::iterator it = str.begin(); str.end() != it; ++it) {
char c = *it;
if (c >= 'A' && c <... | [
"literal.string.change",
"io.output.change"
] | 221,075 | 221,076 | u408216289 | cpp |
p02417 | #include <iostream>
#include <string>
using namespace std;
int main() {
string input;
while (1) {
string tmp;
getline(cin, tmp);
input += tmp;
if (cin.eof()) {
break;
}
}
for (int i = 0; i < input.length(); i++) {
if ('A' <= input[i] && input[i] <= 'Z') {
input[i] = input[i]... | #include <iostream>
#include <string>
using namespace std;
int main() {
string input;
while (1) {
string tmp;
getline(cin, tmp);
input += tmp;
if (cin.eof()) {
break;
}
}
for (int i = 0; i < input.length(); i++) {
if ('A' <= input[i] && input[i] <= 'Z') {
input[i] = input[i]... | [
"literal.string.change",
"io.output.change"
] | 221,077 | 221,078 | u902031527 | cpp |
p02417 | #include <iostream>
using namespace std;
int main() {
string in;
int alp[26] = {}, i;
while (cin >> in) {
for (i = 0; i < in.size(); i++) {
if ('a' <= in[i] && in[i] <= 'z')
alp[in[i] - 'a']++;
if ('A' <= in[i] && in[i] <= 'Z')
alp[in[i] - 'A']++;
}
}
for (i = 0; i < 26; i+... | #include <iostream>
using namespace std;
int main() {
string in;
int alp[26] = {}, i;
while (cin >> in) {
for (i = 0; i < in.size(); i++) {
if ('a' <= in[i] && in[i] <= 'z')
alp[in[i] - 'a']++;
if ('A' <= in[i] && in[i] <= 'Z')
alp[in[i] - 'A']++;
}
}
for (i = 0; i < 26; i+... | [
"type_conversion.add"
] | 221,082 | 221,083 | u174031826 | cpp |
p02417 | #include <algorithm>
#include <iostream>
#include <locale>
#include <string>
#include <vector>
static bool readLines(std::string &str) {
std::string tmp;
if (0x00 == &str) {
return false;
}
while (std::getline(std::cin, tmp)) {
if (0 < tmp.size()) {
transform(str.begin(), str.end(), str.begin()... | #include <algorithm>
#include <iostream>
#include <locale>
#include <string>
#include <vector>
static bool readLines(std::string &str) {
std::string tmp;
if (0x00 == &str) {
return false;
}
while (std::getline(std::cin, tmp)) {
if (0 < tmp.size()) {
transform(tmp.begin(), tmp.end(), tmp.begin()... | [
"identifier.change",
"call.arguments.change"
] | 221,084 | 221,085 | u435300817 | cpp |
p02417 | #include <iostream>
using namespace std;
int main() {
char ch;
int counter[26];
for (int i = 0; i < 26; i++)
counter[i] = 0;
while (cin >> ch) {
int num = ch - 'a';
counter[num]++;
}
for (int i = 0; i < 26; i++) {
ch = i + 'a';
cout << ch << " : " << counter[i] << endl;
}
return 0;
... | #include <iostream>
using namespace std;
int main() {
char ch;
int counter[26];
for (int i = 0; i < 26; i++)
counter[i] = 0;
while (cin >> ch) {
int num = tolower(ch) - 'a';
counter[num]++;
}
for (int i = 0; i < 26; i++) {
ch = i + 'a';
cout << ch << " : " << counter[i] << endl;
}
r... | [
"call.add",
"call.arguments.change"
] | 221,092 | 221,093 | u369468043 | cpp |
p02418 | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_D
#include <cstdio>
#include <deque>
#include <iostream>
#include <string>
using namespace std;
void change(const string &input, const unsigned int &dif, string &output) {
if (dif >= input.size()) {
// cerr << "invalid input" << endl;
}
int s... | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_D
#include <cstdio>
#include <deque>
#include <iostream>
#include <string>
using namespace std;
void change(const string &input, const unsigned int &dif, string &output) {
if (dif >= input.size()) {
// cerr << "invalid input" << endl;
}
int s... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,204 | 221,205 | u681813376 | cpp |
p02418 | #include <bits/stdc++.h>
#define FOR(i, n) for (int i = 0; i < (int)(n); i++)
#define FORR(i, m, n) for (int i = (int)(m); i < (int)(n); i++)
#define ZERO(a) memset(a, 0, sizeof(a))
using namespace std;
typedef signed long long ll;
void solve() {
string s, p;
cin >> s >> p;
s = s + s;
FOR(i, s.length() - p.len... | #include <bits/stdc++.h>
#define FOR(i, n) for (int i = 0; i < (int)(n); i++)
#define FORR(i, m, n) for (int i = (int)(m); i < (int)(n); i++)
#define ZERO(a) memset(a, 0, sizeof(a))
using namespace std;
typedef signed long long ll;
void solve() {
string s, p;
cin >> s >> p;
s = s + s;
FOR(i, s.length() - p.len... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,206 | 221,207 | u211138527 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a;
string p, s;
cin >> p >> s;
p += p;
a = p.find(s);
if (a == 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a;
string p, s;
cin >> p >> s;
p += p;
a = p.find(s);
if (a == -1)
cout << "No" << endl;
else
cout << "Yes" << endl;
} | [
"control_flow.branch.if.condition.change",
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 221,210 | 221,211 | u000017762 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
cout << ((s.find(p) != string::npos) ? "Yes" : "No") << "\n";
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s += s;
cout << ((s.find(p) != string::npos) ? "Yes" : "No") << "\n";
} | [
"assignment.add"
] | 221,218 | 221,219 | u343180797 | cpp |
p02418 | #include <cstdio>
#include <cstring>
int main() {
char s[201], t[101], p[101];
scanf("%s %s", s, p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, p) == NULL)
printf(" no\n");
else
printf("Yes\n");
return 0;
} | #include <cstdio>
#include <cstring>
int main() {
char s[201], t[101], p[101];
scanf("%s %s", s, p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, p) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 221,220 | 221,221 | u682843183 | cpp |
p02418 | #include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main(void) {
string a, b;
cin >> a >> b;
a += a;
if (a.find("b") != string::npos) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main(void) {
string a, b;
cin >> a >> b;
a += a;
if (a.find(b) != string::npos) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 221,228 | 221,229 | u757870987 | cpp |
p02418 | #include <bits/stdc++.h>
using namespace std;
signed main() {
string a, b;
cin >> a >> b;
a += a;
bool s = false;
for (int c = 0; c < a.length() / 2 + 1; c++) {
for (int d = 0; d < b.length(); d++) {
if (a[d] != b[c + d])
break;
if (b.length() - 1 == d)
s = true;
}
}
i... | #include <bits/stdc++.h>
using namespace std;
signed main() {
string a, b;
cin >> a >> b;
a += a;
bool s = false;
for (int c = 0; c < a.length() / 2 + 5; c++) {
for (int d = 0; d < b.length(); d++) {
if (a[c + d] != b[d])
break;
if (b.length() - 1 == d)
s = true;
}
}
i... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 221,241 | 221,242 | u765159858 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s, p;
cin >> s >> p;
s = s + s.substr(0, p.size());
if (s.find(p))
cout << "Yes\n";
else
cout << "No\n";
} | #include <iostream>
#include <string>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s, p;
cin >> s >> p;
s = s + s.substr(0, p.size());
if (s.find(p) != string::npos)
cout << "Yes\n";
else
cout << "No\n";
} | [
"control_flow.branch.if.condition.change"
] | 221,243 | 221,244 | u557138543 | cpp |
p02418 | #include <iostream>
using namespace std;
int main() {
char s[201];
char p[101];
cin.getline(s, 101);
cin.getline(p, 101);
int ns = 0, np = 0;
for (int i = 0; s[i]; i++)
ns++;
for (int i = 0; p[i]; i++)
np++;
for (int i = ns; i < 2 * ns; i++)
s[i] = s[i - ns];
s[2 * ns] = '\0';
int i, j;... | #include <iostream>
using namespace std;
int main() {
char s[201];
char p[101];
cin.getline(s, 101);
cin.getline(p, 101);
int ns = 0, np = 0;
for (int i = 0; s[i]; i++)
ns++;
for (int i = 0; p[i]; i++)
np++;
for (int i = ns; i < 2 * ns; i++)
s[i] = s[i - ns];
s[2 * ns] = '\0';
int i, j;... | [
"control_flow.branch.if.condition.change"
] | 221,245 | 221,246 | u835844653 | cpp |
p02418 | #include <stdio.h>
#include <string.h>
int main() {
char str_s[128], str_p[128];
int i, j, c, n, m;
scanf("%s", str_s);
scanf("%s", str_p);
n = strlen(str_s);
m = strlen(str_p);
for (i = 0; i < n; i++) {
c = 0;
for (j = 0; j < m; j++) {
if (i + j < n - 2) {
if (str_s[i + j] != str_p... | #include <stdio.h>
#include <string.h>
int main() {
char str_s[128], str_p[128];
int i, j, c, n, m;
scanf("%s", str_s);
scanf("%s", str_p);
n = strlen(str_s);
m = strlen(str_p);
for (i = 0; i < n; i++) {
c = 0;
for (j = 0; j < m; j++) {
if (i + j <= n - 1) {
if (str_s[i + j] != str_... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 221,249 | 221,248 | u483936476 | cpp |
p02418 | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef vector<vector<int>> vii;
typedef vector<string> vs;
#define ifr(i, n) for ((i) = 0; (i) < (n); i++)
#define dfr(i, n) for ((i) = (n); (i) >= 0; i--)
int main() {
string str;
cin >> str;
str += str;
string search;
cin >> search;
fo... | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef vector<vector<int>> vii;
typedef vector<string> vs;
#define ifr(i, n) for ((i) = 0; (i) < (n); i++)
#define dfr(i, n) for ((i) = (n); (i) >= 0; i--)
int main() {
string str;
cin >> str;
str += str;
string search;
cin >> search;
fo... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change",
"misc.off_by_one"
] | 221,250 | 221,251 | u017545322 | cpp |
p02418 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string ch, x;
int a = 0;
cin >> ch;
cin >> x;
for (int i = 0; i < x.size(); i++) {
if (ch[i] == x[0]) {
for (int j = 0; j < x.size(); j++) {
int ss = i + j;
if (ss >= ch.size... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string ch, x;
int a = 0;
cin >> ch;
cin >> x;
for (int i = 0; i < ch.size() && a == 0; i++) {
if (ch[i] == x[0]) {
for (int j = 0; j < x.size(); j++) {
int ss = i + j;
if (ss... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 221,252 | 221,253 | u096656118 | cpp |
p02418 | #include <iostream>
using namespace std;
#include <stdio.h>
int main() {
char p[100], s[100];
int pl, sl, i, j, r, sum;
r = 0;
for (sl = 0; sl < 100; sl++) {
scanf("%c", &s[sl]);
if (s[sl] == '\n')
break;
}
for (pl = 0; pl < 100; pl++) {
scanf("%c", &p[pl]);
if (p[pl] == '\n')
b... | #include <iostream>
using namespace std;
#include <stdio.h>
int main() {
char p[101], s[101];
int pl, sl, i, j, r, sum;
r = 0;
for (sl = 0; sl < 101; sl++) {
scanf("%c", &s[sl]);
if (s[sl] == '\n')
break;
}
for (pl = 0; pl < 101; pl++) {
scanf("%c", &p[pl]);
if (p[pl] == '\n')
b... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change",
"misc.off_by_one"
] | 221,261 | 221,262 | u559945002 | cpp |
p02418 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string a, b;
cin >> a;
cin >> b;
a += a;
if (a.find(b)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string a, b;
cin >> a;
cin >> b;
a += a;
if (a.find(b) != string::npos) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [
"control_flow.branch.if.condition.change"
] | 221,272 | 221,273 | u220303428 | cpp |
p02418 | #include <cstdio>
#include <cstring>
int main(void) {
char a[210];
int b;
char c[110];
int d;
int z;
for (int i = 0; i < 210; i++)
a[i] = 0;
for (int i = 0; i < 110; i++)
c[i] = 0;
scanf("%s", a);
scanf("%s", c);
b = strlen(a);
d = strlen(c);
for (int i = 0; i < b; i++)
a[b + i] = a[... | #include <cstdio>
#include <cstring>
int main(void) {
char a[210];
int b;
char c[110];
int d;
int z;
for (int i = 0; i < 210; i++)
a[i] = 0;
for (int i = 0; i < 110; i++)
c[i] = 0;
scanf("%s", a);
scanf("%s", c);
b = strlen(a);
d = strlen(c);
for (int i = 0; i < b; i++)
a[b + i] = a[... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 221,274 | 221,275 | u263256550 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str_s, str_p;
int i, j;
bool able = false;
getline(cin, str_s);
getline(cin, str_p);
for (i = 0; i < (int)str_p.length() - 1; ++i) {
str_s += str_s[i];
}
for (i = 0; i < (int)str_s.length() - (int)str_p.length(); ++i) {
... | //============================================================================
// Name : ITP_1_8_D.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include ... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 221,280 | 221,281 | u263859629 | cpp |
p02418 | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char p[202], s[101], search[101];
scanf("%s %s", p, s);
strcpy(search, p);
strcat(p, search);
if (strstr(p, search))
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char p[202], s[101], ch[101];
scanf("%s %s", p, s);
strcpy(ch, p);
strcat(p, ch);
if (strstr(p, s))
printf("Yes\n");
else
printf("No\n");
return 0;
} | [
"identifier.change",
"variable_declaration.array_dimensions.change",
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 221,293 | 221,294 | u469240990 | cpp |
p02418 | #include <algorithm>
#include <cstdlib>
#include <ctype.h>
#include <functional>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s, p;
cin >> s;
cin >> p;
s += s;
if (s.find(s) == string::npos)
cout << "No" << endl... | #include <algorithm>
#include <cstdlib>
#include <ctype.h>
#include <functional>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s, p;
cin >> s;
cin >> p;
s += s;
if (s.find(p) == string::npos)
cout << "No" << endl... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 221,295 | 221,296 | u464296040 | cpp |
p02418 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
getline(cin, a);
cin >> b;
a = a + a;
if (a.find(b) != 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
getline(cin, a);
cin >> b;
a = a + a;
if (a.find(b) == -1) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 221,302 | 221,303 | u949389125 | cpp |
p02418 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
bool find(string s, string p) {
for (int i = 0; i < s.size(); ++i) {
for (int j = 0; j < p.size(); ++j) {
if (i + j >= s.size() && s[i + j] != p[j])
break;
if (j == p.size() - 1)
return true;
}
}
ret... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
bool find(string s, string p) {
for (int i = 0; i < s.size(); ++i) {
for (int j = 0; j < p.size(); ++j) {
if (i + j >= s.size() || s[i + j] != p[j])
break;
if (j == p.size() - 1)
return true;
}
}
ret... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 221,312 | 221,313 | u858711833 | cpp |
p02418 | #include <algorithm> //max,min
#include <cctype> //isalpha,tolower
#include <cstdio> //scanf,printf
#include <cstring> //strlen,strcat
#include <iostream>
#include <string> //string
using namespace std;
int main() {
char s[205], q[105], t[101];
cin >> s >> q;
strcpy(t, s);
strcat(s, t);
if (strstr(s,... | #include <algorithm> //max,min
#include <cctype> //isalpha,tolower
#include <cstdio> //scanf,printf
#include <cstring> //strlen,strcat
#include <iostream>
#include <string> //string
using namespace std;
int main() {
char s[205], q[105], t[101];
cin >> s >> q;
strcpy(t, s);
strcat(s, t);
if (strstr(s,... | [
"literal.string.change",
"io.output.change"
] | 221,314 | 221,315 | u001068672 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main(int argc, char **argv) {
string str, str2;
cin >> str;
str += str;
cin >> str2;
if (str.find(str2))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main(int argc, char **argv) {
string str, str2;
cin >> str;
str += str;
cin >> str2;
if (str.find(str2) != string::npos)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 221,318 | 221,319 | u531969551 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[]) {
string s, p;
cin >> s >> p;
s.append(s);
if (s.find(p) != string::npos)
cout << "Yes" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[]) {
string s, p;
cin >> s >> p;
s.append(s);
if (s.find(p) != string::npos)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 221,320 | 221,321 | u574977945 | cpp |
p02418 | #include <stdio.h>
#include <string.h>
int main() {
char s[100], p[100], r[200];
scanf("%s", s);
scanf("%s", p);
strcpy(r, s);
strcpy(r, s);
if (strstr(r, p)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
#include <string.h>
int main() {
char s[100], p[100], r[200];
scanf("%s", s);
scanf("%s", p);
strcpy(r, s);
strcat(r, s);
if (strstr(r, p)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [
"identifier.change",
"call.function.change"
] | 221,322 | 221,323 | u253376705 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
string p;
cin >> s >> p;
string s2 = s + s;
cout << (s2.find(p) == string::npos ? "NO" : "YES") << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
string p;
cin >> s >> p;
string s2 = s + s;
cout << (s2.find(p) == string::npos ? "No" : "Yes") << endl;
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,324 | 221,325 | u708145140 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
string p;
cin >> s >> p;
string s2 = s + s;
cout << (s2.find(p) == string::npos ? "NO" : "YES");
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
string p;
cin >> s >> p;
string s2 = s + s;
cout << (s2.find(p) == string::npos ? "No" : "Yes") << endl;
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change",
"io.output.newline.add"
] | 221,326 | 221,325 | u708145140 | cpp |
p02418 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
if (s.find(p) != 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
if (s.find(p) != -1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 221,328 | 221,329 | u578258337 | cpp |
p02418 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
string npos;
if (s.find("b") != -1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
if (s.find(p) != -1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"variable_declaration.remove",
"control_flow.branch.if.condition.change"
] | 221,330 | 221,329 | u578258337 | cpp |
p02418 | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
void StrCat(char *p, int num) {
for (int i = 0; i < num; i++) {
*(p + num) = *p;
++p;
}
}
int main() {
char s[200] = {};
char p[100];
int count[100] = {0};
cin >> s >> p;
StrCat(s, strlen(s));
if (strstr(s, p) != NULL... | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
void StrCat(char *p, int num) {
for (int i = 0; i < num; i++) {
*(p + num) = *p;
++p;
}
}
int main() {
char s[200] = {};
char p[100];
int count[100] = {0};
cin >> s >> p;
StrCat(s, strlen(s));
if (strstr(s, p) != NULL... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,331 | 221,332 | u594988858 | cpp |
p02418 | #include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
string p, s_tmp, s;
int i, sum, count[27];
getline(cin, s_tmp);
s = s_tmp + s_tmp;
getline(cin, p);
if (s.find(p) != string::npos) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;... | #include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
string p, s_tmp, s;
int i, sum, count[27];
getline(cin, s_tmp);
s = s_tmp + s_tmp;
getline(cin, p);
if (s.find(p) != string::npos) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,344 | 221,345 | u538036761 | cpp |
p02418 | #include <bits/stdc++.h>
using namespace std;
int main() {
string p, s;
cin >> p >> s;
p = p + p;
bool flag = false;
for (int i = 0; i < (int)p.size() - (int)s.size() + 1; i++) {
string t = p.substr(i, s.size());
if (t == s) {
flag = true;
break;
}
}
if (flag) {
cout <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
string p, s;
cin >> p >> s;
p = p + p;
bool flag = false;
for (int i = 0; i < (int)p.size() - (int)s.size() + 1; i++) {
string t = p.substr(i, s.size());
if (t == s) {
flag = true;
break;
}
}
if (flag) {
cout <<... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,350 | 221,351 | u326536767 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
a = a + b;
if (a.find(b) != -1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
a = a + a;
if (a.find(b) != -1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 221,357 | 221,358 | u136295375 | cpp |
p02418 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
/*cout<<s<<endl;*/
bool flag = false;
for (int i = 0; i < (int)s.size() - (int)p.size() + 1; i++) {
string t = p.substr(i, p.size());
if (t == p) {
flag = true;
break;
}
}
if (flag)... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
bool flag = false;
for (int i = 0; i < (int)s.size() - (int)p.size() + 1; i++) {
string t = s.substr(i, p.size());
if (t == p) {
flag = true;
break;
}
}
if (flag) {
cout << "Yes" ... | [
"identifier.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,362 | 221,363 | u661973509 | cpp |
p02418 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
/*cout<<s<<endl;*/
bool flag = false;
for (int i = 0; i < (int)s.size() - (int)p.size() + 1; i++) {
string t = s.substr(i, p.size());
if (t == p) {
flag = true;
break;
}
}
if (flag)... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
bool flag = false;
for (int i = 0; i < (int)s.size() - (int)p.size() + 1; i++) {
string t = s.substr(i, p.size());
if (t == p) {
flag = true;
break;
}
}
if (flag) {
cout << "Yes" ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,364 | 221,363 | u661973509 | cpp |
p02418 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
bool flag = false;
for (int i = 0; i < (int)s.size() - (int)p.size() + 1; i++) {
string t = s.substr(i, p.size());
if (t == p) {
flag = true;
break;
}
}
if (flag) {
cout << "yes" ... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
bool flag = false;
for (int i = 0; i < (int)s.size() - (int)p.size() + 1; i++) {
string t = s.substr(i, p.size());
if (t == p) {
flag = true;
break;
}
}
if (flag) {
cout << "Yes" ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,365 | 221,363 | u661973509 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string p, s;
cin >> p >> s;
bool f;
p = p + p;
for (int i = 0; i < p.size() - s.size(); i++) {
string r = p.substr(i, s.size());
if (r == s) {
f = true;
break;
}
}
if (f)
cout << "Yes" << endl;
else
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string p, s;
cin >> p >> s;
bool f = false;
p = p + p;
for (int i = 0; i < p.size() - s.size() + 1; i++) {
string r = p.substr(i, s.size());
if (r == s) {
f = true;
break;
}
}
if (f)
cout << "Yes" << endl;... | [
"variable_declaration.value.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 221,370 | 221,367 | u826160136 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
int i, count = 0;
string s, p;
cin >> s >> p;
s = s + s;
for (i = 0; i < s.size() - p.size(); i++)
if (p == s.substr(i, i + p.size())) {
cout << "Yes\n";
count++;
}
if (count == 0)
cout << "No\n";
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int i, count = 0;
string s, p;
cin >> s >> p;
s = s + s;
for (i = 0; i < s.size() - p.size(); i++)
if (p == s.substr(i, p.size())) {
cout << "Yes\n";
count++;
break;
}
if (count == 0)
cout << "No\n";
} | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 221,372 | 221,373 | u225502267 | cpp |
p02418 | #include <iostream>
#include <string>
int main(int argc, char **argv) {
std::string s;
std::getline(std::cin, s);
std::string p;
std::getline(std::cin, p);
for (int si = 0; si < (int)s.size(); ++si) {
if (s[si] == p[0]) {
bool match = true;
for (int pi = 0; pi < (int)p.size() && match; ++pi... | #include <iostream>
#include <string>
int main(int argc, char **argv) {
std::string s;
std::getline(std::cin, s);
std::string p;
std::getline(std::cin, p);
for (int si = 0; si < (int)s.size(); ++si) {
if (s[si] == p[0]) {
bool match = true;
for (int pi = 0; pi < (int)p.size() && match; ++pi... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 221,408 | 221,409 | u126627194 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
string n = s;
n += s;
if (n.find(p))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
string n = s;
n += s;
if (n.find(p) != string::npos)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 221,414 | 221,415 | u404591357 | cpp |
p02418 | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
string t;
cin >> t;
string ss = s + s;
for (int i = 0; s.size() > i; i++) {
bool ok = true;
for (int j = 0; t.size() > j; j++) {
if (t[j] != ss[i + j]) {
ok = false;
break;
}
}
if (ok) {
... | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
string t;
cin >> t;
string ss = s + s;
for (int i = 0; s.size() > i; i++) {
bool ok = true;
for (int j = 0; t.size() > j; j++) {
if (t[j] != ss[i + j]) {
ok = false;
break;
}
}
if (ok) {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,420 | 221,421 | u080784442 | cpp |
p02418 | #include <cctype>
#include <cstring>
#include <stdio.h>
int main() {
char ring1[101], ring2[101], ring3[201];
scanf("%s %s", ring1, ring2);
strcpy(ring3, ring1);
strcpy(ring3, ring1);
if (strstr(ring3, ring2) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| #include <cstring>
#include <stdio.h>
int main() {
char ring1[101], ring2[101], ring3[201];
scanf("%s %s", ring1, ring2);
strcpy(ring3, ring1);
strcat(ring3, ring1);
if (strstr(ring3, ring2) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| [
"identifier.change",
"call.function.change"
] | 221,426 | 221,427 | u174469610 | cpp |
p02418 | #include <cstring>
#include <stdio.h>
int main() {
char ring1[101], ring2[101], ring3[201];
scanf("%s %s", ring3, ring2);
strcpy(ring1, ring3);
strcpy(ring3, ring1);
if (strstr(ring3, ring2) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| #include <cstring>
#include <stdio.h>
int main() {
char ring1[101], ring2[101], ring3[201];
scanf("%s %s", ring1, ring2);
strcpy(ring3, ring1);
strcat(ring3, ring1);
if (strstr(ring3, ring2) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| [
"call.remove",
"identifier.change",
"call.arguments.change",
"call.add"
] | 221,428 | 221,427 | u174469610 | cpp |
p02418 | #include <cstdio>
#include <cstring>
int main() {
char s[201], p[101], s1[101];
scanf("%s %s", s, p);
strcpy(s1, s);
strcat(s, s1);
if (strstr(s, p) == NULL)
printf("No\n");
else
printf;
return 0;
}
| #include <cstdio>
#include <cstring>
int main() {
char s[201], p[101], s1[101];
scanf("%s %s", s, p);
strcpy(s1, s);
strcat(s, s1);
if (strstr(s, p) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| [
"call.arguments.add"
] | 221,431 | 221,432 | u306715188 | cpp |
p02418 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s;
cin >> p;
s = s + s;
if (s.find(p)) {
printf("Yes\n");
} else {
printf("No\n");
}
}
| #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
if (s.find(p) != -1) {
printf("Yes\n");
} else {
printf("No\n");
}
}
| [
"control_flow.branch.if.condition.change"
] | 221,444 | 221,445 | u252390572 | cpp |
p02418 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
if (s.find(p)) {
printf("Yes\n");
} else {
printf("No\n");
}
}
| #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s >> p;
s = s + s;
if (s.find(p) != -1) {
printf("Yes\n");
} else {
printf("No\n");
}
}
| [
"control_flow.branch.if.condition.change"
] | 221,446 | 221,445 | u252390572 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
string s, p;
cin >> s >> p;
s = s + s;
a = s.size() * 2 - 1;
b = p.size();
for (int i = 0; i < a; i++) {
for (int n = 1; n < a; n++) {
if (p == s.substr(i, n)) {
cout << "Yes" << endl;
return 0;
... | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
string s, p;
cin >> s >> p;
s = s + s;
a = s.size() * 2 - 1;
b = s.size();
for (int i = 0; i < b; i++) {
for (int n = 1; n < a; n++) {
if (p == s.substr(i, n)) {
cout << "Yes" << endl;
return 0;
... | [
"assignment.value.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 221,450 | 221,451 | u018364665 | cpp |
p02418 | #include <iostream>
using namespace std;
#include <cstring>
#include <stdio.h>
int main() {
char str1[201], str2[101];
scanf("%s", str1);
strcpy(str2, str1);
strcat(str1, str2);
char str3[101];
scanf("%s", str3);
if (strstr(str1, str2) == NULL)
printf("No\n");
else
printf("Yes\n");
return ... | #include <iostream>
using namespace std;
#include <cstring>
#include <stdio.h>
int main() {
char str1[201], str2[101];
scanf("%s", str1);
strcpy(str2, str1);
strcat(str1, str2);
char str3[101];
scanf("%s", str3);
if (strstr(str1, str3) == NULL)
printf("No\n");
else
printf("Yes\n");
return ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 221,452 | 221,453 | u605366935 | cpp |
p02418 | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char s[201], t[101], p[101];
scanf("%c %c", s, p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, t) == NULL)
printf("No\n");
else
printf("Yes\n");
}
| #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char s[201], t[101], p[101];
scanf("%s %s", s, p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, p) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 221,454 | 221,455 | u606517027 | cpp |
p02418 | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char s[201], t[101], p[101];
scanf("%s %s", s, p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, t) == NULL)
printf("No\n");
else
printf("Yes\n");
}
| #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char s[201], t[101], p[101];
scanf("%s %s", s, p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, p) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 221,456 | 221,455 | u606517027 | cpp |
p02418 | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char s[201], t[101], p[101];
scanf("%s %s", s, p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, t) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char s[201], t[101], p[101];
scanf("%s %s", s, p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, p) == NULL)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 221,457 | 221,455 | u606517027 | cpp |
p02418 | #include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char s[200];
char p[100];
char c[100];
scanf("%S %s", s, p);
strcpy(c, s);
strcat(s, c);
if (strstr(s, p) == NULL) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| #include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char s[200];
char p[100];
char c[100];
scanf("%s %s", s, p);
strcpy(c, s);
strcat(s, c);
if (strstr(s, p) == NULL) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 221,461 | 221,462 | u354673322 | cpp |
p02418 | #include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
s += s;
cout << (s.find(t) ? "Yes" : "No") << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
s += s;
cout << (s.find(t) != string::npos ? "Yes" : "No") << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 221,463 | 221,464 | u228816757 | cpp |
p02418 | /*
* Ring.cpp
*
* Created on: 2014/07/27
* Author: WanWan1985
*/
#include <iostream>
#include <string>
using namespace std;
int main(void) {
string strS;
getline(cin, strS);
strS += strS;
string strP;
getline(cin, strP);
if (strS.find(strP) == string::npos) {
cout << "NO" << endl;
} els... | /*
* Ring.cpp
*
* Created on: 2014/07/27
* Author: WanWan1985
*/
#include <iostream>
#include <string>
using namespace std;
int main(void) {
string strS;
getline(cin, strS);
strS += strS;
string strP;
getline(cin, strP);
if (strS.find(strP) == string::npos) {
cout << "No" << endl;
} els... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,465 | 221,466 | u964003950 | cpp |
p02418 | #include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
char c[201], c2[101], c3[101];
cin >> c >> c2;
strcpy(c2, c);
strcat(c, c2);
if (strstr(c, c3) == NULL)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
char c[201], c2[101], c3[101];
cin >> c >> c3;
strcpy(c2, c);
strcat(c, c2);
if (strstr(c, c3) == NULL)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | [
"identifier.change",
"expression.operation.binary.change"
] | 221,469 | 221,470 | u765197056 | cpp |
p02418 | #include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
// s=long p=short
string s, p;
int answer = 0;
cin >> s;
cin >> p;
int lenp, lens;
lenp = p.size();
lens = s.size();
// check if p[0]~p[lenp-1] = s[i]~s[i+lenp-1] or s[i]~s[i+lenp-lens-1]
for (int i = 0; i < le... | #include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
// s=long p=short
string s, p;
int answer = 0;
cin >> s;
cin >> p;
int lenp, lens;
lenp = p.size();
lens = s.size();
// check if p[0]~p[lenp-1] = s[i]~s[i+lenp-1] or s[i]~s[i+lenp-lens-1]
for (int i = 0; i < le... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 221,471 | 221,472 | u876038795 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
void init(string *s, string *p, int *s_len, int *p_len, string *buf) {
cin >> *s;
cin >> *p;
*s_len = s->length();
*p_len = p->length();
buf->erase();
}
int main() {
string s;
string p;
string buf;
int s_len;
int p_len;
int buf_len = 0;... | #include <iostream>
#include <string>
using namespace std;
void init(string *s, string *p, int *s_len, int *p_len, string *buf) {
cin >> *s;
cin >> *p;
*s_len = s->length();
*p_len = p->length();
buf->erase();
}
int main() {
string s;
string p;
string buf;
int s_len;
int p_len;
int buf_len = 0;... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 221,476 | 221,477 | u552648582 | cpp |
p02418 | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define All(X) X.begin(), X.end()
#define FOR... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define All(X) X.begin(), X.end()
#define FOR... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,478 | 221,479 | u220216937 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s;
cin >> p;
string t = s + s.substr(0, p.size());
unsigned int loc = t.find(p, 0);
if (loc != string::npos)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
cin >> s;
cin >> p;
string t = s + s.substr(0, p.size());
// cout << t << endl;
string::size_type loc = t.find(p, 0);
if (loc != string::npos)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [] | 221,482 | 221,483 | u774532206 | cpp |
p02418 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
string str, key;
cin >> str;
str += str;
bool ans = false;
for (int i = 0; i < str.size(); ++i) {
bool f = true;
for (int j = 0; j < key.size(); ++j... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
string str, key;
cin >> str >> key;
str += str;
bool ans = false;
for (int i = 0; i < str.size(); ++i) {
bool f = true;
for (int j = 0; j < key.size... | [
"expression.operation.binary.add"
] | 221,484 | 221,485 | u586305981 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
getline(cin, s);
getline(cin, p);
s = s + s;
if (s.find(p) == string::npos) {
cout << "no" << endl;
} else {
cout << "yes" << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
getline(cin, s);
getline(cin, p);
s = s + s;
if (s.find(p) == string::npos) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 221,486 | 221,487 | u067950468 | cpp |
p02418 | #include <cstdio>
#include <cstring>
#define LINE_NUM 1
int main() {
char ring[101], p[101], line[LINE_NUM * 101];
scanf("%s", ring);
scanf("%s", p);
int ring_length, p_length;
ring_length = strlen(ring);
p_length = strlen(p);
for (int i = 0; i < LINE_NUM; i++) {
strcpy((line + i * (ring_length)), ... | #include <cstdio>
#include <cstring>
#define LINE_NUM 2
int main() {
char ring[101], p[101], line[LINE_NUM * 101];
scanf("%s", ring);
scanf("%s", p);
int ring_length, p_length;
ring_length = strlen(ring);
p_length = strlen(p);
for (int i = 0; i < LINE_NUM; i++) {
strcpy((line + i * (ring_length)), ... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 221,498 | 221,499 | u884445603 | cpp |
p02418 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
string result = "No";
cin >> s;
cin >> p;
char c[200] = {};
for (int i = 0; i < sizeof(c) / sizeof(c[0]); i++) {
c[i] = s[i % s.length()];
}
for (int i = 0; i < sizeof(c) / sizeof(c[0]); i++) {
int count ... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, p;
string result = "No";
cin >> s;
cin >> p;
char c[200] = {};
for (int i = 0; i < sizeof(c) / sizeof(c[0]); i++) {
c[i] = s[i % s.length()];
}
for (int i = 0; i < sizeof(c) / sizeof(c[0]); i++) {
int count ... | [
"identifier.change",
"control_flow.loop.condition.change",
"control_flow.branch.if.condition.change"
] | 221,500 | 221,501 | u208108220 | cpp |
p02419 | #include <iostream>
using namespace std;
int main() {
string w, t;
int a = 0;
cin >> w;
while (cin >> t) {
if (t == "END_OF_TEXT")
break;
for (int i = 0; i < t.size(); i++) {
if (t[i] <= 'A' && t[i] >= 'Z')
t[i] += 32;
}
if (t == w)
a++;
}
cout << a << endl;
}
| #include <iostream>
using namespace std;
int main() {
string w, t;
int a = 0;
cin >> w;
while (cin >> t) {
if (t == "END_OF_TEXT")
break;
for (int i = 0; i < t.size(); i++) {
if (t[i] >= 'A' && t[i] <= 'Z')
t[i] += 32;
}
if (t == w)
a++;
}
cout << a << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 222,354 | 222,355 | u610263790 | cpp |
p02419 | #include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
string W;
cin >> W;
int ans = 0;
while (1) {
string T;
cin >> T;
if (T == "END_OF_TEXT") {
break;
}
for (int i = 0; i < T.size(); i++) {
tolower(T[i]);
}
if (W == T) {
ans... | #include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
string W;
cin >> W;
int ans = 0;
while (1) {
string T;
cin >> T;
if (T == "END_OF_TEXT") {
break;
}
for (int i = 0; i < T.size(); i++) {
T[i] = tolower(T[i]);
}
if (W == T) {
... | [
"assignment.change"
] | 222,359 | 222,360 | u173380514 | cpp |
p02419 | #include <bits/stdc++.h>
using namespace std;
int main() {
string w, t;
int counter = 0;
cin >> w;
while (cin >> t) {
if (t == "END_OF_FILE")
break;
if ((int)w.size() == (int)t.size()) {
for (int i = 0; i < (int)w.size(); ++i) {
if (isupper(w[i]))
w[i] = tolower(w[i]);
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string w, t;
int counter = 0;
cin >> w;
while (cin >> t) {
if (t == "END_OF_TEXT")
break;
if ((int)w.size() == (int)t.size()) {
for (int i = 0; i < (int)w.size(); ++i) {
if (isupper(w[i]))
w[i] = tolower(w[i]);
... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 222,365 | 222,366 | u414147590 | cpp |
p02419 | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
using namespace std;
int main() {
char w[11], t[1001], *p;
int count = 0;
scanf("%s\n", w);
while (1) {
scanf("%s\n", t);
puts(t);
if (strcmp(t, "END_OF_TEXT") == 0... | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
using namespace std;
int main() {
char w[11], t[1001], *p;
int count = 0;
scanf("%s\n", w);
while (1) {
scanf("%s\n", t);
if (strcmp(t, "END_OF_TEXT") == 0) {
pri... | [
"call.remove",
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 222,367 | 222,368 | u756895802 | cpp |
p02419 | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
using namespace std;
int main() {
char w[11], t[1001], *p;
int count = 0;
scanf("%s\n", w);
while (1) {
scanf("%s\n", t);
puts(t);
if (strcmp(t, "END_OF_TEXT") == 0... | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
using namespace std;
int main() {
char w[11], t[1001], *p;
int count = 0;
scanf("%s\n", w);
while (1) {
scanf("%s\n", t);
if (strcmp(t, "END_OF_TEXT") == 0) {
pri... | [
"call.remove"
] | 222,369 | 222,368 | u756895802 | cpp |
p02419 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main() {
char t[1000];
char w[10];
int i;
int count;
count = 0;
cin >> w;
while (cin >> t) {
if (t == "END_OF_TEXT") {
break;
}
i = 0;
while (t[i]) {
t[i]... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main() {
char t[1000];
char w[10];
int i;
int count;
count = 0;
cin >> w;
while (cin >> t) {
if (t == "END_OF_TEXT") {
break;
}
i = 0;
while (t[i]) {
t[i]... | [
"control_flow.branch.if.condition.change",
"call.add",
"expression.operation.binary.remove"
] | 222,391 | 222,392 | u846580842 | cpp |
p02419 |
#include <iostream>
int main(int argc, const char *argv[]) {
std::string w, ch;
int counter = 0;
std::cin >> w;
while (std::cin >> ch) {
if (ch == "END_OF_TEXT")
break;
std::string checkStr = "";
for (auto c : ch) {
bool flag = false;
for (char alf = 'A'; alf <= 'Z'; alf++)... |
#include <iostream>
int main(int argc, const char *argv[]) {
std::string w, ch;
int counter = 0;
std::cin >> w;
while (std::cin >> ch) {
if (ch == "END_OF_TEXT")
break;
std::string checkStr = "";
for (auto c : ch) {
bool flag = false;
for (char alf = 'A'; alf <= 'Z'; alf++)... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 222,394 | 222,395 | u932203900 | cpp |
p02419 | #include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
int cnt = 0;
string w, s;
cin >> w;
while (cin >> s, s != "END_OF_TEXT") {
string s1, w1;
for (int i = 0; i < s.size(); ++i)
s1 += tolower(s[i]);
for (int i = 0; i < w.size(); ++i)
w1 += tolower(w[i]);
if ... | #include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
int cnt = 0;
string w, s;
cin >> w;
while (cin >> s, s != "END_OF_TEXT") {
string s1, w1;
for (int i = 0; i < s.size(); ++i)
s1 += tolower(s[i]);
for (int i = 0; i < w.size(); ++i)
w1 += tolower(w[i]);
if ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 222,400 | 222,401 | u256940798 | cpp |
p02419 | #include <iostream>
#include <string>
using namespace std;
int main() {
string se, moto;
int a = 0, i = 0;
cin >> moto;
for (i = 0; i < moto.length(); ++i) {
if (isupper(moto[i])) {
moto[i] = tolower(moto[i]);
}
}
while (1) {
cin >> se;
int j = 0;
if (se == "END_OF_TEXT") {
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string se, moto;
int a = 0, i = 0;
cin >> moto;
for (i = 0; i < moto.size(); ++i) {
if (isupper(moto[i])) {
moto[i] = tolower(moto[i]);
}
}
while (1) {
cin >> se;
int j = 0;
if (se == "END_OF_TEXT") {
b... | [
"call.function.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.loop.condition.change"
] | 222,402 | 222,403 | u835414158 | cpp |
p02419 | #include <iostream>
#include <string>
using namespace std;
int main() {
string se, moto;
int a = 0, i = 0;
cin >> moto;
for (i = 0; i < moto.size(); ++i) {
if (isupper(moto[i])) {
moto[i] = tolower(moto[i]);
}
}
while (1) {
cin >> se;
int j = 0;
if (se == "END_OF_TEXT") {
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string se, moto;
int a = 0, i = 0;
cin >> moto;
for (i = 0; i < moto.size(); ++i) {
if (isupper(moto[i])) {
moto[i] = tolower(moto[i]);
}
}
while (1) {
cin >> se;
int j = 0;
if (se == "END_OF_TEXT") {
b... | [] | 222,404 | 222,403 | u835414158 | cpp |
p02419 | #include <iostream>
#include <string>
using namespace std;
int main() {
string se, moto;
int a = 0, i = 0;
cin >> moto;
for (i = 0; i < moto.size(); ++i) {
if (isupper(moto[i])) {
moto[i] = tolower(moto[i]);
}
}
while (1) {
cin >> se;
int j = 0;
if (se == "END_OF_TEXT")
br... | #include <iostream>
#include <string>
using namespace std;
int main() {
string se, moto;
int a = 0, i = 0;
cin >> moto;
for (i = 0; i < moto.size(); ++i) {
if (isupper(moto[i])) {
moto[i] = tolower(moto[i]);
}
}
while (1) {
cin >> se;
int j = 0;
if (se == "END_OF_TEXT") {
b... | [] | 222,405 | 222,403 | u835414158 | cpp |
p02419 | #include <ctype.h>
#include <stdio.h>
#include <string.h>
int main(void) {
char word[10];
char input[1000];
int counter;
scanf("%s", word);
while (1) {
scanf("%s", input);
if (strcmp(input, "END_OF_TEXT") == 0) {
break;
} else {
for (int i = 0; input[i] != '\0'; i++) {
inpu... | #include <ctype.h>
#include <stdio.h>
#include <string.h>
int main(void) {
char word[10];
char input[1000];
int counter = 0;
scanf("%s", word);
while (1) {
scanf("%s", input);
if (strcmp(input, "END_OF_TEXT") == 0) {
break;
} else {
for (int i = 0; input[i] != '\0'; i++) {
... | [
"variable_declaration.value.change"
] | 222,524 | 222,525 | u474157787 | cpp |
p02419 | #include <iostream>
#include <string>
using namespace std;
int main() {
string w, t; //一つの単語w, 文章に含まれる文章t
bool judge; // YES, NOを判定する変数
int count = 0; //一致した回数を数える
int trans = 'a' - 'A'; //大文字、小文字の変換
cin >> w;
while (cin >> t) {
if (t == "END_OF_TEXT")
break;
if... | #include <iostream>
#include <string>
using namespace std;
int main() {
string w, t; //一つの単語w, 文章に含まれる文章t
bool judge; // YES, NOを判定する変数
int count = 0; //一致した回数を数える
int trans = 'a' - 'A'; //大文字、小文字の変換
cin >> w;
while (cin >> t) {
if (t == "END_OF_TEXT")
break;
if... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 222,529 | 222,530 | u642752018 | cpp |
p02419 | #include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> num;
int cnt = 0;
string str0, str1, str2;
cin >> str0;
for (int i = 0; i < str0.size(); i++) {
char ch = str0[i];
num.push_back(ch - '0');
}
while (getline(cin, str1)) {
i... | #include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> num;
int cnt = 0;
string str0, str1, str2;
cin >> str0;
for (int i = 0; i < str0.size(); i++) {
char ch = str0[i];
num.push_back(ch - '0');
}
while (getline(cin, str1)) {
i... | [] | 222,757 | 222,758 | u380956423 | cpp |
p02419 | #include <cctype>
#include <iostream>
#include <string>
using namespace std;
string toUpper(string x) {
string y;
for (int i = 0; i < x.size(); i++) {
y[i] = toupper(x[i]);
}
return y;
}
int main() {
int cnt = 0;
string word, word2;
cin >> word;
word = toUpper(word);
cin >> word2;
while (1) {
... | #include <cctype>
#include <iostream>
#include <string>
using namespace std;
string toUpper(string x) {
string y = x;
for (int i = 0; i < x.size(); i++) {
y[i] = toupper(x[i]);
}
return y;
}
int main() {
int cnt = 0;
string word, word2;
cin >> word;
word = toUpper(word);
cin >> word2;
while (1... | [
"variable_declaration.value.change"
] | 222,759 | 222,760 | u306715188 | cpp |
p02419 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str1;
string str2;
string b;
int count = 0, a;
cin >> str1;
while (true) {
b = "";
cin >> str2;
a = str2.size();
if (str2 == "END_OF_TEXT")
break;
for (int i = 0; i < a; i++) {
b += str2[i];
}
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string str1;
string str2;
string b;
int count = 0, a;
cin >> str1;
while (true) {
b = "";
cin >> str2;
a = str2.size();
if (str2 == "END_OF_TEXT")
break;
for (int i = 0; i < a; i++) {
b += tolower(str2[i]... | [
"call.add",
"call.arguments.change"
] | 222,762 | 222,763 | u174469610 | cpp |
p02419 | #include <stdio.h>
#include <string.h>
int main() {
int i, j, count = 0;
char w[10], t[1000];
scanf("%s", w);
int len = strlen(w);
for (i = 0; i < len; i++) {
if (w[i] >= 'Z' && t[i] <= 'A')
w[i] += 32;
}
while (scanf("%s", t)) {
if (strcmp(t, "END_OF_TEXT") == 0)
break;
int len = ... | #include <stdio.h>
#include <string.h>
int main() {
int i, j, count = 0;
char w[10], t[1000];
scanf("%s", w);
int len = strlen(w);
for (i = 0; i < len; i++) {
if (w[i] <= 'Z' && t[i] >= 'A')
w[i] += 32;
}
while (scanf("%s", t)) {
if (strcmp(t, "END_OF_TEXT") == 0)
break;
int len = ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 222,787 | 222,788 | u044226657 | cpp |
p02419 | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
char t[1001], w[11];
char c[12] = {'E', 'N', 'D', '_', 'O', 'F', '_', 'T', 'E', 'X', 'T'};
int i, tl, wl, ch, count, tc, wc;
count = 0;
cin >> w;
wl = strlen(w);
while (1) {
cin >> t;
tl = strlen(t);
... | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
char t[1001], w[11];
char c[12] = {'E', 'N', 'D', '_', 'O', 'F', '_', 'T', 'E', 'X', 'T'};
int i, tl, wl, ch, count, tc, wc;
count = 0;
cin >> w;
wl = strlen(w);
while (1) {
cin >> t;
tl = strlen(t);
... | [
"control_flow.branch.if.condition.change"
] | 222,796 | 222,797 | u258004539 | cpp |
p02419 | #include <ctype.h>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main() {
char W[10 + 1] = {0};
char Ti[1000 + 1] = {0};
int W_len = 0;
int Ti_len = 0;
int count = 0;
cin >> W;
W_len = strlen(W);
for (int i = 0; i < W_len; i++)
W[i] = toupper(W[i]);
while (... | #include <ctype.h>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main() {
char W[10 + 1] = {0};
char Ti[1000 + 1] = {0};
int W_len = 0;
int Ti_len = 0;
int count = 0;
cin >> W;
W_len = strlen(W);
for (int i = 0; i < W_len; i++)
W[i] = toupper(W[i]);
while (... | [
"assignment.change"
] | 222,798 | 222,799 | u973694800 | cpp |
p02419 | /*
* a.cc:
*/
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <util... | /*
* a.cc:
*/
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <util... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 222,801 | 222,802 | u137027976 | cpp |
p02419 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, p;
cin >> s;
string pcin;
int ans = 0;
size_t found = 0;
while (cin >> pcin) {
if (pcin == "END_OF_TEXT") {
break;
}
// p += pcin + " ";
transform(p.begin(), p.end(), p.begin(), ::tolower);
if (pcin == s) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, p;
cin >> s;
string pcin;
int ans = 0;
size_t found = 0;
while (cin >> pcin) {
if (pcin == "END_OF_TEXT") {
break;
}
// p += pcin + " ";
transform(pcin.begin(), pcin.end(), pcin.begin(), ::tolower);
if (pcin == s... | [
"identifier.change",
"call.arguments.change"
] | 222,803 | 222,804 | u474427014 | cpp |
p02419 | #include <stdio.h>
#include <string.h>
int main() {
char ARF[27] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char arf[27] = "abcdefghijklmnopqrstuvwxyz";
char s1[11], s2[1001];
int i, j, sum = 0;
scanf("%s", s1);
while (1) {
scanf("%s", s2);
if (strcmp("END_OF_TEXT", s2) == 0)
break;
int len = strlen(... | #include <stdio.h>
#include <string.h>
int main() {
char ARF[27] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char arf[27] = "abcdefghijklmnopqrstuvwxyz";
char s1[11], s2[1001];
int i, j, sum = 0;
scanf("%s", s1);
while (1) {
scanf("%s", s2);
if (strcmp("END_OF_TEXT", s2) == 0)
break;
int len = strlen(... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 222,807 | 222,808 | u725628010 | cpp |
p02419 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str1, str2;
int count = 0;
cin >> str1;
for (int i = 0; i < str1.size(); i++) {
if ('A' <= str1[i] && str1[i] <= 'Z') {
str1[i] = str1[i] - 'A' + 'a';
}
}
while (cin >> str2) {
if (str2 == "END_OF_TEXT")
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string str1, str2;
int count = 0;
cin >> str1;
for (int i = 0; i < str1.size(); i++) {
if ('A' <= str1[i] && str1[i] <= 'Z') {
str1[i] = str1[i] - 'A' + 'a';
}
}
while (cin >> str2) {
if (str2 == "END_OF_TEXT")
... | [] | 222,810 | 222,811 | u843611113 | cpp |
p02419 | #include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
string w;
string t;
int i;
int count;
cin >> w;
for (i = 0; w[i] != '\0'; i++) {
w[i] = static_cast<char>(toupper(w[i]));
}
while (cin >> t) {
// cin >> t;
if (t == "END_OF_TEXT... | #include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
string w;
string t;
int i;
int count = 0;
cin >> w;
for (i = 0; w[i] != '\0'; i++) {
w[i] = static_cast<char>(toupper(w[i]));
}
while (cin >> t) {
// cin >> t;
if (t == "END_OF_... | [
"variable_declaration.value.change"
] | 222,814 | 222,815 | u064835577 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.