Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
313508 黄浙峰老师 【C5-6】判断是否构成回文 C++ 通过 100 1 MS 252 KB 218 2025-03-22 13:42:15

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { string s1,s2; cin>>s1; s1.erase(s1.size()-1,1); s2=s1; reverse(s1.begin(),s1.end()); if(s1==s2)cout<<"TRUE"; else cout<<"FALSE"; return 0; }


测评信息: