上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 94 下一页

2013年8月18日

POJ 3525 Most Distant Point from the Sea (半平面交+二分)

摘要: Most Distant Point from the SeaTime Limit:5000MSMemory Limit:65536KTotal Submissions:3476Accepted:1596Special JudgeDescriptionThe main land of Japan called Honshu is an island surrounded by the sea. In such an island, it is natural to ask a question: “Where is the most distant point from the sea?” T 阅读全文

posted @ 2013-08-18 15:37 kuangbin 阅读(834) 评论(0) 推荐(0) 编辑

2013年8月17日

POJ 1222 POJ 1830 POJ 1681 POJ 1753 POJ 3185 高斯消元求解一类开关问题

摘要: http://poj.org/problem?id=1222http://poj.org/problem?id=1830http://poj.org/problem?id=1681http://poj.org/problem?id=1753http://poj.org/problem?id=3185这几个题目都类似,都可以使用高斯消元来求解一个模2的01方程组来解决。有时候需要枚举自由变元,有的是判断存不存在解POJ 1222EXTENDED LIGHTS OUT普通的问题。肯定有唯一解。肯定枚举第一行去做,也可以使用高斯消元。 1 /* **************************. 阅读全文

posted @ 2013-08-17 22:12 kuangbin 阅读(3031) 评论(0) 推荐(1) 编辑

POJ 3237 Tree (树链剖分)

摘要: TreeTime Limit:5000MSMemory Limit:131072KTotal Submissions:2825Accepted:769DescriptionYou are given a tree withNnodes. The tree’s nodes are numbered 1 throughNand its edges are numbered 1 throughN− 1. Each edge is associated with a weight. Then you are to execute a series of instructions on the tree 阅读全文

posted @ 2013-08-17 07:30 kuangbin 阅读(4891) 评论(0) 推荐(2) 编辑

2013年8月16日

2038: [2009国家集训队]小Z的袜子(hose) (莫队算法)

摘要: 题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=2038专题练习:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=29469#overview2038: [2009国家集训队]小Z的袜子(hose)Time Limit:20 SecMemory Limit:259 MBSubmit:966Solved:472[Submit][Status]Description作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿。终于有一天,小Z再也无法忍受这恼人的 阅读全文

posted @ 2013-08-16 20:25 kuangbin 阅读(6782) 评论(2) 推荐(0) 编辑

HDU 4685 Prince and Princess (2013多校8 1010题 二分匹配+强连通)

摘要: Prince and PrincessTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 150Accepted Submission(s): 46Problem DescriptionThere are n princes and m princesses. Princess can marry any prince. But prince can only marry the princess they DO love.For all prin 阅读全文

posted @ 2013-08-16 00:08 kuangbin 阅读(1631) 评论(0) 推荐(0) 编辑

2013年8月15日

HDU 4678 Mine (2013多校8 1003题 博弈)

摘要: MineTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 51Accepted Submission(s): 6Problem DescriptionHave you ever played a game in Windows: Mine?This game is played on a n*m board, just like the Pic(1)On the board, Under some grids there are mines (r 阅读全文

posted @ 2013-08-15 17:12 kuangbin 阅读(1055) 评论(0) 推荐(0) 编辑

HDU 4679 Terrorist’s destroy (2013多校8 1004题 树形DP)

摘要: Terrorist’s destroyTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 24Accepted Submission(s): 6Problem DescriptionThere is a city which is built like a tree.A terrorist wants to destroy the city's roads. But now he is alone, he can only destroy 阅读全文

posted @ 2013-08-15 17:09 kuangbin 阅读(1086) 评论(6) 推荐(1) 编辑

HDU 4681 String(2013多校8 1006题 DP)

摘要: StringTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 11Accepted Submission(s): 4Problem DescriptionGiven 3 strings A, B, C, find the longest string D which satisfy the following rules:a) D is the subsequence of Ab) D is the subsequence of Bc) C is 阅读全文

posted @ 2013-08-15 17:06 kuangbin 阅读(774) 评论(0) 推荐(0) 编辑

1036: [ZJOI2008]树的统计Count (树链剖分)

摘要: 1036: [ZJOI2008]树的统计CountTime Limit:10 SecMemory Limit:162 MBSubmit:3401Solved:1418[Submit][Status]Description一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下面的形式来要求你对这棵树完成一些操作: I. CHANGE u t : 把结点u的权值改为t II. QMAX u v: 询问从点u到点v的路径上的节点的最大权值 III. QSUM u v: 询问从点u到点v的路径上的节点的权值和 注意:从点u到点v的路径上的节点包括u和v本身Input输入的第一行为一个 阅读全文

posted @ 2013-08-15 10:25 kuangbin 阅读(3069) 评论(0) 推荐(1) 编辑

2013年8月14日

HDU 3966 Aragorn's Story (树链剖分+树状数组)

摘要: Aragorn's StoryTime Limit: 10000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1321Accepted Submission(s): 344Problem DescriptionOur protagonist is the handsome human prince Aragorn comes from The Lord of the Rings. One day Aragorn finds a lot of enemies who 阅读全文

posted @ 2013-08-14 23:55 kuangbin 阅读(2154) 评论(0) 推荐(0) 编辑

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 94 下一页

导航

JAVASCRIPT: