2017年7月21日
摘要:
某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当...
阅读全文
posted @ 2017-07-21 19:08
zitian246
阅读(111)
推荐(0)
摘要:
Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything ...
阅读全文
posted @ 2017-07-21 08:48
zitian246
阅读(110)
推荐(0)
摘要:
Alice and Bob play 5-in-a-row game. They have a playing field of size 10 × 10. In turns they put either crosses or noughts, one at a t...
阅读全文
posted @ 2017-07-21 08:27
zitian246
阅读(135)
推荐(0)
2017年7月20日
摘要:
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digit...
阅读全文
posted @ 2017-07-20 20:18
zitian246
阅读(96)
推荐(0)
摘要:
上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B...
阅读全文
posted @ 2017-07-20 16:01
zitian246
阅读(102)
推荐(0)
摘要:
The cows have run out of hay, a horrible event that must be remedied immediately. Bessie intends to visit the other farms to survey th...
阅读全文
posted @ 2017-07-20 15:36
zitian246
阅读(125)
推荐(0)
摘要:
XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中...
阅读全文
posted @ 2017-07-20 14:56
zitian246
阅读(125)
推荐(0)
2017年7月18日
摘要:
The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian gove...
阅读全文
posted @ 2017-07-18 16:30
zitian246
阅读(126)
推荐(0)
2017年7月13日
摘要:
In this problem, you are given an integer number s. You can transform any integer number A to another integer numberB by adding x to A...
阅读全文
posted @ 2017-07-13 16:57
zitian246
阅读(130)
推荐(0)
摘要:
Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white...
阅读全文
posted @ 2017-07-13 16:50
zitian246
阅读(117)
推荐(0)