生日蛋糕问题用c++来实现 摘要:解题思路: 1:我们将蛋糕的每一层看作是一个圆柱体,并且用半径R和高度H来描述。2:通过给定的蛋糕体己N和层数M,我们需要找到一种制作方案,来使得蛋糕的外表面积最小。注意事项:1:在编写代码时,要注意…… 题解列表 2024年10月25日 0 点赞 3 评论 518 浏览 评分:9.0
1316: 最长不下降子序列的长度 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(map(int,input().split()))memo = {}def find(i): if i in me…… 题解列表 2024年10月25日 0 点赞 0 评论 304 浏览 评分:0.0
Python "结构体"的多参数排序 摘要: from functools import cmp_to_key def cmp(a,b): if a[3] 5: for j in range(…… 题解列表 2024年10月25日 0 点赞 0 评论 301 浏览 评分:9.9
题解有点复杂(实际就是我太菜了),还是看看我这个小佝偻的吧 摘要: #include #include using namespace std; typedef pair PII; const int N=101; …… 题解列表 2024年10月25日 0 点赞 4 评论 564 浏览 评分:9.9
ctype优质实现 摘要:#include #include int main() { char ch; int ss=0,tt = 0; while (isalpha(ch = getchar())&&ch…… 题解列表 2024年10月25日 0 点赞 0 评论 179 浏览 评分:0.0
用啥写都一样 摘要:解题思路:e......注意事项:无参考代码:print(''' ******** ************ …… 题解列表 2024年10月25日 1 点赞 0 评论 425 浏览 评分:0.0
2016: 新生的入队仪式 摘要:#include int main() { long long n, m; scanf("%lld %lld", &n, &m); long long ok1 = 0,ok2=0; …… 题解列表 2024年10月25日 0 点赞 0 评论 180 浏览 评分:0.0
优质裁缝题解 摘要:#include int main() { int n; scanf("%d", &n); int sum = 0; int ok = 0; int val = 0; fo…… 题解列表 2024年10月25日 0 点赞 0 评论 219 浏览 评分:0.0
DP入门 # 2809: 菲波那契数列 摘要:``` // 注意这道题第一下项的下标为0,所以我们最后输出的是dp[n-1] #include #include #include #include using namespace …… 题解列表 2024年10月25日 1 点赞 0 评论 382 浏览 评分:0.0
1501: 蓝桥杯算法提高VIP-分苹果 摘要:这道题考察前缀和 , 差分 - 前缀和数组 : 定义一个数组 , 该数组 记录了 数列的前x个值的和 - 例如 数列 1 2 3 4 5,前缀和数组为a[N] 那么a[1]=1,a[…… 题解列表 2024年10月25日 0 点赞 4 评论 286 浏览 评分:0.0