| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151122 | 张暄浩 | 31回文字符串 | C++ | Wrong Answer | 0 MS | 268 KB | 454 | 2026-04-05 17:13:13 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() using namespace std; int main(){ char s[101]; int n,i,flag=1; cin>>s; cin>>n; for(i=0;i<=n/2;i++){ if(s[i]!=s[n-1-i]){ flag=0; } } if(flag){ cout<<"YES"<<endl;} else{ cout<<"NO"<<endl; } return 0; }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
NO