题解 2831: 画矩形 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,d; char c; cin>>a…… 题解列表 2024年01月17日 0 点赞 0 评论 261 浏览 评分:9.9
题解 2831: 画矩形 摘要:解题思路:主要是空心比较难想,其他的没什么。注意事项:别忘了换行和空格。参考代码:#include <bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2024年01月17日 0 点赞 0 评论 377 浏览 评分:9.9
利用gets求解字符串的分类统计 摘要:解题思路:在解题之前我们需要知道,在c++中,从键盘读取数据用的是cin,但cin无法读取到空格,所以此法不满足题目要求;然而c语言中的gets却不受空格限制,可以读取空格,故我们可以采用c的方法完成…… 题解列表 2024年01月17日 0 点赞 0 评论 425 浏览 评分:2.0
2820: 含k个3的数 摘要:解题思路:注意事项:仅供参考,禁止抄袭参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long F,B,I,p…… 题解列表 2024年01月17日 0 点赞 0 评论 246 浏览 评分:0.0
好写》好写 摘要:参考代码:#include<stdio.h> int res[50] = {0, 1}; int main() { int n; scanf("%d", &n); int add =…… 题解列表 2024年01月17日 0 点赞 0 评论 550 浏览 评分:9.9
利用递归与数学方法求解最大公约数与最小公倍数问题 摘要:解题思路:在求解此题前我们需要先明白最大公约数与最小公倍数应该怎么求1、最大公约数可用辗转相除法求解:例如:288和123288%123=2......42(此处得到42以备用)123%42=2...…… 题解列表 2024年01月17日 0 点赞 0 评论 379 浏览 评分:9.9
题解 2820: 含k个3的数 摘要:解题思路:1.ss是为了和d比较;2.只拆解数位,不和并数位注意事项:参考代码:#include <iostream>using namespace std;int main(){ long l…… 题解列表 2024年01月17日 0 点赞 0 评论 237 浏览 评分:0.0
题解 2233: 蓝桥杯算法训练-图形显示 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a; cin>>a; for(int i=…… 题解列表 2024年01月17日 0 点赞 0 评论 235 浏览 评分:8.4
题解 2233: 蓝桥杯算法训练-图形显示 摘要:解题思路:没什么好说的;注意事项:在输出时要注意换行与空格参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; …… 题解列表 2024年01月17日 0 点赞 0 评论 302 浏览 评分:9.9
题解 2817: 级数求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long k; double sum…… 题解列表 2024年01月17日 0 点赞 0 评论 236 浏览 评分:0.0