{"trustable":true,"sections":[{"title":"Description","value":{"format":"MD","content":"There are $n$ tasks to be assigned to $n$ persons. The benefit generated by person $i$ working on task $j$ is $c_{ij}$. Design a distribution plan to assign $n$ tasks to $n$ persons in order to minimize or maximize the total benefit generated."}},{"title":"Input","value":{"format":"MD","content":"The first line of the file contains $1$ positive integers $n$, indicating that there are $n$ tasks to be assigned to $n$ persons.\n\nThe next $n$ lines each contain $n$ integers $c_{i,j}$, representing the benefit generated by person $i$ working on task $j$."}},{"title":"Output","value":{"format":"MD","content":"Output two lines representing the minimum total benefit and the maximum total benefit."}},{"title":"Sample 1","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5\n2 2 2 1 2\n2 3 1 2 4\n2 0 1 1 1\n2 3 4 3 3\n3 2 1 2 1\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e5\n14\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"Hint","value":{"format":"MD","content":"$1 \\leq n \\leq 50, 0 \\le c _ {i, j} \\le 100$.\n\nEach person can only work on one task."}}]}