上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页
摘要: 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 有N条鱼每条鱼的位置及大小均不同,他们沿着X轴游动,有的向左,有的向右。游动的速度是一样的,两条鱼相遇大鱼会吃掉小鱼。从左到右给出每条鱼的大小和游动的方向(0表示向左,1表示向右)。问足够长的时间之后,能剩下多少条鱼? 阅读全文
posted @ 2016-11-05 20:33 Kiven#5197 阅读(384) 评论(0) 推荐(0) 编辑
摘要: time limit per test 1 second time limit per test memory limit per test 256 megabytes memory limit per test input standard input input output standard 阅读全文
posted @ 2016-11-05 19:46 Kiven#5197 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 有这样一段程序,fun会对整数数组A进行求值,其中Floor表示向下取整: fun(A) sum = 0 for i = 1 to A.length for j = i+1 to A.length sum = sum 阅读全文
posted @ 2016-11-03 22:39 Kiven#5197 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 S[0...n-1]是一个长度为n的字符串,定义旋转函数Left(S)=S[1…n-1]+S[0].比如S=”abcd”,Left(S)=”bcda”.一个串是对串当且仅当这个串长度为偶数,前半段和后半段一样。比如”a 阅读全文
posted @ 2016-11-03 19:59 Kiven#5197 阅读(183) 评论(0) 推荐(0) 编辑
摘要: A. Candy Bags time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Gerald has n younger brothe 阅读全文
posted @ 2016-09-26 11:58 Kiven#5197 阅读(152) 评论(0) 推荐(0) 编辑
摘要: time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output It is so boring in the summer holiday, i 阅读全文
posted @ 2016-09-26 11:55 Kiven#5197 阅读(196) 评论(0) 推荐(0) 编辑
摘要: time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Igor has fallen in love with Tanya. Now 阅读全文
posted @ 2016-09-26 11:52 Kiven#5197 阅读(314) 评论(0) 推荐(0) 编辑
摘要: time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A permutation of length n is an integer 阅读全文
posted @ 2016-09-26 11:49 Kiven#5197 阅读(301) 评论(0) 推荐(0) 编辑
摘要: time limit per test 1 second time limit per test memory limit per test 256 megabytes memory limit per test input standard input input output standard 阅读全文
posted @ 2016-09-26 11:46 Kiven#5197 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 801 Accepted Submission(s): 470 Problem Descripti 阅读全文
posted @ 2016-09-14 22:11 Kiven#5197 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页