题解列表
优质题解
Minesweeper (C++代码)(可AC,两种方法)
摘要:题意: 你应该有玩过windows里的一个小游戏叫做"挖地雷"。这个游戏的目的就是要在M*N的地雷区格子中找出所有的地雷。为了要帮助你,这个游戏会在非地雷的格子上有些数字,告诉你这一个格子……
数据结构-字符串连接 (C++代码)可AC
摘要:解题思路:运用string函数的性质如 string string1="123" , string2="456"; string1+=string2;
则 string1="123456";注……
迷宫问题 (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……
基础训练数列排序 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;int main(){ int n,m[10……
求所给范围内水仙花数并排列 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,m,a,b,c,d; while(cin>>……
求输入数据绝对值 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std; int main() { float a,b; ……
字符串中间和后边*号删除 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; void fun(char *a) { int t=strlen(a),……