-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBJ_15683.cpp
More file actions
81 lines (66 loc) · 1.28 KB
/
BJ_15683.cpp
File metadata and controls
81 lines (66 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
char map[8][8];
vector<pair<int, int>> laser_direction = {
{1, 0},{0, 1},{-1, 0},{0, -1}
};
vector<vector<vector<int>>> camera_direction = { //[kind of camera] [kind of camera's laser] [kind of laser]
{
{
{0},
{1},
{2},
{3}
}
}, // 1
{
{
{0, 2},
{1, 3}
}
},// 2
{
{
{0, 1},
{1, 2},
{2, 3},
{3, 0}
}
},// 3
{
{
{0, 1, 2},
{1, 2, 3},
{2, 3, 0},
{3, 0, 1}
}
},// 4
{
{
{0, 1, 2, 3 }
}
}// 5
};
vector<pair<int, int>> cameras;
void shot_laser(pair<int, int> position, pair<int, int> direction);
int main() {
int n, m;
cin >> n >> m;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
cin >> map[i][j];
if (map[i][j] != 0 and map[i][j] != 6) {
cameras.push_back(make_pair(i, j));
}
}
}
return 0;
}
void shot_laser( pair<int, int> position, pair<int, int> direction, char *map[8][8] ) {
while () {
}
}