成绩排序!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct student{ char name[101]; int x; int y;};int…… 题解列表 2022年12月21日 0 点赞 0 评论 372 浏览 评分:0.0
编写题解 1151: C语言训练-计算一个整数N的阶乘 摘要:import java.math.BigInteger;import java.util.Scanner;public class Main { public static void main(…… 题解列表 2022年12月21日 0 点赞 0 评论 529 浏览 评分:0.0
[编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10]; int secm(int x[],int y); for(…… 题解列表 2022年12月21日 0 点赞 0 评论 426 浏览 评分:0.0
信息学奥赛一本通T1336-找树根和孩子 摘要:#include<map> #include<math.h> #include<vector> #include<iostream> #include<algorithm> using na…… 题解列表 2022年12月21日 0 点赞 0 评论 589 浏览 评分:0.0
单词查找树c++(结构体+指针) 摘要:解题思路:用结构体的办法创建一棵树,外加一个全局变量nodes,每新建一个子叶,nodes加一,最后就可以得出总的结点数了注意事项:1.创建指针的时候要分配一个空间,不然程序会出错 …… 题解列表 2022年12月21日 0 点赞 0 评论 907 浏览 评分:0.0
优质题解 连通块(并查集和DFS做法) 解题思路一:DFS(深度优先搜索)```cpp首先遍历整个方格图,当遇到一个黑色格子时,从该格子开始进行深度优先搜索,并将所有被搜索到的黑色格子涂成白色,表示已经被搜索过了。在深度优先搜索的过程中,每次遇到一个黑色格子就将其上下左右的黑色格子加入搜索队列。 题解列表 2022年12月21日 1 点赞 0 评论 1129 浏览 评分:9.9
1112: C语言考试练习题_一元二次方程 摘要:解题思路: 注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c…… 题解列表 2022年12月21日 0 点赞 0 评论 589 浏览 评分:9.9
绝对值排序 入门级 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n; while(~scanf("%d",&n)){//写全 或者写为s…… 题解列表 2022年12月21日 0 点赞 0 评论 410 浏览 评分:0.0
有错误请指出 摘要:解题思路:提前将收入定义为浮点型,方便后面计算注意事项:参考代码:#include <stdio.h>int main(){ int r,y; float m; scanf("%d %f %d",&r…… 题解列表 2022年12月21日 0 点赞 0 评论 807 浏览 评分:9.9
优质题解 围圈报数(c++) 解题思路:一种可行的思路是使用一个队列来存储所有人的编号,每次从队头开始报数,数到第m个人时将其出列,并从队头开始再次报数。首先,我们需要初始化一个队列,将所有人的编号存储在队列中。然后,我们需要一个循环,每次从队头开始报数,直到队列为空为止。 题解列表 2022年12月21日 0 点赞 0 评论 946 浏览 评分:9.9