题解列表

筛选

迷宫问题 (C++代码)可AC

摘要:解题思路:利用BFS解决最短路径参考代码: #include <iostream> using namespace std; struct note{ int x;    //横坐标 i……

迷宫问题 (C++代码)

摘要:#include<iostream> #include<algorithm> #include<queue> #include<cstring> using namespace std; c……

代码不算复杂

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

判断第几天 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int fun(int a){ if((a%4==0&&a%100!=0)||(a%400……

A+B for Input-Output Practice (IV) (C语言代码)

摘要:解题思路:我这个应该是最简单,不需要太多知识点就能解答问题的方法了,希望能给初学者解惑!1、首先是需要输入一个值,如n的值,它表示了将有n个会进行相加。所以需要一个scanf()函数用来输入n的值;2……

迷宫问题 (C语言代码)

摘要:解题思路:利用广搜遍历注意事项:若无路径则为-1参考代码:#include<stdio.h>char c[200][200];//创建迷宫数组int a,b;//迷宫大小int q[4][2]={-1……