摘要: Description Description Description “每个人都拥有一个梦,即使彼此不相同,能够与你分享,无论失败成功都会感动。爱因为在心中,平凡而不平庸,世界就像迷宫,却又让我们此刻相逢Our Home。” 在爱的国度里有N个人,在他们的心中都有着一个爱的名单,上面记载着他所爱的 阅读全文
posted @ 2016-05-15 20:33 mengyue 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Description The system of Martians' blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather togeth 阅读全文
posted @ 2016-05-15 16:57 mengyue 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Description BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarc 阅读全文
posted @ 2016-05-15 16:31 mengyue 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Description Bessie's been appointed the new watch-cow for the farm. Every night, it's her job to walk across the farm and make sure that no evildoers 阅读全文
posted @ 2016-05-15 15:33 mengyue 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Description 一个篮球队有n个篮球队员,每个队员都有联系方式(如电话、电子邮件等)。但并不是每个队员的联系方式都公开,每个队员的联系方式只有一部分队员知道。问队员可以分成多少个小组,小组成员之间可以相互通知(包括一个队员一个组,表示自己通知自己)。 Input 输入文件有若干行 第一行,一 阅读全文
posted @ 2016-05-15 10:55 mengyue 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Description 一些学校连入一个电脑网络。那些学校已订立了协议:每个学校都会给其它的一些学校分发软件(称作“接受学校”)。注意如果 B 在 A 学校的分发列表中,那么 A 不必也在 B 学校的列表中。 你要写一个程序计算,根据协议,为了让网络中所有的学校都用上新软件,必须接受新软件副本的最少 阅读全文
posted @ 2016-05-15 10:52 mengyue 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group 阅读全文
posted @ 2016-05-15 09:40 mengyue 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Description YYX家门前的街上有N(2<=N<=100000)盏路灯,在晚上六点之前,这些路灯全是关着的,六点之后,会有M(2<=m<=100000)个人陆续按下开关,这些开关可以改变从第i盏灯到第j盏灯的状态,现在YYX想知道,从第x盏灯到第y盏灯中有多少是亮着的(1<=i,j,x,y 阅读全文
posted @ 2016-05-15 09:06 mengyue 阅读(224) 评论(0) 推荐(0) 编辑