Problem Statement Snuke has decided to play a game using cards. He has a deck consisting of NN cards. On the ii -th card from the top, an integer AiAi ...
分类:
其他好文 时间:
2020-03-29 01:37:30
阅读次数:
90
https://codeforces.com/contest/1328/problem/F 首先把a数组处理成pair对(num,cnt),表示数字num有cnt个,然后按num升序排序离散化一下。 对于一个数x,若想使得小于x的数字都变成x,必须先把所有小于x的数变成x-1,然后再+1变成x。 同 ...
分类:
编程语言 时间:
2020-03-29 01:15:50
阅读次数:
94
ini.remove_option Remove a key/value pair from a section in an ini file. Returns the value of the removed key, or if nothing was removed. API Example: ...
分类:
其他好文 时间:
2020-03-28 21:46:58
阅读次数:
70
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a ...
分类:
其他好文 时间:
2020-03-28 13:19:11
阅读次数:
58
一. 感受 新买了电脑从头安装win10和ubuntu双系统,踩了各种坑,终于是成功了。 大致流程是用老毛桃安装了window10系统,装在了固态硬盘上。随后用软碟通将Ubuntu系统写入U盘(先用老毛桃把U盘恢复成普通u盘了)。安装Ubuntu时按照百度的说法,将固态硬盘压缩出200M的空间给ub ...
说明:由于自带的阿里云驱动创建的主机不能指定系统盘大小(默认40G),但自定义的镜像系统盘为150G,会创建主机失败,遂自建aliyunecs主机驱动。 1、安装docker machine https://github.com/docker/machine/releases shell 下载 cu ...
分类:
其他好文 时间:
2020-03-27 16:46:45
阅读次数:
54
题意: 给出一棵 $n$ 个点的树,$m$ 次询问,每次询问给出 $k$ 个点,问这 $k$ 个点能否在其中某个点到根节点 $1$ 的路径上或者与路径的距离为 $1$。 数据范围:$2≤n≤2?10^{5}$ , $1≤m≤2?10^{5}$ , $1≤k_i≤n$ , $\sum_{i=1}^{m ...
分类:
其他好文 时间:
2020-03-27 13:07:38
阅读次数:
72
B. A Funny Bipartite Graph 状压 dp ,利用了原题中选完左边点集,那么右边在 左边编号最大的那个数 之前的所有点都要选的性质,可以优化到 $O(n \cdot 2^n)$。由于懒得补,所以写个算法溜了。(逃 C. And and Pair 题目大意:给你一个数 n 的二进 ...
分类:
其他好文 时间:
2020-03-27 00:37:02
阅读次数:
108
protected override Task<bool> OnSketchCompleteAsync(Geometry geometry) { QueuedTask.Run(() => { var deleteFeatures = new EditOperation(); deleteFeatur ...
分类:
其他好文 时间:
2020-03-26 10:45:39
阅读次数:
300
"题目链接" 题目大意:让你找出所有$ai+aj bi+bj$(i j) 其实这题不用在意$i j$只要把$i\neq j$并且符合条件的一对数记做一个答案就行了。。。(显然通过$i和j$交换必有$i j$)。然后我们把$ai+aj bi+bj$变形可得$(ai bi)+(aj aj) 0$所以我们 ...
分类:
其他好文 时间:
2020-03-25 19:31:00
阅读次数:
83