码迷,mamicode.com
首页 >  
搜索关键字:pair    ( 2800个结果
POJ 3254 Corn Fields (状压DP,轮廓线DP)
题意: 有一个n*m的矩阵(0 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #define pii pair 11 #defin...
分类:其他好文   时间:2015-10-06 22:03:53    阅读次数:296
usaco Starry Night
就是最简单能想到的那种拿到两个形状然后匹配。 但是有好多好多/*ID: modengd1PROG: starryLANG: C++*/#include #include #include #include using namespace std;struct pic{ pair LU; ...
分类:其他好文   时间:2015-10-05 20:39:37    阅读次数:260
杭电OJ -- 2036 改革春风吹满地
//任意多边形的面积计算#include #include #include using namespace std;typedef std::pair point;#pragma warning(disable:4244)double det(point p0,point p1,point p2)...
分类:其他好文   时间:2015-10-05 11:35:50    阅读次数:125
《C++primer(第五版)》学习之路-第十七章:标准库特殊设施
【 声明:版权所有,转载请标明出处,请勿用于商业用途。  联系信箱:libin493073668@sina.com】 17.1 tuple类型 1.tuple是类似pair的模板。每个pair的成员类型都不同,但每个pair都恰好有两个成员。不同tuple类型的成员类型也不相同,但一个tuple可以有任意数量的成员。每个确定的tuple类型的成员数目是固定的,但一个tuple类...
分类:编程语言   时间:2015-10-05 00:51:42    阅读次数:229
RFID Exploration and Spoofer a bipolar transistor, a pair of FETs, and a rectifying full-bridge followed by a loading FET
RFID Exploration Louis Yi, Mary Ruthven, Kevin O'Toole, & Jay Patterson What did you do? We made an Radio Frequency ID (RFID) card reader and, while a...
分类:其他好文   时间:2015-09-28 23:38:18    阅读次数:409
线程安全的查找表
template>class ThreadsafeLookupTable{private: class BucketType { private: typedef std::pair bucketValue; typedef std::list buck...
分类:编程语言   时间:2015-09-27 11:10:43    阅读次数:209
C++ | pair
pair有些时候比自己的定义的struct更方便。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 typedef pair pii;10 typ...
分类:编程语言   时间:2015-09-27 01:16:35    阅读次数:208
securt crt连接aws ec2
AWS的EC2服务器是用密钥来认证的,在创建instance时,会提示,创建一个key pair,同时会提示下载一个xxx.pem的密钥文件到本地硬盘。下面是通过SecureCRT连接到EC2的操作步骤:1.上传xxx.pem文件到一个linux系统下,修改其权限为600,。命令 chmod 600...
分类:其他好文   时间:2015-09-27 00:05:18    阅读次数:243
Codeforces580D. Kefa and Dishes
http://codeforces.com/problemset/problem/580/D 状态压缩DP。#includeconst int maxn=18;using namespace std;typedef long long int64;typedef pair PII;int64 f[....
分类:其他好文   时间:2015-09-25 12:42:43    阅读次数:151
poj3263 Tallest Cow
题意略去。考虑给定的R对pair(A, B)。即A能看见B,这意味着B不比A低,并且区间内部的所有元素的高度严格小于A的高度。我们规定区间的方向:若A > B,为反方向,反之称为正方向。容易发现,区间在同一方向上不交叉,即要么相离,要么相互包含。在相反反方向上,若两区间不相互包含,必定是有且仅有一个...
分类:其他好文   时间:2015-09-24 19:04:11    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!