233333...Description:就是说呢。牛是的实力室友大小之分的。然后呢。告诉你很多pair 表示任意两头牛之间的实力大小。按实力排序之后。问你一共有多少只牛的排名是确定了的。T_T == 坑了好多WA....应该是 =好吧。。貌似是拓扑排序的floyd算法。。数据太小。。三重循环水过、...
分类:
其他好文 时间:
2015-06-02 20:07:12
阅读次数:
99
1. 生成本机的公私钥匙对[oracle@Oracle11_2 scripts]$ ssh-keygen -b 1024 -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/o...
分类:
其他好文 时间:
2015-06-02 20:04:43
阅读次数:
97
A+B
Description Calculate a + b Input The input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line.
Output For each pair of input integers a ...
分类:
其他好文 时间:
2015-06-02 09:24:12
阅读次数:
99
srm 529感觉题并不是很有趣,所以不打算写题解辣>_<250Solution
唔,这是个傻逼题,随便暴力下就好= =
Code
#include
using namespace std;
typedef pair pii;
class GogoXCake {
public:
string solve( vector ...
分类:
其他好文 时间:
2015-06-02 00:27:55
阅读次数:
169
Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).
If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b a...
分类:
其他好文 时间:
2015-06-01 16:43:34
阅读次数:
126
1 string[] MethodRepayment = { "按月付息到期还本", "到期一次性还本息", "等额本息还款方式", "等额本金还款方式" };2 KeyValuePair[] pair = {3 new KeyVal...
分类:
编程语言 时间:
2015-05-29 13:46:14
阅读次数:
102
Pair Program and Feel the FlowGudny Hauknes, Kari Røssland, and Ann Katrin GagnatiMAGiNE THAT YOU ARE TOTALLY ABSORBED by what you are doing— focused, dedicated, and involved. You may have lost track o...
分类:
其他好文 时间:
2015-05-24 10:12:13
阅读次数:
155
prim+优先队列模板: 1 #include //大概要这些头文件 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 typedef pair pii; 8 9 int head[30],next[20...
分类:
其他好文 时间:
2015-05-22 16:24:29
阅读次数:
133
首先,我们可以如下使用map://#include map simap;
map[string("hou")] = 1;
map[string("hou")] = 2;
pair value(string("ha"), 5);
simap.insert(value);先看insert操作的源码: pair i...
分类:
其他好文 时间:
2015-05-22 11:33:46
阅读次数:
295
对于map/multimap 查找可以有多种方式。 find 返回一个iterator 是个pair count (对于map只可能是1或者0) lower_bound /upper_bound 返回 小于/大于给定value的iterator equal_range 返回一个pair 包含 low...
分类:
其他好文 时间:
2015-05-21 22:31:46
阅读次数:
201