题解列表

筛选

只做记录,基本借鉴别人

摘要:解题思路:          要将三个水龙头的等待时间分别累加起来注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main()……

1938: 蓝桥杯算法提高VIP-道路和航路

摘要:解题思路:有负权的单源最短路径,使用spfa算法即可注意事项:不进行SLF优化会超时两个点参考代码:#include<bits/stdc++.h> using namespace std; str……

1184: 众数问题(基础)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){    int n;cin>>n;……

1182: 人民币问题(背下来)

摘要:解题思路:注意事项:参考代码:include<iostream>using namespace std;int main(){    int a,b,c,count=0;    int sum;   ……

蓝桥杯算法训练VIP-暗恋

摘要:解题思路:维护一个二维数组的前缀和数组,随后对其检测每一个正方形,若全为1则该正方形的和为其面积。若全为0,则正方形的和为0参考代码:#include<bits/stdc++.h> using na……