我才不会告诉你我cmp写错了,然后调了一年 CDQ分治模板题 一维时间,二三维x,y坐标 避免树状数组下标出现0炸掉,把跟长度有关的都+1 答案用容斥原理即可(类似于二维前缀和?) ...
分类:
其他好文 时间:
2019-07-13 19:58:33
阅读次数:
115
一 Number(数字) 1.1 数字类型的创建 1.2 Number 类型转换 python内置数学函数 #abs(x) 返回数字的绝对值,如abs(-10) 返回 10 # ceil(x) 返回数字的上入整数,如math.ceil(4.1) 返回 5 # cmp(x, y) 如果 x < y 返 ...
分类:
编程语言 时间:
2019-07-11 00:35:08
阅读次数:
189
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c ...
分类:
其他好文 时间:
2019-07-10 20:07:01
阅读次数:
102
准备工作 两台VMware 虚拟机 一台充当zabbix server(安装docker) 一台充当zabbix agent(安装docker) 首先先将三个压缩包()在windows环境解压,解压后将cmp_zabbix_server、cmp_mariadb两个目录上传至server端的/opt下 ...
分类:
其他好文 时间:
2019-06-22 20:09:06
阅读次数:
158
1 #define _for(i,a,b) for(int i = (a);i b; 7 } 8 }; 9 class Solution 10 { 11 public: 12 vector> highFive(vector>& items) 13 { 14 vector,cmp>> v(1002);... ...
分类:
其他好文 时间:
2019-06-16 00:27:20
阅读次数:
170
离散化 离散化适用于数据的权值不重要,数据权值之间的相对位置及大小关系重要的一种优化方法。而离散化也有许多方法,其中各有好坏。 1.排序解法(可处理重复元素) bool cmp(ha c, ha b) { return c.num ...
分类:
其他好文 时间:
2019-06-09 20:58:19
阅读次数:
115
1、aapt dump badging apk名称 2、adb logcat | grep START 或者 adb shell "logcat | grep START" 然后在模拟器中点击要获取package的app,查找cmp,cmp中前面是package name后面是activity na ...
分类:
移动开发 时间:
2019-06-06 22:53:16
阅读次数:
212
离散化 离散化在处理只是注重一个数组中的数之间的大小关系时,是可以用离散化的操作来减小数的值得。 c++ bool cmp(ha a, ha b) { return a.num ...
分类:
其他好文 时间:
2019-05-26 12:56:23
阅读次数:
95
计算长度 取极值 枚举 可以同时遍历索引和遍历元素 比较 cmp() 查看变量类型 type(变量名) 类型转换 zip ...
分类:
编程语言 时间:
2019-05-23 00:00:43
阅读次数:
146
#include<stdio.h>//qosrt函数的使用者得实现一个比较函数intint_cmp(constvoid*p1,constvoid*p2){return(*(int*)p1>*(int*)p2);}intmain(){intarr[]={1,3,5,7,9,2,4,6,8,0};inti=0;qsort(arr,sizeof(arr)/sizeof(arr[0]),
分类:
其他好文 时间:
2019-05-17 00:12:08
阅读次数:
162