C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int n; …… 题解列表 2023年07月17日 0 点赞 0 评论 351 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要: #include int number_ou(int a)//当为偶数时 { printf("%d/2=%d\n",a,a/2); return a/2; } i…… 题解列表 2023年07月17日 0 点赞 0 评论 359 浏览 评分:0.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[1000],b[1000];int main(){ int n,s…… 题解列表 2023年07月17日 0 点赞 0 评论 347 浏览 评分:0.0
请指正,提交后显示第一个答案不正确 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void f(char a[100]){ int x = 0, y = 0, z = 0, e = 0; for (int…… 题解列表 2023年07月17日 0 点赞 0 评论 339 浏览 评分:0.0
C语言训练-计算1~N之间所有奇数之和 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) { int n,a; cin>>n; …… 题解列表 2023年07月18日 0 点赞 0 评论 433 浏览 评分:0.0
母牛的故事(递归) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int arr[60]; int niu(int x){ if(arr[x]!…… 题解列表 2023年07月18日 0 点赞 0 评论 385 浏览 评分:0.0
明明的随机数-一个萝卜一个坑 摘要:#include #include int main() { int N = 0 , m = 0 , num = 0 , k = 0 ; int arr[1001] = …… 题解列表 2023年07月18日 0 点赞 0 评论 369 浏览 评分:0.0
Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int w,s,sn,i; scanf("%d",&i); i…… 题解列表 2023年07月18日 0 点赞 0 评论 379 浏览 评分:0.0
阶乘求和(递归) 摘要:看到有个评论用了递归,索性帮他补一下 ```c #include long long fun(int n) { if(n==1) { return 1; } else if(n==…… 题解列表 2023年07月18日 0 点赞 0 评论 422 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[100];int main(){ int n,m,sum=0; …… 题解列表 2023年07月18日 0 点赞 0 评论 242 浏览 评分:0.0