码迷,mamicode.com
首页 >  
搜索关键字:zoj 3456    ( 3447个结果
[bzoj 1331]魔板
Description 在成功地发明了魔方之后,鲁比克先生发明了它的二维版本,称作魔板。这是一张有8个大小相同的格子的魔板: |1|2|3|4| | | | | | |8|7|6|5| 我们知道魔板的每一个方格都有一种颜色。这8种颜色用前8个正整数来表示。可以用颜色的序列来表示一种魔板状态,规定从魔 ...
分类:其他好文   时间:2018-09-27 20:11:51    阅读次数:225
Poj 1751 Highways
"题目链接" Highways Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 21476 Accepted: 6337 Special Judge Description The island nation of Flatopi ...
分类:其他好文   时间:2018-09-27 18:01:50    阅读次数:156
ZOJ 1406 Jungle Roads
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1406 The Head Elder of the tropical island of Lagrishan has a problem. A burst of fo ...
分类:其他好文   时间:2018-09-26 16:11:57    阅读次数:182
bzoj 1089: [SCOI2003]严格n元树【dp+高精】
设f[i]为深度为i的n元树数目,s为f的前缀和 s[i]=s[i 1]^n+1,就是增加一个根,然后在下面挂n个子树,每个子树都有s[i 1]种 写个高精就行了,好久没写WA了好几次…… ...
分类:其他好文   时间:2018-09-24 00:29:43    阅读次数:147
数位dp:bzoj1799
一开始没有想到枚举所有模数求解,卡了很久。 写法见代码注释。 ...
分类:其他好文   时间:2018-09-22 00:57:08    阅读次数:201
ZOJ - 2587 Unique Attack (判断最小割是否唯一)
题意:判断最小割是否唯一. 分析:跑出最大流后,在残余网上从源点和汇点分别dfs一次,对访问的点都打上标记. 若还有点没有被访问到,说明最小割不唯一. https://www.cnblogs.com/ka200812/archive/2011/07/30/2121872.html 这里面的鬼畜图说的 ...
分类:其他好文   时间:2018-09-21 15:05:42    阅读次数:218
ZOJ-Crashing Balloon
1 #include 2 using namespace std; 3 bool flagM, flagN; 4 void dfs(int m, int n, int factor){ 5 if (m == 1 && n == 1){//两个都被完全因式分解 6 flagM = flagN = tr... ...
分类:其他好文   时间:2018-09-19 19:44:01    阅读次数:210
ZOJ red black tree
#include <cstdio> #include <cstring> #include <cmath> #include <queue> #include <map> #include <vector> #include <iostream> #include <algorithm> using ...
分类:其他好文   时间:2018-09-18 22:58:07    阅读次数:204
zoj 4057
#include #include #include #include #include #include using namespace std; #define ll long long const int N =1e5+9; int t,n,a[N]; int b[50]; /* 要想两个数的... ...
分类:其他好文   时间:2018-09-18 11:21:06    阅读次数:124
zoj 4056
At 0 second, the LED light is initially off. After BaoBao presses the button 2 times, the LED light turns on and the value of the counter changes to 1 ...
分类:其他好文   时间:2018-09-18 11:14:46    阅读次数:168
3447条   上一页 1 ... 26 27 28 29 30 ... 345 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!