码迷,mamicode.com
首页 >  
搜索关键字:hdu 4565 so easy    ( 46279个结果
HDU 4565 So Easy!
线性推,矩阵乘法+快速幂求通项。 传送门:点击打开链接 #include #include #include #include using namespace std; #define LL long long struct Mat{ LL f[2][2]; }; LL MOD; Mat mul(Mat a,Mat b) { LL i,j,k; ...
分类:其他好文   时间:2014-05-15 14:53:10    阅读次数:225
[ACM] hdu 1035 Robot Motion (模拟或DFS)
Robot Motion Problem Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The...
分类:其他好文   时间:2014-05-15 05:48:40    阅读次数:346
Linux环境编程之文件I/O(八):文件链接
引言: 执行如下命令时,ls /usr/local/lib/libfreetype.so -l显示内容: lrwxrwxrwx 1 root root 20 2014-04-06 22:57 /usr/local/lib/libfreetype.so -> libfreetype.so.6.9.0 表明这是一个链接文件,通过链接可以实现对一个文件从不同路径对它进行引用。对于文件的链接有硬链接...
分类:系统相关   时间:2014-05-15 03:39:10    阅读次数:381
HDU 2222-Keywords Search-AC自动机模版题
纯粹的模版。。。 学习模版总会是一个快乐的过程。。。。 #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const int...
分类:其他好文   时间:2014-05-15 03:02:53    阅读次数:275
HDU 1561 The more ,The Better
HDU 1561 The more ,The Better...
分类:其他好文   时间:2014-05-15 02:57:01    阅读次数:182
Codeforces 430A Points and Segments (easy)
题意:让你染色点,要求在给出的区间内|红色个数-蓝色个数| 思路:排序后依次交替染色就能达到效果 #include #include #include #include #include using namespace std; const int MAXN = 110; int arr[MAXN]; int n,m,x,y; int main(){ scanf("%d%d",...
分类:其他好文   时间:2014-05-15 02:53:54    阅读次数:205
HDU 4768 Flyer (二分)
OJ题目:click here~~ 题目分析:n个[a  b] 区间,对于i 属于[a  b]  ,从a开始,间隔c ,即i = a , i = a + c , i = a + 2*c …… 将x[ i ] 加1 ,x[ i ] 初值为0 。 已知最多只有一个x[ i ] 为奇数。找到这个i , 和这个奇数。 由于最多只有一个奇数,且奇数 + 偶数 = 奇数。用二分夹逼出这个奇数的位置。找到...
分类:其他好文   时间:2014-05-14 21:27:36    阅读次数:176
hdu 1224 Free DIY Tour(最长路/dp)
http://acm.hdu.edu.cn/showproblem.php?pid=1224 基础的求最长路以及记录路径。感觉dijstra不及spfa好用,wa了两次。 #include #include #include #include #include #include #include #include #define LL long long #define...
分类:其他好文   时间:2014-05-14 20:59:54    阅读次数:295
利用apache+svn+jenkins+maven 实现java环境的自动化构建和部署(二)(网内首发超详细版)
2.4ssl方式部署apache2.4.1安装apache./configure--prefix=/usr/local/apache2--enable-dav--enable-ssl--enable-so--enable-mods-shared=allmake&&makeinstall2.4.2安装svn安装apr-1.4.6.tar.gz、apr-util-1.5.1.tar.gz、neon-0.29.6.tar.gz同2.2章节部分unzipsqlite-..
分类:编程语言   时间:2014-05-14 18:42:21    阅读次数:514
hdu 开门人和关门人
/* * hdu OpenDoorManAndCloseDoorMan * date 2014/5/13 * state AC */ #include #include #include #include using namespace std; struct DoorMan { char name[20]; int startH,startM,startS; ...
分类:其他好文   时间:2014-05-14 14:58:40    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!