Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
88143 sh25_zhangjiajia 判断字符串是否为回文 C++ Accepted 0 MS 248 KB 401 2026-05-08 14:32:34

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: