Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
124789 | 范恒恺 | 回文字符串I | C++ | Wrong Answer | 1 MS | 272 KB | 253 | 2025-07-12 15:47:22 |
#include<iostream> #include<cstring> char arr[150]; using namespace std; int main() { cin>>arr; int len=strlen(arr); for(int i=0;i<=len/2;i++){ if(arr[i]!=arr [len-1-i]){ cout<<"NO"; return 0; }else{ cout<<"YES"; } } }
------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
YESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES