码迷,mamicode.com
首页 >  
搜索关键字:voting algorithm    ( 11828个结果
2020 BIT冬训-贪心 G - Voting CodeForces - 749C
Problem Description There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading ...
分类:其他好文   时间:2021-02-10 13:08:04    阅读次数:0
Saruman's Army
#include<cstdio> #include<iostream> #include<set> #include<algorithm> using namespace std; set<int> s; int main(void) { int R, n; while (cin >> R >> n ...
分类:其他好文   时间:2021-02-08 12:52:08    阅读次数:0
Trees on the level UVA - 122
Trees are fundamental in many branches of computer science (Pun definitely intended). Current stateof-the art parallel computers such as Thinking Mach ...
分类:其他好文   时间:2021-02-08 12:29:55    阅读次数:0
离散化
1 #include<iostream> 2 #include<cstdio> 3 #include<cstdlib> 4 #include<algorithm> 5 using namespace std; 6 7 int n,tot,a[1010],c[1010]; 8 9 int main() ...
分类:其他好文   时间:2021-02-06 12:13:59    阅读次数:0
CF1437C 大厨莫诺卡普
1 CF1437C 大厨莫诺卡普 题目链接:http://codeforces.com/problemset/problem/1437/C 2 题目概要: 大厨莫诺卡普刚刚把 \(𝑛\) 个盘子放进烤箱里。 他知道$𝑖$菜的最佳烹饪时间为 \(𝑡_𝑖\) 分钟。 在任何正整数分钟 \(𝑇\ ...
分类:其他好文   时间:2021-02-06 11:50:09    阅读次数:0
HDU4089Activation
Aimee 想出状态转移的难度很小 很强的题解 #include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<cstring> using namespace std; const int maxn= ...
分类:其他好文   时间:2021-02-03 10:32:32    阅读次数:0
Hie with the Pie
Aimee 很显然的状压dp $f_{i,j}$表示在i这个集合,最后停在了j时的最小长度 转移就行了 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namespace std; int ...
分类:其他好文   时间:2021-02-02 11:22:43    阅读次数:0
AcWing 1351. 密码锁
原题链接 考察:暴力枚举 完全是因为有容斥原理才做了这题,结果这题和容斥原理有啥关系... 思路: dfs枚举所有可能性 1 #include <iostream> 2 #include <algorithm> 3 #include <set> 4 #include <vector> 5 using ...
分类:Windows程序   时间:2021-02-01 12:23:26    阅读次数:0
1127 ZigZagging on a Tree(PAT)
emmm....这道题的意思比较清楚,就是叫我们先中序后序建树,然后层序遍历,但是这个层序遍历每一层遍历次序都要相反 中需后续建树就不用说了,不会的拖出去打三十大板再回来...需要注意的就是可以用哈希表优化一下查找,即用unordered_map容器 预先存储中序遍历中每个数的位置,查找就不用循环了 ...
分类:其他好文   时间:2021-01-30 12:00:17    阅读次数:0
【模板】主席树b( ̄▽ ̄)d
传送 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 int cnt=0,original_value[9000001]={0},a[ ...
分类:其他好文   时间:2021-01-30 11:54:44    阅读次数:0
11828条   上一页 1 ... 9 10 11 12 13 ... 1183 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!