摘要:
There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say t 阅读全文
摘要:
You are given an array of integers. Vasya can permute (change order) its integers. He wants to do it so that as many as possible integers will become 阅读全文
摘要:
You are looking at the floor plan of the Summer Informatics School's new building. You were tasked with SIS logistics, so you really care about travel 阅读全文
摘要:
这个是一个非常恶心的题,刚开始以为是POJ的题,结果发现不是,一直都是超时。上题吧 A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more 阅读全文