coci试题
INPUT
The first line of input contains the positive integer K (1 ≤ K ≤ 9) from the problem statement.
Each of the following 2K lines contains 2K integers from the interval [0, 106]. These 2K × 2K numbers represent repulsion between bacteria pairs: the number in row m and column n is the repulsion between bacteria m and n. This number will, of course, be equal to the number in row n and column m. For m = n the number will be 0.
OUTPUT
The first and only line of output should contain the minimum possible length of a bacteria sequence satisfying the constraints.
SAMPLE TESTS
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库coci 2013 contest1_tasks(9)在线全文阅读。
相关推荐: