| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81710 | 杜奕辰 | 回文字符串I | C++ | Wrong Answer | 0 MS | 276 KB | 232 | 2024-07-12 15:15:55 |
#include<bits/stdc++.h> using namespace std; int main(){ char s[1001]; int s1=strlen(s); cin>>s; for(int i=0;i<=s1/2;i++) { if(s[i]!=s[s1-1-i]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
No