蓝桥杯算法训练VIP-暗恋 摘要:解题思路:维护一个二维数组的前缀和数组,随后对其检测每一个正方形,若全为1则该正方形的和为其面积。若全为0,则正方形的和为0参考代码:#include<bits/stdc++.h> using na…… 题解列表 2024年03月14日 0 点赞 0 评论 188 浏览 评分:0.0
【C语言题解】编写题解 1673: 数据结构-集合union 摘要:``` #include #include typedef struct Union{ int data; struct Union* next; }*node,Node; //建立…… 题解列表 2024年03月14日 0 点赞 0 评论 165 浏览 评分:0.0
求分段函数的解 摘要:注意事项:1<=x<10的问题,好多新手都这样写,这在c里面是比较低级的错误,应该这样写 1<=x&&x<1参考代码:#include<stdio.h>int main(){ int x,y…… 题解列表 2024年03月14日 0 点赞 0 评论 371 浏览 评分:0.0
1938: 蓝桥杯算法提高VIP-道路和航路 摘要:解题思路:有负权的单源最短路径,使用spfa算法即可注意事项:不进行SLF优化会超时两个点参考代码:#include<bits/stdc++.h> using namespace std; str…… 题解列表 2024年03月14日 0 点赞 0 评论 186 浏览 评分:0.0
二级C语言-进制转换(python) 摘要:解题思路:二进制:bin() 八进制:oct() 十六进制:hex()注意事项:去除前缀可用切片实现操作参考代码:a=int(input())c=o…… 题解列表 2024年03月14日 0 点赞 0 评论 390 浏览 评分:0.0
2177: 信息学奥赛一本通T1252-走迷宫-BFS 摘要: #include #include #include using namespace std; int m,n; string maze[45…… 题解列表 2024年03月14日 0 点赞 0 评论 231 浏览 评分:0.0
只做记录,基本借鉴别人 摘要:解题思路: 要将三个水龙头的等待时间分别累加起来注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main()…… 题解列表 2024年03月14日 0 点赞 0 评论 196 浏览 评分:0.0
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 评论 258 浏览 评分:0.0
编写题解 2773: 计算线段长度,python超简单 摘要:解题思路:详见下列代码注意事项:如果不考虑两种情况,那么会出现运行错误,感觉题目有歧义,没有明确指出。。参考代码:from math import sqrt# 读取输入并转换为浮点数列表number …… 题解列表 2024年03月15日 0 点赞 2 评论 642 浏览 评分:0.0
简单易懂c++ 摘要: `#include using namespace std; bool prime_number(int a){//判断素数函数 if(a==2) return t…… 题解列表 2024年03月15日 0 点赞 0 评论 124 浏览 评分:0.0