Run ID:88464
提交时间:2024-08-19 10:49:41
#include<bits/stdc++.h> using namespace std; char s[1001]; int main(){ cin >> s; int n = strlen(s); int l = 0, r = n-1; while(l <= r) { if(s[l] ==s[r]) { l++; r--; } else { cout << "no"; return 0; } } return 0; }