摘要:
You are given nn chips on a number line. The ii-th chip is placed at the integer coordinate xixi. Some chips can have equal coordinates. You can perfo 阅读全文
摘要:
Fight Against Monsters It is my great honour to introduce myself to you here. My name is Aloysius Benjy Cobweb Dartagnan Egbert Felix Gaspar Humbert I 阅读全文
摘要:
实质:最近点对问题,时间复杂度为O(nlognlogn)Problem DescriptionHave you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toy 阅读全文
摘要:
Problem Description某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input测试输入包含若干测试用 阅读全文
摘要:
A. Three Piles of Candies Alice and Bob have received three big piles of candies as a gift. Now they want to divide these candies as fair as possible. 阅读全文