Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- int dx[8] = {1,1,1,0,-1,-1,-1,0};
- int dy[8] = {1,0,-1,-1,-1,0,1,1};
- int main() {
- int n, f, c;
- cin >> n;
- while(cin >> f >> c){
- vector<string> vs(n);
- vector< vector<char> > t(f, vector<char> (c));
- for(int i = 0; i < n; ++i) cin >> vs[i];
- for(int i = 0; i < f; ++i){
- for(int j = 0; j < c; ++j){
- cin >> t[i][j];
- }
- }
- for(int i = 0; i < f; ++i){
- for(int j = 0; j < c; ++j){
- int p = 0;
- for(int d = 0; d < 8; ++d){
- while(p <
- }
- }
- if(cin >> n) cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement