题解列表

筛选

同因查找--java

importjava.util.Scanner;publicclass同因查找{publicstaticvoidmain(String[]args){for(inti=10;i

一点代码注释

摘要:```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();//如果有元音字母将改变,