Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
87733 sh25_ganzy 判断字符串是否为回文 C++ 通过 0 MS 252 KB 305 2026-04-24 16:34:23

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main(){ char a[100]; cin>>a; int l=strlen(a); bool j=1; for(int i=0;i<=l/2;i++){ if(a[i]!=a[l-i-1]){ j=0; break; } } if(j) cout<<"yes"; else cout<<"no"; return 0; }


测评信息: