题解列表
有规律的数列求和c语言
摘要:参考代码:#include <stdio.h>
long long fibonacci(int n);
int main()
{
int N,i;
double sum;
long……
编写题解 2797: 最高的分数
摘要:解题思路:本题使用打擂台法解决注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n;cin>>n; ……
编写题解 1765: 循环入门练习2
摘要:解题思路:注意事项:注意这道题有两种解法参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int sum=0;for(int……
C语言 两个数组+3个for循环解决问题
摘要:解题思路: 用 数组b 的下标记录,我们输入的 数组a 的各个值出现的次数例如 a[6]={ 5, 2, 3, 2, 2, 5 } ;因为 数组a 的最大值是5 ,所以 数组b 的下标最大值也是5那……
编写题解 3010: 奇偶数之和
摘要:解题思路:注意事项:注意要定义两个不同的sum!参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n;cin>……
编写题解 2794: 求平均年龄
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; ……
2751: 超级玛丽游戏题解
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<" ********"……
1123: C语言训练-列出最简真分数序列*
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i = 1;i<40;i++) if (i == 1) { printf(……