题解列表
Hello, World!Hello, World!Hello, World!
摘要:解题思路: 注意事项:注意要写成Hello, World!参考代码:#include <bits/stdc++.h>using namespace std;int main(){ cout……
成绩排序(Python实现)
摘要:解题思路:注意事项:参考代码:def sort_students(students): students.sort(key=lambda x: (x[2], x[0], x[1])) re……
矩阵交换行(二维数组)(简单易懂)
摘要:解题思路:1. 引入必要的头文件 `stdio.h` 和 `math.h`。2. 定义一个大小为 5x5 的整型数组 `arr`,用于存储输入的数据。3. 定义两个变量 `i` 和 `j`,用于在循环……
图像相似度(c语言)
摘要:解题思路:1. 导入所需的头文件,其中包括<stdio.h>和<math.h>,用于输入输出和数学计算。2. 声明变量m、n、i、j,以及两个二维数组a和b,分别表示矩阵的大小和内容。3. 使用sca……
题解 2822: 求分数序列和
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double a=1.0,b=2.0,c=0;……
题解 2823: 计算分数加减表达式的值
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double c=0; cin>>n; for……
题解 3011: 余数相同问题
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n=2,a,b,c; cin>>a>>b>>c; w……
题解 3012: 分苹果
摘要:
#include
using namespace std;
int main(){
int a,b=1,c=0;
cin>>a;
f……
[编程入门]完数的判断 (C语言)
摘要:解题思路:在b<a的循环中,将所有被a%b=0的b累加,得到sum,如果sum=a,则证明a为完数。把a输出。然后用b=c,将b重新赋值为1,将b<a,然后a%b=0的步骤重新来一遍,把所有的b的值输……