NOIP Program Master Co, Ltd
Production Pack Guide
Produced by pseudo-AIcoder-7a7968-58

labyrinth.h / labyrinth3d.h
Step 2 : Function Copying
  1. Copy the code labyrinth(3d).h from line 8 to 149(153) to Label 1

Step 3 : Labyrinth Data Preparing
  1. This code builds a labyrinth without blocks.

    vec grid;
    cin >> h >> w;
    grid.resize(h);
    for (int i=0;i<h;i++) grid[i].resize(w);
    /* 3d
    vec3d grid;
    cin >> d1 >> d2 >> d3;
    grid.resize(d1);
    for (int i=0;i<d1;i++) {
        grid[i].resize(d2);
        for (int j=0;j<d2;j++) {
         	grid[i][j].resize(d3);
        }
    }
    */
  2. If you want to set a block at (x, y[, z])[0<=x<d3, 0<=y<d2[, 0<=z<d1]], write this code

    grid[z][y][x] = 1;
Example

Notes : (p)/(p1)/(p2) = ([z, ]y, x)

Example Problems
Want more? Go back to the Part 2 : Search Guide to find what do you still need.
Have some problems? Turn to the Part 4 : Exception to solve them.