码迷,mamicode.com
首页 >  
搜索关键字:hdu 4565 so easy    ( 46279个结果
山东理工大学的训练计划
SDUT集训计划假设已有C/C++/JAVA中任何一门程序设计语言基础,熟练掌握基本语法。Step1:入门hdu——water~,刷完Step2:数据结构——课本算法代码熟敲。数据结构需要掌握的内容(数据结构C语言版严蔚敏|吴伟民):第1章绪论算法和算法分析(时间复杂度分析和空间复杂度分析)第2章线...
分类:其他好文   时间:2014-05-16 05:25:47    阅读次数:371
hdu 1558 Segment set
http://acm.hdu.edu.cn/showproblem.php?pid=1558先判断线段相交,然后用并查集合并。 1 #include 2 #include 3 #include 4 #define maxn 20000 5 using namespace std; 6 7 i...
分类:其他好文   时间:2014-05-16 05:18:02    阅读次数:353
LA 2031
Mr. White, a fat man, now is crazy about a game named ``Dance, Dance, Revolution". But his dance skill is so poor that he could not dance a dance, eve...
分类:其他好文   时间:2014-05-15 16:57:57    阅读次数:502
mysql源代码安装细说
mysql为我们提供了三种安装方式:二进制、rpm、源代码编译。这里我们详细讨论mysql的源代码编译安装方式。 在5.5版本之后,mysql不再提供configure编译方式,改为使用cmake编译工具,cmake工具的一个显著特点是其编译独立于源代码,即我们可以在源代码之外的目录使用cmake来编译mysql,如 [root@easy tmp]# ls -l | grep mysql...
分类:数据库   时间:2014-05-15 15:01:36    阅读次数:494
HDU 3530 单调队列
Subsequence Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3995    Accepted Submission(s): 1308 Problem Description There is a sequenc...
分类:其他好文   时间:2014-05-15 06:47:40    阅读次数:275
HDU 4059 The Boss on Mars-矩阵+容斥
错了29遍,终成正果。。。。。 根据题意,很容易的可以想到容斥。 然后的问题就是如何求 sum(n)=1^4+2^4+3^4+....+n^4; 有三种道路: 很显然:1^4+2^4+3^4+....+n^4=(n^5)/5+(n^4)/2+(n^3)/3-n/30; 则1,用java的大数去敲这个的代码。 2,用c++敲,但是用到分数取模,求逆元。 3,用c++敲,但是不用这...
分类:其他好文   时间:2014-05-15 06:36:06    阅读次数:328
C++ - Identifier not found
?? This is because forward declaration in C++: Compiler needs to know function prototype when function call is compiled. So, you need declare the called function first or place the called function be...
分类:编程语言   时间:2014-05-15 04:52:19    阅读次数:211
HDU4768:Flyer(二分)
Problem Description The new semester begins! Different kinds of student societies are all trying to advertise themselves, by giving flyers to the students for introducing the society. However, due ...
分类:其他好文   时间:2014-05-15 03:57:24    阅读次数:311
HDU--2846--Repository--字典树
#include #include #include #include #include #include using namespace std; struct ssss { ssss *c[26]; int n,v; }*s; void insert(char *str,int v) { int i,j,k,l; ssss *p,*q; p=...
分类:其他好文   时间:2014-05-14 15:06:54    阅读次数:357
HDU 4635
http://acm.hdu.edu.cn/showproblem.php?pid=4635问:最多加多少条边,使得原图不是强连通图正向考虑有困难,不妨反向思考,既最少去掉几条边使得原图不是强连通。总边数sum=n*(n-1)时肯定是强连通,已经给了m条边,sum-=m这时把已经强连通的部分进行缩点...
分类:其他好文   时间:2014-05-14 13:37:36    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!