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 |
|---|---|---|---|---|---|---|---|
p03957 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
#define SIZE(x) (int((x).size()))
#define rep(i, l, r) for (int i = (l); i <= (r... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
#define SIZE(x) (int((x).size()))
#define rep(i, l, r) for (int i = (l); i <= (r... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,487,575 | 1,487,576 | u423964978 | cpp |
p03957 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string a;
cin >> a;
int b = 0;
for (char c : a) {
if (c == 'c' && b == 0)
b++;
if (c == 'f' && b == 1)
b++;
}
cout << ((b == 2) ? ("Yes") : ("No")) << endl;
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string a;
cin >> a;
int b = 0;
for (char c : a) {
if (c == 'C' && b == 0)
b++;
if (c == 'F' && b == 1)
b++;
}
cout << ((b == 2) ? ("Yes") : ("No")) << endl;
} | [
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change"
] | 1,487,577 | 1,487,578 | u016612263 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'C') {
for (int j = i + 1; j < s.size(); j++) {
if (s[j] == 'F') {
cout << "Yes" << endl;
return 0;
}
}
}
}
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
cin >> s;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'C') {
for (int j = i + 1; j < s.size(); j++) {
if (s[j] == 'F') {
cout << "Yes" << endl;
return 0;
}
}
}
}
cout << "No" <... | [] | 1,487,579 | 1,487,580 | u571347098 | cpp |
p03957 | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <chrono>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_se... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <chrono>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_se... | [] | 1,487,581 | 1,487,582 | u640209154 | cpp |
p03957 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
const int MOD = 1e9 + 7;
typedef long long ll;
typedef unsigned lon... |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
const int MOD = 1e9 + 7;
typedef long long ll;
typedef unsigned lon... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,583 | 1,487,584 | u292868516 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
#define fst(t) std::get<0>(t)
#define snd(t) std::get<1>(t)
#define thd(t) std::get<2>(t)
using ll = long long;
using P = std::tuple<int, int>;
const int dx[8] = {-1, 1, 0, 0, -1, -1, 1, 1},
dy[8] = {0, 0, -1, 1, -1, 1, -1, 1};
int main() {
//*
std::cin.t... | #include <bits/stdc++.h>
using namespace std;
#define fst(t) std::get<0>(t)
#define snd(t) std::get<1>(t)
#define thd(t) std::get<2>(t)
using ll = long long;
using P = std::tuple<int, int>;
const int dx[8] = {-1, 1, 0, 0, -1, -1, 1, 1},
dy[8] = {0, 0, -1, 1, -1, 1, -1, 1};
int main() {
//*
std::cin.t... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 1,487,585 | 1,487,586 | u764058295 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
string s;
cin >> s;
int idx = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'C')
idx = 1;
if (idx && s[i] == 'F') {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
string s;
cin >> s;
int idx = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'C')
idx = 1;
if (idx && s[i] == 'F') {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,587 | 1,487,588 | u072954651 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = (0); (i) < (int)(n); ++(i))
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
bool c = false, f = false;
rep(i, s.size()) {
if (s[i] == 'c') {
c = true;
} else if (s[i] == 'f') {
if (... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = (0); (i) < (int)(n); ++(i))
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
bool c = false, f = false;
rep(i, s.size()) {
if (s[i] == 'C') {
c = true;
} else if (s[i] == 'F') {
if (... | [
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change"
] | 1,487,591 | 1,487,592 | u482544950 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define REP(i, b) FOR(i, 0, b)
#define MP make_pair
#define PB push_back
#define REACH cerr << "reached line " << __LINE__ << endl
#define DBG(x) cerr << "line " << __LINE__ << " " << #x << ":" << x << endl
using uint = uns... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define REP(i, b) FOR(i, 0, b)
#define MP make_pair
#define PB push_back
#define REACH cerr << "reached line " << __LINE__ << endl
#define DBG(x) cerr << "line " << __LINE__ << " " << #x << ":" << x << endl
using uint = uns... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,593 | 1,487,594 | u354336886 | cpp |
p03957 | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <forward_list>
#include <functional>
#include <initiali... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <forward_list>
#include <functional>
#include <initiali... | [
"misc.opposites",
"variable_declaration.value.change"
] | 1,487,595 | 1,487,596 | u790142428 | cpp |
p03957 | #include <bits/stdc++.h>
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define endl "\n"
#define cv(c) (int)(c - 'a')
#define db(x) cerr << #x << ": " << x << " "
#define db2(x, y) cerr << #x << ": " << x << " " << #y << ": " << y << " "
#define bn() cerr << endl
#define sep() cerr << "--... | #include <bits/stdc++.h>
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define endl "\n"
#define cv(c) (int)(c - 'a')
#define db(x) cerr << #x << ": " << x << " "
#define db2(x, y) cerr << #x << ": " << x << " " << #y << ": " << y << " "
#define bn() cerr << endl
#define sep() cerr << "--... | [
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change"
] | 1,487,597 | 1,487,598 | u349683100 | cpp |
p03957 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define M_PI acos(-1)
main() {
string s;
cin >> s;
for (int i = 0; i < s.size(); i++)
for (int j = i; j < s.size(); j++)
if (s[i] == 'C' && s[j] == 'F')
return cout << "YES" << endl, 0;
cout << "NO" << endl;
}
| #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define M_PI acos(-1)
main() {
string s;
cin >> s;
for (int i = 0; i < s.size(); i++)
for (int j = i; j < s.size(); j++)
if (s[i] == 'C' && s[j] == 'F')
return cout << "Yes" << endl, 0;
cout << "No" << endl;
}
| [
"literal.string.change",
"literal.string.case.change",
"function.return_value.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,487,599 | 1,487,600 | u487987369 | cpp |
p03957 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, a, n) for (int i ... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, a, n) for (int i ... | [
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change"
] | 1,487,603 | 1,487,604 | u624678037 | cpp |
p03957 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, a, n) for (int i ... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, a, n) for (int i ... | [
"literal.string.change",
"control_flow.branch.if.condition.change",
"assignment.add",
"control_flow.branch.if.add"
] | 1,487,605 | 1,487,604 | u624678037 | cpp |
p03958 | #include <bits/stdc++.h>
using namespace std;
void chmax(int &a, int b) {
if (a < b)
a = b;
}
int main() {
int K, T;
cin >> K >> T;
vector<int> cake(110, 0);
for (int i = 0; i < T; i++) {
cin >> cake[i];
}
int cakemax = 0;
for (int i = 0; i < T; i++) {
chmax(cakemax, cake[i]);
}
i... | #include <bits/stdc++.h>
using namespace std;
void chmax(int &a, int b) {
if (a < b)
a = b;
}
int main() {
int K, T;
cin >> K >> T;
vector<int> cake(110, 0);
for (int i = 0; i < T; i++) {
cin >> cake[i];
}
int cakemax = 0;
for (int i = 0; i < T; i++) {
chmax(cakemax, cake[i]);
}
i... | [
"expression.operation.binary.add"
] | 1,487,646 | 1,487,647 | u538808095 | cpp |
p03958 | #include <bits/stdc++.h>
using namespace std;
#define debug(n) cerr << #n << ':' << n << endl;
#define dline cerr << __LINE__ << endl;
using ll = long long;
using ull = unsigned long long;
template <class T, class U> using P = pair<T, U>;
template <class T> using Heap = priority_queue<T>;
template <class T> using he... | #include <bits/stdc++.h>
using namespace std;
#define debug(n) cerr << #n << ':' << n << endl;
#define dline cerr << __LINE__ << endl;
using ll = long long;
using ull = unsigned long long;
template <class T, class U> using P = pair<T, U>;
template <class T> using Heap = priority_queue<T>;
template <class T> using he... | [
"expression.operation.binary.add"
] | 1,487,664 | 1,487,665 | u691380397 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
string s;
cin >> s;
string ss = "CF";
int j = 0;
int clock = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] == ss[j]) {
clock++;
j++;
}
}
if (clock >= 2)
cout << "YES" << endl;
else
cou... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
string s;
cin >> s;
string ss = "CF";
int j = 0;
int clock = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] == ss[j]) {
clock++;
j++;
}
}
if (clock >= 2)
cout << "Yes" << endl;
else
cou... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,606 | 1,487,607 | u191512529 | cpp |
p03957 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define RFOR(i, a, b) for (int i = (a); i >= (b); i--)
using namespace std;
int main(void) {
string s;
cin >> s;
if (s.find('... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define RFOR(i, a, b) for (int i = (a); i >= (b); i--)
using namespace std;
int main(void) {
string s;
cin >> s;
if (s.find('... | [
"control_flow.branch.if.condition.change"
] | 1,487,608 | 1,487,609 | u057611820 | cpp |
p03957 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int INF = 1e9;
int MOD = 1e9 + 7;
main() {
string S, str = "CF";
int cnt = 0;
for (char c : S) {
if (c == str[cnt]) {
cnt++;
}
if (cnt == 2) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
} | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int INF = 1e9;
int MOD = 1e9 + 7;
main() {
string S, str = "CF";
cin >> S;
int cnt = 0;
for (char c : S) {
if (c == str[cnt]) {
cnt++;
}
if (cnt == 2) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << ... | [] | 1,487,610 | 1,487,611 | u157322125 | cpp |
p03957 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <stack>
#include <string>
#include <tuple>
#include <typeinfo>
#include <utility>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
typedef long long i... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <stack>
#include <string>
#include <tuple>
#include <typeinfo>
#include <utility>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
typedef long long i... | [
"control_flow.loop.for.condition.change",
"call.add"
] | 1,487,612 | 1,487,613 | u782516204 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int found = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'C')
found = 1;
if (found && s[i] == 'F') {
found = 2;
break;
}
}
if (found == 2)
cout << "YES";
else
cout << "N... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int found = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'C')
found = 1;
if (found && s[i] == 'F') {
found = 2;
break;
}
}
if (found == 2)
cout << "Yes";
else
cout << "N... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,616 | 1,487,617 | u129201329 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
size_t p = s.find("C");
if (p == s.npos)
puts("No");
else if (s.substr(p).find("F") != s.npos)
puts("Yes");
else
puts("NO");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
size_t p = s.find("C");
if (p == s.npos)
puts("No");
else if (s.substr(p).find("F") != s.npos)
puts("Yes");
else
puts("No");
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,487,620 | 1,487,621 | u951704061 | cpp |
p03957 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
int main() {
string a;
cin >> a;
int i = 0;
int flg = 0;
while (a[i] != '\0') {
if (a[i] == 'C') {
flg = 1;
bre... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rep(i, a) loop(i, 0, a)
int main() {
string a;
cin >> a;
int i = 0;
int flg = 0;
while (a[i] != '\0') {
if (a[i] == 'C') {
flg = 1;
bre... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,628 | 1,487,629 | u776929617 | cpp |
p03957 | /*input
CODEFESTIVAL
*/
#include <iostream>
#include <string>
using namespace std;
string s;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> s;
bool ok = false, ok1 = false;
for (int i = 0; i < s.size(); ++i) {
if (s[i] == 'C')
ok = true;
else if (s[i] == 'F' && ok) {
ok1... | /*input
CODEFESTIVAL
*/
#include <iostream>
#include <string>
using namespace std;
string s;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> s;
bool ok = false, ok1 = false;
for (int i = 0; i < s.size(); ++i) {
if (s[i] == 'C')
ok = true;
else if (s[i] == 'F' && ok) {
ok1... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,639 | 1,487,640 | u652741923 | cpp |
p03957 | #include <iostream>
#include <regex>
#include <string>
using namespace std;
int main() {
string input;
cin >> input;
regex pat{R"(S+.*F+)"};
if (regex_search(input.cbegin(), input.cend(), pat)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
#include <regex>
#include <string>
using namespace std;
int main() {
string input;
cin >> input;
regex pat{R"(C+.*F+)"};
if (regex_search(input.cbegin(), input.cend(), pat)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [] | 1,487,688 | 1,487,689 | u826144345 | cpp |
p03957 | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define fi cin
#define fo cout
#define x first
#define y second
#define ll long long
#define IOS \
ios_base ::sync_with_stdio(0); \
cin.ti... | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define fi cin
#define fo cout
#define x first
#define y second
#define ll long long
#define IOS \
ios_base ::sync_with_stdio(0); \
cin.ti... | [
"assignment.value.change"
] | 1,487,690 | 1,487,691 | u468273690 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = 0; i < str.size(); ++i) {
if (str[i] == 'C')
for (int j = i + 1; j < str.size(); ++j) {
if (str[j] == 'F') {
cout << "YES" << endl;
return 0;
}
}
}
c... | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
for (int i = 0; i < str.size(); ++i) {
if (str[i] == 'C')
for (int j = i + 1; j < str.size(); ++j) {
if (str[j] == 'F') {
cout << "Yes" << endl;
return 0;
}
}
}
c... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,696 | 1,487,697 | u045142801 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
typedef long double LD;
typedef pair<LD, int> PLDI;
typedef pair<LD, LD> PLDLD;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define CLR(a) memset((a), 0, s... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
typedef long double LD;
typedef pair<LD, int> PLDI;
typedef pair<LD, LD> PLDLD;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define CLR(a) memset((a), 0, s... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,487,698 | 1,487,699 | u284759714 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main() {
// 文字列の入力
string s;
cin >> s;
if ((int)s.find("C") >= 0 && (int)s.find("F", (int)s.find("C"))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
// 出力
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
// 文字列の入力
string s;
cin >> s;
if ((int)s.find("C") >= 0 && (int)s.find("F", (int)s.find("C")) >= 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
// 出力
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,487,706 | 1,487,707 | u475768552 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main() {
// 文字列の入力
string s;
cin >> s;
if ((int)s.find("C") >= 0 && (int)s.find("F") > (int)s.find("C")) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
// 出力
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
// 文字列の入力
string s;
cin >> s;
if ((int)s.find("C") >= 0 && (int)s.find("F", (int)s.find("C")) >= 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
// 出力
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,487,708 | 1,487,707 | u475768552 | cpp |
p03957 | #include <cstring>
#include <iostream>
using namespace std;
int main() {
char s[100];
int i, j, slong;
bool flag = 0;
cin >> s;
slong = strlen(s);
for (i = 0; i < slong; i++) {
if (s[i] == 'C') {
for (j = i + 1; j < slong; j++) {
if (s[j] == 'F') {
if (flag == 0) {
... | #include <cstring>
#include <iostream>
using namespace std;
int main() {
char s[100];
int i, j, slong;
bool flag = 0;
cin >> s;
slong = strlen(s);
for (i = 0; i < slong; i++) {
if (s[i] == 'C') {
for (j = i + 1; j < slong; j++) {
if (s[j] == 'F') {
if (flag == 0) {
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,487,709 | 1,487,710 | u292929213 | cpp |
p03957 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
bool includeC = false;
for (int i = 0; i < S.size(); i++) {
if (S[i] == 'C')
includeC = true;
if (includeC == true and S[i] == 'F')
std::cout ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
bool includeC = false;
for (int i = 0; i < S.size(); i++) {
if (S[i] == 'C')
includeC = true;
if (includeC == true and S[i] == 'F') {
std::cou... | [] | 1,487,711 | 1,487,712 | u832726997 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using u32 = uint32_t;
using vi = vector<int>;
using vvi = vector<vi>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vd = vector<double>;
using vvd = vector<vd>;
#define RE... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using u32 = uint32_t;
using vi = vector<int>;
using vvi = vector<vi>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vd = vector<double>;
using vvd = vector<vd>;
#define RE... | [
"literal.string.change",
"io.output.change"
] | 1,487,713 | 1,487,714 | u273357559 | cpp |
p03957 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() ... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() ... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,487,715 | 1,487,716 | u772138626 | cpp |
p03957 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
string S;
cin >> S;
bool C = false;
for (int i = 0; i < S.size(); i++) {
if (S[i] == 'C') {
C = true;
}
if (C && S[i] == S[i] == 'F') {
cout << "Yes" << ... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
string S;
cin >> S;
bool C = false;
for (int i = 0; i < S.size(); i++) {
if (S[i] == 'C') {
C = true;
}
if (C && S[i] == 'F') {
cout << "Yes" << endl;
... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 1,487,717 | 1,487,718 | u345432788 | cpp |
p03957 | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
int a = 0;
cin >> s;
for (int i = 0; i < s.length(); i++) {
if (s[i] == 'C') {
for (int j = a; j < s.length(); j++) {
if (s[j] == 'F') {
a = 1... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
int a = 0;
cin >> s;
for (int i = 0; i < s.length(); i++) {
if (s[i] == 'C') {
for (int j = i; j < s.length(); j++) {
if (s[j] == 'F') {
a = 1... | [
"variable_declaration.value.change",
"identifier.change",
"control_flow.loop.for.initializer.change"
] | 1,487,719 | 1,487,720 | u918357423 | cpp |
p03957 | #include <cstdio>
int main(void) {
char s[101];
scanf("%s", s);
for (int i = 0; s[i] != 0; i++) {
if (s[i] == 'C') {
for (int j = i + 1; s[j] != 0; j++) {
if (s[j] == 'F') {
printf("YES\n");
return 0;
}
}
}
}
printf("NO\n");
return 0;
} | #include <cstdio>
int main(void) {
char s[101];
scanf("%s", s);
for (int i = 0; s[i] != 0; i++) {
if (s[i] == 'C') {
for (int j = i + 1; s[j] != 0; j++) {
if (s[j] == 'F') {
printf("Yes\n");
return 0;
}
}
}
}
printf("No\n");
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,487,721 | 1,487,722 | u701526766 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main() {
string st;
cin >> st;
bool c, f;
c = f = false;
for (int i = 0; i < st.length(); i++) {
if (st[i] == 'C')
c = true;
if (c && st[i] == 'F')
f = true;
}
if (f) {
cout << "No" << endl;
} else {
cout << "Ye... | #include <iostream>
#include <string>
using namespace std;
int main() {
string st;
cin >> st;
bool c, f;
c = f = false;
for (int i = 0; i < st.length(); i++) {
if (st[i] == 'C')
c = true;
if (c && st[i] == 'F')
f = true;
}
if (!f) {
cout << "No" << endl;
} else {
cout << "Y... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 1,487,723 | 1,487,724 | u457552420 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main() {
string st;
cin >> st;
bool c, f;
c = f = false;
for (int i = 0; i < st.length(); i++) {
if (st[i] == 'c')
c = true;
if (c && st[i] == 'f')
f = true;
}
if (f) {
cout << "No" << endl;
} else {
cout << "Ye... | #include <iostream>
#include <string>
using namespace std;
int main() {
string st;
cin >> st;
bool c, f;
c = f = false;
for (int i = 0; i < st.length(); i++) {
if (st[i] == 'C')
c = true;
if (c && st[i] == 'F')
f = true;
}
if (!f) {
cout << "No" << endl;
} else {
cout << "Y... | [
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change",
"expression.operation.unary.add"
] | 1,487,725 | 1,487,724 | u457552420 | cpp |
p03957 | #include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
int a = 1001;
int flag = 0;
cin >> ... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
int a = 1000;
int flag = 0;
cin >> ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 1,487,728 | 1,487,729 | u109323926 | cpp |
p03957 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char s[256] = "";
s[255] = 1;
int i = 0;
int w = 0;
int x = 0;
scanf("%s", s);
while (s[i] != '1') {
if (s[i] == 'C')
if (x < 1)
x++;
if (s[i] == 'F' && x > 0) {
w++;
break;
}
i++;
}
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char s[256] = "";
s[255] = '1';
int i = 0;
int w = 0;
int x = 0;
scanf("%s", s);
while (s[i] != '1') {
if (s[i] == 'C')
if (x < 1)
x++;
if (s[i] == 'F' && x > 0) {
w++;
break;
}
i++;
... | [] | 1,487,742 | 1,487,743 | u869969792 | cpp |
p03957 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char s[101] = "";
s[100] = 1;
int i = 0;
int w = 0;
int x = 0;
scanf("%s", s);
while (s[i] != '1') {
if (s[i] == 'C')
if (x < 1)
x++;
if (s[i] == 'F' && x > 0) {
w++;
break;
}
i++;
}
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char s[256] = "";
s[255] = '1';
int i = 0;
int w = 0;
int x = 0;
scanf("%s", s);
while (s[i] != '1') {
if (s[i] == 'C')
if (x < 1)
x++;
if (s[i] == 'F' && x > 0) {
w++;
break;
}
i++;
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.variable.change",
"variable_access.subscript.index.change"
] | 1,487,744 | 1,487,743 | u869969792 | cpp |
p03957 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char s[101] = "";
s[100] = 1;
int i = 0;
int w = 0;
int x = 0;
scanf("%s", s);
while (s[i] != '1') {
if (s[i] == 'C')
if (x < 1)
x++;
if (s[i] == 'F' && x > 0) {
w++;
break;
}
i++;
}
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char s[256] = "";
s[255] = '1';
int i = 0;
int w = 0;
int x = 0;
scanf("%s", s);
while (s[i] != '1') {
if (s[i] == 'C')
if (x < 1)
x++;
if (s[i] == 'F' && x > 0) {
w++;
break;
}
i++;
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.variable.change",
"variable_access.subscript.index.change"
] | 1,487,745 | 1,487,743 | u869969792 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
int k = 0;
int l = 0;
for (int i = 0; i <= str.size(); i++) {
if (str[l] == 'C') {
k = l;
for (int j = l; j <= str.size(); j++) {
if (str[k] == 'F') {
cout << "YES\n";
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string str;
cin >> str;
int k = 0;
int l = 0;
for (int i = 0; i <= str.size(); i++) {
if (str[l] == 'C') {
k = l;
for (int j = l; j <= str.size(); j++) {
if (str[k] == 'F') {
cout << "Yes\n";
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,747 | 1,487,748 | u626400032 | cpp |
p03957 |
#include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
int i = 0;
int j = 0;
string a;
cin >> a;
int i1, i2;
i1 = i2 = -1;
int len = a.size();
for (i = 0; i < len; i++) {
... | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
int i = 0;
int j = 0;
string a;
cin >> a;
int i1, i2;
i1 = i2 = -1;
int len = a.size();
for (i = 0; i < len; i++) {
... | [
"control_flow.branch.if.condition.change"
] | 1,487,755 | 1,487,756 | u859065438 | cpp |
p03957 | #include <cstdio>
#include <cstring>
char str[1000];
int main() {
while (scanf("%s", str) != EOF) {
int c = 999;
int f = -1;
int len = strlen(str);
for (int i = 0; i < len; i++) {
if (str[i] == 'C') {
if (i < c)
c = i;
}
if (str[i] == 'F') {
f = i;
... | #include <cstdio>
#include <cstring>
char str[1000];
int main() {
// freopen("a.in", "r", stdin);
while (scanf("%s", str) != EOF) {
int c = 999;
int f = -1;
int len = strlen(str);
for (int i = 0; i < len; i++) {
if (str[i] == 'C') {
if (i < c)
c = i;
}
if (str[i... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 1,487,757 | 1,487,758 | u730498368 | cpp |
p03957 | #include <cstdio>
#include <cstring>
char str[1000];
int main() {
while (scanf("%s", str) != EOF) {
int c = 999;
int f = -1;
int len = strlen(str);
for (int i = 0; i < len; i++) {
if (str[i] == 'c') {
if (i < c)
c = i;
}
if (str[i] == 'f') {
f = i;
... | #include <cstdio>
#include <cstring>
char str[1000];
int main() {
// freopen("a.in", "r", stdin);
while (scanf("%s", str) != EOF) {
int c = 999;
int f = -1;
int len = strlen(str);
for (int i = 0; i < len; i++) {
if (str[i] == 'C') {
if (i < c)
c = i;
}
if (str[i... | [
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 1,487,759 | 1,487,758 | u730498368 | cpp |
p03957 | #include <iostream>
using namespace std;
int main(void) {
string s;
cin >> s;
int flag = 0;
for (int i = 0; i < 100; i++) {
if (i == s.length())
break;
if (flag == 0 && s[i] == 'C')
++flag;
if (flag == 1 && s[i] == 'F') {
++flag;
break;
}
}
cout << (flag == 2 ? "YES"... | #include <iostream>
using namespace std;
int main(void) {
string s;
cin >> s;
int flag = 0;
for (int i = 0; i < 100; i++) {
// if(s[i]
if (i == s.length())
break;
if (flag == 0 && s[i] == 'C')
++flag;
if (flag == 1 && s[i] == 'F') {
++flag;
break;
}
}
cout << (fl... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,760 | 1,487,761 | u456396090 | cpp |
p03957 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
char a[101];
scanf("%s", a);
int check = 0;
size_t len = strlen(a);
for (int i = 0; i < len - 1; i++) {
for (int j = 1; j < len; j++) {
if (a[i] == 'C' && a[j] == 'F') {
printf("Ye... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
char a[101];
scanf("%s", a);
int check = 0;
size_t len = strlen(a);
for (int i = 0; i < len - 1; i++) {
for (int j = i + 1; j < len; j++) {
if (a[i] == 'C' && a[j] == 'F') {
printf... | [
"control_flow.loop.for.initializer.change"
] | 1,487,778 | 1,487,779 | u838906184 | cpp |
p03957 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
char a[101];
scanf("%s", a);
int check = 0;
size_t len = strlen(a);
for (int i = 0; i < len; i++) {
for (int j = 1; j < len; j++) {
if (a[i] == 'C' && a[j] == 'F') {
printf("Yes\n"... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
char a[101];
scanf("%s", a);
int check = 0;
size_t len = strlen(a);
for (int i = 0; i < len - 1; i++) {
for (int j = i + 1; j < len; j++) {
if (a[i] == 'C' && a[j] == 'F') {
printf... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"control_flow.loop.for.initializer.change"
] | 1,487,780 | 1,487,779 | u838906184 | cpp |
p03957 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
int main() {
string str;
cin >> str;
int hemi = 0;
for (int i = 0; i < str.size(); i++) {
if (hemi == 0) {
if (str[i] == 'C') {
hemi = 1;
}
} else if (... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
int main() {
string str;
cin >> str;
int hemi = 0;
for (int i = 0; i < str.size(); i++) {
if (hemi == 0) {
if (str[i] == 'C') {
hemi = 1;
}
} else if (... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,783 | 1,487,784 | u330579751 | cpp |
p03957 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
int main() {
string str;
cin >> str;
int hemi = 0;
for (int i = 0; i < str.size(); i++) {
if (hemi == 0) {
if (str[i] == 'C') {
hemi = 1;
}
} else if (... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
int main() {
string str;
cin >> str;
int hemi = 0;
for (int i = 0; i < str.size(); i++) {
if (hemi == 0) {
if (str[i] == 'C') {
hemi = 1;
}
} else if (... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,786 | 1,487,784 | u330579751 | cpp |
p03957 | //
// main.cpp
// Main
//
// Created by 田村雄太 on 2016/10/23.
// Copyright © 2016年 田村雄太. All rights reserved.
//
#define _USE_MATH_DEFINES
#include <algorithm> // swap,sort,binary_search
#include <cassert>
#include <cmath>
#include <functional> // std::greater
#include <iomanip> //cout<<setprecision
#include <iost... | //
// main.cpp
// Main
//
// Created by 田村雄太 on 2016/10/23.
// Copyright © 2016年 田村雄太. All rights reserved.
//
#define _USE_MATH_DEFINES
#include <algorithm> // swap,sort,binary_search
#include <cassert>
#include <cmath>
#include <functional> // std::greater
#include <iomanip> //cout<<setprecision
#include <iost... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,791 | 1,487,792 | u185649488 | cpp |
p03957 | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
char s[100];
cin >> s;
for (int i = 0; i < 100; i++) {
if (s[i] == 'C') {
for (int j = i; j < 100; j++) {
if (s[j] == 'S') {
cout << "Yes" << endl;
return 0;
}
}
}
... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
char s[100] = {};
cin >> s;
for (int i = 0; i < 100; i++) {
if (s[i] == 'C') {
for (int j = i; j < 100; j++) {
if (s[j] == 'F') {
cout << "Yes" << endl;
return 0;
}
}
... | [
"variable_declaration.value.change",
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 1,487,797 | 1,487,798 | u008173855 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s;
cin >> s;
bool flagC = false;
bool flagF = false;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'C') {
flagC = true;
} else if (s[i] == 'F' && flagC) {
flagF = true;
}
}
if (flagF) {
cou... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s;
cin >> s;
bool flagC = false;
bool flagF = false;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'C') {
flagC = true;
} else if (s[i] == 'F' && flagC) {
flagF = true;
}
}
if (flagF) {
cou... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,799 | 1,487,800 | u079132749 | cpp |
p03957 | #include <algorithm>
#include <functional>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define maxi(a, b) (((a) > (b)) ? (a) : (b))
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
/**************************... | #include <algorithm>
#include <functional>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define maxi(a, b) (((a) > (b)) ? (a) : (b))
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
/**************************... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,805 | 1,487,806 | u523764640 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define repr(i, a, b) for (int i = (b)-1; i >= a; i--)
int main() {
string s;
cin >> s;
int i = 0;
for (; i < s.size(); i++)
if (s[i] == 'C')
break;
if (i == s.size()) {
cout << "NO" << endl;
r... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define repr(i, a, b) for (int i = (b)-1; i >= a; i--)
int main() {
string s;
cin >> s;
int i = 0;
for (; i < s.size(); i++)
if (s[i] == 'C')
break;
if (i == s.size()) {
cout << "No" << endl;
r... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,813 | 1,487,814 | u706265438 | cpp |
p03957 |
#include <algorithm>
#include <climits>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
string str;
cin >> str;
int c = 0, r = 0;
for (int i = 0; i < str.size(); i++) {
if (str[i] == 'C') {... |
#include <algorithm>
#include <climits>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
string str;
cin >> str;
int c = -1, r = 0;
for (int i = 0; i < str.size(); i++) {
if (str[i] == 'C') ... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change"
] | 1,487,817 | 1,487,818 | u887451294 | cpp |
p03957 | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char s[1005];
int len, i;
scanf("%s", s);
len = strlen(s);
int temp = 0;
for (i = 0; i < len; i++) {
if (s[i] == 'C') {
temp = 1;
}
if (s[i] == 'F' && temp == 1) {
temp = 2;
}
}
if (temp == 2) {
printf... | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
char s[1005];
int len, i;
scanf("%s", s);
len = strlen(s);
int temp = 0;
for (i = 0; i < len; i++) {
if (s[i] == 'C') {
temp = 1;
}
if (s[i] == 'F' && temp == 1) {
temp = 2;
}
}
if (temp == 2) {
printf... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,487,831 | 1,487,832 | u468733267 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
while (cin >> s) {
bool t1 = false, t2 = false;
for (auto &i : s) {
if (i == 'C')
t1 = true;
else if (i == 'F')
t2 = true;
if (t2)
break;
}
if (t2)
cout << "Yes" << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
while (cin >> s) {
bool t1 = false, t2 = false;
for (auto &i : s) {
if (i == 'C')
t1 = true;
else if (t1 && i == 'F')
t2 = true;
if (t2)
break;
}
if (t2)
cout << "Yes" << endl;
el... | [
"control_flow.branch.if.condition.change"
] | 1,487,837 | 1,487,838 | u591265164 | cpp |
p03957 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
string s1 = "C";
string s2 = "F";
long ans;
string::size_type pos1, pos2;
cin >> s;
pos1 = s.find_first_of(s1);
pos2 = s.find_first_of(s2);
if ((pos1 != string::npos) && (pos2 != string::npos) && (po... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
string s1 = "C";
string s2 = "F";
long ans;
string::size_type pos1, pos2;
cin >> s;
pos1 = s.find_first_of(s1);
pos2 = s.find_last_of(s2);
if ((pos1 != string::npos) && (pos2 != string::npos) && (pos... | [
"assignment.value.change",
"call.function.change",
"literal.string.change",
"io.output.change"
] | 1,487,841 | 1,487,842 | u033045343 | cpp |
p03957 | #include <algorithm>
#include <functional>
#include <iostream>
#include <sstream>
using namespace std;
int main() {
string s;
cin >> s;
bool c = false;
int pc = -1, pf;
bool f = false;
for (int i = 0; i < s.length(); ++i) {
if (s[i] == 'C' && (pc == -1 || i < pc)) {
c = true;
pc = i;
}
... | #include <algorithm>
#include <functional>
#include <iostream>
#include <sstream>
using namespace std;
int main() {
string s;
cin >> s;
bool c = false;
int pc = -1, pf;
bool f = false;
for (int i = 0; i < s.length(); ++i) {
if (s[i] == 'C' && (pc == -1 || i < pc)) {
c = true;
pc = i;
}
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,487,843 | 1,487,844 | u300752229 | cpp |
p03957 | #include <iostream>
#include <string>
using namespace std;
int main(int argc, char *argv[]) {
string s;
cin >> s;
int cnt = 0;
for (char c : s) {
if (c == 'C' && cnt == 0) {
cnt == 1;
}
if (c == 'F' && cnt == 1) {
cnt == 2;
}
}
cout << (cnt == 2 ? "Yes" : "No") << endl;
return ... | #include <iostream>
#include <string>
using namespace std;
int main(int argc, char *argv[]) {
string s;
cin >> s;
int cnt = 0;
for (char c : s) {
if (c == 'C' && cnt == 0) {
cnt = 1;
}
if (c == 'F' && cnt == 1) {
cnt = 2;
}
}
cout << (cnt == 2 ? "Yes" : "No") << endl;
return 0;... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 1,487,850 | 1,487,851 | u586336940 | cpp |
p03957 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#i... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#i... | [
"expression.operation.binary.remove"
] | 1,487,854 | 1,487,855 | u663710122 | cpp |
p03958 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, T;
cin >> n >> T;
int mx = 0;
for (register int i = 1; i <= T; ++i) {
int x;
cin >> x;
mx = max(mx, x);
}
cout << mx - 1 - (n - mx) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, T;
cin >> n >> T;
int mx = 0;
for (register int i = 1; i <= T; ++i) {
int x;
cin >> x;
mx = max(mx, x);
}
cout << max(mx - 1 - (n - mx), 0) << endl;
} | [
"call.add",
"call.arguments.add"
] | 1,487,887 | 1,487,888 | u247366051 | cpp |
p03958 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, T;
cin >> K >> T;
vector<int> A(T);
for (int i = 0; i < T; i++)
cin >> A.at(i);
int H = -1;
for (int i = 0; i < T; i++) {
if (A.at(i) > (K + 1) / 2) {
int H = A.at(i);
break;
}
}
if (H == -1)
cout << 0 << en... | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, T;
cin >> K >> T;
vector<int> A(T);
for (int i = 0; i < T; i++)
cin >> A.at(i);
int H = -1;
for (int i = 0; i < T; i++) {
if (A.at(i) > (K + 1) / 2) {
H = A.at(i);
break;
}
}
if (H == -1)
cout << 0 << endl;
... | [] | 1,487,913 | 1,487,914 | u817769480 | cpp |
p03958 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, T, m, n;
cin >> K >> T;
cin >> m;
for (int i = 1; i < T; i++) {
cin >> n;
m = max(m, n);
}
cout << max(0, m - K / 2 - 1) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, T, m, n;
cin >> K >> T;
cin >> m;
for (int i = 1; i < T; i++) {
cin >> n;
m = max(m, n);
}
cout << max(0, 2 * m - K - 1) << endl;
} | [
"expression.operation.binary.remove"
] | 1,487,927 | 1,487,928 | u820224016 | cpp |
p03958 | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, T, m, n;
cin >> K >> T;
cin >> m;
for (int i = 1; i < T; i++) {
cin >> n;
m = max(m, n);
}
cout << max(0, (2 * m - K) / 2) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int K, T, m, n;
cin >> K >> T;
cin >> m;
for (int i = 1; i < T; i++) {
cin >> n;
m = max(m, n);
}
cout << max(0, 2 * m - K - 1) << endl;
} | [
"call.arguments.change"
] | 1,487,929 | 1,487,928 | u820224016 | cpp |
p03958 | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int mod = 1000000007;
const int INF = 1001001001;
int main() {
int k, t, a;
cin >> k >> t;
a = 0;
rep(i, t) {
int b;
cin >> b;
a = max(a, b);
}
cout <... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int mod = 1000000007;
const int INF = 1001001001;
int main() {
int k, t, a;
cin >> k >> t;
a = 0;
rep(i, t) {
int b;
cin >> b;
a = max(a, b);
}
cout <... | [
"identifier.change",
"io.output.change"
] | 1,487,943 | 1,487,944 | u628597699 | cpp |
p03958 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <ciso646>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <ciso646>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <... | [] | 1,487,961 | 1,487,962 | u508571192 | cpp |
p03958 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < n; i++)
template <typename T1, typename T2> inline void chmin(T... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < n; i++)
template <typename T1, typename T2> inline void chmin(T... | [
"expression.operation.binary.remove"
] | 1,488,022 | 1,488,023 | u318785595 | cpp |
p03958 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < n; i++)
template <typename T1, typename T2> inline void chmin(T... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < n; i++)
template <typename T1, typename T2> inline void chmin(T... | [
"identifier.change",
"io.output.change",
"expression.operation.binary.remove"
] | 1,488,024 | 1,488,023 | u318785595 | cpp |
p03958 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, t, mx = 0;
cin >> k >> t;
vector<int> a(t);
for (int i = 0; i < t; i++) {
cin >> a[i];
mx = max(mx, a[i]);
}
cout << max(mx - (k - mx) + 1, 0) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k, t, mx = 0;
cin >> k >> t;
vector<int> a(t);
for (int i = 0; i < t; i++) {
cin >> a[i];
mx = max(mx, a[i]);
}
cout << max(mx - (k - mx) - 1, 0) << endl;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,488,025 | 1,488,026 | u798086274 | cpp |
p03958 | #include <iostream>
using namespace std;
int main() {
int i, k, t, a[100], mx = 0, j;
cin >> k >> t;
for (i = 0; i < t; i++) {
cin >> a[i];
mx = max(a[i], mx);
}
cout << max(2 * a[j] - k - 1, 0) << endl;
} | #include <iostream>
using namespace std;
int main() {
int i, k, t, a[100], mx = 0, j;
cin >> k >> t;
for (i = 0; i < t; i++) {
cin >> a[i];
mx = max(a[i], mx);
}
cout << max(2 * mx - k - 1, 0) << endl;
} | [
"io.output.change"
] | 1,488,035 | 1,488,036 | u621509943 | cpp |
p03958 | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
#define lol(i, n) for (int i = 0; i < n; i++)
#define mod 1000000007
typedef long long ll;
using namespace std;
int main() {
int n, m, maxi = 0;
cin >> n >> m;
lol(i, m) {
int a;
cin >> a;
maxi = max(maxi, a);
}
int ans;
... | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
#define lol(i, n) for (int i = 0; i < n; i++)
#define mod 1000000007
typedef long long ll;
using namespace std;
int main() {
int n, m, maxi = 0;
cin >> n >> m;
lol(i, m) {
int a;
cin >> a;
maxi = max(maxi, a);
}
int ans;
... | [
"expression.operation.binary.remove",
"assignment.change"
] | 1,488,041 | 1,488,042 | u924885571 | cpp |
p03958 | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
#define lol(i, n) for (int i = 0; i < n; i++)
#define mod 1000000007
typedef long long ll;
using namespace std;
int main() {
int n, m, maxi = 0;
cin >> n >> m;
lol(i, m) {
int a;
cin >> a;
maxi = max(maxi, a);
}
int ans;
... | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
#define lol(i, n) for (int i = 0; i < n; i++)
#define mod 1000000007
typedef long long ll;
using namespace std;
int main() {
int n, m, maxi = 0;
cin >> n >> m;
lol(i, m) {
int a;
cin >> a;
maxi = max(maxi, a);
}
int ans;
... | [
"assignment.change"
] | 1,488,043 | 1,488,042 | u924885571 | cpp |
p03958 | #include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, n) for (int i = (n)-1; i >= 0; i--)
using namespace std;
int main() {
int K, T;
scanf("%d%d", &K, &T);
vector<int> a(T);
int max = 0;
REP(i, T) {
scanf("%d", &a[i]... | #include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, n) for (int i = (n)-1; i >= 0; i--)
using namespace std;
int main() {
int K, T;
scanf("%d%d", &K, &T);
vector<int> a(T);
int max = 0;
REP(i, T) {
scanf("%d", &a[i]... | [
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 1,488,106 | 1,488,107 | u456065785 | cpp |
p03958 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#i... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#i... | [
"control_flow.loop.for.condition.change"
] | 1,488,148 | 1,488,149 | u277541046 | cpp |
p03959 | #include <bits/stdc++.h>
using namespace std;
#define all(a) a.begin(), a.end()
using ll = long long;
const int INF = 1 << 30;
const ll INFll = 1LL << 62;
const int mod = int(1e9) + 7;
// const int mod=998244353;
using P = pair<int, int>;
using Pll = pair<ll, ll>;
using ld = long double;
// modint: mod 計算を int を扱うように... | #include <bits/stdc++.h>
using namespace std;
#define all(a) a.begin(), a.end()
using ll = long long;
const int INF = 1 << 30;
const ll INFll = 1LL << 62;
const int mod = int(1e9) + 7;
// const int mod=998244353;
using P = pair<int, int>;
using Pll = pair<ll, ll>;
using ld = long double;
// modint: mod 計算を int を扱うように... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,488,158 | 1,488,159 | u525008368 | cpp |
p03955 | #pragma region Macros
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define rep2(i, a, b) for (ll i = a; i <= b; ++i)
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep3(i, a, b) for (ll i = a; i >= b; i--)
#define pii pair<int, int>
#define pll pair<ll, ll>
#defi... | #pragma region Macros
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define rep2(i, a, b) for (ll i = a; i <= b; ++i)
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep3(i, a, b) for (ll i = a; i >= b; i--)
#define pii pair<int, int>
#define pll pair<ll, ll>
#defi... | [
"control_flow.branch.if.condition.change"
] | 1,488,174 | 1,488,175 | u495699318 | cpp |
p03955 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define sz(a) int(a.size())
const int N = 3e5 + 10;
int gi() {
int x = 0, o = 1;
char ch = getchar();
while ((ch < '... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define sz(a) int(a.size())
const int N = 3e5 + 10;
int gi() {
int x = 0, o = 1;
char ch = getchar();
while ((ch < '... | [
"variable_declaration.add",
"variable_declaration.remove"
] | 1,488,176 | 1,488,177 | u030892114 | cpp |
p03955 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define sz(a) int(a.size())
const int N = 3e5 + 10;
int gi() {
int x = 0, o = 1;
char ch = getchar();
while ((ch < '... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define sz(a) int(a.size())
const int N = 3e5 + 10;
int gi() {
int x = 0, o = 1;
char ch = getchar();
while ((ch < '... | [
"variable_declaration.remove",
"variable_declaration.add"
] | 1,488,178 | 1,488,177 | u030892114 | cpp |
p03955 | // Relive your past life.
// Face your demons.
// The past is never dead,it is not even past.
// The memories are not only the key to the past but...also to the future.
// coded in Rusty Lake
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso64... | // Relive your past life.
// Face your demons.
// The past is never dead,it is not even past.
// The memories are not only the key to the past but...also to the future.
// coded in Rusty Lake
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso64... | [
"control_flow.return.add",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,488,183 | 1,488,184 | u728472449 | cpp |
p03955 | #include <bits/stdc++.h>
#define f first
#define s second
#define pb push_back
#define all(x) x.begin(), x.end())
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<long long, long long> pll;
const int N = (int)1e5 + 123, mod = (int)1e9 + 7, inf = (int)1e9, LOG = 18;
const ll INF = ... | #include <bits/stdc++.h>
#define f first
#define s second
#define pb push_back
#define all(x) x.begin(), x.end())
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<long long, long long> pll;
const int N = (int)1e5 + 123, mod = (int)1e9 + 7, inf = (int)1e9, LOG = 18;
const ll INF = ... | [
"assignment.change"
] | 1,488,189 | 1,488,190 | u217416788 | cpp |
p03955 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#define N (100000 + 1000)
using namespace std;
int n, a[4][N], tar[N], R[2];
int main() {
scanf("%d", &n);
for (int i = 1; i <= 3; ++i)
for (int j = 1; j <= n; ++j)
scanf("%d", &a[i][j]);
for (int i = 1; i <= n; ++i) {
tar[i] = (a[2][i] + 1)... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#define N (100000 + 1000)
using namespace std;
int n, a[4][N], tar[N], R[2];
int main() {
scanf("%d", &n);
for (int i = 1; i <= 3; ++i)
for (int j = 1; j <= n; ++j)
scanf("%d", &a[i][j]);
for (int i = 1; i <= n; ++i) {
tar[i] = (a[2][i] + 1)... | [
"assignment.value.change"
] | 1,488,194 | 1,488,195 | u736934109 | cpp |
p03955 | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define ld long double
#define F first
#define S second
#define pii pair<ll, ll>
using namespace ::std;
const ll mod = 1e9 + 7;
const ll inf = 1e17 + 500;
const ll maxn = 5e5 + 500;
ll a[4][maxn];
set<ll> st[2][2];
ll fen[maxn];... | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define ld long double
#define F first
#define S second
#define pii pair<ll, ll>
using namespace ::std;
const ll mod = 1e9 + 7;
const ll inf = 1e17 + 500;
const ll maxn = 5e5 + 500;
ll a[4][maxn];
set<ll> st[2][2];
ll fen[maxn];... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"literal.number.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 1,488,196 | 1,488,197 | u638361337 | cpp |
p03955 | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
typedef pair<int, int> PII;
int inv[2], flips[2], n, t[2][1 << 17], p[1 << 17], a[5][1 << 17];
void update(int idx, int idy) {
for (; idx; idx -= (idx & -idx))
t[idy][idx]++;
}
int get(int idx, int idy) {
int ret = 0;
for (; i... | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
typedef pair<int, int> PII;
int inv[2], flips[2], n, t[2][1 << 17], p[1 << 17], a[5][1 << 17];
void update(int idx, int idy) {
for (; idx; idx -= (idx & -idx))
t[idy][idx]++;
}
int get(int idx, int idy) {
int ret = 0;
for (; i... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,488,198 | 1,488,199 | u663195864 | cpp |
p03955 | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
const int MN = 100010;
int N;
int A[3][100010], B[100010], C[100010], D[100010], E[100010];
void yes() { printf("Yes"); }
void no() { printf("No"); }
struct Fenwick1 {
vector<int> tree;
void init() { tree = vector<int>(MN + 1, 0); }
vo... | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
const int MN = 100010;
int N;
int A[3][100010], B[100010], C[100010], D[100010], E[100010];
void yes() { printf("Yes"); }
void no() { printf("No"); }
struct Fenwick1 {
vector<int> tree;
void init() { tree = vector<int>(MN + 1, 0); }
vo... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,488,200 | 1,488,201 | u333877810 | cpp |
p03955 | #include <bits/stdc++.h>
using namespace std;
int N;
int fid[3][100010];
int rev[100010];
int id[100010];
int bit[300010][2];
int mem[100010];
int res[100010];
void init() {
for (int i = 0; i <= N; i++)
bit[i][0] = bit[i][1] = 0;
return;
}
void add(int i, int k) // x = 1
{
while (i <= N) {
bit[i][k]++;... | #include <bits/stdc++.h>
using namespace std;
int N;
int fid[3][100010];
int rev[100010];
int id[100010];
int bit[300010][2];
int mem[100010];
int res[100010];
void init() {
for (int i = 0; i <= N; i++)
bit[i][0] = bit[i][1] = 0;
return;
}
void add(int i, int k) // x = 1
{
while (i <= N) {
bit[i][k]++;... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 1,488,202 | 1,488,203 | u205655980 | cpp |
p03955 | #include <cstdio>
#define iter(i, n) for (int i = 1; i <= n; ++i)
#define iter_r(i, n) for (int i = n; i >= 1; --i)
#define NR 101000
int n, w[NR][4], odd[NR], oc, even[NR], ec;
bool t[NR];
void inc(int x) {
for (; x <= n; x += x & -x)
t[x] ^= 1;
}
bool query(int x) {
bool s = 0;
for (; x; x -= x & -x)
... | #include <cstdio>
#define iter(i, n) for (int i = 1; i <= n; ++i)
#define iter_r(i, n) for (int i = n; i >= 1; --i)
#define NR 101000
int n, w[NR][4], odd[NR], oc, even[NR], ec;
bool t[NR];
void inc(int x) {
for (; x <= n; x += x & -x)
t[x] ^= 1;
}
bool query(int x) {
bool s = 0;
for (; x; x -= x & -x)
... | [
"control_flow.branch.if.condition.change"
] | 1,488,204 | 1,488,205 | u197797239 | cpp |
p03955 | #include "bits/stdc++.h"
#define PB push_back
#define PF push_front
#define LB lower_bound
#define UB upper_bound
#define fr(x) freopen(x, "r", stdin)
#define fw(x) freopen(x, "w", stdout)
#define iout(x) printf("%d\n", x)
#define lout(x) printf("%lld\n", x)
#define REP(x, l, u) for (ll x = (l); x <= (u); x++)
#define... | #include "bits/stdc++.h"
#define PB push_back
#define PF push_front
#define LB lower_bound
#define UB upper_bound
#define fr(x) freopen(x, "r", stdin)
#define fw(x) freopen(x, "w", stdout)
#define iout(x) printf("%d\n", x)
#define lout(x) printf("%lld\n", x)
#define REP(x, l, u) for (ll x = (l); x <= (u); x++)
#define... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"function.return_value.change",
"io.output.change"
] | 1,488,206 | 1,488,207 | u824191773 | cpp |
p03955 | #include <bits/stdc++.h>
using namespace std;
int n, a[100010][4], x[100010], f[2], g[2];
int main() {
int i, j;
scanf("%d", &n);
for (i = 1; i <= 3; i++)
for (j = 1; j <= n; j++)
scanf("%d", &a[j][i]);
for (i = 1; i <= n; i++) {
x[i] = (a[i][1] - 1) / 3;
if (a[i][1] == 3 * x[i] + 1 && a[i][2]... | #include <bits/stdc++.h>
using namespace std;
int n, a[100010][4], x[100010], f[2], g[2];
int main() {
int i, j;
scanf("%d", &n);
for (i = 1; i <= 3; i++)
for (j = 1; j <= n; j++)
scanf("%d", &a[j][i]);
for (i = 1; i <= n; i++) {
x[i] = (a[i][1] - 1) / 3;
if (a[i][1] == 3 * x[i] + 1 && a[i][2]... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 1,488,208 | 1,488,209 | u614707198 | cpp |
p03955 | #include <bits/stdc++.h>
using namespace std;
int n, a[100010][4], x[100010], f[2], g[2];
int main() {
// freopen(".in","r",stdin);
// freopen(".out","w",stdout);
int i, j;
scanf("%d", &n);
for (i = 1; i <= 3; i++)
for (j = 1; j <= n; j++)
scanf("%d", &a[j][i]);
for (i = 1; i <= n; i++) {
x[i]... | #include <bits/stdc++.h>
using namespace std;
int n, a[100010][4], x[100010], f[2], g[2];
int main() {
// freopen(".in","r",stdin);
// freopen(".out","w",stdout);
int i, j;
scanf("%d", &n);
for (i = 1; i <= 3; i++)
for (j = 1; j <= n; j++)
scanf("%d", &a[j][i]);
for (i = 1; i <= n; i++) {
x[i]... | [
"expression.operation.binary.remove"
] | 1,488,212 | 1,488,213 | u773072209 | cpp |
p03955 | #pragma comment(linker, "/STACK:102400000,102400000")
#include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
#define SZ(x) (int)(x.size())
#define rep(i, a, b) for (int i = a; i < b; i++)
#define per(i, ... | #pragma comment(linker, "/STACK:102400000,102400000")
#include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
#define SZ(x) (int)(x.size())
#define rep(i, a, b) for (int i = a; i < b; i++)
#define per(i, ... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,488,218 | 1,488,219 | u944590595 | cpp |
p03955 | #include <cassert>
#include <iostream>
#include <sstream>
#include <string>
int permutation(int *a, int n) {
bool *b = new bool[n];
for (int i = 0; i < n; ++i) {
b[i] = false;
}
int sign = 1;
for (int i = 0; i < n; ++i) {
int local_sign = 1;
int j = i;
while (!b[j]) {
b[j] = true;
... | #include <cassert>
#include <iostream>
#include <sstream>
#include <string>
int permutation(int *a, int n) {
bool *b = new bool[n];
for (int i = 0; i < n; ++i) {
b[i] = false;
}
int sign = 1;
for (int i = 0; i < n; ++i) {
int local_sign = 1;
int j = i;
while (!b[j]) {
b[j] = true;
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,488,220 | 1,488,221 | u852599784 | cpp |
p03955 | #include <bits/stdc++.h>
using namespace std;
/*int N, M, a[109];
set < vector < int > > S;
int mod (int x)
{
if (x<0)return -x;
return x;
}
void back (int pos)
{
vector < int > curr;
for (int i=1; i<=N; i++)
curr.push_back (a[i]);
if (S.find (curr) != S.end ()) return;
S.insert (cur... | #include <bits/stdc++.h>
using namespace std;
/*int N, M, a[109];
set < vector < int > > S;
int mod (int x)
{
if (x<0)return -x;
return x;
}
void back (int pos)
{
vector < int > curr;
for (int i=1; i<=N; i++)
curr.push_back (a[i]);
if (S.find (curr) != S.end ()) return;
S.insert (cur... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,488,222 | 1,488,223 | u098930106 | cpp |
p03956 | #include <bits/stdc++.h>
typedef long long ll;
const int N = 100054, M = 200054;
int V, E, Es = 0;
int to[M], first[N], next[M];
int C[3], CE, col[N];
inline void addedge(int u, int v) {
to[++Es] = v, next[Es] = first[u], first[u] = Es;
to[++Es] = u, next[Es] = first[v], first[v] = Es;
}
inline bool dfs(int x) ... | #include <bits/stdc++.h>
typedef long long ll;
const int N = 100054, M = 200054;
int V, E, Es = 0;
int to[M], first[N], next[M];
int C[3], CE, col[N];
inline void addedge(int u, int v) {
to[++Es] = v, next[Es] = first[u], first[u] = Es;
to[++Es] = u, next[Es] = first[v], first[v] = Es;
}
inline bool dfs(int x) ... | [
"misc.opposites",
"expression.operator.compare.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.unary.logical.remove"
] | 1,488,238 | 1,488,239 | u357974633 | cpp |
p03956 | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int col[N];
int Head[N], Next[N << 1], Adj[N << 1], Weight[N << 1], tot = 0;
void addedge(int u, int v, int w) {
Next[++tot] = Head[u], Head[u] = tot, Adj[tot] = v, Weight[tot] = w;
}
int calc(int x) {
if (x <= 0)
return x + 3;
if (x > 3)
... | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int col[N];
int Head[N], Next[N << 1], Adj[N << 1], Weight[N << 1], tot = 0;
void addedge(int u, int v, int w) {
Next[++tot] = Head[u], Head[u] = tot, Adj[tot] = v, Weight[tot] = w;
}
int calc(int x) {
if (x <= 0)
return x + 3;
if (x > 3)
... | [
"assignment.change"
] | 1,488,242 | 1,488,243 | u389411299 | cpp |
p03959 | #include <bits/stdc++.h>
using i64 = long long;
int main() {
constexpr i64 mod = 1000000007;
int n;
std::cin >> n;
std::vector<int> lb(n), a(n), t(n), q(n);
for (auto &e : t)
std::cin >> e;
for (auto &e : a)
std::cin >> e;
int h = 0;
for (int i = 0; i < n; i++) {
if (h != t[i])
q[i] ... | #include <bits/stdc++.h>
using i64 = long long;
int main() {
constexpr i64 mod = 1000000007;
int n;
std::cin >> n;
std::vector<int> lb(n), a(n), t(n), q(n);
for (auto &e : t)
std::cin >> e;
for (auto &e : a)
std::cin >> e;
int h = 0;
for (int i = 0; i < n; i++) {
if (h != t[i])
q[i] ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,488,244 | 1,488,245 | u876875284 | cpp |
p03959 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int N;
const int MAX_N = 1.0e5 + 100;
ll T[MAX_N], A[MAX_N];
const int MOD = 1.0e9 + 7;
int main() {
cin >> N;
for (int i = 0; i < N; i++)
cin >> T[i];
for (int i = 0; i < N; i++)
cin >> A[i];
ll m[N];
memset(m, -1, sizeof(m));
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int N;
const int MAX_N = 1.0e5 + 100;
ll T[MAX_N], A[MAX_N];
const int MOD = 1.0e9 + 7;
int main() {
cin >> N;
for (int i = 0; i < N; i++)
cin >> T[i];
for (int i = 0; i < N; i++)
cin >> A[i];
ll m[N];
memset(m, -1, sizeof(m));
... | [
"literal.number.change",
"io.output.change"
] | 1,488,246 | 1,488,247 | u488352661 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.