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 |
|---|---|---|---|---|---|---|---|
p03729 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for (int i = (s); i < (n); i++)
#define rep(i, n) FOR(i, 0, n)
int main() {
string a, b, c;
cin >> a >> b >> c;
bool ans = a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0);
cout << (ans ? "Yes" : "No") << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for (int i = (s); i < (n); i++)
#define rep(i, n) FOR(i, 0, n)
int main() {
string a, b, c;
cin >> a >> b >> c;
bool ans = a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0);
cout << (ans ? "YES" : "NO") << endl;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,823 | 1,393,824 | u106964380 | cpp |
p03729 | ///スマホコーディング
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); ++i)
typedef long long ll;
const int inf = 1e9;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "Yes" << endl;
else
cout << "No" << en... | ///スマホコーディング
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); ++i)
typedef long long ll;
const int inf = 1e9;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "YES" << endl;
else
cout << "NO" << en... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,827 | 1,393,828 | u523303964 | cpp |
p03729 | #include <iostream>
#include <locale>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
int d, e;
d = a.size();
e = b.size();
if (a[d - 1] == b[0] || b[e - 1] == c[0]) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
}
// | #include <iostream>
#include <locale>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
int d, e;
d = a.size();
e = b.size();
if (a[d - 1] == b[0] && b[e - 1] == c[0]) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
}
// | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,393,829 | 1,393,830 | u856606883 | cpp |
p03729 | // shara's here
#include <bits/stdc++.h>
using namespace std;
int main() {
string x, y, z;
cin >> x >> y >> z;
int lenx = x.size() - 1;
int leny = y.size() - 1;
int lenz = z.size() - 1;
if (x[lenx] == y[0] && y[leny] == z[0]) {
cout << "Yes";
} else
cout << "No";
return 0;
}
| // shara's here
#include <bits/stdc++.h>
using namespace std;
int main() {
string x, y, z;
cin >> x >> y >> z;
int lenx = x.size() - 1;
int leny = y.size() - 1;
int lenz = z.size() - 1;
if (x[lenx] == y[0] && y[leny] == z[0]) {
cout << "YES";
} else
cout << "NO";
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,835 | 1,393,836 | u470490204 | cpp |
p03729 | #include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length()] == b[0] && b[b.length()] == c[0])
cout << "YES";
else
cout << "NO";
return 0;
} | #include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "YES";
else
cout << "NO";
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,393,854 | 1,393,855 | u561143568 | cpp |
p03729 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define uint unsigned int
#define ull unsigned long long
#define pb push_back
#define mk make_pair
#define ins insert
#define all(x) (x).begin(),... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define uint unsigned int
#define ull unsigned long long
#define pb push_back
#define mk make_pair
#define ins insert
#define all(x) (x).begin(),... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,856 | 1,393,857 | u827743237 | cpp |
p03729 | #include <stdio.h>
#include <string.h>
int main(void) {
char A[11], B[11], C[11];
scanf("%s%s%s", A, B, C);
int ae = strlen(A);
int be = strlen(B);
if (A[ae - 1] == B[0] && B[be - 1] == C[0])
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
#include <string.h>
int main(void) {
char A[11], B[11], C[11];
scanf("%s%s%s", A, B, C);
int ae = strlen(A);
int be = strlen(B);
if (A[ae - 1] == B[0] && B[be - 1] == C[0])
printf("YES\n");
else
printf("NO\n");
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,393,866 | 1,393,865 | u100307675 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define f(i, a, b) for (int i = (int)(a); i <= (int)(b); i++)
#define char_f(i, a) for (int i = (int)(a); (char)s[i] != '\0'; i++)
#define rf(i, a, b) for (int i = (int)(a); i >= (int)(b); i--)
#define llf(i, a, b) ... | #include <bits/stdc++.h>
using namespace std;
#define f(i, a, b) for (int i = (int)(a); i <= (int)(b); i++)
#define char_f(i, a) for (int i = (int)(a); (char)s[i] != '\0'; i++)
#define rf(i, a, b) for (int i = (int)(a); i >= (int)(b); i--)
#define llf(i, a, b) ... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,393,868 | 1,393,869 | u290402695 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "YES" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,870 | 1,393,871 | u164448353 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "Yes";
} else {
cout << "No";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "YES";
} else {
cout << "NO";
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,872 | 1,393,873 | u442097733 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) ? "YES"
: "NO";
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << ((a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) ? "YES"
: "NO");
return 0;
}
| [] | 1,393,878 | 1,393,879 | u139855159 | cpp |
p03729 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0))
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,899 | 1,393,900 | u171336585 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size();
int b = B.size();
int c = C.size();
if (A.at(a - 1) == B.at(b - 1) && B.at(b - 1) == C.at(c - 1))
cout << "YES" << endl;
else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size();
int b = B.size();
int c = C.size();
if (A.at(a - 1) == B.at(0) && B.at(b - 1) == C.at(0))
cout << "YES" << endl;
else
cout << "NO" << endl;
}
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 1,393,901 | 1,393,902 | u312245175 | cpp |
p03729 | #include "bits/stdc++.h"
using namespace std;
const int MAX = 700000;
const int MOD = 1000000007;
long long fac[MAX], finv[MAX], inv[MAX];
// テーブルを作る前処理
void COMinit() {
fac[0] = fac[1] = 1;
finv[0] = finv[1] = 1;
inv[1] = 1;
for (int i = 2; i < MAX; i++) {
fac[i] = fac[i - 1] * i % MOD;
inv[i] = MOD ... | #include "bits/stdc++.h"
using namespace std;
const int MAX = 700000;
const int MOD = 1000000007;
long long fac[MAX], finv[MAX], inv[MAX];
// テーブルを作る前処理
void COMinit() {
fac[0] = fac[1] = 1;
finv[0] = finv[1] = 1;
inv[1] = 1;
for (int i = 2; i < MAX; i++) {
fac[i] = fac[i - 1] * i % MOD;
inv[i] = MOD ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,919 | 1,393,920 | u473116917 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size()] == b[0] && b[b.size()] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,927 | 1,393,928 | u960080897 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.siz... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.siz... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,929 | 1,393,930 | u690461923 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "Yes";
else
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "YES";
else
cout << "NO";
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,938 | 1,393,939 | u411916435 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string A, B, C;
cin >> A >> B >> C;
if (A.end() == B.begin() && B.end() == C.begin()) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string A, B, C;
cin >> A >> B >> C;
if (*A.rbegin() == *B.begin() && *B.rbegin() == *C.begin()) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"control_flow.branch.if.condition.change",
"call.function.change"
] | 1,393,942 | 1,393,943 | u018916376 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,946 | 1,393,947 | u633728454 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,952 | 1,393,953 | u782064792 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
int main(void) {
std::string A, B, C;
std::cin >> A >> B >> C;
auto check = [&]() {
if (A.at(A.size() - 1) != B.at(0))
return "No";
if (B.at(B.size() - 1) != C.at(0))
return "No";... | #include <algorithm>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
int main(void) {
std::string A, B, C;
std::cin >> A >> B >> C;
auto check = [&]() {
if (A.at(A.size() - 1) != B.at(0))
return "NO";
if (B.at(B.size() - 1) != C.at(0))
return "NO";... | [
"literal.string.change",
"literal.string.case.change",
"function.return_value.change"
] | 1,393,954 | 1,393,955 | u100280611 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vll = vector<ll>;
const int INF = 1e9;
const ll INFLL = 1e18;
const int MOD = 1e9 + 7;
const int NIL = -1;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(n) begin(n), end(n)
templat... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vll = vector<ll>;
const int INF = 1e9;
const ll INFLL = 1e18;
const int MOD = 1e9 + 7;
const int NIL = -1;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(n) begin(n), end(n)
templat... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,958 | 1,393,959 | u959682820 | cpp |
p03729 | #include <iostream>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
cout << ((a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0]) ? "Yes" : "No")
<< endl;
} | #include <iostream>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
cout << (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? "YES" : "NO")
<< endl;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,960 | 1,393,961 | u867320886 | cpp |
p03729 | #include <iostream>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
cout << (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? "Yes" : "No")
<< endl;
} | #include <iostream>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
cout << (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? "YES" : "NO")
<< endl;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,962 | 1,393,961 | u867320886 | cpp |
p03729 | #include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0))
cout << "TES" << endl;
else
cout << "NO" << endl;
return 0;
} | #include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0))
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 1,393,964 | 1,393,965 | u616998927 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
const int INF = 100100100;
const int M... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
const int INF = 100100100;
const int M... | [
"expression.operation.binary.add"
] | 1,393,968 | 1,393,969 | u190761897 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
const long INF = 1000000000000000;
const long MOD = 1000000007;
long dis(long a, long b, long c) {
return max(a, max(b, c)) - min(a, min(b, c));
}
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)... | #include <bits/stdc++.h>
using namespace std;
const long INF = 1000000000000000;
const long MOD = 1000000007;
long dis(long a, long b, long c) {
return max(a, max(b, c)) - min(a, min(b, c));
}
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,976 | 1,393,977 | u968365254 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,982 | 1,393,983 | u438621426 | cpp |
p03729 | #include <algorithm>
#include <bits/stdc++.h>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using n... | #include <algorithm>
#include <bits/stdc++.h>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using n... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,997 | 1,393,998 | u767543103 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = (int)(0); i < (int)(n); ++i)
#define reps(i, n) for (int i = (int)(1); i <= (int)(n); ++i)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rreps(i, n) for (int i = ((int)(n)); i > 0; i--)
#define irep(i, m, n) for (int i = ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = (int)(0); i < (int)(n); ++i)
#define reps(i, n) for (int i = (int)(1); i <= (int)(n); ++i)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rreps(i, n) for (int i = ((int)(n)); i > 0; i--)
#define irep(i, m, n) for (int i = ... | [
"literal.string.change",
"literal.string.case.change",
"variable_declaration.value.change",
"assignment.value.change"
] | 1,393,999 | 1,394,000 | u530107518 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size();
int b = B.size();
if (A.at(a) == B.at(0) && B.at(b) == C.at(0)) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size();
int b = B.size();
if (A.at(a - 1) == B.at(0) && B.at(b - 1) == C.at(0)) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
} | [
"control_flow.branch.if.condition.change"
] | 1,394,005 | 1,394,006 | u983062344 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if ((A.back() == B.front()) || (B.back() == C.front())) {
cout << "YES";
} else {
cout << "NO";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if ((A.back() == B.front()) && (B.back() == C.front())) {
cout << "YES";
} else {
cout << "NO";
}
} | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,394,007 | 1,394,008 | u653388379 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size() - 1] = B[0] && B[B.size() - 1] == C[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size() - 1] == B[0] && B[B.size() - 1] == C[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,394,012 | 1,394,013 | u636605529 | cpp |
p03729 | #include <iostream>
using namespace std;
int main() {
string a, b, c;
string ans;
cin >> a >> b >> c;
if (a[a.length()] == b[0] && b[b.length()] == c[0]) {
ans = "YES";
} else {
ans = "NO";
}
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
string a, b, c;
string ans;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) {
ans = "YES";
} else {
ans = "NO";
}
cout << ans << endl;
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,017 | 1,394,018 | u736498127 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, a) for (int i = 0; i < (a); i++)
#define ALL(a) (a).begin(), (a).end()
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const int MOD = 1e9 + 7;
signed main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[a.... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, a) for (int i = 0; i < (a); i++)
#define ALL(a) (a).begin(), (a).end()
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const int MOD = 1e9 + 7;
signed main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,394,023 | 1,394,024 | u366398972 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
int q = 0;
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0)) {
q = q++;
}
if (q == 0) {
cout << "NO" << endl;
return 0;
}
else {
cout << "YES" << endl;
retu... | #include <iostream>
#include <string>
using namespace std;
int main() {
int q = 0;
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0)) {
q = ++q;
}
if (q == 0) {
cout << "NO" << endl;
return 0;
}
else {
cout << "YES" << endl;
retu... | [] | 1,394,027 | 1,394,028 | u840731541 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
int q = 0;
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0)) {
q = q++;
}
if (q == 0) {
cout << "NO" << endl;
return 0;
} else {
cout << "YES" << endl;
return ... | #include <iostream>
#include <string>
using namespace std;
int main() {
int q = 0;
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0)) {
q = ++q;
}
if (q == 0) {
cout << "NO" << endl;
return 0;
}
else {
cout << "YES" << endl;
retu... | [] | 1,394,029 | 1,394,028 | u840731541 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,030 | 1,394,031 | u915689660 | cpp |
p03729 | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.... | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.... | [
"control_flow.branch.if.condition.change"
] | 1,394,032 | 1,394,033 | u379928983 | cpp |
p03729 | #include <bits/stdc++.h>
#include <cmath>
#include <deque>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
int main(void) {
// Your code here!
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "Yes" << endl;
else
cout <<... | #include <bits/stdc++.h>
#include <cmath>
#include <deque>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
int main(void) {
// Your code here!
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "YES" << endl;
else
cout <<... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,034 | 1,394,035 | u528005130 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
int p, q;
char x, y, z, w;
cin >> a >> b >> c;
p = a.size();
q = b.size();
x = a.at(p);
y = b.at(0);
z = b.at(q);
w = c.at(0);
if (x == y && z == w) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
int p, q;
char x, y, z, w;
cin >> a >> b >> c;
p = a.size();
q = b.size();
x = a.at(p - 1);
y = b.at(0);
z = b.at(q - 1);
w = c.at(0);
if (x == y && z == w) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
... | [
"assignment.change"
] | 1,394,036 | 1,394,037 | u072080927 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long double ld;
typedef long long int ll;
ty... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long double ld;
typedef long long int ll;
ty... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,038 | 1,394,039 | u961198482 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long double ld;
typedef long long int ll;
ty... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long double ld;
typedef long long int ll;
ty... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,040 | 1,394,039 | u961198482 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long double ld;
typedef long long int ll;
ty... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long double ld;
typedef long long int ll;
ty... | [
"call.function.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,041 | 1,394,039 | u961198482 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,044 | 1,394,045 | u777864981 | cpp |
p03726 | #pragma comment(linker, "/stack:200000000")
//#pragma GCC optimize("Ofast")
#pragma target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
using namespace std;
#define int ll
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
// const int inf = 0x3f3f3f... | #pragma comment(linker, "/stack:200000000")
//#pragma GCC optimize("Ofast")
#pragma target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
using namespace std;
#define int ll
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
// const int inf = 0x3f3f3f... | [
"literal.string.change",
"call.arguments.change"
] | 1,394,078 | 1,394,079 | u454243544 | cpp |
p03726 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define sqr(x) ((x) * (x))
#define mp make_pair
#define uint unsigned
inline char gc() {
static char buf[100000], *p1 = buf, *p2 = buf;
return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 100000, stdin), p1 == p2)
? EOF
: ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define sqr(x) ((x) * (x))
#define mp make_pair
#define uint unsigned
inline char gc() {
static char buf[100000], *p1 = buf, *p2 = buf;
return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 100000, stdin), p1 == p2)
? EOF
: ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,394,084 | 1,394,085 | u910444501 | cpp |
p03726 | #include <cstdio>
#include <vector>
using namespace std;
#define iter(i, n) for (int i = 1; i <= n; ++i)
#define NR 101000
int n;
vector<int> g[NR];
bool ans = true;
bool dfs(int x, int fa) {
bool need = true;
for (int v : g[x])
if (v != fa) {
if (dfs(v, x)) {
if (need)
need = false;
... | #include <cstdio>
#include <vector>
using namespace std;
#define iter(i, n) for (int i = 1; i <= n; ++i)
#define NR 101000
int n;
vector<int> g[NR];
bool ans = true;
bool dfs(int x, int fa) {
bool need = true;
for (int v : g[x])
if (v != fa) {
if (dfs(v, x)) {
if (need)
need = false;
... | [
"call.arguments.change"
] | 1,394,098 | 1,394,099 | u197797239 | cpp |
p03726 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
const int maxn = 100005;
int n;
vector<int> e[maxn];
bool f[maxn];
bool df... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
const int maxn = 100005;
int n;
vector<int> e[maxn];
bool f[maxn];
bool df... | [
"control_flow.branch.if.condition.change"
] | 1,394,115 | 1,394,116 | u541410431 | cpp |
p03726 | #include <bits/stdc++.h>
using namespace std;
#ifdef WIN32
#define I64 "%I64d"
#else
#define I64 "%lld"
#endif
typedef long long ll;
#define f first
#define s second
#define mp make_pair
#define pb push_back
#define all(s) s.begin(), s.end()
#define sz(s) (int(s.size()))
#define fname "a"
#define MAXN 2000002
int ... | #include <bits/stdc++.h>
using namespace std;
#ifdef WIN32
#define I64 "%I64d"
#else
#define I64 "%lld"
#endif
typedef long long ll;
#define f first
#define s second
#define mp make_pair
#define pb push_back
#define all(s) s.begin(), s.end()
#define sz(s) (int(s.size()))
#define fname "a"
#define MAXN 2000002
int ... | [
"expression.operation.binary.remove",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 1,394,126 | 1,394,127 | u024265328 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,142 | 1,394,143 | u995485610 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,144 | 1,394,145 | u325586706 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string k = "NO";
if (a.at(a.size() - 1) == b.at(0) && a.at(b.size() - 1) == c.at(0)) {
k = "YES";
}
cout << k << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
string k = "NO";
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0)) {
k = "YES";
}
cout << k << endl;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,394,146 | 1,394,147 | u323864528 | cpp |
p03729 | #include <algorithm>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
typedef unsigned int uint;
typedef long long ll;
typedef pair<int, int> P;
const int c_INF = 111111111;
const int c_mINF = -111111111;
const int c_YET = -1;
const int c_Dx[4] = {0, 0, ... | #include <algorithm>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
typedef unsigned int uint;
typedef long long ll;
typedef pair<int, int> P;
const int c_INF = 111111111;
const int c_mINF = -111111111;
const int c_YET = -1;
const int c_Dx[4] = {0, 0, ... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,394,148 | 1,394,149 | u433195318 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, n) for... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, n) for... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,394,156 | 1,394,157 | u834415466 | cpp |
p03729 | #include <bits/stdc++.h>
#include <math.h>
#include <stdlib.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) ... | #include <bits/stdc++.h>
#include <math.h>
#include <stdlib.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,160 | 1,394,161 | u561443723 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() == b[0] && b[b.size()] == c[0]]) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0]) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,394,162 | 1,394,163 | u447116202 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size()] == b[0] && b[b.size()] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [
"control_flow.branch.if.condition.change"
] | 1,394,164 | 1,394,165 | u101777447 | cpp |
p03729 | #include <iostream>
using namespace std;
int main() {
string S1;
string S2;
string S3;
cin >> S1 >> S2 >> S3;
if (S1.at(S1.size() - 1) == S2.at(0) && S2.at(S2.size() - 1) == S3.at(0)) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
string S1;
string S2;
string S3;
cin >> S1 >> S2 >> S3;
if (S1.at(S1.size() - 1) == S2.at(0) && S2.at(S2.size() - 1) == S3.at(0)) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,166 | 1,394,167 | u077051605 | cpp |
p03729 | #include <iostream>
using namespace std;
int main() {
string S1;
string S2;
string S3;
cin >> S1 >> S2 >> S3;
if (S1.at(S1.size() - 1) == S2.at(0) || S2.at(S2.size() - 1) == S3.at(0)) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
string S1;
string S2;
string S3;
cin >> S1 >> S2 >> S3;
if (S1.at(S1.size() - 1) == S2.at(0) && S2.at(S2.size() - 1) == S3.at(0)) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
return 0;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,168 | 1,394,167 | u077051605 | cpp |
p03729 | #include <algorithm> // sort
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define DEBUG 0
#define REP(i, n) for (long long i = 0; i < (n); i++)
typedef lon... | #include <algorithm> // sort
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define DEBUG 0
#define REP(i, n) for (long long i = 0; i < (n); i++)
typedef lon... | [
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 1,394,171 | 1,394,172 | u485731913 | cpp |
p03729 | #include <iomanip>
#include <iostream>
using namespace std;
#define rep(i, a, n) for (int i = (a); i < (n); i++)
void Main() {
string a, b, c;
cin >> a >> b >> c;
a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? cout << "Yes" << endl
: cout << "No" << en... | #include <iomanip>
#include <iostream>
using namespace std;
#define rep(i, a, n) for (int i = (a); i < (n); i++)
void Main() {
string a, b, c;
cin >> a >> b >> c;
a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? cout << "YES" << endl
: cout << "NO" << en... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 1,394,173 | 1,394,174 | u277956366 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size(), b = B.size();
if (A.at(a) == B.at(0) && B.at(b) == C.at(0))
cout << "YES" << endl;
else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size(), b = B.size();
if (A.at(a - 1) == B.at(0) && B.at(b - 1) == C.at(0))
cout << "YES" << endl;
else
cout << "NO" << endl;
} | [
"control_flow.branch.if.condition.change"
] | 1,394,175 | 1,394,176 | u263220374 | cpp |
p03729 | #include <bits/stdc++.h>
#define l_ength size
const int inf = (1 << 30);
const int mod = 1000000007;
using ll = long long;
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.back() == b.front() && b.back() == c.front())
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
#define l_ength size
const int inf = (1 << 30);
const int mod = 1000000007;
using ll = long long;
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.back() == b.front() && b.back() == c.front())
cout << "YES" << endl;
else
cout << "NO" << endl;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,177 | 1,394,178 | u268977772 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.length() - 1) == B.at(0) && B.at(B.length() - 1) == C.at(0))
printf("Yes");
else
printf("No");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.length() - 1) == B.at(0) && B.at(B.length() - 1) == C.at(0))
printf("YES");
else
printf("NO");
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,394,197 | 1,394,198 | u553129408 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "Yes";
} else {
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "YES";
} else {
cout << "NO";
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,204 | 1,394,205 | u994956045 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) == B.at(0) && B.at(B.size() - 1) == C.at(0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,212 | 1,394,213 | u351586819 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
// start
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(a.size() - 1) == c.at(0))
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
// start
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0))
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,394,214 | 1,394,215 | u376234649 | cpp |
p03729 | #include <iostream>
using namespace std;
int main() {
string a, b, c;
int x, y;
cin >> a >> b >> c;
x = a.size();
y = b.size();
if (a[x - 1] == b[0] && b[y - 1] == c[0])
cout << "Yes" << endl;
else {
cout << "NO" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
string a, b, c;
int x, y;
cin >> a >> b >> c;
x = a.size();
y = b.size();
if (a[x - 1] == b[0] && b[y - 1] == c[0])
cout << "YES" << endl;
else {
cout << "NO" << endl;
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,216 | 1,394,217 | u531523517 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size()] == b[0] && b[b.size()] == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,394,220 | 1,394,221 | u568419568 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A, B, C;
if (A[A.size() - 1] == B[0] && B[B.size() - 1] == C[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size() - 1] == B[0] && B[B.size() - 1] == C[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [] | 1,394,263 | 1,394,267 | u067273593 | cpp |
p03729 |
#include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) {
cout << 'YES' << endl;
} else {
cout << 'NO' << endl;
}
} |
#include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [
"literal.string.change",
"io.output.change"
] | 1,394,281 | 1,394,283 | u142946678 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "Yes";
else
cout << "No";
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0])
cout << "YES";
else
cout << "NO";
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,293 | 1,394,295 | u597869446 | cpp |
p03729 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "Yes";
else
cout << "No";
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0])
cout << "YES";
else
cout << "NO";
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,304 | 1,394,306 | u344148323 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int an = a.size() - 1, bn = b.size() - 1, cn = c.size() - 1;
if (a.at(an) != b.at(0)) {
cout << "NO" << endl;
} else if (a.at(bn) != c.at(0)) {
cout << "NO" << endl;
} else {
cout << "YES... | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int an = a.size() - 1, bn = b.size() - 1, cn = c.size() - 1;
if (a.at(an) != b.at(0)) {
cout << "NO" << endl;
} else if (b.at(bn) != c.at(0)) {
cout << "NO" << endl;
} else {
cout << "YES... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,394,312 | 1,394,314 | u519899937 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define SORT_INV(c) sort((c).begin(), (c).end(), greater<int>())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG true
// sort(a.begin(), a... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define SORT_INV(c) sort((c).begin(), (c).end(), greater<int>())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG true
// sort(a.begin(), a... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,316 | 1,394,318 | u393086221 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << (a[a.size() - 1] == b[0] || b[b.size() - 1] == c[0] ? "YES" : "NO")
<< endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0] ? "YES" : "NO")
<< endl;
} | [
"misc.opposites",
"control_flow.loop.for.condition.change",
"io.output.change"
] | 1,394,348 | 1,394,349 | u881647420 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) {
cout << "Yes" << endl;
} else
cout << "No" << endl;
}
| #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] && b[b.length() - 1] == c[0]) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,369 | 1,394,372 | u640827947 | cpp |
p03729 | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int as, bs;
string a, b, c;
cin >> a >> b >> c;
as = a.size();
bs = b.size();
if (a.back() == b.front(), b.back() == c.front()) {
cout << "YES\n";
} else {
cout << "NO\n";
}
return 0;
} | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main(void) {
int as, bs;
string a, b, c;
cin >> a >> b >> c;
as = a.size();
bs = b.size();
// cout << a.back() << b.front() << b.back() << c.front() << "\n";
if (a.back() == b.front() && b.back() == c.front()) {
c... | [
"control_flow.branch.if.condition.change"
] | 1,394,242 | 1,394,243 | u217596176 | cpp |
p03729 | #include <bits/stdc++.h>
#define foreach(i, v) \
for (__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++i)
#define BETWEEN(a, x, b) (a <= x && x < b)
using namespace std;
typedef long long ll;
int main(int argc, char *argv[]) {
ios::sync_with_stdio(... | #include <bits/stdc++.h>
#define foreach(i, v) \
for (__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++i)
#define BETWEEN(a, x, b) (a <= x && x < b)
using namespace std;
typedef long long ll;
int main(int argc, char *argv[]) {
ios::sync_with_stdio(... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,394,398 | 1,394,400 | u440032761 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
if ((s1[s1.length() - 1] == s2[0]) && (s2[s2.length() - 1] == s3[0])) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
if ((s1[s1.length() - 1] == s2[0]) && (s2[s2.length() - 1] == s3[0])) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,252 | 1,394,253 | u884336498 | cpp |
p03729 | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
#define str string
#define rep(x, y) for (int i = x; i < y; i++)
#define REP(x, y) for (int j = x; j < y; j++)
#define all(x) x.begin(), x.end()
#define int long long
signed main() {
int N, K;
char dif = 'A' - 'a';
str S1, S2, S3;
cin >> S1 >> S... | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
#define str string
#define rep(x, y) for (int i = x; i < y; i++)
#define REP(x, y) for (int j = x; j < y; j++)
#define all(x) x.begin(), x.end()
#define int long long
signed main() {
int N, K;
char dif = 'A' - 'a';
str S1, S2, S3;
cin >> S1 >> S... | [
"control_flow.branch.if.condition.change"
] | 1,394,401 | 1,394,402 | u347579224 | cpp |
p03729 |
#include <cstdio>
int main() {
char s[3][10];
for (int i = 0; i < 3; i++) {
scanf(" %s", &s[i]);
}
int count[3];
for (int i = 0; i < 3; i++) {
count[i] = 0;
}
for (int i = 0; i < 3; i++) {
for (int j = 0;; j++) {
if (s[i][j] == '\0') {
count[i] = j;
break;
}
... |
#include <cstdio>
int main() {
char s[3][11];
for (int i = 0; i < 3; i++) {
scanf(" %s", &s[i]);
}
int count[3];
for (int i = 0; i < 3; i++) {
count[i] = 0;
}
for (int i = 0; i < 3; i++) {
for (int j = 0;; j++) {
if (s[i][j] == '\0') {
count[i] = j;
break;
}
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,394,260 | 1,394,261 | u289709148 | cpp |
p03729 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define repR(i, n) for (int i = n; i >= 0; ++i)
#define FDS(i, n) for (int i = 0; i < n; ++i)
#define FDSR(i, n) for (int i = n; i >= 0; ++i)
#define FOR(i, m, n) for (int i = m; i < n; ++i)
#define FORR(i, m, n) for (int i = m; i >= n; --i)
#define... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define repR(i, n) for (int i = n; i >= 0; ++i)
#define FDS(i, n) for (int i = 0; i < n; ++i)
#define FDSR(i, n) for (int i = n; i >= 0; ++i)
#define FOR(i, m, n) for (int i = m; i < n; ++i)
#define FORR(i, m, n) for (int i = m; i >= n; --i)
#define... | [
"control_flow.branch.if.condition.change"
] | 1,394,403 | 1,394,404 | u870797515 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size()] == b[0] && b[b.size()] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl... | [
"control_flow.branch.if.condition.change"
] | 1,394,405 | 1,394,406 | u274962354 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size()] == b[1] && b[b.size()] == c[1]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl... | [
"control_flow.branch.if.condition.change",
"literal.number.change",
"variable_access.subscript.index.change"
] | 1,394,407 | 1,394,406 | u274962354 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if ((A[A.size()] == B[0]) && (B[B.size()] == C[0])) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if ((A[A.size() - 1] == B[0]) && (B[B.size() - 1] == C[0])) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
} | [
"control_flow.branch.if.condition.change"
] | 1,394,408 | 1,394,410 | u609576113 | cpp |
p03729 | #include "bits/stdc++.h"
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.back() == B.front() && B.back() == C.front()) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include "bits/stdc++.h"
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.back() == B.front() && B.back() == C.front()) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,266 | 1,394,268 | u692207013 | cpp |
p03729 | #include <bits/stdc++.h>
#define pq priority_queue
using namespace std;
typedef pair<int, int> P;
typedef pair<int, P> P2;
typedef pair<int, P2> P3;
constexpr long long gcd(long long a, long long b) {
return b ? gcd(b, a % b) : a;
}
constexpr long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
const... | #include <bits/stdc++.h>
#define pq priority_queue
using namespace std;
typedef pair<int, int> P;
typedef pair<int, P> P2;
typedef pair<int, P2> P3;
constexpr long long gcd(long long a, long long b) {
return b ? gcd(b, a % b) : a;
}
constexpr long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
const... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,412 | 1,394,414 | u424655672 | cpp |
p03729 | #include <bits/stdc++.h>
#include <cstdio>
typedef long long int ll;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define FOR_IN(i, a, b) for (int i = (a); i < (b); i++)
#define BETWEEN(x, a, b) ((x) >= (a) && (x) <= (b))
#define BIT(b, i) (((b) >> (i)) & 1)
#define LOG_F 1
#define LOG(...) ... | #include <bits/stdc++.h>
#include <cstdio>
typedef long long int ll;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define FOR_IN(i, a, b) for (int i = (a); i < (b); i++)
#define BETWEEN(x, a, b) ((x) >= (a) && (x) <= (b))
#define BIT(b, i) (((b) >> (i)) & 1)
#define LOG_F 1
#define LOG(...) ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,276 | 1,394,278 | u261243803 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A[A.length() - 1] == B[0] && B[B.length() - 1] == C[0])
cout << "YSE" << endl;
else
cout << "NO" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A[A.length() - 1] == B[0] && B[B.length() - 1] == C[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 1,394,288 | 1,394,290 | u134519179 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
cout << ((A.end() == B.begin() && B.end() == C.begin()) ? "YES" : "NO")
<< endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
cout << ((A.back() == B.front()) && (B.back() == C.front()) ? "YES" : "NO")
<< endl;
return 0;
}
| [
"call.function.change",
"control_flow.loop.for.condition.change",
"io.output.change"
] | 1,394,421 | 1,394,422 | u471342385 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ct(n) cout << n << endl;
#define cts(n) cout << n << " ";
#define cte cout << endl;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repo(i, o, n) for (int i = o; i < n; i++)
#define repm(i,... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ct(n) cout << n << endl;
#define cts(n) cout << n << " ";
#define cte cout << endl;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repo(i, o, n) for (int i = o; i < n; i++)
#define repm(i,... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 1,394,292 | 1,394,294 | u721367699 | cpp |
p03729 | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
size_t Alen = A.length();
size_t Blen = B.length();
size_t Clen = C.length();
string Alast = A.substr(Alen - 1, 1);
string Bfirst = B.substr(0, 1);
string Blast = B.substr(Ble... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
size_t Alen = A.length();
size_t Blen = B.length();
size_t Clen = C.length();
string Alast = A.substr(Alen - 1, 1);
string Bfirst = B.substr(0, 1);
string Blast = B.substr(Ble... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,423 | 1,394,424 | u313994303 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size() - 1] == B[0] && B[B.size() - 1] == C[0])
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size() - 1] == B[0] && B[B.size() - 1] == C[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,296 | 1,394,298 | u280114218 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<string> s(3);
bool chk = true;
for (int i = 0; i < 3; i++) {
cin >> s.at(i);
if (i > 0) {
if (s.at(i).at(0) != s.at(i - 1).at(s.at(i - 1).size() - 1))
chk == false;
}
}
if (chk) {
cout << "YES" << endl;
} else {... | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<string> s(3);
bool chk = true;
for (int i = 0; i < 3; i++) {
cin >> s.at(i);
if (i > 0) {
if (s.at(i).at(0) != s.at(i - 1).at(s.at(i - 1).size() - 1))
chk = false;
}
}
if (chk) {
cout << "YES" << endl;
} else {
... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 1,394,303 | 1,394,305 | u710397511 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] && c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.size() - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,307 | 1,394,309 | u686352452 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.back() == B.front() && B.back() <= C.front()) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.back() == B.front() && B.back() == C.front()) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,394,429 | 1,394,430 | u618697411 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size(), b = B.size(), c = C.size();
string ans;
if (A.at(b - 1) == B.at(0) && B.at(c - 1) == C.at(0))
ans = "YES";
else
ans = "NO";
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size(), b = B.size(), c = C.size();
string ans;
if (A.at(a - 1) == B.at(0) && B.at(b - 1) == C.at(0))
ans = "YES";
else
ans = "NO";
cout << ans << endl;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,394,431 | 1,394,432 | u811472478 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size(), b = B.size(), c = C.size();
string ans;
if (A.at(b) == B.at(0) && B.at(c) == C.at(0))
ans = "YES";
else
ans = "NO";
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size(), b = B.size(), c = C.size();
string ans;
if (A.at(a - 1) == B.at(0) && B.at(b - 1) == C.at(0))
ans = "YES";
else
ans = "NO";
cout << ans << endl;
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,433 | 1,394,432 | u811472478 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.