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 <algorithm>
#include <iostream>
#include <limits>
#include <math.h>
#include <numeric>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <type_traits>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (in... | #include <algorithm>
#include <iostream>
#include <limits>
#include <math.h>
#include <numeric>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <type_traits>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, a, b) for (in... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 1,394,323 | 1,394,325 | u190907730 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
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 <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
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,436 | 1,394,437 | u153846982 | cpp |
p03729 | #include <iostream>
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 <iostream>
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;
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,327 | 1,394,329 | u406145181 | 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,438 | 1,394,439 | u840958781 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int a_lst = a.size();
int b_lst = b.size();
if (b[0] == a[a_lst - 1] && b[b_lst - 1] == c[0])
cout << "Yes";
else
cout << "NO";
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int a_lst = a.size();
int b_lst = b.size();
if (b[0] == a[a_lst - 1] && b[b_lst - 1] == c[0])
cout << "YES";
else
cout << "NO";
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,331 | 1,394,334 | u226951654 | cpp |
p03729 | #include <bits/stdc++.h>
typedef long long ll;
const int INF = 1e9, MOD = 1e9 + 7, ohara = 1e6;
const ll LINF = 1e18;
using namespace std;
#define rep(i, n) for (ll(i) = 0; (i) < (int)(n); (i)++)
#define rrep(i, a, b) for (ll i = (a); i < (b); i++)
#define rrrep(i, a, b) for (ll i = (a); i >= (b); i--)
#define all(v) ... | #include <bits/stdc++.h>
typedef long long ll;
const int INF = 1e9, MOD = 1e9 + 7, ohara = 1e6;
const ll LINF = 1e18;
using namespace std;
#define rep(i, n) for (ll(i) = 0; (i) < (int)(n); (i)++)
#define rrep(i, a, b) for (ll i = (a); i < (b); i++)
#define rrrep(i, a, b) for (ll i = (a); i >= (b); i--)
#define all(v) ... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,394,336 | 1,394,338 | u876335718 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
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 <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
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,442 | 1,394,443 | u845620905 | cpp |
p03729 | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int Alen = A.length();
int Blen = B.length();
int Clen = C.length();
if (A[Alen - 1] == B[0] && B[Blen - 1] == C[0]) {
cout << "Yes" << endl;
} else {
cout << "No" << en... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int Alen = A.length();
int Blen = B.length();
int Clen = C.length();
if (A[Alen - 1] == B[0] && B[Blen - 1] == C[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << en... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,444 | 1,394,445 | u848339218 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, B, C;
cin >> A >> B >> C;
int D = A.size(), E = B.size();
if (A.at(D - 1) == B.at(0) && B.at(E - 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;
int D = A.size(), E = B.size();
if (A.at(D - 1) == B.at(0) && B.at(E - 1) == C.at(0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,371 | 1,394,373 | u577552796 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int ctoi(const char);
int main() {
string a, b, c, ans = "Yes";
cin >> a >> b >> c;
if (a.at(a.size() - 1) != b.at(0) || b.at(b.size() - 1) != c.at(0))
ans = "No";
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
int ctoi(const char);
int main() {
string a, b, c, ans = "YES";
cin >> a >> b >> c;
if (a.at(a.size() - 1) != b.at(0) || b.at(b.size() - 1) != c.at(0))
ans = "NO";
cout << ans;
} | [
"literal.string.change",
"literal.string.case.change",
"variable_declaration.value.change",
"assignment.value.change"
] | 1,394,377 | 1,394,379 | u434662823 | cpp |
p03729 | #include <bits/stdc++.h>
#define repd(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) repd(i, 0, n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h, w, x;
char s[1000][1000];
bool visited[1000][1000];
pair<int, int> start, go... | #include <bits/stdc++.h>
#define repd(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) repd(i, 0, n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
int h, w, x;
char s[1000][1000];
bool visited[1000][1000];
pair<int, int> start, go... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,385 | 1,394,387 | u317754719 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string a, b, c;
cin >> a;
cin >> b;
cin >> c;
if (a.back() == b.front() && b.back() == b.front()) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string a, b, c;
cin >> a;
cin >> b;
cin >> c;
if (a.back() == b.front() && b.back() == c.front()) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,394,389 | 1,394,391 | u158620769 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string a, b, c;
cin >> a >> b >> c;
if (a.back() == a.front() && b.back() == c.front())
cout << "YES\n";
else
cout << "NO\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string a, b, c;
cin >> a >> b >> c;
if (a.back() == b.front() && b.back() == c.front())
cout << "YES\n";
else
cout << "NO\n";
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,394,399 | 1,394,409 | u090097090 | 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;
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.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 1,394,411 | 1,394,413 | u357265888 | 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) == b.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,394,452 | 1,394,453 | u572077985 | 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()) == b.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",
"identifier.change"
] | 1,394,454 | 1,394,453 | u572077985 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a = "";
string b = "";
string c = "";
cin >> a;
cin >> b;
cin >> 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 = "";
string b = "";
string c = "";
cin >> a;
cin >> b;
cin >> 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,455 | 1,394,456 | u535342861 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0]) {
if (b[b.length() - 1] == c[0])
cout << "YES" << endl;
return 0;
}
cout << "NO" << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a[a.length() - 1] == b[0]) {
if (b[b.length() - 1] == c[0]) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
| [] | 1,394,464 | 1,394,465 | u013803727 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
/* #define SIZE_OF_ARRAY(a) (sizeof(a)/sizeof(a[0]))
sort(a, a + SIZE_OF_ARRAY(a)); 配列内を昇順ソート(aという配列) */
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if ((a.back() == b.front()) && (b.back() =... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
/* #define SIZE_OF_ARRAY(a) (sizeof(a)/sizeof(a[0]))
sort(a, a + SIZE_OF_ARRAY(a)); 配列内を昇順ソート(aという配列) */
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if ((a.back() == b.front()) && (b.back() =... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,394,475 | 1,394,476 | u248442450 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int n;
char s1[105];
char s2[105];
char s3[105];
char pre;
int flag;
int main() {
cin >> s1 >> s2 >> s3;
if (s1[strlen(s1) - 1] == s2[0] && s2[strlen(s2) - 1] == s3[0])
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int n;
char s1[105];
char s2[105];
char s3[105];
char pre;
int flag;
int main() {
cin >> s1 >> s2 >> s3;
if (s1[strlen(s1) - 1] == s2[0] && s2[strlen(s2) - 1] == s3[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,479 | 1,394,480 | u813794882 | cpp |
p03729 | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
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 << "No" << endl;
}
| #include <algorithm>
#include <bits/stdc++.h>
#include <string>
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 << "NO" << endl;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,481 | 1,394,482 | u633967774 | 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;
}
| #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;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,487 | 1,394,488 | u843842420 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <util... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <util... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,489 | 1,394,490 | u872959410 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <cstdint>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define rep(i, rept) for (ll i = 0; i < re... | #include <algorithm>
#include <cmath>
#include <cstdint>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define rep(i, rept) for (ll i = 0; i < re... | [
"call.function.change",
"control_flow.branch.if.condition.change"
] | 1,394,491 | 1,394,492 | u345965293 | cpp |
p03729 | #include <iostream>
#include <string>
#include <vector>
int main(int argc, char const *argv[]) {
std::vector<std::string> v(3);
std::string a, b, c;
std::cin >> v[0] >> v[1] >> v[2];
if (v[0].back() == v[1].front() && v[1].back() == v[2].front()) {
std::cout << "Yes" << '\n';
} else {
std::cout << "No... | #include <iostream>
#include <string>
#include <vector>
int main(int argc, char const *argv[]) {
std::vector<std::string> v(3);
std::string a, b, c;
std::cin >> v[0] >> v[1] >> v[2];
if (v[0].back() == v[1].front() && v[1].back() == v[2].front()) {
std::cout << "YES" << '\n';
} else {
std::cout << "NO... | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 1,394,493 | 1,394,494 | u267325300 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define F first
#define S second
#define vsort(v) sort((v).begin(), (v).end())
#define vrev(v) reverse((v).begin(), (v).end())
using namespace std;
using ll = long long;
int main(int argc, const char *argv[])... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define F first
#define S second
#define vsort(v) sort((v).begin(), (v).end())
#define vrev(v) reverse((v).begin(), (v).end())
using namespace std;
using ll = long long;
int main(int argc, const char *argv[])... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,495 | 1,394,496 | u493080913 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define rrep(i, a, n) for (int i = (a - 1); i >= n; i--)
ll gcd(ll a, ll b) {
if (b == 0)
retur... | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define rrep(i, a, n) for (int i = (a - 1); i >= n; i--)
ll gcd(ll a, ll b) {
if (b == 0)
retur... | [
"control_flow.branch.if.condition.change"
] | 1,394,499 | 1,394,500 | u075865455 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
if (s1[s1.size()] == s2[0] && s2[s2.size()] == s3[0])
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
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;
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,501 | 1,394,502 | u636775911 | cpp |
p03729 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
string x, y, z;
cin >> x >> y >> z;
if (x.at(x.size() - 1) == y.at(0) && y.at(y.size() - 1) == z.at(0))
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
string x, y, z;
cin >> x >> y >> z;
if (x.at(x.size() - 1) == y.at(0) && y.at(y.size() - 1) == z.at(0))
cout << "YES" << endl;
else
cout << "NO" << endl;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,511 | 1,394,512 | u894839777 | cpp |
p03729 | #include <iostream>
#include <string>
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";
} else {
cout << "No";
}
}
| #include <iostream>
#include <string>
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";
} else {
cout << "NO";
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,513 | 1,394,514 | u118037378 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, N, M;
cin >> S >> N >> M;
if (S.at(S.size()) == N.at(1) && N.at(N.size()) == M.at(1)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, N, M;
cin >> S >> N >> M;
if (S.at(S.size() - 1) == N.at(0) && N.at(N.size() - 1) == M.at(0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 1,394,515 | 1,394,516 | u073398103 | cpp |
p03729 | #include <bits/stdc++.h>
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";
cout << endl;
}
| #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";
else
cout << "NO";
cout << endl;
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,526 | 1,394,527 | u942774736 | 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(1)) {
if (b.at(b.size() - 1) == c.at(1)) {
cout << "YES" << endl;
return 0;
}
}
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)) {
if (b.at(b.size() - 1) == c.at(0)) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,394,528 | 1,394,529 | u550995059 | 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[a - 1] == B[0] && B[b - 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;
int a = A.size();
int b = B.size();
int c = C.size();
if (A[a - 1] == B[0] && B[b - 1] == C[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,394,531 | 1,394,532 | u237882418 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << (*a.rbegin() == *b.begin() && *b.rbegin() == *c.begin() ? "Yes"
: "No")
<< endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << (*a.rbegin() == *b.begin() && *b.rbegin() == *c.begin() ? "YES"
: "NO")
<< endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,533 | 1,394,534 | u234435881 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ok1 printf("ok1\n");
#define ok2 printf("ok2\n");
#defin... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ok1 printf("ok1\n");
#define ok2 printf("ok2\n");
#defin... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,394,535 | 1,394,536 | u373958718 | 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[1]) {
cout << "YES";
} else {
cout << "NO";
}
} | #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";
}
} | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,394,537 | 1,394,538 | u244712228 | 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[1]) {
cout << "YES";
} else {
cout << "NO";
}
} | #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";
}
} | [
"control_flow.branch.if.condition.change",
"literal.number.change",
"variable_access.subscript.index.change"
] | 1,394,539 | 1,394,538 | u244712228 | cpp |
p03727 | #pragma comment(linker, "/stack:200000000")
#pragma GCC optimize 2
#pragma target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#define For(i, j, k) for (int i = j; i <= k; ++i)
#define Dow(i, j, k) for (int i = k; i >= j; --i)
#define ll long long
#define pb push_back
#define mp m... | #pragma comment(linker, "/stack:200000000")
#pragma GCC optimize 2
#pragma target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#define For(i, j, k) for (int i = j; i <= k; ++i)
#define Dow(i, j, k) for (int i = k; i >= j; --i)
#define ll long long
#define pb push_back
#define mp m... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,394,613 | 1,394,614 | u525495151 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.front() == b.front() && b.front() == c.front())
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.back() == b.front() && b.back() == c.front())
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} | [
"call.function.change",
"control_flow.branch.if.condition.change"
] | 1,394,546 | 1,394,547 | u271063202 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
#define pb push_back
#define rep(i, a, n) for (int i = (a); i < (n); i++)
#define dep(i, a, n) for (int i = (a); i >= (n); i--)
#define mod (ll)(1e9 + 7)
__attribute__((constructor)) void initi... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
#define pb push_back
#define rep(i, a, n) for (int i = (a); i < (n); i++)
#define dep(i, a, n) for (int i = (a); i >= (n); i--)
#define mod (ll)(1e9 + 7)
__attribute__((constructor)) void initi... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,548 | 1,394,549 | u986898382 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using ll = long long;
typedef unsigned long long ull;
typedef s... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using ll = long long;
typedef unsigned long long ull;
typedef s... | [
"control_flow.branch.if.condition.change"
] | 1,394,550 | 1,394,551 | u732285858 | cpp |
p03729 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <climits>
#include <cmath>
#include <functional>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <time.h>
#include <utility>
#include <vector>
//#include "u... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <climits>
#include <cmath>
#include <functional>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <time.h>
#include <utility>
#include <vector>
//#include "u... | [
"call.function.change",
"control_flow.branch.if.condition.change"
] | 1,394,554 | 1,394,555 | u034865202 | 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" << 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",
"literal.string.case.change",
"io.output.change"
] | 1,394,558 | 1,394,559 | u012694084 | cpp |
p03729 | #include <iostream>
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 <iostream>
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,568 | 1,394,640 | u505831576 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size() - 1] == B[0] &&
B[B.size() - 1]) // str.size() strの文字数が取得できる
{
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
string A, B, C;
cin >> A >> B >> C;
if (A[A.size() - 1] == B[0] &&
B[B.size() - 1] == C[0]) // str.size() strの文字数が取得できる
{
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,645 | 1,394,646 | u960646202 | 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;
}
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;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,647 | 1,394,648 | u560670090 | cpp |
p03729 | #include <stdio.h>
int main() {
int i, j, k;
char first, second, third, forth;
char a[11], b[11], c[11];
scanf("%s %s %s", a, b, c);
for (i = 0; a[i] != '\0'; i++) {
}
for (j = 0; b[j] != '\0'; j++) {
}
if (a[i - 1] == b[0] && b[j - 1] == c[0]) {
printf("Yes\n");
} else {
printf("No\n");
... | #include <stdio.h>
int main() {
int i, j, k;
char first, second, third, forth;
char a[11], b[11], c[11];
scanf("%s %s %s", a, b, c);
for (i = 0; a[i] != '\0'; i++) {
}
for (j = 0; b[j] != '\0'; j++) {
}
if (a[i - 1] == b[0] && b[j - 1] == c[0]) {
printf("YES\n");
} else {
printf("NO\n");
... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,394,651 | 1,394,652 | u679250765 | cpp |
p03729 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
string b;
cin >> b;
string c;
cin >> c;
if (a.back() == b.front() && b.back() == c.front())
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
string b;
cin >> b;
string c;
cin >> 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,680 | 1,394,681 | u160591582 | cpp |
p03729 | #include <bitset>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int an = a.size(), bn = b.size();
if (a[an] == b[0] && b[bn] == c[0])
cout << "YES";
else {
cout << "NO";
}
return 0;
}
| #include <bitset>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
int an = a.size() - 1, bn = b.size() - 1;
if (a[an] == b[0] && b[bn] == c[0])
cout << "YES";
else {
cout << "NO";
}
return 0;
}
| [
"assignment.change"
] | 1,394,682 | 1,394,683 | u451610133 | cpp |
p03729 | #define debug(x) cout << #x << ": " << x << endl
#define rep(a, b) for (int unsafe_cnt = a; unsafe_cnt < b; unsafe_cnt++)
#define fn auto
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
void newline() { cout << endl; }
template <typ... | #define debug(x) cout << #x << ": " << x << endl
#define rep(a, b) for (int unsafe_cnt = a; unsafe_cnt < b; unsafe_cnt++)
#define fn auto
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
void newline() { cout << endl; }
template <typ... | [
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,394,701 | 1,394,702 | u219949952 | cpp |
p03729 | #include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
const double PI = acos(-1.0);
int main() {
// freopen("ttt.txt","r",stdin);
string a, b, c;
cin >> a >> b >> c;
printf((a[a.length() - 1] == b... | #include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
const double PI = acos(-1.0);
int main() {
// freopen("ttt.txt","r",stdin);
string a, b, c;
cin >> a >> b >> c;
printf((a[a.length() - 1] == b... | [
"misc.opposites",
"control_flow.loop.for.condition.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,394,707 | 1,394,708 | u243481970 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
string a, b, c;
int main() {
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;
string a, b, c;
int main() {
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,711 | 1,394,712 | u560985876 | cpp |
p03729 | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
int MAX = 11;
char a[MAX], b[MAX], c[MAX];
scanf("%s", a);
scanf("%s", b);
scanf("%s", c);
if (a[strlen(a) - 1] != b[0] || b[strlen(b) - 1] != c[0]) {
printf("No");
} else {
printf("Yes");
}
} | #include <cstdio>
#include <cstring>
using namespace std;
int main() {
int MAX = 11;
char a[MAX], b[MAX], c[MAX];
scanf("%s", a);
scanf("%s", b);
scanf("%s", c);
if (a[strlen(a) - 1] != b[0] || b[strlen(b) - 1] != c[0]) {
printf("NO");
} else {
printf("YES");
}
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,394,719 | 1,394,720 | u068818590 | cpp |
p03729 | #include <stdio.h>
#include <string.h>
int main(void) {
char s[3][10];
int sl[3];
int i;
scanf("%s %s %s", s[0], s[1], s[2]);
for (i = 0; i < 3; i++) {
sl[i] = strlen(s[i]);
}
if (s[0][sl[0] - 1] == s[1][0]) {
if (s[1][sl[1] - 1] == s[2][0]) {
puts("YES");
} else {
puts("NO");
... | #include <stdio.h>
#include <string.h>
int main(void) {
char s[3][15];
int sl[3];
int i;
scanf("%s %s %s", s[0], s[1], s[2]);
for (i = 0; i < 3; i++) {
sl[i] = strlen(s[i]);
}
/*printf("(a:b)(%c %c),(b:c)(%c %c)\n",
s[0][sl[0]-1],s[1][0],s[1][sl[1]-1],s[2][0]);
printf("%d %d %d\n",sl[0],s... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,394,721 | 1,394,722 | u523141749 | cpp |
p03729 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string A;
getline(cin, A);
string n1, n2, n3, n4;
int count = 1;
for (int i = 0; i < A.size(); i++) {
if (A[i] == ' ' && count == 1) {
n1 = A[i - 1];
n2 = A[i + 1];
}
if (A[i] == ' ' && count =... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string A;
getline(cin, A);
string n1, n2, n3, n4;
int count = 1;
for (int i = 0; i < A.size(); i++) {
if (A[i] == ' ' && count == 1) {
n1 = A[i - 1];
n2 = A[i + 1];
count++;
}
if (A[i] ==... | [
"expression.unary.arithmetic.add"
] | 1,394,728 | 1,394,729 | u274615057 | cpp |
p03729 | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char a[15], b[15], c[15];
while (~scanf("%s %s %s", 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 <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char a[15], b[15], c[15];
while (~scanf("%s %s %s", 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.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,730 | 1,394,731 | u116009323 | cpp |
p03729 | #include <algorithm>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
const int INF = 2147483647;
using namespace std;
// long long minEq... | #include <algorithm>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
const int INF = 2147483647;
using namespace std;
// long long minEq... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,394,732 | 1,394,733 | u190449731 | cpp |
p03729 | #include <cstring>
#include <fstream>
#include <iostream>
using namespace std;
int l1, l2;
char a[12], b[12], c[12];
int main() {
cin >> a >> b >> c;
if (a[strlen(a)] == b[0] && b[strlen(b)] == c[0])
cout << "YES\n";
else
cout << "NO\n";
return 0;
}
| #include <cstring>
#include <fstream>
#include <iostream>
using namespace std;
int l1, l2;
char a[12], b[12], c[12];
int main() {
cin >> a >> b >> c;
if (a[strlen(a) - 1] == b[0] && b[strlen(b) - 1] == c[0])
cout << "YES\n";
else
cout << "NO\n";
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,394,734 | 1,394,735 | u479429581 | cpp |
p03729 | #include "bits/stdc++.h"
//#include<bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define print(x) cout << x << endl;
typedef long long ll;
int main() {
string a, b, c;
cin >> a >> b >> c;
int a_len = a.size();
int b_len = b.size();
int c_len = c.size();
if (a[a_len] ... | #include "bits/stdc++.h"
//#include<bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define print(x) cout << x << endl;
typedef long long ll;
int main() {
string a, b, c;
cin >> a >> b >> c;
int a_len = a.size();
int b_len = b.size();
int c_len = c.size();
if (a[a_len -... | [
"control_flow.branch.if.condition.change"
] | 1,394,738 | 1,394,739 | u009275459 | cpp |
p03729 | #include <iostream>
#include <string>
#include <vector>
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 <iostream>
#include <string>
#include <vector>
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,744 | 1,394,745 | u693897652 | cpp |
p03729 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <queue>
#includ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <queue>
#includ... | [] | 1,394,748 | 1,394,749 | u755757225 | cpp |
p03730 | #include <bits/stdc++.h>
#define ln "\n"
#define SORT(X) sort(X.begin(), X.end())
#define SORTi(X) sort(X.begin(), X.end(), greater<ll>())
#define REP(x, a, b) for (auto x = a; x <= b; x++)
#define REPi(x, b, a) for (auto x = b; x >= a; x--)
#define REPit(x, A) for (auto x = A.begin(); x != A.end(); x++)
#define REPr(... | #include <bits/stdc++.h>
#define ln "\n"
#define SORT(X) sort(X.begin(), X.end())
#define SORTi(X) sort(X.begin(), X.end(), greater<ll>())
#define REP(x, a, b) for (auto x = a; x <= b; x++)
#define REPi(x, b, a) for (auto x = b; x >= a; x--)
#define REPit(x, A) for (auto x = A.begin(); x != A.end(); x++)
#define REPr(... | [
"identifier.change",
"call.arguments.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 1,394,757 | 1,394,758 | u075068940 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool ok = false;
for (int i = 1; i <= b; i++) {
if ((a * i % b) == c) {
ok = true;
break;
}
}
cout << (ok ? "Yes" : "No") << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool flag = false;
for (int i = 1; i <= b; i++) {
if ((a * i % b) == c) {
flag = true;
break;
}
}
cout << (flag ? "YES" : "NO") << endl;
}
| [
"variable_declaration.name.change",
"identifier.change",
"assignment.variable.change",
"control_flow.loop.for.condition.change",
"io.output.change",
"literal.string.change",
"literal.string.case.change"
] | 1,394,759 | 1,394,760 | u403507179 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool flag = false;
for (int i = 1; i <= b; i++) {
if ((a * i % b) == c) {
flag = true;
break;
}
}
cout << (flag ? "Yes" : "No") << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool flag = false;
for (int i = 1; i <= b; i++) {
if ((a * i % b) == c) {
flag = true;
break;
}
}
cout << (flag ? "YES" : "NO") << endl;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,761 | 1,394,760 | u403507179 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool flag = false;
for (int i = 1; i <= b; i++) {
if ((a * i) % b == c) {
flag = true;
break;
}
}
cout << (flag ? "Yes" : "No") << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool flag = false;
for (int i = 1; i <= b; i++) {
if ((a * i % b) == c) {
flag = true;
break;
}
}
cout << (flag ? "YES" : "NO") << endl;
}
| [
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,762 | 1,394,760 | u403507179 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = 1; i <= (int)(n); i++)
int main() {
int A, B, C;
cin >> A >> B >> C;
bool ok = false;
for (int i = 1; i <= B; i++) {
if (A * i % B == C) {
ok = true;
break;
}
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = 1; i <= (int)(n); i++)
int main() {
int A, B, C;
cin >> A >> B >> C;
bool ok = false;
for (int i = 1; i <= B; i++) {
if (A * i % B == C) {
ok = true;
break;
}
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,765 | 1,394,766 | u127228093 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( \
c i) {
sim ... | #include <bits/stdc++.h>
using namespace std;
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( \
c i) {
sim ... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,394,769 | 1,394,770 | u956252692 | 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" << 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",
"literal.string.case.change",
"io.output.change"
] | 1,394,786 | 1,394,787 | u218842729 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string X, Y, Z;
cin >> X >> Y >> Z;
int A, B;
A = X.size();
B = Y.size();
char r = X[A - 1];
char s = Y[0];
char t = Y[B - 1];
char u = Z[0];
if (t == s && t == u) {
cout << "YES" << endl;
} else {
cout << "NO" << en... | #include <iostream>
#include <string>
using namespace std;
int main() {
string X, Y, Z;
cin >> X >> Y >> Z;
int A, B;
A = X.size();
B = Y.size();
char r = X[A - 1];
char s = Y[0];
char t = Y[B - 1];
char u = Z[0];
if (r == s && t == u) {
cout << "YES" << endl;
} else {
cout << "NO" << en... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,394,790 | 1,394,791 | u052935091 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string A, B, C;
string result = "No";
cin >> A;
cin >> B;
cin >> C;
if (A.back() == B.front() && B.back() == C.front())
result = "Yes";
cout << result << "\n";
} | #include <iostream>
#include <string>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string A, B, C;
string result = "NO";
cin >> A;
cin >> B;
cin >> C;
if (A.back() == B.front() && B.back() == C.front())
result = "YES";
cout << result << "\n";
} | [
"literal.string.change",
"literal.string.case.change",
"variable_declaration.value.change",
"assignment.value.change"
] | 1,394,799 | 1,394,800 | u807880588 | cpp |
p03729 | #include <iostream>
#include <string>
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 <iostream>
#include <string>
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,803 | 1,394,804 | u495561847 | 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;
return 0;
} else {
cout << "No" << endl;
return 0;
}
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;
return 0;
} else {
cout << "NO" << endl;
return 0;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,808 | 1,394,809 | u135009186 | cpp |
p03729 | #include <iostream>
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 <iostream>
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,810 | 1,394,811 | u347177245 | cpp |
p03729 | #include <cstring>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
std::string IntToString(long long a) {
char x[100];
sprintf(x, "%lld", a);
std::string s = x;
return s;
}
long long StringToInt(std::string a) {
char x[100];
long long res;
strcpy(x, a.c_str(... | #include <cstring>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
std::string IntToString(long long a) {
char x[100];
sprintf(x, "%lld", a);
std::string s = x;
return s;
}
long long StringToInt(std::string a) {
char x[100];
long long res;
strcpy(x, a.c_str(... | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 1,394,815 | 1,394,816 | u978699554 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
string A, B, C;
cin >> A >> B >> C;
a = A.length() - 1;
b = B.length() - 1;
c = C.length() - 1;
if (A[a] == B[0] && B[b] == C[0]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
string A, B, C;
cin >> A >> B >> C;
a = A.length() - 1;
b = B.length() - 1;
c = C.length() - 1;
if (A[a] == B[0] && B[b] == C[0]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,821 | 1,394,822 | u498714587 | cpp |
p03729 | #include <iostream>
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 <iostream>
using namespace std;
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" << endl;
} else {
cout << "NO" << endl;
}
} | [
"control_flow.branch.if.condition.change"
] | 1,394,823 | 1,394,824 | u910469029 | cpp |
p03729 | #include <stdio.h>
#include <string.h>
int main() {
char A[11], B[11], C[11], a, b, c;
int a1, b1, c1;
scanf("%s %s %s", A, B, C);
a1 = strlen(A);
b1 = strlen(B);
c1 = strlen(C);
if (A[a1 - 1] == B[0] && B[b1 - 1] == C[0]) {
printf("yes\n");
} else {
printf("no\n");
}
return 0;
} | #include <stdio.h>
#include <string.h>
int main() {
char A[11], B[11], C[11], a, b, c;
int a1, b1, c1;
scanf("%s %s %s", A, B, C);
a1 = strlen(A);
b1 = strlen(B);
c1 = strlen(C);
if (A[a1 - 1] == B[0] && B[b1 - 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,394,847 | 1,394,848 | u680126289 | cpp |
p03729 | #include <iostream>
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 <iostream>
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,854 | 1,394,855 | u777468981 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string A;
string B;
string C;
cin >> A;
cin >> B;
cin >> C;
if (A.back() == B.front()) {
if (B.back() == C.front()) {
cout << "yes" << endl;
} else
cout << "no" << endl;
} else {
cout << "no" << endl;
... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string A;
string B;
string C;
cin >> A;
cin >> B;
cin >> C;
if (A.back() == B.front()) {
if (B.back() == C.front()) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
} else {
cout << "NO" << endl;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,861 | 1,394,862 | u725500654 | cpp |
p03729 | #include "iostream"
using namespace std;
int main() {
char a[100], b[100], c[100];
int d, ai, bi, ci;
char no[100] = "NO", yes[100] = "YES";
cin >> a >> b >> c;
for (d = 0; d < 101; d++) {
if (a[d] == '\0') {
ai = d - 1;
}
}
for (d = 0; d < 101; d++) {
if (b[d] == '\0') {
bi = d... | #include "iostream"
using namespace std;
int main() {
char a[100], b[100], c[100];
int d, ai, bi, ci;
char no[100] = "NO", yes[100] = "YES";
cin >> a >> b >> c;
for (d = 0; d < 101; d++) {
if (a[d] == '\0') {
ai = d - 1;
break;
}
}
for (d = 0; d < 101; d++) {
if (b[d] == '\0') {... | [
"control_flow.break.add"
] | 1,394,864 | 1,394,865 | u982271623 | cpp |
p03729 | #include <iostream>
#include <string>
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 <iostream>
#include <string>
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,868 | 1,394,869 | u459493136 | 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;
} 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.back() == B[0] && B.back() == C[0]) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,870 | 1,394,871 | u330783799 | 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;
else
cout << "No" << endl;
} | #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;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,873 | 1,394,874 | u496118739 | cpp |
p03729 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
if (a.back() == c.front() && b.back() == c.front())
cout << "YES\n";
else
cout << "NO\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string a, b, c;
cin >> a >> b >> c;
if (a.back() == b.front() && b.back() == c.front())
cout << "YES\n";
else
cout << "NO\n";
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,394,878 | 1,394,879 | u741323508 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
string Aend, Bstart, Bend, Cstart;
int An, Bn;
cin >> A >> B >> C;
An = A.size() - 1;
Bn = B.size() - 1;
Aend = A.substr(An);
Bstart = B.substr(0);
Bend = B.substr(Bn);
Cstart = C.substr(0);
if (Aend == B... | #include <iostream>
#include <string>
using namespace std;
int main() {
string A, B, C;
string Aend, Bstart, Bend, Cstart;
int An, Bn;
cin >> A >> B >> C;
An = A.size() - 1;
Bn = B.size() - 1;
Aend = A.substr(An);
Bstart = B.substr(0, 1);
Bend = B.substr(Bn);
Cstart = C.substr(0, 1);
if (Aen... | [
"call.arguments.add"
] | 1,394,880 | 1,394,881 | u926089862 | cpp |
p03729 | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstring>
using namespace std;
typedef long long ll;
#ifdef _MSC_VER
#pragma warning(disable : 4996) // Disable deprecation
#endif
char cbuf1[10000];
char cbuf2[10000];
char cbuf3[10000];
int main() {
scanf("%s % %s", cbuf1, cbuf2, cbuf3);
int l1... | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstring>
using namespace std;
typedef long long ll;
#ifdef _MSC_VER
#pragma warning(disable : 4996) // Disable deprecation
#endif
char cbuf1[10000];
char cbuf2[10000];
char cbuf3[10000];
int main() {
scanf("%s %s %s", cbuf1, cbuf2, cbuf3);
int l... | [
"literal.string.change",
"call.arguments.change"
] | 1,394,882 | 1,394,883 | u664315084 | cpp |
p03729 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a.substr(a.size() - 1, 1) == b.substr(0, 1)) {
if (b.substr(b.size() - 1, 1) == c.substr(0, 1)) {
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.substr(a.size() - 1, 1) == b.substr(0, 1) &&
b.substr(b.size() - 1, 1) == c.substr(0, 1)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,394,884 | 1,394,885 | u015019950 | cpp |
p03730 | /*------------------------------------
........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... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,886 | 1,394,887 | u931901821 | cpp |
p03730 | /*------------------------------------
........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... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,888 | 1,394,887 | u931901821 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
string ans = "No";
for (int i = 1; i <= b; i++) {
if (a * i % b == c) {
ans = "Yes";
break;
}
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
string ans = "NO";
for (int i = 1; i <= b; i++) {
if (a * i % b == c) {
ans = "YES";
break;
}
}
cout << ans;
} | [
"literal.string.change",
"literal.string.case.change",
"variable_declaration.value.change",
"assignment.value.change"
] | 1,394,889 | 1,394,890 | u821102066 | cpp |
p03730 | #include <bits/stdc++.h>
#include <string>
using namespace std;
int A, B, C;
int main() {
cin >> A >> B >> C;
for (int i = 1; i <= C; i++) {
if ((i * A) % B == C) {
cout << "YES";
return 0;
}
}
cout << "NO";
return 0;
}
| #include <bits/stdc++.h>
#include <string>
using namespace std;
int A, B, C;
int main() {
cin >> A >> B >> C;
for (int i = 1; i <= 1000; i++) {
if ((i * A) % B == C) {
cout << "YES";
return 0;
}
}
cout << "NO";
return 0;
}
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,394,891 | 1,394,892 | u935620673 | cpp |
p03730 | #include <bits/stdc++.h>
#include <string>
using namespace std;
int A, B, C;
int main() {
cin >> A >> B >> C;
for (int i = 1; i < C; i++) {
if ((i * A) % B == C) {
cout << "YES";
return 0;
}
}
cout << "NO";
return 0;
}
| #include <bits/stdc++.h>
#include <string>
using namespace std;
int A, B, C;
int main() {
cin >> A >> B >> C;
for (int i = 1; i <= 1000; i++) {
if ((i * A) % B == C) {
cout << "YES";
return 0;
}
}
cout << "NO";
return 0;
}
| [
"control_flow.loop.for.condition.change"
] | 1,394,893 | 1,394,892 | u935620673 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
int a, b, c;
int gcd(int a, int b) {
if (a % b == 0)
return b;
else
return gcd(b, a % b);
}
int main(void) {
cin >> a >> b >> c;
if (c % gcd(a, b) == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int a, b, c;
int gcd(int a, int b) {
if (a % b == 0)
return b;
else
return gcd(b, a % b);
}
int main(void) {
cin >> a >> b >> c;
if (c % gcd(a, b) == 0)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,905 | 1,394,906 | u720447689 | cpp |
p03730 | #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 <iostream> // cout, endl, cin
... | #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 <iostream> // cout, endl, cin
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,909 | 1,394,910 | u866370648 | cpp |
p03730 | #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 <iostream> // cout, endl, cin
... | #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 <iostream> // cout, endl, cin
... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,911 | 1,394,910 | u866370648 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool can = false;
for (int i = a; i <= b * a; i++) {
if (i % b == c) {
can = true;
break;
}
}
if (can)
cout << "YES" << endl;
else
cout << "NO" << endl;
return ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int a, b, c;
cin >> a >> b >> c;
bool can = false;
for (int i = 1; i <= b; i++) {
if (a * i % b == c) {
can = true;
break;
}
}
if (can)
cout << "YES" << endl;
else
cout << "NO" << endl;
return ... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 1,394,912 | 1,394,913 | u221391729 | cpp |
p03730 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == 1) {
cout << "YES" << endl;
return 0;
}
string ans = "NO";
for (int i = a; i <= a * b; i++) {
if (i % b == c)
ans = "YES";
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == 1) {
cout << "YES" << endl;
return 0;
}
string ans = "NO";
for (int i = 1; i <= b; i++) {
if (a * i % b == c)
ans = "YES";
}
cout << ans << endl;
return 0;
} | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 1,394,915 | 1,394,916 | u221391729 | cpp |
p03730 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int a, b, c;
cin >> a >> b >> c;
ll x = 0;
string ans = "NO";
for (int i = 1; i <= 1000000... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int a, b, c;
cin >> a >> b >> c;
ll x = 0;
string ans = "NO";
for (int i = 1; i <= 1000000... | [
"expression.operation.binary.remove"
] | 1,394,930 | 1,394,931 | u534923072 | cpp |
p03730 | #pragma region Macros
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int ll
using vi = vector<int>;
using vvi = vector<vi>;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_elemen... | #pragma region Macros
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int ll
using vi = vector<int>;
using vvi = vector<vi>;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_elemen... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,394,942 | 1,394,943 | u652363293 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.