题解列表

筛选

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

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

1184: 众数问题(基础)

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

蜗牛——dp三步法

摘要:解题思路:DP三步法第一步 确认dp元素a[i]:第i根竿子上的传送门起点b[i]:第i根竿子上的传送门终点对应a[i-1]x[i]:第i根竿子到原点的水平距离第二步 明确状态,得到状态转移方程蜗牛最……

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

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

1277: Lucky Word(基础)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<cmath>#include<iomanip>using namespace st……