09 2014 档案

待解决问题
摘要:1。Splay.题目链接2。树链剖分3。LCT 阅读全文

posted @ 2014-09-28 20:13 Stomach_ache 阅读(101) 评论(0) 推荐(0) 编辑

LTIME16小结(CodeChef)
摘要:题目链接最后一题是Splay...还没有学会。。蒟蒻!!!A 1 /************************************************************************* 2 > File Name: A.cpp 3 > Author: S... 阅读全文

posted @ 2014-09-28 20:11 Stomach_ache 阅读(271) 评论(0) 推荐(0) 编辑

Splay模板
摘要:1 //poj3580 2 //#pragma comment(linker,"/STACK:102400000,102400000") 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include ... 阅读全文

posted @ 2014-09-28 17:37 Stomach_ache 阅读(251) 评论(0) 推荐(0) 编辑

Hdu 2874(LCA)
摘要:题目链接Connections between citiesTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5037Accepted Submis... 阅读全文

posted @ 2014-09-24 21:58 Stomach_ache 阅读(176) 评论(0) 推荐(0) 编辑

Lowest Common Ancestor (LCA)
摘要:题目链接In a rooted tree, thelowest common ancestor(or LCA for short) of two verticesuandvis defined as the lowest vertex that is ancestor of both that tw... 阅读全文

posted @ 2014-09-24 19:59 Stomach_ache 阅读(526) 评论(0) 推荐(0) 编辑

COOK50小结
摘要:题目链接很遗憾。看到第五题的通过人数就不敢做了。待日后补上。A题求最长的连续子序列,使得他们满足gcd为1。如果有相邻的两个数的gcd为1,那么整个序列的gcd值也就是1,否则就是该序列不存在。 1 /*************************************************... 阅读全文

posted @ 2014-09-24 14:19 Stomach_ache 阅读(180) 评论(0) 推荐(0) 编辑

Codeforces 467D
摘要:题目链接D. Fedor and Essaytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter you had helped Fedor... 阅读全文

posted @ 2014-09-19 22:07 Stomach_ache 阅读(240) 评论(0) 推荐(0) 编辑

Functional Programming Contest - September'14
摘要:比赛链接A题1 -- Enter your code here. Read input from STDIN. Print output to STDOUT2 main = do3 x [y]++[x]++acc) [] $ zip x yB题1 -- Enter your code he... 阅读全文

posted @ 2014-09-17 18:52 Stomach_ache 阅读(178) 评论(0) 推荐(0) 编辑

CodeChef--SEPT14小结
摘要:这套题目只做了几个相对简单的。其他的做起来比较吃力。A找下规律 1 /************************************************************************* 2 > File Name: A.cpp 3 > Author: ... 阅读全文

posted @ 2014-09-17 15:25 Stomach_ache 阅读(226) 评论(0) 推荐(0) 编辑

Weekly 10 小结
摘要:A题模拟 1 T = int(input()) 2 while T: 3 T -= 1 4 s = raw_input() 5 n = len(s) 6 res, pre = 0, 0 7 for i in xrange(1, n): 8 if... 阅读全文

posted @ 2014-09-17 14:19 Stomach_ache 阅读(192) 评论(0) 推荐(0) 编辑

容斥原理学习(Hdu 4135,Hdu 1796)
摘要:题目链接Hdu4135Co-primeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1412Accepted Submission(s): 531... 阅读全文

posted @ 2014-09-06 08:43 Stomach_ache 阅读(258) 评论(0) 推荐(0) 编辑

ACdream 1112
摘要:题目链接Alice and BobTime Limit:6000/3000MS (Java/Others)Memory Limit:256000/128000KB (Java/Others)SubmitStatisticNext ProblemProblem DescriptionHere is A... 阅读全文

posted @ 2014-09-05 15:14 Stomach_ache 阅读(187) 评论(0) 推荐(0) 编辑

CodeChef--Cards, bags and coins
摘要:题目链接Yet another game from chef. Chef gives youNcards andMbags. Each of theNcards has an integer written on it. Now chef asks you to close your eyes an... 阅读全文

posted @ 2014-09-04 21:58 Stomach_ache 阅读(219) 评论(0) 推荐(0) 编辑

ACdream 1108(莫队)
摘要:题目链接The kth numberTime Limit:12000/6000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatisticNext ProblemProblem DescriptionDo you s... 阅读全文

posted @ 2014-09-04 21:46 Stomach_ache 阅读(194) 评论(0) 推荐(0) 编辑

Hdu 2586(LCA)
摘要:题目链接How far away ?Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5491Accepted Submission(s): 2090... 阅读全文

posted @ 2014-09-04 10:31 Stomach_ache 阅读(168) 评论(0) 推荐(0) 编辑

CodeChef--EQUAKE
摘要:题目链接Earthquake in Bytetown! Situation is getting out of control!All buildings in Bytetown stand on straight line. The buildings are numbered0, 1, ...,... 阅读全文

posted @ 2014-09-04 09:50 Stomach_ache 阅读(256) 评论(0) 推荐(0) 编辑

Hackerrank--Mixing proteins(Math)
摘要:题目链接Some scientists are working on protein recombination, and during their research, they have found a remarkable fact: there are 4 proteins in the pr... 阅读全文

posted @ 2014-09-02 18:46 Stomach_ache 阅读(265) 评论(0) 推荐(0) 编辑

Clash Credenz 2014 Wild Card Round题解
摘要:A题简单模拟。 1 /************************************************************************* 2 > File Name: A.cpp 3 > Author: Stomach_ache 4 > Mai... 阅读全文

posted @ 2014-09-02 18:33 Stomach_ache 阅读(262) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示