码迷,mamicode.com
首页 >  
搜索关键字:election    ( 85个结果
POJ 2528 Mayor's posters
DescriptionThe citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral poster...
分类:其他好文   时间:2015-08-01 15:34:25    阅读次数:101
FZU 2015 Vote
Problem DescriptionHere are n Candidates in one election. Every Candidate could vote any one (of course himself/herself). In this election, the one wh...
分类:其他好文   时间:2015-05-28 19:37:25    阅读次数:117
解题报告 之 SOJ1942 Foto
SOJ1942 ,Foto,数论,排列组合,快速排列组合 The election campaign just started, so PSOS decided to make some propagation. One of the representatives came with a great idea - he proposes to make an photography of their Parliament Club. Unfortunatelly, even after many brie...
分类:其他好文   时间:2015-05-08 09:42:58    阅读次数:170
POJ 3905 Perfect Election (初学2-Sat)
这篇从原理上理解2-sat如何转化成图论问题简述了如何了实现算法:http://wenku.baidu.com/view/31fd7200bed5b9f3f90f1ce2.html 总的来说2-sat有两种算法,一种用dfs染色搜索出一种解,一种用tarjan(判定是否有解)+拓扑排序构造出任意一个可行解。 dfs从理论上复杂度很高,但是实际上远远达不到上界,而且可以按字典序搜索,实现也简单多...
分类:其他好文   时间:2015-04-24 09:09:08    阅读次数:233
POJ 3664 Election Time
Election Time Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 7845   Accepted: 4176 Description The cows are having their first election after overthrowing t...
分类:其他好文   时间:2015-04-10 22:32:12    阅读次数:145
1675: [Usaco2005 Feb]Rigging the Bovine Election 竞选划区(题解第二弹)
1675: [Usaco2005 Feb]Rigging the Bovine Election 竞选划区Time Limit:5 SecMemory Limit:64 MBSubmit:198Solved:118[Submit][Status][Discuss]DescriptionIt's el...
分类:其他好文   时间:2015-04-10 13:31:50    阅读次数:291
1675: [Usaco2005 Feb]Rigging the Bovine Election 竞选划区(题解第一弹)
1675: [Usaco2005 Feb]Rigging the Bovine Election 竞选划区Time Limit:5 SecMemory Limit:64 MBSubmit:196Solved:116[Submit][Status][Discuss]DescriptionIt's el...
分类:其他好文   时间:2015-04-10 01:21:19    阅读次数:240
Apache Curator Leader Election
Apache Curator Leader Election...
分类:Web程序   时间:2015-02-27 17:09:21    阅读次数:217
POJ3905 Perfect Election【2-SAT】【Tarjan】
题目大意: 有N个候选人,有M组要求,每组要求关系到候选中的两个人A和B,"+A +B"表示A和B中至少 有一人被选中,"-A -B"表示A和B中至少有一人不被选中。"+A -B"表示A被选中和B不被选中两 件事至少发生一件。"-A +B"表示A不被选中和B被选中至少发生一件。那么问题来了:是否存在 M组要求全部符合的方案。 思路:在本题中,每个人都有两种状态,一种是选中,一种是不选中。可以把一个人i拆成两个点 Pi和P(i+N),分别表示当选和落选。那么两个人i和j的关系就可以表示为以下四种: i和j至...
分类:其他好文   时间:2015-02-20 22:00:24    阅读次数:204
85条   上一页 1 ... 5 6 7 8 9 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!