看看什么问题
查看原帖
看看什么问题
1447404
_ac_AC_ac_楼主2025/1/11 16:20
#include<bits/stdc++.h> 
using namespace std;
int main()
{
    string a,b;
    getline(cin,a);
    int c=a.size();
    int j=c-2; 
    for(int i=0;i<=c-2;i++)
    {
    	b[i]=a[j];
    	j--;
	}
	if(a==b)
	{
		cout<<"yes";
	}
	else
	{
		cout<<"no";
	}
	return 0;
}

2025/1/11 16:20
加载中...