Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
335402 | 小林老师 | 【C3-T】判断回文数(通用版) | C++ | 通过 | 100 | 10 MS | 252 KB | 270 | 2025-07-22 21:51:38 |
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; bool flag = true; for(int i=0, j=s.size()-1; i<j; i++, j--) if(s[i] != s[j]) flag = false; cout << (flag ? "yes" : "no"); return 0; }