[第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/oi/22e1-palindromes/相关文章智能推荐
1
[第2章 2.2t1] Subsequence
算法竞赛2026-06-27
2
[第1章 1.2t2] 扫描
算法竞赛2026-06-26
3
[第1章 1.4t8] 荷马史诗
算法竞赛2026-06-26
4
[第1章 1.5t4] 蚯蚓
算法竞赛2026-06-26
5
[第1章 1.1t1] 队列安排
算法竞赛2026-06-26
随机文章随机推荐





