摘要: 描述 You may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaceship is 阅读全文
posted @ 2016-09-30 21:56 lzyer 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 描述 Given a positive integer n, find the positions of all 1's in its binary representation. The position of the least significant bit is 0.ExampleThe p 阅读全文
posted @ 2016-09-30 21:32 lzyer 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 描述 这回是浙江工业大学的ACM程序设计竞赛,欢迎你的到来!但是,请稍等!裁判Joe说了,必须正确回答他的问题,才可以看到PIPI的气球MM,KUKU的气球GG.Joe手上有7张卡片,每张卡片上有一个大写字母,分别是Z,J,U,T,A,C,M.现在他开始表演魔术,每次只交换其中的两张卡片.等表演结束 阅读全文
posted @ 2016-09-30 21:16 lzyer 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 描述 哥德巴赫猜想大家都知道一点吧.我们现在不是想证明这个结论,而是想在程序语言内部能够表示的数集中,任意取出一个偶数,来寻找两个素数,使得其和等于该偶数.做好了这件实事,就能说明这个猜想是成立的.由于可以有不同的素数对来表示同一个偶数,所以专门要求所寻找的素数对是两个值最相近的,而且素数对中的第一 阅读全文
posted @ 2016-09-30 21:06 lzyer 阅读(627) 评论(0) 推荐(0) 编辑