1217: 换位置 摘要:```cpp #include using namespace std; int main() { int n,i; cin>>n; while(n--) {…… 题解列表 2023年01月10日 0 点赞 0 评论 674 浏览 评分:9.9
1216: 成绩转换 摘要:```cpp #include using namespace std; int main() { int n; while(cin>>n) switch(n/…… 题解列表 2023年01月10日 0 点赞 0 评论 933 浏览 评分:9.9
2254: 蓝桥杯算法提高-奥运会开幕式 摘要:```cpp #include using namespace std; int main() { int n,m,p=0; cin>>n>>m; for(int…… 题解列表 2023年01月10日 0 点赞 0 评论 523 浏览 评分:9.9
1215: 愚蠢的摄影师 摘要:```cpp #include using namespace std; int main() { int N,A[55]={1,1,2}; for(int i=3;i>N…… 题解列表 2023年01月10日 0 点赞 0 评论 614 浏览 评分:9.9
1214: 恺撒密码 ```cpp#includeusingnamespacestd;intmain(){stringstr;while(getline(cin,str)){if(str=="ENDOFINPUT")break;getline(cin,str);for(inti=0;i 题解列表 2023年01月10日 0 点赞 0 评论 631 浏览 评分:9.9
2875: 回文子串 ```cpp#include#includeusingnamespacestd;booldp[500][500];intmain(){chars[500];intlen,k;cin>>s;len=strlen(s);for(inti=0;i 题解列表 2023年01月10日 0 点赞 0 评论 638 浏览 评分:7.3
2821: 开关灯 摘要:```cpp #include using namespace std; int a[5001],n,i,j,m; int main() { cin>>n>>m; boo…… 题解列表 2023年01月10日 0 点赞 0 评论 690 浏览 评分:9.9
2834: 与指定数字相同的数的个数 摘要:```cpp #include using namespace std; int main() { int a[100],x,sum=0,n; cin>>n; f…… 题解列表 2023年01月10日 0 点赞 0 评论 827 浏览 评分:9.9
2765: 计算分数的浮点数值 摘要:```cpp #include #include using namespace std; int main() { int a,b; cin>>a>>b; c…… 题解列表 2023年01月10日 1 点赞 0 评论 575 浏览 评分:10.0
python解题,清晰易懂 解题思路:首先判断字符串能否构成回文,回文的本质是对称;1、对于字符个数为偶数的字符串,所有的字母都是成偶数出现的,如果不是,直接输出Impossible2、对于字符个数是奇数的字符串,有且仅有中间的一个字母数量为奇数(数量不一定为1),如果个数为奇数的字母数量出现一个以上, 题解列表 2023年01月10日 0 点赞 0 评论 817 浏览 评分:9.9