摘要: 题目描述 Bessie is playing hide and seek (a game in which a number of players hide and a single player (the seeker) attempts to find them after which vari 阅读全文
posted @ 2019-07-12 23:44 #Cookies# 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 题目描述 One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A 阅读全文
posted @ 2019-07-12 23:40 #Cookies# 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】: 有 N 个盘子,每个盘子上写着一个仅由小写字母组成的英文单词。你需要给这些盘子安排一个合适的顺序,使得相邻两个盘子中,前一个盘子上单词的末字母等于后一个盘子上单词的首字母。请你编写一个程序,判断是否能达到这一要求。如果能,请给出一个合适的顺序。 【输入描述】: 多组数据。第一行给出数 阅读全文
posted @ 2019-07-12 17:23 #Cookies# 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 题目描述 随着智能手机的日益普及,人们对无线网的需求日益增大。某城市决定对城市内的公共场所覆盖无线网。 假设该城市的布局为由严格平行的 129129 条东西向街道和 129129 条南北向街道所形成的网格状,并且相邻的平行街道之间的距离都是恒定值 11。东西向街道从北到南依次编号为 0,1,2 \d 阅读全文
posted @ 2019-07-12 11:41 #Cookies# 阅读(276) 评论(0) 推荐(0) 编辑