忘记基础的速度真可怕。加油~ You are, and you always will be making a difference. 1. 原码 原码就是符号位加上真值的绝对值, 即用第一位表示符号, 其余位表示值. 比如如果是8位二进制: [+1]原 = 0000 0001 [-1]原 = 10 ...
分类:
其他好文 时间:
2017-12-31 21:10:00
阅读次数:
134
Codeforces 903D Almost Difference ...
分类:
其他好文 时间:
2017-12-27 00:16:16
阅读次数:
204
This page provides an overview of Pod, the smallest deployable object in the Kubernetes object model. Understanding Pods How Pods manage multiple Cont ...
分类:
Web程序 时间:
2017-12-26 22:45:53
阅读次数:
308
题意:求一个数列中所有的绝对值差大于2的数,并用后面的数字减前面的数字的加和。 分析:可以用树状数组每次找前面的差值大于2的数,也可以直接每次加前面所有的数字,再减去差值为1的数字。题目最坑爹的是答案也许会爆long long,可以用long double或者使用unsigned long long ...
分类:
其他好文 时间:
2017-12-26 20:56:55
阅读次数:
141
Given a tree, find the smallest subtree that contains all of the tree's deepest nodes.. from: 1point3acres.com/bbs a / | \. b c d/ \ | ... ...
分类:
其他好文 时间:
2017-12-25 11:37:58
阅读次数:
103
We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra ...
分类:
其他好文 时间:
2017-12-25 11:30:46
阅读次数:
109
Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list t ...
分类:
其他好文 时间:
2017-12-24 15:51:49
阅读次数:
132
Nearly every one have used the Multiplication Table. But could you find out the k-th smallest number quickly from the multiplication table? Given the ...
分类:
其他好文 时间:
2017-12-24 11:13:27
阅读次数:
105
题目链接:http://codeforces.com/problemset/problem/903/D 题目大意:就是给你n个数a1,a2,…,an,然后在1到n范围内求函数d(x,y)的和。 这道题可以这么想,就是先不考虑x,y的大小关系,直接认为d(x,y)= y - x 。记最后结果为sum, ...
分类:
其他好文 时间:
2017-12-21 01:49:19
阅读次数:
190
Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the sum of all left subt ...
分类:
其他好文 时间:
2017-12-20 13:26:38
阅读次数:
173