运行时完全不对,提交后50分
查看原帖
运行时完全不对,提交后50分
741120
_O__o_楼主2022/9/11 17:39

求助の大佬!!``` #include<bits/stdc++.h>

using namespace std; char a[1000]; int main() { string str; cin >> str; int len = str.length(); int t;

for(int i=0;i<len;i++){
	if(str[i] == str[len-i]){
		t++;
	}
}
if(t == len){
	cout << "yes";
}else{
	cout << "no";
}




return 0;

}

2022/9/11 17:39
加载中...