上一页 1 ··· 3 4 5 6 7
摘要: 1041: 二哥的困惑 Ⅳ Description A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 阅读全文
posted @ 2018-08-03 09:28 半忧夏 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1040: 二哥的困惑 Ⅲ Description Suppose there are M people, including you, playing a special card game. At the beginning, each player receives N cards. The 阅读全文
posted @ 2018-08-03 08:50 半忧夏 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1037: I want you! Description Given an array Ai(0<=i<n), its length is n; We want to find an another array Bi , which is 0 or 1,and its length is n to 阅读全文
posted @ 2018-08-02 11:49 半忧夏 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1036: Shepherd Description Hehe keeps a flock of sheep, numbered from 1 to n and each with a weight wi. To keep the sheep healthy, he prepared some tr 阅读全文
posted @ 2018-08-01 11:16 半忧夏 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 喜闻乐见的a+b Description 喜闻乐见的a+b来了,当然二进制,八进制,十进制什么的估计你们也懒得写了,来个20进制的a+b 喜闻乐见的a+b来了,当然二进制,八进制,十进制什么的估计你们也懒得写了,来个20进制的a+b Input 给出多组a和b,每个数字一行 数字由0~9和小写字母a 阅读全文
posted @ 2018-07-22 12:24 半忧夏 阅读(266) 评论(0) 推荐(0) 编辑
摘要: a^b-b^a Description 计算a^b-b^a的值 计算a^b-b^a的值 Input 第一行一个整数T,表示接下来有T行 每行两个整数a和b,(0<a,b<1000) 第一行一个整数T,表示接下来有T行 每行两个整数a和b,(0<a,b<1000) Output 输出值 输出值 Sam 阅读全文
posted @ 2018-07-20 10:15 半忧夏 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 统计数字 Description 某次科研调查时得到了n个自然数,每个数均不超过1500000000(1.5*109)。已知不相同的数不超过10000个,现在需要统计这些自然数各自出现的次数,并按照自然数从小到大的顺序输出统计结果。 某次科研调查时得到了n个自然数,每个数均不超过1500000000 阅读全文
posted @ 2018-07-19 11:56 半忧夏 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 错误票据 Description 某涉密单位下发了某种票据,并要在年终全部收回。 每张票据有唯一的ID号。全年所有票据的ID号是连续的,但ID的开始数码是随机选定的。 因为工作人员疏忽,在录入ID号的时候发生了一处错误,造成了某个ID断号,另外一个ID重号。 你的任务是通过编程,找出断号的ID和重号 阅读全文
posted @ 2018-07-19 10:31 半忧夏 阅读(129) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7