码迷,mamicode.com
首页 >  
搜索关键字:operator-    ( 3564个结果)
2018/02/26 模拟赛
第一题排序暴力 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
Python标准库(3.x): itertools库扫盲
itertools.accumulate(iterable [, func]) 返回一个迭代序列的累加值序列(没有func的情况下)。 当指定了func(参数必须为两个)后,将通过func进行累加。 注1: 当没有传入func时,func相当于 operator.add 注2: 返回值为迭代器 it ...
分类:编程语言   时间:2018-02-25 13:08:23    阅读次数:3029
[CF940F]Machine Learning
[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
SpringBoot 使用 @Value 从 YAML文件读取属性
在 YAML中有如下配置 paypal: mode:live 在类中,通过 @Value属性读取 @Value("${paypal.mode}") private String mode; 程序运行时,却报出错误 Caused by: java.lang.IllegalArgumentExcepti ...
分类:编程语言   时间:2018-02-24 13:15:11    阅读次数:713
【模板】FFT快速傅里叶变换
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
[BZOJ1029][P4053][JSOI2007]建筑抢修 (贪心+堆)
Description 小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者。但是T部落的基地里已经有N个建筑设施受到了严重的损伤,如果不尽快修复的话,这些建筑设施将会完全毁坏。现在的情况是:T部落基地里只有一个修理工人,虽然他能瞬间到达任何一 ...
分类:Web程序   时间:2018-02-21 17:47:17    阅读次数:176
POJ 1094 Sorting It All Out(拓扑排序判环)
题目链接: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
Windows Message Queue
Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happens to this process ...
分类:Windows程序   时间:2018-02-20 11:52:04    阅读次数:225
BZOJ3456城市规划
BZOJ3456 http://www.lydsy.com/JudgeOnline/problem.php?id=3456 ...
分类:其他好文   时间:2018-02-19 21:14:12    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!