Boxes through a Tunnel

  • + 0 comments

    struct box { int length; int width; int height; };

    typedef struct box box;

    int get_volume(box b) { return b.length*b.width*b.height; }

    int is_lower_than_max_height(box b) { if(b.height<41) return 1; return 0; }