2014年11月10日

《 字典树模板_递归 》

摘要: 1 #include 2 #include 3 #include 4 5 6 using namespace std; 7 8 struct tree 9 {10 int val;11 tree *next[26];12 };13 tree *head;14 15 vo... 阅读全文

posted @ 2014-11-10 21:43 M.D.LUFFI 阅读(192) 评论(0) 推荐(0) 编辑

2014年11月9日

《神、上帝以及老天爷》

摘要: DescriptionHDU 2006'10 ACM contest的颁奖晚会隆重开始了!为了活跃气氛,组织者举行了一个别开生面、奖品丰厚的抽奖活动,这个活动的具体要求是这样的:首先,所有参加晚会的人员都将一张写有自己名字的字条放入抽奖箱中;然后,待所有字条加入完毕,每人从箱中取一个字条;最后,如果... 阅读全文

posted @ 2014-11-09 00:37 M.D.LUFFI 阅读(192) 评论(0) 推荐(0) 编辑

《Crazy tea party》

摘要: Descriptionn participants of �crazy tea party� sit around the table. Each minute one pair of neighbors can change their places. Find the minimum time ... 阅读全文

posted @ 2014-11-09 00:31 M.D.LUFFI 阅读(252) 评论(0) 推荐(0) 编辑

2014年10月25日

UVA_ Overflow

摘要: DescriptionOverflowWrite a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the... 阅读全文

posted @ 2014-10-25 15:32 M.D.LUFFI 阅读(116) 评论(0) 推荐(0) 编辑

UVA_If We Were a Child Again

摘要: DescriptionIf We Were a Child Again “Oooooooooooooooh! If I could do the easy mathematics like my school days!! I can guarantee, that I’d not make any... 阅读全文

posted @ 2014-10-25 15:24 M.D.LUFFI 阅读(161) 评论(0) 推荐(0) 编辑

UVA_Product

摘要: DescriptionProductThe ProblemThe problem is to multiply two integers X, Y. (0 2 #include 3 #include 4 #include 5 #define UNIT 10 6 7 using n... 阅读全文

posted @ 2014-10-25 15:16 M.D.LUFFI 阅读(179) 评论(0) 推荐(0) 编辑

UVA_Integer Inquiry

摘要: A -Integer InquiryTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusDescriptionInteger InquiryOne of the first users of BIT's ne... 阅读全文

posted @ 2014-10-25 15:08 M.D.LUFFI 阅读(152) 评论(0) 推荐(0) 编辑

你也可以屌到爆的这样敲代码当黑客!

摘要: http://fediafedia.com/neo/ 阅读全文

posted @ 2014-10-25 12:05 M.D.LUFFI 阅读(187) 评论(0) 推荐(0) 编辑

2014年10月23日

大数相加_原创

摘要: 所谓的大数就是用整形存不下的数;EG : 123466789123456789由于数组能够进行逐操作;所以考虑到用数组来逐一存放这个大数的每一位元素;这时候问题来了;1 怎么解决该数的输入以及将其存放到数组里面;2 如何解决进位;3 万一第一位是0如何解决;C语言有一种输入方法为%s;也就是所谓的字... 阅读全文

posted @ 2014-10-23 17:24 M.D.LUFFI 阅读(140) 评论(0) 推荐(0) 编辑

2014年10月22日

大数模板!

摘要: 1 #include 2 #include 3 #include 4 #include 5 #define UNIT 10 6 7 using namespace std; 8 9 struct Bignum 10 { 11 int val[105]; 12 ... 阅读全文

posted @ 2014-10-22 10:31 M.D.LUFFI 阅读(100) 评论(0) 推荐(0) 编辑

导航