#include using namespace std; int a[201][201]; int cauta(int x1,int y1,int x2,int y2) { int x,y; long long height; x=(x1+x2)/2; y=(y1+y2)/2; cout<>height; a[x][y]=height; if (height==0) return 0; if (height<0) { cauta(x1,y+1,x,199); cauta(x+1,y1,199,y); cauta(x+1,y+1,199,199); } else { cauta(x1,y,x-1,199); cauta(x,y1,199,y-1); cauta(x1,y1,x-1,y-1); } } int main() { cauta(0,0,199,199); return 0; }