/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: main.cpp * Author: cteam025 * * Created on October 28, 2017, 11:46 AM */ #include #include using namespace std; /* * */ int main(int argc, char** argv) { ios::sync_with_stdio(false); char ** img; img = new char*[100007]; for(int i=0; i<100007; ++i){ img[i] = new char [100007]; } while (cin. good()){ int size, treeCnt; cin >> size >> treeCnt; if (!cin.good()){ return 0; } for(int i=0; i> s >> x >> y; //x = size-x; //y = size-y-1; //koren if (s == 0){ if (x>0 && y>=0 && x<=size && y=0 && y>=0 && x=-1 && y>=0 && x0 && y>=0 && x<=size && y=0 && y>=0 && x=-1 && y>=0 && x=1 && x<=size+3){ for(int j = y+1; j=0 && x=-1 && x=0 && y+s+1>=0 && x