码迷,mamicode.com
首页 >  
搜索关键字:pair    ( 2800个结果
SGU 149. Computer Network
时间限制:0.25s空间限制:4M;题意: 给出一颗n(n#include #include #include using namespace std;#define mp make_pair#define fi first#define se second#define sz(x) ((int.....
分类:Web程序   时间:2014-07-16 19:03:45    阅读次数:268
Spoj 9887 Binomial coefficients 构造
题目链接:点击打开链接 #include #include #include #include #include using namespace std; const int MAX_N = 507; const long long INF = (long long)1e15; typedef long long ll; typedef pair pii; ll C[MAX_N][MA...
分类:其他好文   时间:2014-07-15 10:44:20    阅读次数:229
c++ pair(对组)用法
类模板:template struct pair参数:T1是第一个值的数据类型,T2是第二个值的数据类型。功能:pair将一对值组合成一个值,这一对值可以具有不同的数据类型(T1和T2),两个值可以分别用pair的两个公有函数first和second访问。具体用法:1.定义(构造):pair p1....
分类:编程语言   时间:2014-07-14 00:41:51    阅读次数:189
structure of the machine
When HCS hydraulic impact crusher machine is at work, the motor through the belt, transmission shaft, bevel gear pair drives the eccentric sleeve to r...
分类:其他好文   时间:2014-07-13 09:02:16    阅读次数:191
AWS--EC2初尝
环境是Mac OSX。尝试了一下amazon的EC2服务,注册基本比较简单,需要一张信用卡。进入控制台后选择EC2,点击launch instance,选择free tier的Amazon linux,一路点下去。比较重要的是保存好key pair,之后连接主机需要。网上看是以.pem为后缀的,但我...
分类:其他好文   时间:2014-07-09 15:41:11    阅读次数:212
set和map和pair 转自ACdreamers
set与map容器 分类: C/C++ 2013-08-25 19:21 560人阅读 评论(0) 收藏 举报 首先来看看set集合容器:set集合容器实现了红黑树的平衡二叉树数据结构,在插入元素时它会自动调整二叉树的排列,把该元素放到适当的位置,并且保证左右子树平衡。平衡二叉检索树采用中序...
分类:其他好文   时间:2014-07-06 16:14:06    阅读次数:286
Uva488 Triangle Wave
In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency. Input and Output The input begins with a single positive integer on a line by i...
分类:其他好文   时间:2014-07-03 17:15:14    阅读次数:204
Centos 5.5 编译安装mysql 5.5.9
下载mysql wget http://mysql.mirrors.pair.com/Downloads/MySQL-5.5/mysql-5.5.9.tar.gz创建mysql用户[root@xuhost opt]#useradd -g mysql mysql3307 -s /bin/nologin...
分类:数据库   时间:2014-07-02 14:19:51    阅读次数:303
UVa 10245 - The Closest Pair Problem
题目:最近点对(大数据)。 分析:分治法。首先,将所有点按很坐标排序;然后,利用分治求解。             1.将问题转化为两个相同大小的子区间分别求解;             2.中位点为中心,当前最小距离为半径的区间直接枚举求解;             3.求出上两中情况的最小值返回。 说明:这么经典的题目,今天第一次做。 #include #include #in...
分类:其他好文   时间:2014-07-02 09:41:14    阅读次数:202
算法纲要
基本枚举、贪心、递归、分治、递推、模拟STL(pair、vector、set、map、queue、string、algorithm)构造、位运算、常数优化数据结构队列、堆、栈、链表排序(插入、冒泡、快速、归并、堆、桶、基数)二分查找、散列表并查集、哈夫曼树排序二叉树、左偏树、平衡树(Splay/Tr...
分类:其他好文   时间:2014-07-01 19:09:02    阅读次数:193
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!