编写题解 3003: 鸡兔同笼问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; cout…… 题解列表 2023年12月09日 1 点赞 0 评论 473 浏览 评分:10.0
1446: 蓝桥杯2013年第四届真题-核桃的数量 摘要: $$GCD(A,B)\times LCM(A,B)=A\times B$$ ```cpp #include using namespace std; // 最大公约数 int GCD(…… 题解列表 2023年12月09日 2 点赞 0 评论 462 浏览 评分:10.0
编写题解 3007: 收费 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; if…… 题解列表 2023年12月11日 1 点赞 0 评论 369 浏览 评分:10.0
【基础】思维数字的处理与判断 摘要:解题思路:按照题目给的限制不超过5位数进行解答可以使用if-else if进行解答先给定范围判断为几位数,得出结论后进行单个数字拆解,最后做一个逆序输出即可按照小白入门解法代码较多且比较磨人注意事项:…… 题解列表 2023年12月13日 0 点赞 0 评论 520 浏览 评分:10.0
跟我徐海东学,acm金牌你也行! 摘要:参考代码:#includelong long ans[29000000], n;int main(){ scanf("%lld", &n); ans[1] = n * 6; for(…… 题解列表 2023年12月13日 1 点赞 2 评论 523 浏览 评分:10.0
没其它,就是简单易懂 摘要:解题思路:因为是从a[i+1]一直乘到a[n],那么令sum=a[i+1]+...+a[n]故可合并为a[i]*sum注意事项:每次sum的值都要减去a[i]参考代码:#include<stdio.h…… 题解列表 2023年12月14日 1 点赞 0 评论 738 浏览 评分:10.0
2809: 菲波那契数列(两种方法) 摘要:```c //第一种方法:递归 //性能较差 #include int result(int n) { if (n …… 题解列表 2023年12月16日 0 点赞 0 评论 689 浏览 评分:10.0
编写题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:score = list(map(int, input().split())) if min(score) < 60: if max(score) >= 60…… 题解列表 2023年12月17日 1 点赞 0 评论 433 浏览 评分:10.0
题解 2845: 求10000以内n的阶乘 摘要:```c #include int main() { int a[100000] = { 0 }; a[1] = 1; int len = 1;//len代表最高位 int n;…… 题解列表 2023年12月17日 3 点赞 0 评论 581 浏览 评分:10.0
初学者也能看懂的,有注释的超简单计算鞍点! 摘要:解题思路:对于这道题,我们首先来理清一下思路。首先,此题中鞍点的定义是在二维数组中,有一个数,它是所在行的最大值,并且是所在列的最小值。那么我们的主体步骤就是: 1、求出一行中的最大值 ;…… 题解列表 2023年12月23日 4 点赞 0 评论 728 浏览 评分:10.0