链接: https://codeforces.com/contest/1265/problem/D 题意: An integer sequence is called beautiful if the difference between any two consecutive numbers is ...
分类:
其他好文 时间:
2019-12-07 01:19:52
阅读次数:
89
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains ...
分类:
其他好文 时间:
2019-11-21 22:58:17
阅读次数:
83
集合内置方法完整列表 方法描述 add() 为集合添加元素 clear() 移除集合中的所有元素 copy() 拷贝一个集合 difference() 返回多个集合的差集 difference_update() 移除集合中的元素,该元素在指定的集合也存在。 discard() 删除集合中指定的元素 ...
分类:
其他好文 时间:
2019-11-20 16:45:18
阅读次数:
88
389. Find the Difference Easy Easy Easy Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling s ...
分类:
其他好文 时间:
2019-11-18 09:22:52
阅读次数:
65
近在看 VMware 一直没有搞清楚这几个产品之间的区别和联系。正好在网上搜索到一个好文,翻译下来。 本文翻译自:http://www.mustbegeek.com/difference-between-vsphere-ESXI-and-vcenter/ 最近对 VMware 虚拟化解决方案有很多的 ...
分类:
其他好文 时间:
2019-11-07 17:39:38
阅读次数:
94
对比类比题,围绕两个对象,信号词出现在文章中,题干,选项中。 表对比的词汇Differ from |difference|distinction|contrast| 表类比的词汇similar to|similarity|resemblance比较|analogy类比|compare to|comp ...
分类:
其他好文 时间:
2019-11-05 00:38:47
阅读次数:
96
编译 Compile:把整个程序源代码翻译成另外一种代码,然后等待被执行,发生在运行之前,产物是「另一份代码」。 解释 Interpret:把程序源代码一行一行的读懂然后执行,发生在运行时,产物是「运行结果」。 高级语言代码 High-Level Code 高级语言代码,自然是指由高级编程语言编写代 ...
分类:
其他好文 时间:
2019-11-02 20:10:04
阅读次数:
97
(点击此处查看原题) 题意分析 给出n个数,a1,a2...an,现在可以进行最多k次操作,每次操纵可以使得任意一个数自增或者自减,问经过最多k次操作后,n个数中的最大值-最小值最小为多少? 解题思路 一开始,看到k最大可达1e14,就知道这个肯定不能暴力求解...但是我们可以通过优化暴力的方法来解 ...
分类:
其他好文 时间:
2019-11-01 09:36:49
阅读次数:
102
Alice has a lovely piece of cloth. It has the shape of a square with a side of length aa centimeters. Bob also wants such piece of cloth. He would pre ...
分类:
其他好文 时间:
2019-10-28 21:21:27
阅读次数:
104
import java.util.* /** * 378. Kth Smallest Element in a Sorted Matrix * https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/descript... ...
分类:
其他好文 时间:
2019-10-28 00:44:03
阅读次数:
96