3021:解决Pell数列的两种方法 摘要:解题思路:注意事项:递归题不给用递归不然会超时参考代码:递归法: #include<stdio.h>long long int pell(long long int n){ if(n==1) ret…… 题解列表 2023年11月03日 0 点赞 0 评论 751 浏览 评分:9.9
优质题解:N以内累加求和 摘要:``` #include using namespace std; int main(){ //下面是for循环 int n , sum = 0; cin>>n; for…… 题解列表 2023年11月03日 0 点赞 0 评论 430 浏览 评分:9.9
1141: C语言训练-百钱百坤问题 摘要:#百钱百鸡问题 ##我的代码如下 ``` #include using namespace std; int main(){ int x,y,z; …… 题解列表 2023年11月03日 0 点赞 2 评论 242 浏览 评分:9.9
判断能否被3、5、7整除 摘要: ``` #include using namespace std; int main() { int n; cin >> n; if (n % 3 == 0) cout …… 题解列表 2023年11月03日 1 点赞 0 评论 545 浏览 评分:9.9
平均值计算 摘要:解题思路:先把数输入,把输入的数求和,除以个数拿到平均值,找出比平均值大的数统计下来,然后输出注意事项:输入10个数参考代码:#include<stdio.h>int main(){ int i…… 题解列表 2023年11月03日 0 点赞 0 评论 407 浏览 评分:9.9
参考c语言写的 摘要:def add(d, i, x, maxh): while i <= maxh + 1: d[i] += x i += i 题解列表 2023年11月03日 0 点赞 0 评论 345 浏览 评分:9.9
A+B python题解 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())print(a+b)//说什么内容字数太少,本来以为会考什么数字太长需要用到数组啥的,没想到这么简单…… 题解列表 2023年11月03日 0 点赞 0 评论 799 浏览 评分:9.9
1014: [编程入门]阶乘求和 摘要:解题思路:1. 首先,在程序开头包含了2. 在主函数main()中,定义了变量n、i、j,分别用来保存输入的整数、循环计数的变量。3. 定义了变量ret和sum,分别用来保存每个阶乘结果和阶乘求和的结…… 题解列表 2023年11月03日 0 点赞 0 评论 406 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(Python代码) 摘要:解题思路:注意事项:参考代码:year,mouth,day=map(int,input().split())list1=[31,28,31,30,31,30,31,31,30,31,30,31]if …… 题解列表 2023年11月04日 1 点赞 0 评论 423 浏览 评分:9.9
题解 2766: 甲流疫情死亡率 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int a,b; cin>>…… 题解列表 2023年11月04日 1 点赞 0 评论 585 浏览 评分:9.9