题解列表

筛选

一点代码注释

摘要:```cpp #include #include #include using namespace std; int main() { int N; cin>>N; int d……

纯代码无注释

```cpp#include#includeusingnamespacestd;booljudge(intk){stringstr=to_string(k);//数字转字符串if(str.find('2')!=-1||str.find('0')!=-1||str.find('1')!=-1||str.

python 非递归bfs

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

2的次幂表示,C语言

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

确定元音字母位置 简单易懂

```javaimportjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);Stringstr=sc.next();//如果有元音字母将改变,

自定义函数处理素数

摘要:解题思路:如果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 &