1018有规律的数列求和 摘要:解题思路:斐波那契数列注意事项:注意数据类型参考代码:#include<stdio.h>float F(int n){ if(n==1||n==2) return 1; el…… 题解列表 2023年08月07日 0 点赞 0 评论 295 浏览 评分:0.0
函数求整数平均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int ave(int a[],int n){ int sum=0; for(int…… 题解列表 2023年08月07日 0 点赞 0 评论 496 浏览 评分:4.7
题号:1018: [编程入门]有规律的数列求和 摘要:解题思路:利用代换因子表示出更新后的分子分母注意事项:注意a+=b这一步的位置,我们要的是a,b原始值的相加参考代码:#include<stdio.h>int main(){ int i,n; …… 题解列表 2023年08月07日 0 点赞 0 评论 332 浏览 评分:0.0
c++的一种写法 摘要:解题思路:#include<iostream>using namespace std;int main(){char c1,c2,c3,c4,c5,c6,c7,c8,c9,c10; cin>>c…… 题解列表 2023年08月07日 0 点赞 0 评论 909 浏览 评分:9.9
题解 1053:平均值计算(单个循环解决 c++) 摘要:解题思路: 循环前的准备工作:1、先设置十个整数,并将它们放入一个数组以备循环里调取。 2、设置均值k。 3、设置题目所求的计数变量sum。 …… 题解列表 2023年08月07日 0 点赞 0 评论 642 浏览 评分:9.9
筛选号码简单AC 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int a[100001]; …… 题解列表 2023年08月07日 0 点赞 0 评论 328 浏览 评分:9.9
自定义函数之字符串反转1031 摘要:解题思路:两头开始交换位置注意事项:字符串长度计算和反转的限制条件参考代码:#include<stdio.h>#include <string.h>void revstr(char a[100],in…… 题解列表 2023年08月07日 0 点赞 0 评论 556 浏览 评分:0.0
优质题解 复杂度O(m求和)的求模 摘要:解题思路:我们发现前t个数的模总共只存在t种,若不存在相同的两个数则刚好t种,则第t+1个必须有新的模,考虑第一个模为0,则n%k=k-1.否则则有两个数同余注意事项:无参考代码:a=int(inpu…… 题解列表 2023年08月07日 0 点赞 1 评论 1071 浏览 评分:7.6
2885: 矩阵转置(C语言) 摘要: #include int main() { int n,m; scanf("%d %d",&n,&m); int a[n][m];//原来的矩阵 for(int …… 题解列表 2023年08月07日 0 点赞 0 评论 497 浏览 评分:0.0
2886: 图像旋转(C语言) 摘要: #include int main() { int n, m; scanf("%d %d", &n, &m); int a[n][m]; for (int …… 题解列表 2023年08月07日 0 点赞 0 评论 437 浏览 评分:0.0