- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 类的重用oop
4.1 类的继承 • 4.2 Object类 • 4.3 终结类与终结方法 • 4.4 抽象类 • 4.5 泛型 • 4.6 类的组合 • 4.7 包的应用 • 4.8 本章小结
2022-05-17 11:31:50
245
原创 僵尸又来了
#include <iostream> #include<queue> using namespace std; char maze[200][200]; int used[200][200][10]; int direct[4][2]={{-1,0},{0,1},{1,0},{0,-1}}; class node{ public: int x,y; int time; }; int bfs(node start,int m,int n,int p,int t){ qu.
2021-10-23 09:14:09
444
原创 僵尸来了NOJ
#include<iostream> #include<queue> using namespace std; char maze[200][200]; int direct[4][2] = { {-1,0},{0,1},{1,0},{0,-1} }; int used[200][200][10]; class node { public: int x, y; int t; int s; }; int bfs(node start, int m, int n) { que.
2021-10-22 21:06:47
395
原创 NOJ 僵尸又又来了
#include<iostream> #include<queue> using namespace std; char maze[201][201] ; int direct[4][2] = { {-1,0},{0,1},{1,0},{0,-1} }; class node { public: int x; int y; int b; int time; }; int used[200][200][10];//注意要区分不同血量的僵尸 int bfs(node st...
2021-10-22 21:00:24
530
原创 NOJ 跳马
//跳马!!!!!!!!! #include<iostream> #include<queue> using namespace std; class K0 { public: int x; int y; int s; }; int search(int x1, int y1, int x2, int y2, queue<K0>l)//搜索 { K0 start, end; int a[200][200] = { 0 }; start.x = x1; ..
2021-10-20 19:57:41
163
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅