{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"A university network is composed of N computers. System administrators gathered information on the traffic between nodes, and carefully divided the network into two subnetworks in order to minimize traffic between parts.\r\u003cbr\u003eA disgruntled computer science student Vasya, after being expelled from the university, decided to have his revenge. He hacked into the university network and decided to reassign computers to maximize the traffic between two subnetworks.\r\u003cbr\u003eUnfortunately, he found that calculating such worst subdivision is one of those problems he, being a student, failed to solve. So he asks you, a more successful CS student, to help him.\r\u003cbr\u003eThe traffic data are given in the form of matrix C, where Cij is the amount of data sent between ith and jth nodes (Cij \u003d Cji, Cii \u003d 0). The goal is to divide the network nodes into the two disjointed subsets A and B so as to maximize the sum ∑Cij (i∈A,j∈B)."}},{"title":"Input","value":{"format":"HTML","content":"The first line of input contains a number of nodes N (2 \u0026lt;\u003d N \u0026lt;\u003d 20). The following N lines, containing N space-separated integers each, represent the traffic matrix C (0 \u0026lt;\u003d Cij \u0026lt;\u003d 10000).\r\u003cbr\u003eOutput file must contain a single integer -- the maximum traffic between the subnetworks.\r\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"Output must contain a single integer -- the maximum traffic between the subnetworks."}},{"title":"Sample","value":{"format":"HTML","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\u003e3\r\n0 50 30\r\n50 0 40\r\n30 40 0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e90\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}