题解列表

筛选

题目 1275: 吹哨传球(习惯吧)

摘要:解题思路:题目是求第m轮后到第0位的可能次数,即F[m][0];先求第m-1轮,到第1位和第2位的可能次数;往后找,第m-2轮,到第0位,2位|| 第0位,1位的次数以m=3,n=3为例。F[0][0……

只做记录,基本借鉴别人

摘要:解题思路:          要将三个水龙头的等待时间分别累加起来注意事项:参考代码:#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;   ……