上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, n 阅读全文
posted @ 2017-07-23 14:39 山杉三 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 我们的化学生物学家发明了一种新的叫stripies非常神奇的生命。该stripies是透明的无定形变形虫似的生物,生活在果冻状的营养培养基平板菌落。大部分的时间stripies在移动。当他们两个碰撞,会有新stripie生成,而旧的不见了。经过长期研究,他们发现新stripies的体重不等于消失的s 阅读全文
posted @ 2017-07-23 14:20 山杉三 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Barney lives in NYC. NYC has infinite number of intersections numbered with positive integers starting from 1. There exists a bidirectional road betwe 阅读全文
posted @ 2017-07-23 14:18 山杉三 阅读(216) 评论(0) 推荐(0) 编辑
摘要: You’re typing a long text with a broken keyboard. Well it’s not so badly broken. The only problem with the keyboard is that sometimes the “home” key o 阅读全文
posted @ 2017-07-23 13:58 山杉三 阅读(374) 评论(0) 推荐(0) 编辑
摘要: Valery is a PE teacher at a school in Berland. Soon the students are going to take a test in long jumps, and Valery has lost his favorite ruler! Howev 阅读全文
posted @ 2017-07-22 15:45 山杉三 阅读(287) 评论(0) 推荐(0) 编辑
摘要: This is a small but ancient game. You are supposed to write down the numbers 1, 2, 3, ... , 2n - 1, 2n consecutively in clockwise order on the ground 阅读全文
posted @ 2017-07-22 10:38 山杉三 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 头文件#include <algorithm> 两者都是用来计算排列组合的函数。前者是求出下一个排列组合,而后者是求出上一个排列组合。 所谓“下一个”和“上一个”,有一个例子; 对序列 {a, b, c}, a > b >c,它的下一个序列即为{a, c, b},而{a, c, b}的上一个序列即为 阅读全文
posted @ 2017-07-20 19:07 山杉三 阅读(342) 评论(0) 推荐(0) 编辑
摘要: Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, though it o 阅读全文
posted @ 2017-07-20 16:26 山杉三 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 一:集合( set ).每个元素都只能出现一次; 头文件 : #include<set> 定义 : set< int> my_set; 常用的方法: insert() 插入一个元素; begin() 返回指向第一个元素的迭代器 clear() 清除所有元素 count() 返回某个值元素的个数 em 阅读全文
posted @ 2017-07-20 16:20 山杉三 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者。但是T部落的基地里已经有N个建筑设施受到了严重的损伤,如果不尽快修复的话,这些建筑设施将会完全毁坏。现在的情况是:T部落基地里只有一个修理工人,虽然他能瞬间到达任何一个建筑,但是修复每个建筑 阅读全文
posted @ 2017-07-20 15:35 山杉三 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页