2016年7月21日
摘要: 声明:转载于way-peng http://www.cnblogs.com/way-peng/archive/2012/06/11/2544932.html 一、UML是什么?UML有什么用? 二、UML的历史 三、UML的上层结构(Superstructure) 四、UML建模工具 五、UML的图 阅读全文
posted @ 2016-07-21 17:12 xx-sisley 阅读(286) 评论(0) 推荐(0) 编辑
  2015年8月22日
摘要: Description The Sky is Sprite. The Birds is Fly in the Sky. The Wind is Wonderful. Blew Throw the Trees Trees are Shaking, Leaves are Falling. Lovers 阅读全文
posted @ 2015-08-22 18:07 xx-sisley 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Description 小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个区间,你能计算出 阅读全文
posted @ 2015-08-22 18:00 xx-sisley 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Description There is a hill with n holes around. The holes are signed from 0 to n-1.A rabbit must hide in one of the holes. A wolf searches the rabbit 阅读全文
posted @ 2015-08-22 17:53 xx-sisley 阅读(150) 评论(0) 推荐(0) 编辑
摘要: UVA 11722 You are going from Dhaka to Chittagong by train and you came to know one of your old friends is going from city Chittagong to Sylhet. You al 阅读全文
posted @ 2015-08-22 17:42 xx-sisley 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Description Little Lesha loves listening to music via his smartphone. But the smartphone doesn't have much memory, so Lesha listens to his favorite so 阅读全文
posted @ 2015-08-22 17:34 xx-sisley 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Random teams 题意: 有n个选手和m个队伍,让你分配,条件是每个队伍至少要有1个选手。分配完之后,每队伍里2个人可以组成一组,求分配完之后最多的组数和最少的组数 分析: 1. 最多的情况就是,先每个队伍分一个人,然后把剩下的全部给到一个队伍里,就是最多的情况 例如:n=10,m=3 1 阅读全文
posted @ 2015-08-22 17:20 xx-sisley 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Throwing balls into the baskets: 题目大意: 有N个人,M个篮框,K个回合,每个回合每个人可以投一颗球,每个人的命中率都是相同的P,问K回合后,投中的球的期望数是多少 分析: 每个人的投篮都是一个独立的事件,互不影响,所以每回合投中的球的期望数是相同的 只需求得一回合 阅读全文
posted @ 2015-08-22 16:52 xx-sisley 阅读(207) 评论(0) 推荐(0) 编辑
  2015年8月18日
摘要: Description In the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a straight line in front of t 阅读全文
posted @ 2015-08-18 11:00 xx-sisley 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Description By definition palindrome is a string which is not changed when reversed. "MADAM" is a nice example of palindrome. It is an easy job to tes 阅读全文
posted @ 2015-08-18 10:50 xx-sisley 阅读(155) 评论(0) 推荐(0) 编辑