C++最小生成树+并查集 摘要:解题思路:虚拟点0点,当码头只有一个时最后减掉,其他就是最小生成树和并查集注意事项:可以挣钱的路不管树通不通都加参考代码:#include<iostream> #include<vector> #…… 题解列表 2021年04月10日 0 点赞 0 评论 609 浏览 评分:0.0
日期的计算 摘要:解题思路:利用类进行处理;注意事项:平年、闰年的判断。参考代码:#include<iostream> class Time { private:int year, month, day; p…… 题解列表 2021年04月10日 0 点赞 0 评论 184 浏览 评分:0.0
字符串对比。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>int main(){ c…… 题解列表 2021年04月10日 0 点赞 0 评论 255 浏览 评分:0.0
,,,,,。。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>void fun(int a,int b){ int i,j,…… 题解列表 2021年04月10日 0 点赞 0 评论 415 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:调用三个字符数组str1,str2,str3,字符数组str1是用来输入字符串,字符数组str3是放入元音字母(有顺序排列),字符数组str2是用来存放str1中包含元音字母。第一个循环是为…… 题解列表 2021年04月10日 0 点赞 0 评论 770 浏览 评分:9.9
注意使用while循环语句 摘要:#include<stdio.h> #include<math.h> int main() { int n; while(~scanf("%d",&n)){ if(n!=0){ …… 题解列表 2021年04月10日 0 点赞 0 评论 560 浏览 评分:8.0
干净的解法 摘要:解题思路:注意事项:参考代码:int_count = 0str_count = 0a = input(str())for i in a: if i.isdigit(): int_count +…… 题解列表 2021年04月10日 0 点赞 0 评论 279 浏览 评分:0.0
干净的解法 摘要:解题思路:python中有转换大小写的函数:upper()----所有字母大写;lower()----所有字母小写 注意事项:参考代码:st=input() …… 题解列表 2021年04月10日 0 点赞 0 评论 453 浏览 评分:0.0
优质题解 题目 1433: 蓝桥杯2013年第四届真题-危险系数 摘要:解题思路:采用邻接矩阵进行深度优先搜索,我们可以这样想,每搜出一条路,ant++(记录总共搜出所少条路),且让b[搜过的路径下标]+1,这样,如果它是关键点,那么所有的深搜路径都会经过那个点,这时,b…… 题解列表 2021年04月10日 0 点赞 2 评论 1070 浏览 评分:8.5
题解 2083: 蓝桥杯基础练习-十进制转十六进制 摘要:解题思路:不停的对16取余,将取余的余数存入数组,输出的时候当余数大于9的时候加上55,强制转换为字符型注意事项:需要特判输入数字为0的时候参考代码:#include <iostream> usin…… 题解列表 2021年04月10日 0 点赞 0 评论 629 浏览 评分:9.9