题解列表

筛选

萌新出品:2749: Hello, World!

摘要:参考代码:#include<iostream>using namespace std;int main(){  cout <<"Hello, World!";    return 0;}c完记的给好评……

矩阵交换行(二维数组)(简单易懂)

摘要:解题思路:1. 引入必要的头文件 `stdio.h` 和 `math.h`。2. 定义一个大小为 5x5 的整型数组 `arr`,用于存储输入的数据。3. 定义两个变量 `i` 和 `j`,用于在循环……

2768: 与圆相关的计算

摘要:解题思路:注意事项:a要定义成小数参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double a,b,c,d;    ……

原神andc++萌新出品 题解:1267: A+B Problem

摘要:原神 启动!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!参考代码:  #include<iostream>using namespace std;int main(){    ……

1953: 三位数分解

摘要:解题思路:注意事项:数位的算法参考代码:#include <iostream>using namespace std;int main(){    int a,b,c,d;    cin>>d;   ……

1953: 三位数分解

摘要:解题思路:注意事项:数位的算法参考代码:#include <iostream>using namespace std;int main(){    int a,b,c,d;    cin>>d;   ……

2764: 带余除法

摘要:解题思路:注意事项:cin不能用,参考代码:#include <iostream>using namespace std;int main(){    int a,b,c,d;    cin>>a>>……

三位数分解(题解)

摘要:解题思路:输入一个三位整数,分三行分别输出这个三位数的百位、十位、个位数。输入格式注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int m……

成绩排序(Python实现)

摘要:解题思路:注意事项:参考代码:def sort_students(students):    students.sort(key=lambda x: (x[2], x[0], x[1]))    re……