1257: 超级楼梯(动态规划入门) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ int T; cin >> T; w…… 题解列表 2024年07月13日 0 点赞 0 评论 153 浏览 评分:0.0
分段函数求值 摘要:解题思路:首先这就是一个最常见的分段函数先判断输入的x是否小于1,如果小于则会执行Y=X;否则执行下一个else if2.else if 已经否定了前面的if,所以只需要判断X是否小于10即可3.最后…… 题解列表 2024年07月13日 1 点赞 0 评论 611 浏览 评分:9.9
题解 2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl…… 题解列表 2024年07月13日 0 点赞 0 评论 262 浏览 评分:9.9
2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月13日 0 点赞 0 评论 181 浏览 评分:0.0
1183: 人见人爱A+B(atoi函数的使用) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ int T; cin >> T; w…… 题解列表 2024年07月13日 0 点赞 0 评论 153 浏览 评分:0.0
1182: 人民币问题(三重循环) 摘要:解题思路:我其实是想用 dfs 做的,不过不知道如何处理一些重复解的删除,所以选择了暴力,有大佬会的话,可以回复哦!注意事项:参考代码:#include<iostream>using namespac…… 题解列表 2024年07月13日 0 点赞 0 评论 198 浏览 评分:0.0
1181: 不容易系列2(错排问题,简单的动态规划) 摘要:解题思路:错排问题,规律就是 第 n 项 =(第 n-1 项 + 第 n-2 项)*(n-1);当然啦,要从 3个数开始。注意事项:参考代码:#include<iostream>using names…… 题解列表 2024年07月13日 0 点赞 0 评论 268 浏览 评分:0.0
1180: 不容易系列(逆向思维求解) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int T; cin >> T; while (T--) { int…… 题解列表 2024年07月13日 0 点赞 0 评论 145 浏览 评分:0.0
合并循环,让代码更简洁 摘要:解题思路:// 用循环做,本质上是寻找i与空格,i与*的关系注意事项://注意寻找各个变量与i的关系参考代码:Scanner sc=new Scanner(System.in);String str=…… 题解列表 2024年07月13日 0 点赞 0 评论 398 浏览 评分:0.0