| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82496 | 汤 | 回文字符串I | C++ | Wrong Answer | 1 MS | 272 KB | 284 | 2024-07-13 11:46:28 |
#include<bits/stdc++.h> using namespace std; int main() { int i,n,b=1; char a[1000]={}; cin>>a; for(i=1;i<=n/2;i++) { if(a[1]==a[n-i-1]) { b=1; } else { b=0; } } if(b==1) { cout<<"yes"; } else { cout<<"no"; } return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes