1223一行解(Python) 摘要:注意事项:set用于数据清洗(集合元素的唯一性),取其长度-2即可(因为第一个数从0算起被认为是符合条件的,要去除,直接从1开始算那我也不反对,再减去集合中0的元素,即列表中表示不符合条件的元素)参考…… 题解列表 2022年11月05日 0 点赞 0 评论 323 浏览 评分:9.9
C语言通俗易懂 摘要: #include #include // 循环暴力算法,一个一个比较就好 int main() { // 初始化值(也可以用动态内存开辟数组) int f[1000]…… 题解列表 2022年11月05日 0 点赞 0 评论 527 浏览 评分:9.9
金币C语言版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,i,sum=0,n,c; scanf("%d",&n); for(i=1,c=1;i<=n;c++)…… 题解列表 2022年11月05日 0 点赞 1 评论 643 浏览 评分:9.9
1179 上车人数 斐波那契数列的应用 摘要:# # 思路 先尝试一下计算出在某一站的总人数的通项公式,设a为第一站上车的人数,b为第二站上车和下车的人数,可计算出通项公式为`f1(n)*a+f2(n)*b`,其中: f1(0)=f1(1)=…… 题解列表 2022年11月05日 0 点赞 0 评论 588 浏览 评分:9.9
蟠桃记(简单C++倒推) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int t,n,a[88]={1},i; …… 题解列表 2022年11月05日 0 点赞 0 评论 350 浏览 评分:9.9
计算两点间的距离(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<cmath> #include<iomanip> int mai…… 题解列表 2022年11月05日 0 点赞 0 评论 507 浏览 评分:9.9
计算球体积(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<iomanip> int main() { float…… 题解列表 2022年11月05日 0 点赞 0 评论 536 浏览 评分:9.9
2544一行解(Python) 摘要:注意事项:用sum直接计算列表中的值得和,input()得到的内容为str类型,range(N,M)左闭右开参考代码:print(sum(range(int(input())+1)))…… 题解列表 2022年11月06日 0 点赞 0 评论 304 浏览 评分:9.9
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; int i; scanf("%d %d", &a, &b); f…… 题解列表 2022年11月06日 0 点赞 0 评论 232 浏览 评分:9.9
2904: 谁拿了最多奖学金(c++代码) 摘要:```cpp #include using namespace std; typedef struct Stu { string name; int g1; int g2; ch…… 题解列表 2022年11月06日 0 点赞 0 评论 432 浏览 评分:9.9