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 |
|---|---|---|---|---|---|---|---|
p03722 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, x) for (int i = 0; i < x; ++i)
struct edge {
int from, to, cost;
edge(int from, int to, int cost) : from(from), to(to), cost(cost){};
};
vector<edge> edges;
const int MAX_N = 100000;
int N, M;
int dist[MAX_N];
bool bf(int s) ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, x) for (int i = 0; i < x; ++i)
struct edge {
int from, to, cost;
edge(int from, int to, int cost) : from(from), to(to), cost(cost){};
};
vector<edge> edges;
const int MAX_N = 100000;
int N, M;
int dist[MAX_N];
bool bf(int s) ... | [
"misc.opposites",
"function.return_value.change"
] | 1,393,259 | 1,393,260 | u491256431 | cpp |
p03722 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
const ll INF = 1LL << 50;
struct edge {
int from, to;
ll cost;
};
int N, M;
edge es[2002];
ll dist[1001];
int main() {
cin >> N >> M;
for (int i = 0; i < M;... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
const ll INF = 1LL << 50;
struct edge {
int from, to;
ll cost;
};
int N, M;
edge es[2002];
ll dist[1001];
int main() {
cin >> N >> M;
for (int i = 0; i < M;... | [
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change"
] | 1,393,269 | 1,393,270 | u287632390 | cpp |
p03722 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
const ll INF = 1LL << 50;
struct edge {
int from, to, cost;
};
int N, M;
edge es[2002];
ll dist[1001];
int main() {
cin >> N >> M;
for (int i = 0; i < M; i++)... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
const ll INF = 1LL << 50;
struct edge {
int from, to;
ll cost;
};
int N, M;
edge es[2002];
ll dist[1001];
int main() {
cin >> N >> M;
for (int i = 0; i < M;... | [
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change"
] | 1,393,271 | 1,393,270 | u287632390 | cpp |
p03722 | #include <iostream>
using namespace std;
using ll = long long;
const ll INF = 1LL << 62;
const int EDGE_MAX = 2000;
const int VERT_MAX = 1001;
typedef struct Edge {
int u;
int v;
ll cost;
} Edge;
Edge edges[EDGE_MAX];
bool negative[VERT_MAX];
ll dist[VERT_MAX];
int main() {
int v_num, e_num;
cin >> v_num... | #include <iostream>
using namespace std;
using ll = long long;
const ll INF = 1LL << 62;
const int EDGE_MAX = 2000;
const int VERT_MAX = 1001;
typedef struct Edge {
int u;
int v;
ll cost;
} Edge;
Edge edges[EDGE_MAX];
bool negative[VERT_MAX];
ll dist[VERT_MAX];
int main() {
int v_num, e_num;
cin >> v_num... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,280 | 1,393,281 | u594996658 | cpp |
p03722 | #include <iostream>
using namespace std;
using ll = long long;
const ll INF = 1LL << 50;
const int EDGE_MAX = 2000;
const int VERT_MAX = 1001;
typedef struct Edge {
int u;
int v;
ll cost;
} Edge;
Edge edges[EDGE_MAX];
bool negative[VERT_MAX];
ll dist[VERT_MAX];
int main() {
int v_num, e_num;
cin >> v_num... | #include <iostream>
using namespace std;
using ll = long long;
const ll INF = 1LL << 62;
const int EDGE_MAX = 2000;
const int VERT_MAX = 1001;
typedef struct Edge {
int u;
int v;
ll cost;
} Edge;
Edge edges[EDGE_MAX];
bool negative[VERT_MAX];
ll dist[VERT_MAX];
int main() {
int v_num, e_num;
cin >> v_num... | [
"literal.number.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,282 | 1,393,281 | u594996658 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
int main() {
int n, m;
cin >> n >> m;
int a[m], b[m];
ll c[m];
for (int i = 0; i < m; i++) {
cin >> a[i] >> b[i] >> c[i];
a[i]--, b[i]--;
c[i] = -c[i];
}
ll dist[n];
ll inf = 1e18;
for (int i ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
int main() {
int n, m;
cin >> n >> m;
int a[m], b[m];
ll c[m];
for (int i = 0; i < m; i++) {
cin >> a[i] >> b[i] >> c[i];
a[i]--, b[i]--;
c[i] = -c[i];
}
ll dist[n];
ll inf = 1e18;
for (int i ... | [
"expression.operation.unary.add"
] | 1,393,283 | 1,393,284 | u371524083 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1LL << 50;
const int N = 1000 + 10;
int a[N * 2], b[N * 2];
ll c[N * 2];
int main(void) {
int n, m;
cin >> n >> m;
for (int i = 1; i <= m; ++i) {
cin >> a[i] >> b[i] >> c[i];
c[i] = -c[i];
}
ll dist[N];
bool negati... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1LL << 50;
const int N = 1000 + 10;
int a[N * 2], b[N * 2];
ll c[N * 2];
int main(void) {
int n, m;
cin >> n >> m;
for (int i = 1; i <= m; ++i) {
cin >> a[i] >> b[i] >> c[i];
c[i] = -c[i];
}
ll dist[N];
bool negati... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,393,299 | 1,393,300 | u397684111 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
#define inf -1000000000
struct edge {
long long from, to, cost;
};
edge es[2005];
long long d[1100];
int over[1252];
int n, m;
int main() {
scanf("%d%d", &n, &m);
for (int i = 0; i < m; i++) {
long long a, b, c;
scanf("%lld%lld%lld", &a, &b, &c);
es[i].fro... | #include <bits/stdc++.h>
using namespace std;
#define inf -1000000000000
struct edge {
long long from, to, cost;
};
edge es[2005];
long long d[1100];
int over[1252];
int n, m;
int main() {
scanf("%d%d", &n, &m);
for (int i = 0; i < m; i++) {
long long a, b, c;
scanf("%lld%lld%lld", &a, &b, &c);
es[i].... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 1,393,309 | 1,393,310 | u031742054 | cpp |
p03722 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define VMAX 1002
#define EMAX 2002
#define INF (long long)1e18
//コメントアウトするとdebug()を実行しない
// #define ... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define VMAX 1002
#define EMAX 2002
#define INF (long long)1e18
//コメントアウトするとdebug()を実行しない
// #define ... | [
"expression.operation.binary.remove"
] | 1,393,314 | 1,393,315 | u389055093 | cpp |
p03722 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define VMAX 1002
#define EMAX 2002
#define INF (long long)1e18
//コメントアウトするとdebug()を実行しない
// #define ... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
#define VMAX 1002
#define EMAX 2002
#define INF (long long)1e18
//コメントアウトするとdebug()を実行しない
// #define ... | [
"expression.operation.binary.remove",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,393,316 | 1,393,315 | u389055093 | cpp |
p03722 | #include <bits/stdc++.h>
#define ll long long
const int N = 10010;
int n, m;
std::vector<std::pair<int, ll>> e[N];
ll dis[N] = {};
int cnt[N] = {};
bool inque[N] = {};
void spfa(int s) {
std::queue<int> q;
for (int i = 1; i <= n; ++i)
dis[i] = LLONG_MAX;
dis[s] = 0;
q.push(s);
inque[s] = true;
cnt[s]... | #include <bits/stdc++.h>
#define ll long long
const int N = 10010;
int n, m;
std::vector<std::pair<int, ll>> e[N];
ll dis[N] = {};
int cnt[N] = {};
bool inque[N] = {};
void spfa(int s) {
std::queue<int> q;
for (int i = 1; i <= n; ++i)
dis[i] = LLONG_MAX;
dis[s] = 0;
q.push(s);
inque[s] = true;
cnt[s]... | [
"control_flow.branch.if.condition.change"
] | 1,393,322 | 1,393,323 | u981966125 | cpp |
p03722 | #include <map>
#include <stdio.h>
#include <vector>
struct edge {
long long from, to, cost;
};
edge es[20000];
long long d[1100];
int over[1252];
int n, m;
using namespace std;
int main() {
scanf("%d%d", &n, &m);
for (int i = 0; i < m; i++) {
long long a, b, c;
scanf("%lld%lld%lld", &a, &b, &c);
es[... | #include <map>
#include <stdio.h>
#include <vector>
struct edge {
long long from, to, cost;
};
edge es[20000];
long long d[1100];
int over[1252];
int n, m;
using namespace std;
int main() {
scanf("%d%d", &n, &m);
for (int i = 0; i < m; i++) {
long long a, b, c;
scanf("%lld%lld%lld", &a, &b, &c);
es[... | [
"literal.number.change",
"assignment.value.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 1,393,331 | 1,393,330 | u061935128 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
int n, m;
const int maxn = 1000 + 10;
typedef long long ll;
struct Edge {
int from, to;
ll dist;
Edge(int u, int v, ll d) : from(u), to(v), dist(d) {}
};
vector<Edge> edges;
vector<int> G[maxn];
ll d[maxn];
int inq[maxn], cnt[maxn];
void addEdge(int from, int to, ll d... | #include <bits/stdc++.h>
using namespace std;
int n, m;
const int maxn = 1000 + 10;
typedef long long ll;
struct Edge {
int from, to;
ll dist;
Edge(int u, int v, ll d) : from(u), to(v), dist(d) {}
};
vector<Edge> edges;
vector<int> G[maxn];
ll d[maxn];
int inq[maxn], cnt[maxn];
void addEdge(int from, int to, ll d... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 1,393,350 | 1,393,351 | u764760788 | cpp |
p03722 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#define FOR(I, A, B) ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define PI acos(-1.0)
#define FOR(I, A, B) ... | [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 1,393,374 | 1,393,375 | u310790595 | cpp |
p03722 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
long long int n, m;
long long int a[2001] = {}, b[2001] = {}, c[2001] = {};
long long int d[2001] = {};
bool inf = false;
long long int INF = 1000000001;
long long int INFLL = (long long int)INF * INF;
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
long long int n, m;
long long int a[2001] = {}, b[2001] = {}, c[2001] = {};
long long int d[2001] = {};
bool inf = false;
long long int INF = 1000000001;
long long int INFLL = (long long int)INF * INF;
... | [
"variable_declaration.remove",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,393,376 | 1,393,377 | u050865477 | cpp |
p03722 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
struct edge {
int from;
int to;
long long int score;
};
int main() {
long long int N, M;
cin >> N >> M;
vector<struct edge> es(M);
for (int i = 0; i < M; i++) {
long... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
struct edge {
int from;
int to;
long long int score;
};
int main() {
long long int N, M;
cin >> N >> M;
vector<struct edge> es(M);
for (int i = 0; i < M; i++) {
long... | [
"expression.operation.unary.arithmetic.remove"
] | 1,393,388 | 1,393,389 | u193001831 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
#define int long long
const int LLINF = 1LL << 60;
struct Edge {
int from, to, cost;
};
main() {
int N, M;
Edge E[2005];
int mc[2005];
bool negative[2005] = {};
cin >> N >> M;
for (int i = 0; i < M; i++) {
int a, b, c;
cin >> a >> b >> c;
--a... | #include <bits/stdc++.h>
using namespace std;
#define int long long
const int LLINF = 1LL << 60;
struct Edge {
int from, to, cost;
};
main() {
int N, M;
Edge E[2005];
int mc[2005];
bool negative[2005] = {};
cin >> N >> M;
for (int i = 0; i < M; i++) {
int a, b, c;
cin >> a >> b >> c;
--a... | [
"expression.operation.unary.add"
] | 1,393,391 | 1,393,392 | u239239546 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
const long long inf = 1LL << 60;
typedef long long ll;
vector<pair<int, ll>> G[maxn];
int n, m;
long long d[maxn];
void bellman_ford() {
fill(d, d + maxn, inf);
d[1] = 0;
bool circle = false;
for (int i = 0; i < n; i++) {
for (int j = 1; j... | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
const long long inf = 1LL << 60;
typedef long long ll;
vector<pair<int, ll>> G[maxn];
int n, m;
long long d[maxn];
void bellman_ford() {
fill(d, d + maxn, inf);
d[1] = 0;
bool circle = false;
for (int i = 0; i < n; i++) {
for (int j = 1; j... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,393,393 | 1,393,394 | u049883337 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 10000000000000000ll;
int main() {
ll N, M;
cin >> N >> M;
vector<ll> a(M), b(M), c(M);
for (int i = 0; i < M; i++) {
cin >> a[i] >> b[i] >> c[i];
a[i]--;
b[i]--;
c[i] *= -1;
}
vector<ll> cost(N, INF);
cost[... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 10000000000000000ll;
int main() {
ll N, M;
cin >> N >> M;
vector<ll> a(M), b(M), c(M);
for (int i = 0; i < M; i++) {
cin >> a[i] >> b[i] >> c[i];
a[i]--;
b[i]--;
c[i] *= -1;
}
vector<ll> cost(N, INF);
cost[... | [
"misc.opposites",
"expression.operator.compare.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,393,401 | 1,393,402 | u752161277 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, N) for (int i = 0; i < (int)N; i++)
const ll INF = 1e18;
struct edge {
int from, to;
ll cost;
};
vector<vector<ll>> worshallFloyd(vector<vector<ll>> d) {
int V = d.size();
for (int k = 0; k < V; k++) {
for (int i = 0; i < V... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, N) for (int i = 0; i < (int)N; i++)
const ll INF = 1e18;
struct edge {
int from, to;
ll cost;
};
vector<vector<ll>> worshallFloyd(vector<vector<ll>> d) {
int V = d.size();
for (int k = 0; k < V; k++) {
for (int i = 0; i < V... | [] | 1,393,403 | 1,393,404 | u058252012 | cpp |
p03722 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, N) for (int i = 0; i < (int)N; i++)
const ll INF = 1e18;
struct edge {
int from, to;
ll cost;
};
vector<vector<ll>> worshallFloyd(vector<vector<ll>> d) {
int V = d.size();
for (int k = 0; k < V; k++) {
for (int i = 0; i < V... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, N) for (int i = 0; i < (int)N; i++)
const ll INF = 1e18;
struct edge {
int from, to;
ll cost;
};
vector<vector<ll>> worshallFloyd(vector<vector<ll>> d) {
int V = d.size();
for (int k = 0; k < V; k++) {
for (int i = 0; i < V... | [
"control_flow.branch.if.condition.change"
] | 1,393,405 | 1,393,404 | u058252012 | cpp |
p03722 | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
#define REP(i, s, n) for (int i... | #include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
#define REP(i, s, n) for (int i... | [
"call.arguments.change"
] | 1,393,406 | 1,393,407 | u652683896 | cpp |
p03722 | #include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#include "dump.hpp"
#else
#define dump(...)
#endif
#define int long long
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define all(c) begin(c), end(c)
const int INF =
sizeof(int) == sizeof(lo... | #include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#include "dump.hpp"
#else
#define dump(...)
#endif
#define int long long
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define all(c) begin(c), end(c)
const int INF =
sizeof(int) == sizeof(lo... | [
"identifier.change",
"call.arguments.change"
] | 1,393,412 | 1,393,413 | u631007830 | cpp |
p03722 |
#include <bits/stdc++.h>
using namespace std;
struct edge {
int from;
int to;
long long int cost;
};
vector<edge> es;
vector<long long int> d;
int n, m;
const long long int INF = 1e13;
set<int> ok;
set<int> ook;
void dfs(int v, vector<vector<int>> &ed, set<int> &s) {
if (s.count(v))
return;
s.insert(v)... |
#include <bits/stdc++.h>
using namespace std;
struct edge {
int from;
int to;
long long int cost;
};
vector<edge> es;
vector<long long int> d;
int n, m;
const long long int INF = 1e13;
set<int> ok;
set<int> ook;
void dfs(int v, vector<vector<int>> &ed, set<int> &s) {
if (s.count(v))
return;
s.insert(v)... | [] | 1,393,416 | 1,393,417 | u283229916 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define vi vector<int>
#define bn(n) (n).begin(), (n).end()
#define FOR(n) for (int i = 0; i < (int)n; i++)
void solve() {
string a, b, c;
cin >> a >> b >> c;
cout << (a.back() == b[0] && b.back() == c[0] ? "YES" : "No") <<... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define vi vector<int>
#define bn(n) (n).begin(), (n).end()
#define FOR(n) for (int i = 0; i < (int)n; i++)
void solve() {
string a, b, c;
cin >> a >> b >> c;
cout << (a.back() == b[0] && b.back() == c[0] ? "YES" : "NO") <<... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,418 | 1,393,419 | u067412960 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int a = A.size() - 1;
int b = B.size() - 1;
if (A.at(a) == B.at(0) && B.at(b) == C.at(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;
int a = A.size() - 1;
int b = B.size() - 1;
if (A.at(a) == B.at(0) && B.at(b) == C.at(0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,422 | 1,393,423 | u621904504 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <sstream>
#include <stdexcept>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int ... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <sstream>
#include <stdexcept>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,430 | 1,393,431 | u871977501 | cpp |
p03729 | #include <stdio.h>
#include <string.h>
int main() {
char str1[10], str2[10], str3[10];
scanf("%s %s %s", str1, str2, str3);
if (str1[strlen(str1) - 1] == str2[0] && str2[strlen(str2) - 1] == str3[0]) {
puts("YES");
} else {
puts("NO");
}
return 0;
} | #include <stdio.h>
#include <string.h>
int main() {
char str1[11], str2[11], str3[11];
scanf("%s %s %s", str1, str2, str3);
if (str1[strlen(str1) - 1] == str2[0] && str2[strlen(str2) - 1] == str3[0]) {
puts("YES");
} else {
puts("NO");
}
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,393,432 | 1,393,433 | u816631826 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
typedef long long ll;
using namespace std;
void read(int &x) {
int f = 1;
x = 0;
char s = getchar();
while (s < '0' || s > '9') {
if (s == '-')
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
typedef long long ll;
using namespace std;
void read(int &x) {
int f = 1;
x = 0;
char s = getchar();
while (s < '0' || s > '9') {
if (s == '-')
... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,393,434 | 1,393,435 | u816631826 | cpp |
p03729 | // lcmとか__builtin_popcountとかはg++ -std=c++17 default.cppみたいなかんじで
#include <bits/stdc++.h>
#define mod 1000000007
#define INF LLONG_MAX
#define ll long long
#define ln cout << endl
#define Yes cout << "Yes" << endl
#define No cout << "No" << endl
#define REP(i, m, n) for (ll i = (ll)(m); i < (ll)(n); i++)
#define rep(i,... | // lcmとか__builtin_popcountとかはg++ -std=c++17 default.cppみたいなかんじで
#include <bits/stdc++.h>
#define mod 1000000007
#define INF LLONG_MAX
#define ll long long
#define ln cout << endl
#define Yes cout << "Yes" << endl
#define No cout << "No" << endl
#define REP(i, m, n) for (ll i = (ll)(m); i < (ll)(n); i++)
#define rep(i,... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,393,438 | 1,393,439 | u683769494 | cpp |
p03729 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9;
using namespace std;
using ll = long long;
#include <bits/stdc++.h>
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size()] == b[0] && c[0] == b[b.size()]) {
cout << "YES" << endl;
} else {
cout << "N... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9;
using namespace std;
using ll = long long;
#include <bits/stdc++.h>
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && c[0] == b[b.size() - 1]) {
cout << "YES" << endl;
} else {
co... | [
"control_flow.branch.if.condition.change"
] | 1,393,440 | 1,393,441 | u629548179 | 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;
}
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,393,447 | 1,393,448 | u694766284 | cpp |
p03729 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
string s[3];
for (int i = 0; i < 3; i++) {
cin >> s[i];
}
if (s[0][s[0].length()] == s[1][0] && s[1][s[1].length()] == s[2][0])
printf("YES\n");
else
printf("NO\n");
return 0;
}
| #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
string s[3];
for (int i = 0; i < 3; i++) {
cin >> s[i];
}
if (s[0][s[0].length() - 1] == s[1][0] && s[1][s[1].length() - 1] == s[2][0])
printf("YES\n");
else
printf("NO\n");
retur... | [
"control_flow.branch.if.condition.change"
] | 1,393,455 | 1,393,456 | u684448032 | cpp |
p03729 | #include <bits/stdc++.h>
#define ll long long
#define dl long double
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define rep(i, a, b) for (i = a; i < b; i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define mod 1000000007LL
#define CIN(V, s, n) ... | #include <bits/stdc++.h>
#define ll long long
#define dl long double
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define rep(i, a, b) for (i = a; i < b; i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define mod 1000000007LL
#define CIN(V, s, n) ... | [
"identifier.change",
"expression.operation.binary.change"
] | 1,393,457 | 1,393,458 | u121266738 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] and b[b.size() - 1] == c[0])
cout << "Yes";
else
cout <<... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] and b[b.size() - 1] == c[0])
cout << "YES";
else
cout <<... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,467 | 1,393,468 | u621956397 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
char s[1000], t[1000], b[1000];
cin >> s >> t >> b;
if ((s[strlen(s) - 1] == t[0]) && (t[strlen(t) - 1] == b[0]))
cout << "Yes";
else
cout << "No";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
char s[100], t[100], b[100];
cin >> s >> t >> b;
if ((s[strlen(s) - 1] == t[0]) && (t[strlen(t) - 1] == b[0]))
cout << "YES";
else
cout << "NO";
return 0;
}
| [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,471 | 1,393,472 | u629431183 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size()) == b.at(0) && b.at(b.size()) == 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;
}
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,479 | 1,393,480 | u991713078 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
void solve() {
string a, b, c;
cin >> a >> b >> c;
int az = (int)a.size();
bool f = (a[az - 1] == b[0]);
int bz = (int)b.size();
bool ff = (b[bz - 1] == c[0]);
if (ff && f) {
cout << "YES";
} else {
cout << "No";
}
}
int main() {
ios::sync_with... | #include <bits/stdc++.h>
using namespace std;
void solve() {
string a, b, c;
cin >> a >> b >> c;
int az = (int)a.size();
bool f = (a[az - 1] == b[0]);
int bz = (int)b.size();
bool ff = (b[bz - 1] == c[0]);
if (ff && f) {
cout << "YES";
} else {
cout << "NO";
}
}
int main() {
ios::sync_with... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,494 | 1,393,495 | u507114778 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
ll mm = 1000000000;
ll MM = mm + 7;
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.141592653589793
int main() {
string a, b, c;
cin >> a >> b >> c;
int n = a.size();
int m = b.size();
int l = c.size();
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
ll mm = 1000000000;
ll MM = mm + 7;
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.141592653589793
int main() {
string a, b, c;
cin >> a >> b >> c;
int n = a.size();
int m = b.size();
int l = c.size();
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,496 | 1,393,497 | u927053131 | cpp |
p03729 | /*------------------------------------
........Bismillahir Rahmanir Rahim....
..........created by Abdul Aziz.......
------------------------------------*/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stdio.h>
#include <unordered_m... | /*------------------------------------
........Bismillahir Rahmanir Rahim....
..........created by Abdul Aziz.......
------------------------------------*/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stdio.h>
#include <unordered_m... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,393,500 | 1,393,501 | u931901821 | cpp |
p03729 | #include <bits/stdc++.h>
#define ss second
#define ff first
#define all(x) x.begin(), x.end()
using namespace std;
using ll = unsigned long long;
using pii = pair<int, int>;
const int oo = 1e9 + 7;
const ll mod = 1e9 + 7, maxn = 100000000;
const double PI = acos(-1);
int main() {
ios_base::sync_with_stdio(false);
... | #include <bits/stdc++.h>
#define ss second
#define ff first
#define all(x) x.begin(), x.end()
using namespace std;
using ll = unsigned long long;
using pii = pair<int, int>;
const int oo = 1e9 + 7;
const ll mod = 1e9 + 7, maxn = 100000000;
const double PI = acos(-1);
int main() {
ios_base::sync_with_stdio(false);
... | [
"literal.string.change",
"io.output.change"
] | 1,393,504 | 1,393,505 | u009937643 | cpp |
p03729 | #include <bits/stdc++.h>
#define ss second
#define ff first
#define all(x) x.begin(), x.end()
using namespace std;
using ll = unsigned long long;
using pii = pair<int, int>;
const int oo = 1e9 + 7;
const ll mod = 1e9 + 7, maxn = 100000000;
const double PI = acos(-1);
int main() {
ios_base::sync_with_stdio(false);
... | #include <bits/stdc++.h>
#define ss second
#define ff first
#define all(x) x.begin(), x.end()
using namespace std;
using ll = unsigned long long;
using pii = pair<int, int>;
const int oo = 1e9 + 7;
const ll mod = 1e9 + 7, maxn = 100000000;
const double PI = acos(-1);
int main() {
ios_base::sync_with_stdio(false);
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,506 | 1,393,505 | u009937643 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, a, b) for (int i = (a); i < (b); i++)
typedef long long ll;
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;
} ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, a, b) for (int i = (a); i < (b); i++)
typedef long long ll;
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;
} ... | [
"literal.string.change",
"io.output.change"
] | 1,393,517 | 1,393,518 | u010806195 | cpp |
p03729 | #include <bits/stdc++.h>
#define rep2(i, m, n) for (int i = (int)(m); i < (int)(n); i++)
#define rep(i, n) rep2(i, 0, n)
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
using namespace std;
using ll = long long;
template <typename T> T sq(T x) { return x * x; }
signed main() {
string A, B, C;
... | #include <bits/stdc++.h>
#define rep2(i, m, n) for (int i = (int)(m); i < (int)(n); i++)
#define rep(i, n) rep2(i, 0, n)
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
using namespace std;
using ll = long long;
template <typename T> T sq(T x) { return x * x; }
signed main() {
string A, B, C;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,519 | 1,393,520 | u793829136 | 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[A.size() + 1] == B[0] && B[B.size() + 1] == C[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
} | #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[A.size() - 1] == B[0] && B[B.size() - 1] == C[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,393,524 | 1,393,525 | u922449177 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define nl '\n'
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0]) {
if (b[b.size() - 1] == c[0])
cout << "YES";
else
cout << "NO";
} else
cout << "YES";
cout << nl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define nl '\n'
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0]) {
if (b[b.size() - 1] == c[0])
cout << "YES";
else
cout << "NO";
} else
cout << "NO";
cout << nl;
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 1,393,529 | 1,393,530 | u366204226 | cpp |
p03729 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
typedef long long ll;
#define MODSIZE 1000000007
int main() {
char a[14], b[14], c[14];
int na, nb, nc;
int cnt[27] = {0};
scanf("%s %s %s", a, b, c);
na = strlen(a);
nb = strlen(b);
nc = strlen(c);
if (a[na -... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
typedef long long ll;
#define MODSIZE 1000000007
int main() {
char a[14], b[14], c[14];
int na, nb, nc;
int cnt[27] = {0};
scanf("%s %s %s", a, b, c);
na = strlen(a);
nb = strlen(b);
nc = strlen(c);
if (a[na -... | [
"control_flow.branch.if.condition.change"
] | 1,393,533 | 1,393,534 | u253584031 | cpp |
p03729 | #include <algorithm>
#include <iostream>
using namespace std;
#define REP(s, e) for (int i = (s); i < (e); i++)
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size() - 1] == B[0] && B[A.size() - 1] == C[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
}
| #include <algorithm>
#include <iostream>
using namespace std;
#define REP(s, e) for (int i = (s); i < (e); i++)
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;
}
| [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,393,535 | 1,393,536 | u853817705 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
string a, b, c;
... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
string a, b, c;
... | [
"control_flow.branch.if.condition.change"
] | 1,393,543 | 1,393,544 | u003026289 | 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();
char a2 = A.at(a - 1);
char b1 = B.at(0);
char b2 = B.at(b - 1);
char c1 = C.at(0);
if (a2 == b1) {
if (b2 == c1) {
cout << "Yes" << 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();
char a2 = A.at(a - 1);
char b1 = B.at(0);
char b2 = B.at(b - 1);
char c1 = C.at(0);
if (a2 == b1) {
if (b2 == c1) {
cout << "YES" << endl;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,545 | 1,393,546 | u025773431 | cpp |
p03729 | //#define _GLIBCXX_DEBUG
#include <algorithm>
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(a) (a).begin(), (a).end()
using namespace std;
using Graph = vector<vector<int>>;
typedef long long ll;
const int mod = 1e+9 + 7;
int main() {
string a, b, c;
cin >> a >> b >> c;
if ... | //#define _GLIBCXX_DEBUG
#include <algorithm>
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(a) (a).begin(), (a).end()
using namespace std;
using Graph = vector<vector<int>>;
typedef long long ll;
const int mod = 1e+9 + 7;
int main() {
string a, b, c;
cin >> a >> b >> c;
if ... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 1,393,561 | 1,393,562 | u138273120 | cpp |
p03729 | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip>
#include <... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip>
#include <... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,393,563 | 1,393,564 | u368324062 | cpp |
p03729 | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip>
#include <... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip>
#include <... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,565 | 1,393,564 | u368324062 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s[3];
cin >> s[0] >> s[1] >> s[2];
if ((s[0][s[0].size() - 1] == s[1][0]) &&
(s[1][s[0].size() - 1] == s[2][0])) {
cout << "YES\n";
} else {
cout << "NO\n";
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s[3];
cin >> s[0] >> s[1] >> s[2];
if ((s[0][s[0].size() - 1] == s[1][0]) &&
(s[1][s[1].size() - 1] == s[2][0])) {
cout << "YES\n";
} else {
cout << "NO\n";
}
return 0;
}
| [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,393,568 | 1,393,569 | u346040900 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for (int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
using vs = vector<string>;
const int MOD = 1e9 + 7;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size()) == B.a... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for (int i = 0; i < n; i++)
#define sort(v) sort((v).begin(), (v).end())
using vi = vector<int>;
using vs = vector<string>;
const int MOD = 1e9 + 7;
int main() {
string A, B, C;
cin >> A >> B >> C;
if (A.at(A.size() - 1) ==... | [
"control_flow.branch.if.condition.change"
] | 1,393,572 | 1,393,573 | u587801819 | 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;
}
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" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,574 | 1,393,575 | u519091008 | cpp |
p03729 | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip>
#include <iostream>
#... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip>
#include <iostream>
#... | [
"literal.string.change",
"literal.string.case.change",
"variable_declaration.value.change",
"assignment.value.change"
] | 1,393,576 | 1,393,577 | u927801748 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,578 | 1,393,579 | u296160120 | 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] && c[0] <= b[b.length() - 1]) {
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] && c[0] == b[b.length() - 1]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,393,580 | 1,393,581 | u375695365 | cpp |
p03729 | #include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << (a[a.size() - 1] == b[0] && b[b.size()] == c[0] ? "YES" : "NO")
<< endl;
}
| #include <iostream>
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;
}
| [
"expression.operation.binary.add"
] | 1,393,584 | 1,393,585 | u154898295 | 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,393,588 | 1,393,589 | u237390401 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int d = a.size() - 1;
int e = b.size() - 1;
int f = c.size() - 1;
if (a.at(d) == b.at(0)) {
if (b.at(e) == c.at(0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int d = a.size() - 1;
int e = b.size() - 1;
int f = c.size() - 1;
if (a.at(d) == b.at(0)) {
if (b.at(e) == c.at(0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} else {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,592 | 1,393,593 | u516876944 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int d = a.size() - 1;
int e = b.size() - 1;
int f = c.size() - 1;
if (a.at(d) == b.at(0)) {
if (b.at(e) == c.at(0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int d = a.size() - 1;
int e = b.size() - 1;
int f = c.size() - 1;
if (a.at(d) == b.at(0)) {
if (b.at(e) == c.at(0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} else {
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,594 | 1,393,593 | u516876944 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, s, n) for (int i = (s); i < (int)(n); i++)
#define all(v) v.begin(), v.end()
using ll = long long;
const ll MOD = 1e9 + 7;
ll LLINF = 1LL << 60;
int INF = INT_MAX;
//
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, s, n) for (int i = (s); i < (int)(n); i++)
#define all(v) v.begin(), v.end()
using ll = long long;
const ll MOD = 1e9 + 7;
ll LLINF = 1LL << 60;
int INF = INT_MAX;
//
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] == b[0] && b[b.... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,601 | 1,393,602 | u646962247 | 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";
} else {
cout << "NO";
}
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";
} else {
cout << "NO";
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,605 | 1,393,606 | u000770457 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << ((a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0))
? "Yes"
: "No")
<< endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << ((a.at(a.size() - 1) == b.at(0) && b.at(b.size() - 1) == c.at(0))
? "YES"
: "NO")
<< endl;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,611 | 1,393,612 | u379168673 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length()] == b[0] and b[b.length()] == 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.length() - 1] == b[0] and b[b.length() - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,613 | 1,393,614 | u842942201 | cpp |
p03729 | #include <bits/stdc++.h>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
int main() {
string a, b, c;
cin >> a >> b >> c;
if (b[0] == a[a.size() - 1] && b[b.size()] == c[0])
cout << "YES";
else
cout << "NO";
}
| #include <bits/stdc++.h>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
int main() {
string a, b, c;
cin >> a >> b >> c;
if (b[0] == a[a.size() - 1] && b[b.size() - 1] == c[0])
cout << "YES";
else
cout << "NO";
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,617 | 1,393,618 | u683078179 | cpp |
p03727 | #include <algorithm>
#include <cstdio>
#include <queue>
#include <set>
using namespace std;
const int N = 1e5 + 10;
int n, f[N];
set<int> B[N], R[N];
queue<pair<int, int>> Q;
void Init() {
scanf("%d", &n);
int a, b;
for (int i = 1; i < n; ++i) {
scanf("%d%d", &a, &b);
B[a].insert(b);
B[b].insert(a... | #include <algorithm>
#include <cstdio>
#include <queue>
#include <set>
using namespace std;
const int N = 1e5 + 10;
int n, f[N];
set<int> B[N], R[N];
queue<pair<int, int>> Q;
void Init() {
scanf("%d", &n);
int a, b;
for (int i = 1; i < n; ++i) {
scanf("%d%d", &a, &b);
B[a].insert(b);
B[b].insert(a... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,393,624 | 1,393,625 | u365730061 | cpp |
p03727 | #include <bits/stdc++.h>
#define N 100005
using namespace std;
struct edge {
int f, t;
edge(int f1, int t1) {
if (f1 > t1)
swap(f1, t1);
f = f1;
t = t1;
}
bool operator<(const edge &b) const {
if (f != b.f)
return f < b.f;
return t < b.t;
}
};
int bcj[N];
int ff(int x) { return... | #include <bits/stdc++.h>
#define N 100005
using namespace std;
struct edge {
int f, t;
edge(int f1, int t1) {
if (f1 > t1)
swap(f1, t1);
f = f1;
t = t1;
}
bool operator<(const edge &b) const {
if (f != b.f)
return f < b.f;
return t < b.t;
}
};
int bcj[N];
int ff(int x) { return... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,393,636 | 1,393,637 | u899515616 | cpp |
p03727 | #include <bits/stdc++.h>
using namespace std;
#define fo(i, a, b) for (int i = (a); i < (b); i++)
#define MOD 1000000007
#define MP make_pair
#define PB push_back
typedef long long ll;
int N, mycomp[100100];
pair<int, int> ar[100100], ab[100100];
set<pair<int, int>> mr, mb;
// set of reds, set of blues, if they corres... | #include <bits/stdc++.h>
using namespace std;
#define fo(i, a, b) for (int i = (a); i < (b); i++)
#define MOD 1000000007
#define MP make_pair
#define PB push_back
typedef long long ll;
int N, mycomp[100100];
pair<int, int> ar[100100], ab[100100];
set<pair<int, int>> mr, mb;
// set of reds, set of blues, if they corres... | [
"call.remove",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,393,642 | 1,393,643 | u723736091 | cpp |
p03728 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define LL long long
#define mp(x, y) make_pair(x, y)
#define pll pair<long long, long long>
#define pii pair<int, int>
using ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define LL long long
#define mp(x, y) make_pair(x, y)
#define pll pair<long long, long long>
#define pii pair<int, int>
using ... | [] | 1,393,666 | 1,393,667 | u235543683 | cpp |
p03728 | #include <algorithm>
#include <cstdio>
#define N 200000
using namespace std;
int v[N + 1];
int poz[N + 1];
int dp[N + 1];
int verp[N + 1];
bool meow(int a, int b) { return (poz[a] < poz[b]); }
int main() {
int n, i, j;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &v[i]);
poz[v[i]] = i;
}... | #include <algorithm>
#include <cstdio>
#define N 200000
using namespace std;
int v[N + 1];
int poz[N + 1];
int dp[N + 1];
int verp[N + 1];
bool meow(int a, int b) { return (poz[a] < poz[b]); }
int main() {
int n, i, j;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &v[i]);
poz[v[i]] = i;
}... | [
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 1,393,672 | 1,393,673 | u499614719 | cpp |
p03729 | #include <stdio.h>
#include <string.h>
int main() {
char a[9], b[9], c[9];
scanf("%s %s %s", &a, &b, &c);
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0]) {
printf("YES");
} else {
printf("NO");
}
return 0;
}
| #include <stdio.h>
#include <string.h>
int main() {
char a[11], b[11], c[11];
scanf("%s %s %s", &a, &b, &c);
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0]) {
puts("YES");
} else {
puts("NO");
}
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"identifier.change",
"call.function.change",
"io.output.change"
] | 1,393,682 | 1,393,683 | u089230684 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.size() - 1 == b[0] && 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";
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,684 | 1,393,685 | u089230684 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int d, e, f;
d = a.size();
e = b.size();
f = c.size();
if (a[d - 1] == b[0]) {
if (b[e - 1] == c[0]) {
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int d, e, f;
d = a.size();
e = b.size();
f = c.size();
if (a[d - 1] == b[0] && b[e - 1] == c[0]) {
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,686 | 1,393,687 | u089230684 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
while (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 <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
while (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,688 | 1,393,689 | u089230684 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
char a[10], b[10], c[10];
cin >> a >> b >> c;
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
char a[11], b[11], c[11];
cin >> a >> b >> c;
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,393,692 | 1,393,693 | u863370423 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.back() == b[0] && b.back() == c[0])
cout << "YES" << endl;
cout << "NO" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.back() == b[0] && b.back() == c[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 1,393,702 | 1,393,703 | u618263300 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void) {
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;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void) {
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,708 | 1,393,709 | u255994242 | cpp |
p03729 |
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] != b[0]) {
cout << "NO";
}
if (b[b.size() - 1] != c[0]) {
cout << "NO";
}
if (a[a.size() - 1] == b[0] and b[b.size() - 1] == c[0]) {
cout << ... |
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.size() - 1] != b[0]) {
cout << "NO";
} else if (b[b.size() - 1] != c[0]) {
cout << "NO";
}
if (a[a.size() - 1] == b[0] and b[b.size() - 1] == c[0]) {
cout ... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,393,712 | 1,393,713 | u529920550 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
#define all(a) (a).begin(), (a).end()
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << ((a[a.size() - 1] == b[0] && b[b.size() - 1] ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
#define all(a) (a).begin(), (a).end()
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << ((a[a.size() - 1] == b[0] && b[b.size() - 1] ... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"io.output.change"
] | 1,393,716 | 1,393,717 | u119171625 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
if (s1[s1.size() - 1] == s2[0] && s2[s2.size() - 1] == s3[0]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
if (s1[s1.size() - 1] == s2[0] && s2[s2.size() - 1] == s3[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,720 | 1,393,721 | u129134470 | cpp |
p03729 | #include "bits/stdc++.h"
#define DEBUG(x) cout << #x << ": " << x << endl;
#define DEBUG_VEC(v) \
cout << #v << ":"; \
for (int i = 0; i < v.size(); i++) \
... | #include "bits/stdc++.h"
#define DEBUG(x) cout << #x << ": " << x << endl;
#define DEBUG_VEC(v) \
cout << #v << ":"; \
for (int i = 0; i < v.size(); i++) \
... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 1,393,728 | 1,393,729 | u531436689 | 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,732 | 1,393,733 | u636567852 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a;
string b;
string c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] and b[b.length() - 1] == c[0]) {
cout << "Yes";
} else {
cout << "No";
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a;
string b;
string c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0] and b[b.length() - 1] == c[0]) {
cout << "YES";
} else {
cout << "NO";
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,736 | 1,393,737 | u091964259 | cpp |
p03729 | #include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) != b.at(0))
cout << "NO";
else if (b.at(b.size() - 1 != c.at(0)))
cout << "NO";
else
cout << "YES";
}
| #include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.at(a.size() - 1) != b.at(0))
cout << "NO";
else if (b.at(b.size() - 1) != c.at(0))
cout << "NO";
else
cout << "YES";
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,738 | 1,393,739 | u079532978 | 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]) {
cout << "No";
return 0;
}
if (B[B.length() - 1] != C[0]) {
cout << "No";
return 0;
}
cout << "Yes";
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]) {
cout << "NO";
return 0;
}
if (B[B.length() - 1] != C[0]) {
cout << "NO";
return 0;
}
cout << "YES";
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,740 | 1,393,741 | u328530240 | cpp |
p03729 | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int main(void) {
char a[10], b[10], c[10], x, y, z;
scanf("%s %s %s", a, b, c);
x = strlen(a);
y = strlen(b);
z = strlen(c);
if (a[x - 1] == b[0] && b[y - 1] == c[0])
printf("YES\n");
else
printf("NO\n");
return 0;
}
| #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int main(void) {
char a[11], b[11], c[11], x, y, z;
scanf("%s %s %s", a, b, c);
x = strlen(a);
y = strlen(b);
z = strlen(c);
if (a[x - 1] == b[0] && b[y - 1] == c[0])
printf("YES\n");
else
printf("NO\n");
return 0;
}
| [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,393,742 | 1,393,743 | u621146716 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
char a[15], b[15], c[15];
cin >> a >> b >> c;
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
char a[15], b[15], c[15];
cin >> a >> b >> c;
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,753 | 1,393,754 | u222643545 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
char a[15], b[15], c[15];
cin >> a >> b >> c;
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
char a[15], b[15], c[15];
cin >> a >> b >> c;
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,755 | 1,393,754 | u222643545 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int d, e, f;
d = a.size();
e = b.size();
f = c.size();
if (a.at(d - 1) == b.at(e - 1) && b.at(e - 1) == c.at(f - 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 d, e, f;
d = a.size();
e = b.size();
f = c.size();
if (a.at(d - 1) == b.at(0) && b.at(e - 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,756 | 1,393,757 | u613960672 | 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) && A.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;
}
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,393,773 | 1,393,774 | u115927976 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
#define int long long int
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int gcd(int a, int b) { r... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
#define int long long int
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int gcd(int a, int b) { r... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,777 | 1,393,778 | u697090185 | 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])
puts("Yes");
else
puts("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])
puts("YES");
else
puts("NO");
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,393,779 | 1,393,780 | u201678045 | cpp |
p03729 | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip>
#include <iostream> /... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip>
#include <iostream> /... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,783 | 1,393,784 | u286623856 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
transform(s.begin(), s.end(), s.begin(), ::toupper);
string t = s.substr(s.find(" ") + 1);
if ((s[s.find(" ") - 1] = s[s.find(" ") + 1]) ||
(t[t.find(" ") - 1] = t[t.find(" ") + 1])... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
transform(s.begin(), s.end(), s.begin(), ::toupper);
string t = s.substr(s.find(" ") + 1);
if ((s[s.find(" ") - 1] == s[s.find(" ") + 1]) &&
(t[t.find(" ") - 1] == t[t.find(" ") + 1... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,393,785 | 1,393,786 | u012131682 | 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";
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";
else
cout << "NO";
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,393,787 | 1,393,788 | u798851723 | cpp |
p03729 | // C
#include <cassert>
//#include <cctype>
#include <ccomplex>
#include <cerrno>
#include <cfenv>
#include <cfloat>
#include <cinttypes>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdalign>
#include <cstdarg>
#include <cstdbool>
#include <... | // C
#include <cassert>
//#include <cctype>
#include <ccomplex>
#include <cerrno>
#include <cfenv>
#include <cfloat>
#include <cinttypes>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdalign>
#include <cstdarg>
#include <cstdbool>
#include <... | [
"control_flow.branch.if.condition.change"
] | 1,393,793 | 1,393,794 | u685346012 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int s1 = a.size() - 1;
int s2 = b.size() - 1;
int s3 = c.size() - 1;
if (s1 == b[0] && s2 == 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;
int s1 = a.size() - 1;
int s2 = b.size() - 1;
int s3 = c.size() - 1;
if (a[s1] == b[0] && b[s2] == c[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,393,815 | 1,393,816 | u399816236 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.