蓝桥杯2022年第十三届省赛真题-质因数个数 摘要:解题思路:该问题基于算数基本定理对于任意一个正整数 ,可以将它分解成 个质因子的乘积例如36=2*2*2*3*320=2*2*5由此定理可以发现,对于正整数 来说,它的任意一个因数 都是它质因数…… 题解列表 2023年02月23日 2 点赞 1 评论 1179 浏览 评分:8.2
记录解题过程。 摘要:解题思路: 注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x1, x2,x3,x4; d…… 题解列表 2023年02月23日 0 点赞 0 评论 357 浏览 评分:0.0
编写题解 2799: 奥运奖牌计数 摘要:解题思路:sum的用法注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int a[n]…… 题解列表 2023年02月23日 0 点赞 0 评论 331 浏览 评分:6.0
编写题解 2788: 晶晶赴约会 摘要:解题思路:用if语句借此题注意事项:只是1,3,5输出No,6,7也输出yes参考代码:#include<iostream>using namespace std;int main(){ int…… 题解列表 2023年02月23日 0 点赞 0 评论 316 浏览 评分:9.9
1042: [编程入门]电报加密 摘要:#此题和上一题类似,也需要接收空格,同时还需要进行字母加密,难度稍高。 ```cpp #include #include #include using namespace std; /…… 题解列表 2023年02月23日 0 点赞 1 评论 347 浏览 评分:9.9
1196: 去掉空格 摘要:#这个代码是适配一次性输入的代码,对于dev或者vs等运行环境一行一行输入的话可能会出现输入一次转换一次的问题,稍微改进即可。 ```cpp #include #include #includ…… 题解列表 2023年02月23日 0 点赞 1 评论 281 浏览 评分:9.9
1124: C语言训练-大、小写问题 摘要:#这个题有点意思,测试字符串里面有空格的话容易出错,还特意强调了回车表示结束,所以空格结束的情况也需要排除掉。 ```cpp #include #include #include using…… 题解列表 2023年02月23日 0 点赞 1 评论 156 浏览 评分:6.0
031: [编程入门]自定义函数之字符串反转 摘要:```cpp #include #include #include using namespace std; // 写一函数,使输入的一个字符串按反序存放, // 在主函数中输入并输出反序…… 题解列表 2023年02月23日 0 点赞 1 评论 358 浏览 评分:9.9
1012: [编程入门]字符串分类统计 摘要:```cpp #include #include #include using namespace std; /* 题目描述 编写一函数,由实参传来一个字符串,统计此字符串中字母、数…… 题解列表 2023年02月23日 0 点赞 1 评论 727 浏览 评分:9.9
排列序数(c++)超短 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstring>using namespace std;int main(){…… 题解列表 2023年02月23日 0 点赞 0 评论 374 浏览 评分:9.9