[第2章 2.2e1] Palindromes
40 字
1 分钟
[第2章 2.2e1] Palindromes
#include <bits/stdc++.h>#define endl '\n'using namespace std;typedef long long ll;bool solve(){ string str; cin>>str; ll len=str.size(); for(ll i=0;i<len;i++){ if(str[i]!=str[len-i-1])return false; } return true;}int main(){ ll t; cin>>t; while(t--){ if(solve())cout<<"yes"<<endl; else cout<<"no"<<endl; } return 0;}支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或打赏支持!
[第2章 2.2e1] Palindromes
https://hecloud.top/posts/22e1-palindromes/



