编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { double a = 0, b = 0, c = 0; int i = 0; doubl…… 题解列表 2022年07月30日 0 点赞 0 评论 262 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0; int x = 0, y = 0; int i = …… 题解列表 2022年07月30日 0 点赞 0 评论 341 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { double a = 1, b = 2, x = 0, y = 0; double term…… 题解列表 2022年07月30日 0 点赞 0 评论 244 浏览 评分:0.0
三层复合循环求解 摘要:解题思路:通过三层循环嵌套,对个位,十位和百位从0~9进行遍历注意事项:题目中表明输出是三位数,因此通过控制输出条件舍去同样符合条件的0(a=b=c=0)和1(a=b=0;c=1)——————[1]参…… 题解列表 2022年07月30日 0 点赞 0 评论 315 浏览 评分:9.9
2208: 有趣的比赛(DSF) 摘要:测试数据较小,所以可以用深搜去一个一个枚举出来AC代码:#include<bits/stdc++.h> using namespace std; int add=0; int score; v…… 题解列表 2022年07月30日 0 点赞 0 评论 454 浏览 评分:9.9
#C++1556——蓝桥杯算法提高VIP-统计单词数(干货满满) 摘要:解题思路: 把问题分成多个小问题,一个一个处理,读入字符串后,先分离单词,变大写,去符号,放入map去重,统计个数,找最长单词,用vector找输入顺序,格式化输出;注意事项: 因为要实现的功能有点多…… 题解列表 2022年07月30日 0 点赞 0 评论 673 浏览 评分:0.0
去注释较为容易的做法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; bool f=1; b…… 题解列表 2022年07月30日 0 点赞 0 评论 415 浏览 评分:9.9
幸运儿(数组) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;bool flag[100];bool f(){ int num=…… 题解列表 2022年07月30日 0 点赞 0 评论 367 浏览 评分:9.9
用函数方法解 1028 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void result_1(double a, double b, double c);void r…… 题解列表 2022年07月30日 0 点赞 0 评论 323 浏览 评分:0.0
2325: 肺炎大作战 摘要:看到要将一堆人联系起来,本蒟蒻第一时间想到的就是并查集,但是这里要我们输出的是最大群体。我们知道并查集路径压缩后每次查找这个群体的时候都会返回他们的“”祖宗“”,所以我们将群体的大小保存在“”祖宗“”…… 题解列表 2022年07月30日 0 点赞 0 评论 391 浏览 评分:0.0