2810: 鸡尾酒疗法 摘要:解题思路:本题主要考察对循环的熟练度和对题干的理解力注意事项:循环中i的循环次数为:i<=n-1,不是n better,worse,same不要拼错(别问我为什么要写这个,…… 题解列表 2024年01月11日 0 点赞 0 评论 317 浏览 评分:9.9
写题解 2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n;double x,y,d,d1;cin>>n>>x…… 题解列表 2024年01月11日 0 点赞 0 评论 200 浏览 评分:9.9
题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ int fmax,maxs=0,…… 题解列表 2024年01月11日 0 点赞 0 评论 299 浏览 评分:9.9
2806: 人口增长问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x,n; cin>>x>>n; …… 题解列表 2024年01月11日 0 点赞 0 评论 163 浏览 评分:2.0
1301: 尼克的任务 摘要:#1301: 尼克的任务 ##思路解析 首先可以很明确判断出这是一道线性规划的题目。该题目本人觉得难点在于正反推的问题。所以我会详细解释一下。顺带一提搜索的思路也是可以的,但是这道题状态空间优点大…… 题解列表 2024年01月11日 0 点赞 0 评论 308 浏览 评分:0.0
奶牛的锻炼 摘要:# 奶牛的锻炼 ##思路解析 首先,我们可以发现这是一个动态规划问题。因此需要设计一个合理的dp数组来辅助我们完成任务。 大概思路可见代码注释。 ##代码实现 ```cpp /* *…… 题解列表 2024年01月11日 0 点赞 0 评论 357 浏览 评分:7.0
[NOIP2001]装箱问题 - 如何转换为经典题型 摘要:# [NOIP2001]装箱问题 - 如何转换为经典题型 ## 解题思路: ### 思路1:搜索 这是最简单的思路,从某种角度来说。穷搜算法就是一种枚举状态的思路。因此这是无视防御的思维路径。因…… 题解列表 2024年01月10日 0 点赞 1 评论 173 浏览 评分:0.0
写题解 2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,sum=0; cin>>a>>b; …… 题解列表 2024年01月10日 0 点赞 0 评论 109 浏览 评分:0.0
题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0,summ=0,summm=0…… 题解列表 2024年01月10日 0 点赞 0 评论 106 浏览 评分:0.0
题解 2758: 打印ASCII码(c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char a; cin>>a; cout<<(int…… 题解列表 2024年01月10日 0 点赞 0 评论 131 浏览 评分:0.0