第一题排序暴力 1 #include<iostream> 2 #include<cstring> 3 #include<cstdio> 4 #include<string> 5 #include<algorithm> 6 #include<cmath> 7 #include<utility> 8 # ...
分类:
其他好文 时间:
2018-02-26 15:03:17
阅读次数:
122
在《二叉树的定义和性质》中我们已经认识了二叉树这种数据结构。我们知道链表的每个节点可以有一个后继,而二叉树(Binary Tree)的每个节点可以有两个后继。比如这样定义二叉树的节点: typedef struct node *link; struct node { unsigned char it ...
分类:
其他好文 时间:
2018-02-26 11:27:42
阅读次数:
162
itertools.accumulate(iterable [, func]) 返回一个迭代序列的累加值序列(没有func的情况下)。 当指定了func(参数必须为两个)后,将通过func进行累加。 注1: 当没有传入func时,func相当于 operator.add 注2: 返回值为迭代器 it ...
分类:
编程语言 时间:
2018-02-25 13:08:23
阅读次数:
3029
[codeforces][1] 一句话题意 求区间数字出现次数的mex,带修改 sol 带修膜队不解释 带修膜队的排序! cpp struct query{ int id,l,r,t; bool operator include include using namespace std; int gi ...
分类:
系统相关 时间:
2018-02-25 12:57:09
阅读次数:
321
在 YAML中有如下配置 paypal: mode:live 在类中,通过 @Value属性读取 @Value("${paypal.mode}") private String mode; 程序运行时,却报出错误 Caused by: java.lang.IllegalArgumentExcepti ...
分类:
编程语言 时间:
2018-02-24 13:15:11
阅读次数:
713
1 struct Complex{ 2 double x, y; 3 inline Complex(double xx=0, double yy=0){ 4 x=xx; y=yy; 5 } 6 inline Complex operator + (Complex a){ 7 return Compl... ...
分类:
其他好文 时间:
2018-02-23 13:38:03
阅读次数:
199
Description 小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者。但是T部落的基地里已经有N个建筑设施受到了严重的损伤,如果不尽快修复的话,这些建筑设施将会完全毁坏。现在的情况是:T部落基地里只有一个修理工人,虽然他能瞬间到达任何一 ...
分类:
Web程序 时间:
2018-02-21 17:47:17
阅读次数:
176
题目链接:http://poj.org/problem?id=1094 题目: Description An ascending sorted sequence of distinct values is one in which some form of a less-than operator ...
分类:
编程语言 时间:
2018-02-21 00:25:00
阅读次数:
163
Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happens to this process ...
BZOJ3456 http://www.lydsy.com/JudgeOnline/problem.php?id=3456 ...
分类:
其他好文 时间:
2018-02-19 21:14:12
阅读次数:
154