Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146250 王培臻 回文字符串I C++ Wrong Answer 0 MS 280 KB 259 2026-01-27 14:37:29

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char a[152]; long long s=0; cin>>a; while(a[s]!='\0'){ s++; } for(int i=0;i<s/2;i++){ if(a[i]!=a[s-1-i]){ cout<<"no"; return 0; } } cout<<"yes"; return 0; }


Run Info:

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