Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
40755 yejiaxiangBMT 判断字符串是否为回文 C++ Accepted 1 MS 256 KB 231 2024-02-16 00:49:12

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main() { char a[100]; gets(a); int i=0,j=strlen(a)-1; while((i<j)&&(a[i]==a[j])){ i++; j--; } if(i>=j) cout<<"yes"<<endl; else cout<<"no"<<endl; return 0; }


Judgement Protocol: