码迷,mamicode.com
首页 >  
搜索关键字:rep    ( 1080个结果
CentOS下安装Gitlab
环境Requirements软件版本CentOS6.6Python2.6Ruby2.1.5Git1.7.10+Redis2.0+MySQLGitLab7-8-stableGitLab Shellv2.6.0yum源为了提高软件安装速度,将yum源设置为阿里云开源镜像$ cd /etc/yum.rep...
分类:其他好文   时间:2015-12-17 00:34:35    阅读次数:227
BZOJ 1084 最大子矩阵 终于过了
一开始看到这道题,由于觉得m 2 #include 3 #include 4 #define INF 0x3fffffff 5 #define rep(i,j,k) for(int i = j; i <= k; i++) 6 #define maxn 120 7 using namespace .....
分类:其他好文   时间:2015-12-15 22:55:56    阅读次数:686
bzoj1070 修车&& bzoj2879美食节 【费用流】
bzoj1070: 把每个工人拆成汽车那么多个点,假如说 工人(i, j) 和 汽车k 连边,那就代表第i个工人倒数第j个修汽车k,那么这条边对以后的贡献就是k*time[i修k]。 1 #include 2 #define rep(i, a, b) for (int i = a; i = b;.....
分类:其他好文   时间:2015-12-15 14:07:04    阅读次数:241
UVA 1608 Non-boring sequences
#include#define REP(i,a,b) for(int i=a;i pos;bool judge(int l,int r){ if(l>=r) return 1; //coutr){ nex=li;break; } ...
分类:其他好文   时间:2015-12-13 17:08:22    阅读次数:179
UVA 12174 Shuffle
#include#define REP(i,a,b) for(int i=a;i>T; while(T--){ scanf("%d%d",&s,&n); REP(i,1,n) scanf("%d",&x[i]); MS0(cnt);MS0(m); ...
分类:其他好文   时间:2015-12-13 15:26:23    阅读次数:232
bestcoder #66
1002:这题拿两个优先队列维护一下就可以了,近期都在做这种题,然而这题居然还是不会,why am i so stupid...#include#define REP(i,a,b) for(int i=a;i>T; while(T--){ scanf("%d%d",&n,&m);...
分类:其他好文   时间:2015-12-12 23:12:43    阅读次数:151
UVA 12627 Erratic Expansion
#include#define REP(i,a,b) for(int i=a;i=(1LL>T;int casen=1; s[0]=1;REP(i,1,32) s[i]=s[i-1]*3; while(T--){ scanf("%lld%lld%lld",&k,&a,&b)...
分类:其他好文   时间:2015-12-12 18:45:57    阅读次数:133
uva714 Copying Books
#include#define REP(i,a,b) for(int i=a;i=1;i--){ s+=a[i]; if(s>m){ s=a[i]; tmp[i]=1; cnt++; } ...
分类:其他好文   时间:2015-12-12 16:53:52    阅读次数:190
codeforces #335div2 D. Lazy Student 构造
#include#define REP(i,a,b) for(int i=a;iB.is:A.w>n>>m){ REP(i,1,m) scanf("%d%d",&e[i].w,&e[i].is),e[i].id=i; sort(e+1,e+m+1); int...
分类:其他好文   时间:2015-12-10 19:17:55    阅读次数:139
uva1471 Defense Lines
#include#define REP(i,a,b) for(int i=a;i>T; while(T--){ scanf("%d",&n); REP(i,1,n) scanf("%d",&a[i]); g[1]=1; REP(i,2,n...
分类:其他好文   时间:2015-12-10 19:14:19    阅读次数:136
1080条   上一页 1 ... 61 62 63 64 65 ... 108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!