Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97488 任斌 31回文字符串 C++ Wrong Answer 1 MS 272 KB 241 2024-11-16 09:37:42

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { string a; cin>>a; int len=a.length(); for(int i=0;i<len/2;i++){ if(a[i]!=a[len-1-i]){ cout<<"no"<<endl; return 0; } } cout<<"yes"; return 0; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
yes