Submission #73286174


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
struct Init { Init() { ios::sync_with_stdio(0); cin.tie(0); cout << setprecision(13); } }init;
using ll = long long;
using pll = pair<ll, ll>;
const int inf = 1073741823;
const long long INF = 1LL << 60;
#define el '\n'
#define spa " "
#define pb emplace_back
#define rep(i, s, n) for(int i = (s); i < (int)(n); i++)
#define rrep(i, s, n) for(int i = (int)(n) - 1; i >= (s); i--)
#define Yes cout << "Yes" << el
#define No cout << "No" << el
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define unless(c) if(!(c))
#define until(c) while(!(c))

int sub(){
    return 0;
}

int solve() {
    string s;
    cin >> s;
    char a, b;
    a = s[0];
    reverse(all(s));
    b = s[0];
    if(a == b){
        Yes;
    }
    else No;
    return 0;
}

int main() {
    int t = 1;
    // cin >> t;
    rep(i, 0, t) {
        solve();
    }
    return 0;
}

Submission Info

Submission Time
Task A - Strong Word
User tuttutu256
Language C++23 (GCC 15.2.0)
Score 100
Code Size 960 Byte
Status AC
Exec Time 1 ms
Memory 3576 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
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 3576 KiB
00_sample_02.txt AC 1 ms 3544 KiB
01_random_01.txt AC 1 ms 3528 KiB
01_random_02.txt AC 1 ms 3528 KiB
01_random_03.txt AC 1 ms 3544 KiB
01_random_04.txt AC 1 ms 3544 KiB
01_random_05.txt AC 1 ms 3464 KiB
01_random_06.txt AC 1 ms 3528 KiB
02_max_01.txt AC 1 ms 3568 KiB
02_max_02.txt AC 1 ms 3432 KiB