Submission #73284842
Source Code Expand
#include <bits/stdc++.h>
#define ll long long
const ll N = 1e7 + 5, MOD = 1e9 + 7, inf = 2e18;
using namespace std;
int dx[] = {0, 0, 1, -1, 1, 1, -1, -1};
int dy[] = {1, -1, 0, 0, 1, -1, 1, -1};
char di[] = {'R', 'L', 'D', 'U'};
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<class T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
template<class T>
using ordered_multiset = tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>;
void Ebraam() {
ios_base::sync_with_stdio(false);
cin.tie(0), cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("Input.txt", "r", stdin);
freopen("Output.txt", "w", stdout);
#endif
}
void solve() {
string s;
cin>>s;
cout<<(s[0]==s.back()?"Yes":"No");
}
int main() {
Ebraam();
int t = 1;
// cin >> t;
while (t--) {
solve();
if (t)cout << endl;
}
return 0;
}
Submission Info
| Submission Time |
|
| Task |
A - Strong Word |
| User |
Ebraam_Yousef |
| Language |
C++23 (GCC 15.2.0) |
| Score |
100 |
| Code Size |
1037 Byte |
| Status |
AC |
| Exec Time |
1 ms |
| Memory |
3604 KiB |
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
100 / 100 |
| Status |
|
|
| Set Name |
Test Cases |
| Sample |
00_sample_01.txt, 00_sample_02.txt |
| All |
00_sample_01.txt, 00_sample_02.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 02_max_01.txt, 02_max_02.txt |
| Case Name |
Status |
Exec Time |
Memory |
| 00_sample_01.txt |
AC |
1 ms |
3596 KiB |
| 00_sample_02.txt |
AC |
1 ms |
3596 KiB |
| 01_random_01.txt |
AC |
1 ms |
3484 KiB |
| 01_random_02.txt |
AC |
1 ms |
3596 KiB |
| 01_random_03.txt |
AC |
1 ms |
3408 KiB |
| 01_random_04.txt |
AC |
1 ms |
3500 KiB |
| 01_random_05.txt |
AC |
1 ms |
3520 KiB |
| 01_random_06.txt |
AC |
1 ms |
3500 KiB |
| 02_max_01.txt |
AC |
1 ms |
3532 KiB |
| 02_max_02.txt |
AC |
1 ms |
3604 KiB |