题解列表

筛选

python 非递归bfs

摘要:解题思路:求这种最短路径的迷宫问题基本上都可以用bfs来解决注意事项:这个地方需要记录路径,因此我们需要用到copy包中的deepcopy()参考代码:from copy import deepcop……

2的次幂表示,C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>#include<stdlib.h>#include<stdbool……

自定义函数处理素数

摘要:解题思路:如果a不能被2--根号下a中德宝所有的整数,则a就是素数注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int i,k,a……

容易理解的C语言代码

摘要:解题思路:        ax + b = 0            ax= -b              x= -b/a注意事项:参考代码:#include &