明明的随机数--set容器自动排序+去重,简单易懂 摘要:解题思路:又要去重又要排序,那么set容器是不二之选,set无法加入重复数据,同时对数据从小到大排序参考代码:#include <bits/stdc++.h> using namespace std…… 题解列表 2024年03月15日 1 点赞 0 评论 498 浏览 评分:9.9
python用for解决 摘要:解题思路:注意事项:参考代码:str=input()a,b,c,d=0,0,0,0for i in str: if (i>='A' and i<='Z') or …… 题解列表 2024年03月15日 2 点赞 0 评论 490 浏览 评分:0.0
编写题解 2771:大象喝水,python超简单 摘要:解题思路:注意事项:输出时舍去多余的0因为会估算参考代码:h,r = map(int,input().split()) #读取高度和半径 pi = 3.14159v_1 = pi * r ** 2…… 题解列表 2024年03月15日 0 点赞 0 评论 1022 浏览 评分:6.0
蜗牛——dp三步法 摘要:解题思路:DP三步法第一步 确认dp元素a[i]:第i根竿子上的传送门起点b[i]:第i根竿子上的传送门终点对应a[i-1]x[i]:第i根竿子到原点的水平距离第二步 明确状态,得到状态转移方程蜗牛最…… 题解列表 2024年03月15日 0 点赞 0 评论 958 浏览 评分:9.9
飞机降落(仔细阅读代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int T;int z=0;int str[10]; //飞机是否降落struct code{ int t; …… 题解列表 2024年03月14日 0 点赞 0 评论 1515 浏览 评分:8.8
只做记录,基本借鉴别人 摘要:解题思路: 要将三个水龙头的等待时间分别累加起来注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main()…… 题解列表 2024年03月14日 0 点赞 0 评论 501 浏览 评分:0.0
2177: 信息学奥赛一本通T1252-走迷宫-BFS 摘要: #include #include #include using namespace std; int m,n; string maze[45…… 题解列表 2024年03月14日 0 点赞 0 评论 483 浏览 评分:0.0
二级C语言-进制转换(python) 摘要:解题思路:二进制:bin() 八进制:oct() 十六进制:hex()注意事项:去除前缀可用切片实现操作参考代码:a=int(input())c=o…… 题解列表 2024年03月14日 0 点赞 0 评论 751 浏览 评分:0.0
采药---类似背包,详细注释 摘要:详细注释的代码,解释背包原理参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2024年03月14日 3 点赞 0 评论 580 浏览 评分:10.0
1938: 蓝桥杯算法提高VIP-道路和航路 摘要:解题思路:有负权的单源最短路径,使用spfa算法即可注意事项:不进行SLF优化会超时两个点参考代码:#include<bits/stdc++.h> using namespace std; str…… 题解列表 2024年03月14日 0 点赞 0 评论 434 浏览 评分:0.0