#include #include #include using namespace std; #define MIN(x,y) (xdep-d) break; } if(cnt+ddep-d) break; } if(cnt+ddep-d) break; } if(cnt+d