1018 有规律的数列求和(for循环赋初值) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>// 1 2 3 4 5 6 7 //分子 2 3 5 8 13 21 34//分母 1 2…… 题解列表 2024年05月12日 0 点赞 0 评论 147 浏览 评分:0.0
1019 自由落体的距离计算 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<math.h>//次数 1 2 3 …… 题解列表 2024年05月12日 0 点赞 0 评论 177 浏览 评分:0.0
1020 猴子吃桃问题(逆向思维求解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//天数 1 2 3 4 5 //个数 1 4 10 22 46int main(){ int n; scan…… 题解列表 2024年05月12日 0 点赞 0 评论 154 浏览 评分:0.0
1021 求平方根 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>//运用到 sqrt 开平方; int main(){ double n; scanf("%lf",&n…… 题解列表 2024年05月12日 0 点赞 0 评论 125 浏览 评分:0.0
1022筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sushu(int n){ for(int i=2;i*i<=n;i++) { if(n%i==0)//不是素数 { …… 题解列表 2024年05月12日 0 点赞 0 评论 171 浏览 评分:0.0
1023选择排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void xuanze(int a[],int n){ int i,j; for(i=1;i<=n-1;i++) { int min=…… 题解列表 2024年05月12日 0 点赞 0 评论 215 浏览 评分:0.0
1024 矩阵对角线求和(二维数组赋初值) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[4][4]; for(int i=1;i<=3;i++) { for(int j=1;j<=3;j…… 题解列表 2024年05月12日 0 点赞 0 评论 117 浏览 评分:0.0
题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=50;int a…… 题解列表 2024年05月12日 0 点赞 0 评论 209 浏览 评分:0.0
编写题解 1024: [编程入门]矩阵对角线求 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月12日 0 点赞 0 评论 184 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月12日 0 点赞 0 评论 299 浏览 评分:0.0