Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
332945 | 钟宜辰 | 【C5-6】判断是否构成回文 | C++ | 解答错误 | 0 | 5 MS | 252 KB | 213 | 2025-07-15 16:00:52 |
#include<bits/stdc++.h> using namespace std; int main(){ string s,s1; cin>>s; cout<<'.'; s1=s; reverse(s.begin(),s.end()); if(s1==s){ cout<<"TRUE"; } else{ cout<<"FALSE"; } return 0; }