T-shirts Distribution
Solution sketch
Let the source node be $0$, shirt nodes from small to large are $[1, 6]$ respectively, participant nodes are $[7, 7 + n)$, and sink node be $7 + n$.
AC Code
|
|
Never give up!
Let the source node be $0$, shirt nodes from small to large are $[1, 6]$ respectively, participant nodes are $[7, 7 + n)$, and sink node be $7 + n$.
|
|