有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; float a=1.0,b=2.0,j=b/a,t,sum=0; scanf…… 题解列表 2023年11月12日 0 点赞 0 评论 419 浏览 评分:0.0
自由下落的距离计算 摘要:解题思路:每次经过的路程均为高度的3倍注意事项:参考代码:m,n=map(int,input().split())c=0for i in range(1,n+1): m=m/2 c+=3*…… 题解列表 2023年11月12日 0 点赞 0 评论 614 浏览 评分:0.0
编程入门自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,N; float M,H=0,S=0; scanf("%f %d",&M,&N…… 题解列表 2023年11月12日 0 点赞 0 评论 508 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); int m =(a<b?a:b); while …… 题解列表 2023年11月12日 0 点赞 0 评论 446 浏览 评分:0.0
求最大公约数最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,m,n,i,j; scanf("%d %d",&a,&b); m=a<b?b:…… 题解列表 2023年11月12日 0 点赞 0 评论 476 浏览 评分:0.0
我的很简洁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdbool.h>bool is_prime(int n) { if (n <= 1) { …… 题解列表 2023年11月12日 0 点赞 0 评论 536 浏览 评分:0.0
Hello, World!Hello, World!Hello, World! 摘要:解题思路: 注意事项:注意要写成Hello, World!参考代码:#include <bits/stdc++.h>using namespace std;int main(){ cout…… 题解列表 2023年11月12日 0 点赞 0 评论 493 浏览 评分:0.0
成绩排序(Python实现) 摘要:解题思路:注意事项:参考代码:def sort_students(students): students.sort(key=lambda x: (x[2], x[0], x[1])) re…… 题解列表 2023年11月12日 0 点赞 0 评论 674 浏览 评分:0.0
矩阵交换行(二维数组)(简单易懂) 解题思路:1.引入必要的头文件`stdio.h`和`math.h`。2.定义一个大小为5x5的整型数组`arr`,用于存储输入的数据。3.定义两个变量`i`和`j`,用于在循环中迭代数组的行和列。4.使用嵌套循环,遍历数组的每个位置,并通过`scanf`函数从用户处读取输入。 题解列表 2023年11月12日 0 点赞 0 评论 1095 浏览 评分:0.0
图像相似度(c语言) 摘要:解题思路:1. 导入所需的头文件,其中包括<stdio.h>和<math.h>,用于输入输出和数学计算。2. 声明变量m、n、i、j,以及两个二维数组a和b,分别表示矩阵的大小和内容。3. 使用sca…… 题解列表 2023年11月12日 0 点赞 0 评论 905 浏览 评分:0.0