Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
89397 sh25_zhangjiajia 判断字符串是否为回文 C++ Accepted 1 MS 252 KB 401 2026-06-05 14:19:44

Tests(4/4):


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


Judgement Protocol: