#C++1556——蓝桥杯算法提高VIP-统计单词数(干货满满) 解题思路:把问题分成多个小问题,一个一个处理,读入字符串后,先分离单词,变大写,去符号,放入map去重,统计个数,找最长单词,用vector找输入顺序,格式化输出;注意事项:因为要实现的功能有点多,所以用到了7个头文件,要是不喜欢太多,可以换成万能头文件:#include#include 题解列表 2022年07月30日 0 点赞 0 评论 1145 浏览 评分:0.0 用函数方法解 1028 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void result_1(double a, double b, double c);void r…… 题解列表 2022年07月30日 0 点赞 0 评论 549 浏览 评分:0.0 2325: 肺炎大作战 摘要:看到要将一堆人联系起来,本蒟蒻第一时间想到的就是并查集,但是这里要我们输出的是最大群体。我们知道并查集路径压缩后每次查找这个群体的时候都会返回他们的“”祖宗“”,所以我们将群体的大小保存在“”祖宗“”…… 题解列表 2022年07月30日 0 点赞 0 评论 823 浏览 评分:0.0 #C++1631——蓝桥杯算法训练VIP-数位分离(栈) 摘要:解题思路: 题本身很简单,只是刚好可以用到栈的知识,练习一下注意事项: 栈的出入顺序参考代码:#include <iostream> #include <stack> using namespac…… 题解列表 2022年07月30日 0 点赞 0 评论 711 浏览 评分:0.0 #C++1562——蓝桥杯算法提高VIP-计算时间(慢悠悠的cin,cout) 解题思路:思路可以参考注释注意事项:这题与2609差不多,这里是多组,且数据很大,不过此题输出格式上C语言风格的更简单,但是cin和cout输入输出效率太慢,慢7倍左右,会超时,2609链接:https://www.dotcpp.com/oj/problem2609.html参考代码:#include 题解列表 2022年07月30日 0 点赞 0 评论 789 浏览 评分:0.0 编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int t = 0; double h = 0; double sum = 0; i…… 题解列表 2022年07月30日 0 点赞 0 评论 460 浏览 评分:0.0 python--倒叙解法 解题思路:从后往前推,计算从每个位置开始的可以拦截的最多的导弹数注意事项:无参考代码:tall=list(map(int,input().split()))tall.reverse()max_of_tall=[1]forn1inrange(1, 题解列表 2022年07月30日 0 点赞 0 评论 807 浏览 评分:0.0 编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 2; int n = 0; int sum = 1; scan…… 题解列表 2022年07月30日 0 点赞 0 评论 558 浏览 评分:0.0 编写题解 1670: 拆分位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0, c = 0; int num = 0; sca…… 题解列表 2022年07月30日 0 点赞 0 评论 658 浏览 评分:0.0 编写题解 1671: 小九九 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 0, j = 0; for(i = 1; i <= 9; i++) …… 题解列表 2022年07月30日 0 点赞 0 评论 554 浏览 评分:0.0 « 12...2180218121822183218421852186...59235924 »
用函数方法解 1028 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void result_1(double a, double b, double c);void r…… 题解列表 2022年07月30日 0 点赞 0 评论 549 浏览 评分:0.0
2325: 肺炎大作战 摘要:看到要将一堆人联系起来,本蒟蒻第一时间想到的就是并查集,但是这里要我们输出的是最大群体。我们知道并查集路径压缩后每次查找这个群体的时候都会返回他们的“”祖宗“”,所以我们将群体的大小保存在“”祖宗“”…… 题解列表 2022年07月30日 0 点赞 0 评论 823 浏览 评分:0.0
#C++1631——蓝桥杯算法训练VIP-数位分离(栈) 摘要:解题思路: 题本身很简单,只是刚好可以用到栈的知识,练习一下注意事项: 栈的出入顺序参考代码:#include <iostream> #include <stack> using namespac…… 题解列表 2022年07月30日 0 点赞 0 评论 711 浏览 评分:0.0
#C++1562——蓝桥杯算法提高VIP-计算时间(慢悠悠的cin,cout) 解题思路:思路可以参考注释注意事项:这题与2609差不多,这里是多组,且数据很大,不过此题输出格式上C语言风格的更简单,但是cin和cout输入输出效率太慢,慢7倍左右,会超时,2609链接:https://www.dotcpp.com/oj/problem2609.html参考代码:#include 题解列表 2022年07月30日 0 点赞 0 评论 789 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int t = 0; double h = 0; double sum = 0; i…… 题解列表 2022年07月30日 0 点赞 0 评论 460 浏览 评分:0.0
python--倒叙解法 解题思路:从后往前推,计算从每个位置开始的可以拦截的最多的导弹数注意事项:无参考代码:tall=list(map(int,input().split()))tall.reverse()max_of_tall=[1]forn1inrange(1, 题解列表 2022年07月30日 0 点赞 0 评论 807 浏览 评分:0.0
编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 2; int n = 0; int sum = 1; scan…… 题解列表 2022年07月30日 0 点赞 0 评论 558 浏览 评分:0.0
编写题解 1670: 拆分位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0, c = 0; int num = 0; sca…… 题解列表 2022年07月30日 0 点赞 0 评论 658 浏览 评分:0.0
编写题解 1671: 小九九 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i = 0, j = 0; for(i = 1; i <= 9; i++) …… 题解列表 2022年07月30日 0 点赞 0 评论 554 浏览 评分:0.0