摘要: 题目:Shoot the Bullet 收藏:http://www.tuicool.com/articles/QRr2Qb 把每一天看成一个点,每个女孩也看成一个点,增加源和汇s、t,源向每一天连上[0,d]的边,每一天与每个女孩如果有拍照任务的话连上[l,r]的边, 每个女孩与汇连上[g,oo]的 阅读全文
posted @ 2014-08-05 23:43 ForeverEnjoy 阅读(170) 评论(0) 推荐(0) 编辑
摘要: view code//hdu 3987 #include #include #include #include #include using namespace std; typedef long long ll; const ll INF = 1LLq; q.push(s); d[s] = 0; vis[s] = 1; while(!q.empty()... 阅读全文
posted @ 2014-08-05 17:07 ForeverEnjoy 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Ombrophobic Bovines Time Limit: 1000MSMemory Limit: 65536K Total Submissions: 14519Accepted: 3170 Description FJ's cows really hate getting wet so muc 阅读全文
posted @ 2014-08-05 13:44 ForeverEnjoy 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Crime and PunishmentTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescriptionBackgroundPetty bureaucrat Victor Thiefton was dispo... 阅读全文
posted @ 2014-08-04 13:48 ForeverEnjoy 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 神、上帝以及老天爷Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22063 Accepted Submission(s): 9286Proble... 阅读全文
posted @ 2014-08-01 10:52 ForeverEnjoy 阅读(504) 评论(0) 推荐(0) 编辑
摘要: Pseudoforest Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1705 Accepted Submission(s): 653 P 阅读全文
posted @ 2014-07-30 09:33 ForeverEnjoy 阅读(180) 评论(0) 推荐(0) 编辑
摘要: C - 纪念SlingShot Description 已知 F(n)=3 * F(n-1)+2 * F(n-2)+7 * F(n-3),n>=3,其中F(0)=1,F(1)=3,F(2)=5,对于给定的每个n,输出F(0)+ F(1)+ …… + F(n) mod 2009。 Input 第一行是 阅读全文
posted @ 2014-07-29 17:21 ForeverEnjoy 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Computer Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3075 Accepted Submission(s): 1561 Proble 阅读全文
posted @ 2014-07-29 10:19 ForeverEnjoy 阅读(513) 评论(0) 推荐(1) 编辑
摘要: Given A,B,C, You should quickly calculate the result of A^B mod C. (1#include #include #include #include#includeusing namespace std;typedef __int64 ll... 阅读全文
posted @ 2014-07-28 20:02 ForeverEnjoy 阅读(608) 评论(0) 推荐(0) 编辑
摘要: Dragon BallsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2909 Accepted Submission(s): 1125Prob... 阅读全文
posted @ 2014-07-28 14:12 ForeverEnjoy 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Connections between cities Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4425 Accepted Submis 阅读全文
posted @ 2014-07-28 14:00 ForeverEnjoy 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 最大流裸题,贴下模版 阅读全文
posted @ 2014-07-21 19:07 ForeverEnjoy 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 滑雪 Time Limit: 1000MSMemory Limit: 65536K Total Submissions: 74624Accepted: 27644 Description Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二... 阅读全文
posted @ 2014-07-15 23:55 ForeverEnjoy 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Play GameTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 630Accepted Submission(s): 374Problem Des... 阅读全文
posted @ 2014-07-15 00:32 ForeverEnjoy 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Palindrome subsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/65535 K (Java/Others)Total Submission(s): 2232Accepted Submis... 阅读全文
posted @ 2014-07-14 19:20 ForeverEnjoy 阅读(288) 评论(0) 推荐(0) 编辑