题解列表

筛选

2793: 点和正方形的关系

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

2792: 三角形判断

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

最高分数的题解

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; int i; int a[1000]; int max=0; scanf("%d",&n); f……

1738: 排序(冒泡排序)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() {     int n, t; // 声明整数变量n和t     int arr[100]; // ……
优质题解

校门外的树

摘要:解题思路:1.把这条道路上树的总数用一个数组装起来,把这个数组的每个元素都先定义为0;2.确定地铁区域,用双循环,外循环确定有多少个铁路区域;内循环用来给铁路区域做处理,并让此区域中对应所有的数组元素……

数字的处理与判断(c语言)递归和循环

摘要:解题思路:首先分3步,第一步用while循环来获取位数第2步用递归来进行正序输出第3步用for循环,在这之前,你需要明白个位数是num/10的0次方,接着在%10取到我们所需要的位数,比如987除10……

选择排序一般写法

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;void cho……