Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112995 刘佳宇 31回文字符串 C++ Wrong Answer 1 MS 276 KB 297 2025-03-15 10:30:17

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); int len=s.size(); bool flag=true; for(int i=0;i<=len/2;i++){ if(s[i]!=s[len-1-i]){ flag=false; break; } } if(flag==true){ cout<<"yes"<<endl; } else{ cout<<"no"<<endl; } }


Run Info:

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