Skip to content

Commit 8f7872a

Browse files
committed
atcoder/abc060A
1 parent 9dc7f0f commit 8f7872a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

atcoder/abc060/A/main.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <bits/stdc++.h>
2+
3+
using namespace std;
4+
using ll = long long;
5+
6+
int main() {
7+
ios_base::sync_with_stdio(false);
8+
cin.tie(0); cout.tie(0);
9+
10+
string A, B, C;
11+
cin >> A >> B >> C;
12+
if (A[A.size()-1] == B[0] && B[B.size()-1] == C[0]) {
13+
cout<< "YES" << endl;
14+
} else {
15+
cout << "NO" << endl;
16+
}
17+
18+
return 0;
19+
}

0 commit comments

Comments
 (0)