码迷,mamicode.com
首页 >  
搜索关键字:pair    ( 2800个结果
Functional Analysis-Metric Space
Definition A metric space is a pair $(X,d)$ where $X$ is a set and $d$ is a metric(or distance function) $d$ on $X$, that is, a function defined on $X ...
分类:其他好文   时间:2017-04-03 09:37:40    阅读次数:200
BZOJ 1631: [Usaco2007 Feb]Cow Party
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1631 解:先跑一遍最短路,把所有边都反过来以后,再跑一遍 程序: ...
分类:其他好文   时间:2017-04-03 00:59:23    阅读次数:238
[LeetCode] Reverse Pairs 翻转对
Given an array nums, we call (i, j) an important reverse pair if i < j and nums[i] > 2*nums[j]. You need to return the number of important reverse pai ...
分类:其他好文   时间:2017-04-02 00:50:24    阅读次数:198
山东省第一届acm程序设计竞赛题解
缺c 计算几何没看 f一个模拟,不想写,难度不大,J,因为时间挺早的,题目都比较简单,没什么难度,组队出个8题还是轻松的 A:水题 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e3+5; 4 string s[ ...
分类:其他好文   时间:2017-04-01 20:00:19    阅读次数:285
hihocoder 1198 Memory Allocating Algorithm
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #define LL long long 12 13 using nam... ...
分类:其他好文   时间:2017-03-30 18:33:10    阅读次数:133
泛型学习笔记
定义:参数化类型。使程序具有更好的可读性和安全性。 优点: (泛型类,比如用于集合等容器类型时) 1.编译器进行类型检查,避免插入错误类型的对象; 2.输出时不需要类型的强制转换。 1.泛型类 可以有多个类型变量。 例: public class Pair<T>{...} public class ...
分类:其他好文   时间:2017-03-27 14:18:41    阅读次数:159
Unused Method(不再使用的方法)——Dead Code(死亡代码)
系列文章目录: 使用Fortify进行代码静态分析(系列文章) Unused Method(不再使用的方法) 示例: Fortify解释: The method checkLevel() in AbilityImport..cs is not reachable from any method ou ...
分类:其他好文   时间:2017-03-27 13:07:24    阅读次数:246
《转》python学习(9)字典
转自 http://www.cnblogs.com/BeginMan/p/3156960.html 一、映射类型 我理解中的映射类型是:键值对的关系,键(key)映射值(value),且它们是一对多的关系。字典是Python唯一的映射类型。 扩展1:哈希表一种数据结构,值是根据相关的键进行数据存储的 ...
分类:编程语言   时间:2017-03-26 19:44:37    阅读次数:190
C++中map的用法
map的特性是,所有元素都会根据元素的减值自动被排序。map的所有元素都是pair,同时拥有实值(value)和键值(key)。pair的第一个元素会被视为键值,第二个元素会被视为实值。map不允许两个元素拥有相同的键值。 下面看一下<stl_pair.h>中的pair定义: template <c ...
分类:编程语言   时间:2017-03-25 16:39:29    阅读次数:199
sourceTree免密码校验
1.ssh请求:参考:http://www.ithao123.cn/content-1584888.html 步骤1:检查你的电脑上是否已经生成了SSH Key 在git bash下执行如下命令 这两个命令就是检查是否已经存在id_rsa.pub或id_dsa.pub文件,如果文件已经存在,那么你可 ...
分类:其他好文   时间:2017-03-23 20:30:53    阅读次数:284
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!