文章
20
粉丝
412
获赞
12
访问
163.3k
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
string s, rs;
int index = 1;
while(cin >> s) {
rs = s;
reverse(rs.begin(), rs.end());
if(s == rs) cout << "case" << index++ << ": yes" << endl;
else cout << "case" << index++ << ": no" << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发