#38287: CPP ANS


yp11251094@yphs.tp.edu.tw (703-45)

學校 : 臺北市私立延平高級中學
編號 : 246062
來源 : [203.72.178.1]
最後登入時間 :
2024-04-11 14:01:32
a022. 迴文 | From: [203.72.178.1] | 發表日期 : 2023-11-09 17:30

#include <bits/stdc++.h>
using namespace std;
int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    string s;
    cin >> s;
    string t = s;
    reverse(s.begin(), s.end());
    if(s == t) cout << "yes\n";
    else cout << "no\n";
}

 
ZeroJudge Forum