上一页 1 ··· 17 18 19 20 21
摘要: Babelfish Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 44537 Accepted: 18800 Description You have just moved from Waterloo to a big city 阅读全文
posted @ 2017-07-06 19:35 灬从此以后灬 阅读(200) 评论(0) 推荐(0) 编辑
摘要: B. Hamming Distance Sum time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Hamming Dista 阅读全文
posted @ 2017-07-06 19:16 灬从此以后灬 阅读(148) 评论(0) 推荐(0) 编辑
摘要: C. Block Towers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Block Towers time lim 阅读全文
posted @ 2017-07-01 22:52 灬从此以后灬 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 必须要抄袭一下这个代码 The king is left alone on the chessboard. In spite of this loneliness, he doesn't lose heart, because he has business of national importan 阅读全文
posted @ 2017-05-17 21:09 灬从此以后灬 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 //数组a[]中有n各元素,已经按升序排序,待查找的元素x 2 sort(a,a+n); //升序排序 3 template 4 int BinarySearch(Type a[],const Type&x,int n) 5 { 6 int left=0; //左边界 7 int right=n-1; //右边界 8 while(lefta[middl... 阅读全文
posted @ 2017-04-26 21:07 灬从此以后灬 阅读(709) 评论(0) 推荐(0) 编辑
摘要: Description 众所周知的是,TMK特别容易迟到,终于在TMK某次又迟到了之后,Maple怒了,Maple大喊一声:“我要跟你决一死战!”然后Maple就跟TMK玩起了一个关于占点的游戏。 Maple在一个无限展开的只有整数点的二维平面上找到两个点,由TMK和Maple分别操控这两个点,两人 阅读全文
posted @ 2017-03-29 21:14 灬从此以后灬 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Description 小时候,我只能一阶一阶得爬楼梯, 后来,我除了能一次爬一阶,还可以一次爬两阶, 到现在,我最多一次可以爬三阶。 那么现在问题来了,我想爬上n层楼,相邻楼层之间有一段楼梯,虽然我一次可以爬1个台阶、2个台阶和3个台阶,但是我在i与i+1层之间的楼梯上时,我不能跨越到i+1与i+ 阅读全文
posted @ 2017-03-28 21:45 灬从此以后灬 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-03-28 20:46 灬从此以后灬 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Description 一天,CC买了N个容量可以认为是无限大的瓶子,开始时每个瓶子里有1升水。接着~~CC发现瓶子实在太多了,于是他决定保留不超过K个瓶子。每次他选择两个当前含水量相同的瓶子,把一个瓶子的水全部倒进另一个里,然后把空瓶丢弃。(不能丢弃有水的瓶子) 显然在某些情况下CC无法达到目标, 阅读全文
posted @ 2017-03-28 20:41 灬从此以后灬 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21