摘要: Time Limit: 2 sec / Memory Limit: 1024 MB Score : 500500 points Problem Statement There are NN camels numbered 11 through NN. The weight of Camel ii i 阅读全文
posted @ 2020-11-30 16:29 Anticlock 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 题目描述 现有 nn 盏灯排成一排,从左到右依次编号为:11,22,……,nn。然后依次执行 mm 项操作。 操作分为两种: 指定一个区间 [a,b][a,b],然后改变编号在这个区间内的灯的状态(把开着的灯关上,关着的灯打开); 指定一个区间 [a,b][a,b],要求你输出这个区间内有多少盏灯是 阅读全文
posted @ 2020-11-10 13:59 Anticlock 阅读(69) 评论(0) 推荐(0) 编辑
摘要: BerPhone X is almost ready for release with nn n applications being preinstalled on the phone. A category of an application characterizes a genre or a 阅读全文
posted @ 2020-09-05 18:54 Anticlock 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Lucy likes letters. She studied the definition of the lexicographical order at school and plays with it. At first, she tried to construct the lexicogr 阅读全文
posted @ 2020-09-04 17:18 Anticlock 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Byteburg Senate elections are coming. Usually "United Byteland", the ruling Byteland party, takes all the seats in the Senate to ensure stability and 阅读全文
posted @ 2020-09-04 14:36 Anticlock 阅读(288) 评论(0) 推荐(0) 编辑
摘要: Balph is learning to play a game called Buma. In this game, he is given a row of colored balls. He has to choose the color of one new ball and the pla 阅读全文
posted @ 2020-09-04 12:20 Anticlock 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 题目描述 技术产业革命的春风也吹到了广西大学,我们的创新创业项目渐渐有了拥抱云计算的意识,各大ECS厂商1元/月的学生机被团队们广泛采购并商业化使用,这就是一个很好的栗子。 我们都知道,云计算是将计算运行在别的地方,正如我们接下来的问题需要将困难的问题转移到让聪明的你来解决一样。 现在有nnn个三元 阅读全文
posted @ 2019-12-08 20:02 Anticlock 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 题目描述 考虑包含N位数字的K-进制数. 定义一个数有效, 如果其K-进制表示不包含两连续的0. 例: 1010230 是有效的7位数 1000198 无效 0001235 不是7位数, 而是4位数. 给定两个数N和K, 要求计算包含N位数字的有效K-进制数的总数. 假设2 ⇐ K ⇐ 10; 2 阅读全文
posted @ 2019-12-07 18:46 Anticlock 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 题目描述 ​ 在基于Internet的程序中,我们常常需要判断一个IP字符串的合法性。 合法的IP是这样的形式: A.B.C.D 其中A、B、C、D均为位于[0, 255]中的整数。为了简单起见,我们规定这四个整数中不允许有前导零存在,如001这种情况。 现在,请你来完成这个判断程序吧^_^ ​ 输 阅读全文
posted @ 2019-12-07 16:01 Anticlock 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 问题 1115: DNA 时间限制: 1Sec 内存限制: 128MB 提交: 4158 解决: 1397 ​ 题目描述 ​ 小强从小就喜欢生命科学,他总是好奇花草鸟兽从哪里来的。终于, 小强上中学了,接触到了神圣的名词--DNA.它有一个双螺旋的结构。这让一根筋的小强抓破头皮,“要是能画出来就好了 阅读全文
posted @ 2019-12-07 15:37 Anticlock 阅读(333) 评论(0) 推荐(0) 编辑