摘要: 描述 The "Gold Bar"bank received information from reliable sources that in their last group of N coins exactly one coin is false a... 阅读全文
posted @ 2018-05-03 22:05 xzhws 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 题目描述 一个数的序列bi,当b1 int a[1001];int sum[1001];int max(int a,int b){ return a>b?a:b;}int main(){ int n,i,j; while(scanf("%d",&n)!... 阅读全文
posted @ 2018-05-03 08:36 xzhws 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 转载自:这位博主~ 描述 Weird Wally's Wireless Widgets, Inc. manufactures an eclectic assortment of small, wireless, network capable devices,... 阅读全文
posted @ 2018-04-30 22:09 xzhws 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 转载自:点击打开链接 描述 一根长度为1米的木棒上有若干只蚂蚁在爬动。它们的速度为每秒一厘米或静止不动,方向只有两种,向左或者向右。如果两只蚂蚁碰头,则它们立即交换速度并继续爬动。三只蚂蚁碰头,则两边的蚂蚁交换速度,中间的蚂蚁仍然静止。如果它们爬到了木棒的边缘... 阅读全文
posted @ 2018-04-29 22:46 xzhws 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Description The country is facing a terrible civil war----cities in the country are divided into two parts supporting different ... 阅读全文
posted @ 2018-04-29 15:25 xzhws 阅读(50) 评论(0) 推荐(0) 编辑
摘要: Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another ... 阅读全文
posted @ 2018-04-29 12:34 xzhws 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 描述 A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected b... 阅读全文
posted @ 2018-04-28 21:18 xzhws 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 描述 迪拜是富人的天堂。迪拜政府赚钱有高招。他们建造了很多人工海岛出售。这些海岛被建成各大洲的形状,所以统称为“世界岛”。买了这些岛的富豪们都想互相交个朋友,所以他们希望将这些岛用桥连接起来。比尔盖茨也预定了一个岛,但他是唯一一个不想让自己的岛和其他岛相连... 阅读全文
posted @ 2018-04-28 13:55 xzhws 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 转载自:点击打开链接 描述 中国的小学教育现在是个大问题。老师不但在批评学生的时候要很小心,奖励学生的时候也得小心。刘老师以前常常给考试前10名的学生一点小奖励,但是一些家长现在对此有点生气。他们说他们的孩子可能会因为总是得不到奖励而受到伤害。刘老师只好改变他... 阅读全文
posted @ 2018-04-27 23:57 xzhws 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 描述: 热带岛屿Lagrishan的首领现在面临一个问题:几年前,一批外援资金被用于维护村落之间的道路,但日益繁茂的丛林无情的侵蚀着村民的道路,导致道路维修开销巨大,长老会不得不放弃部分道路的维护。上图左侧图显示的是正在使用道路的简图以及每条路每个月... 阅读全文
posted @ 2018-04-25 20:28 xzhws 阅读(59) 评论(0) 推荐(0) 编辑