斐波那契数列(c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[1001];int main(){ int n; cin>>…… 题解列表 2022年11月23日 0 点赞 0 评论 371 浏览 评分:9.9
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gongyue(int n,int m){ int i; for(i=n;i>1;i--) { if(m%i==0 && n%i…… 题解列表 2022年11月23日 0 点赞 0 评论 304 浏览 评分:0.0
编写题解 1026: [编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[10],temp; for(i=0;i<10;i++) scanf("%d",&a[i]);…… 题解列表 2022年11月23日 0 点赞 0 评论 306 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,sum,N; scanf("%d",&N); for(i=1;i<=N;i++) { …… 题解列表 2022年11月23日 0 点赞 0 评论 303 浏览 评分:0.0
c++利用指针循环计数(超级简单,全是c++基础语法) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;void fund(int a[], int n);int main() { int n; cin >> n; i…… 题解列表 2022年11月23日 0 点赞 0 评论 372 浏览 评分:9.9
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100;i<=999;i++) { a=i/100; b=i/10%1…… 题解列表 2022年11月23日 0 点赞 0 评论 289 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,x=0,y=0; float c,i,z=0.0,sum; sc…… 题解列表 2022年11月23日 0 点赞 0 评论 309 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){long long int i,j=1,n,Sn=0; scanf("%d",&n); if(n<=20) { …… 题解列表 2022年11月23日 0 点赞 0 评论 286 浏览 评分:0.0
超详细通俗易懂C++,暴力求解 摘要:参考代码:#include<iostream> using namespace std; int main() { // 输入 int N; cin>>N; …… 题解列表 2022年11月23日 0 点赞 1 评论 407 浏览 评分:9.9
宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include <stdio.h># define f(a, b, c) max = a>b?(b>c?a:(a>c?a:c)) : (b<c?c:b) int …… 题解列表 2022年11月22日 0 点赞 0 评论 367 浏览 评分:9.9