码迷,mamicode.com
首页 >  
搜索关键字:difference    ( 1146个结果
听力-对比类比题
对比类比题,围绕两个对象,信号词出现在文章中,题干,选项中。 表对比的词汇Differ from |difference|distinction|contrast| 表类比的词汇similar to|similarity|resemblance比较|analogy类比|compare to|comp ...
分类:其他好文   时间:2019-11-05 00:38:47    阅读次数:96
Topics in CS(difference between compile and interpret)
编译 Compile:把整个程序源代码翻译成另外一种代码,然后等待被执行,发生在运行之前,产物是「另一份代码」。 解释 Interpret:把程序源代码一行一行的读懂然后执行,发生在运行时,产物是「运行结果」。 高级语言代码 High-Level Code 高级语言代码,自然是指由高级编程语言编写代 ...
分类:其他好文   时间:2019-11-02 20:10:04    阅读次数:97
codeforces 1244E Minimizing Difference (贪心)
(点击此处查看原题) 题意分析 给出n个数,a1,a2...an,现在可以进行最多k次操作,每次操纵可以使得任意一个数自增或者自减,问经过最多k次操作后,n个数中的最大值-最小值最小为多少? 解题思路 一开始,看到k最大可达1e14,就知道这个肯定不能暴力求解...但是我们可以通过优化暴力的方法来解 ...
分类:其他好文   时间:2019-11-01 09:36:49    阅读次数:102
Square Difference
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
Codeforces 1244E. Minimizing Difference
传送门 首先减的顺序是无关紧要的,那么有一个显然的贪心 每次减都减最大或者最小的,因为如果不这样操作,最大的差值不会变小 那么直接把序列排序一下然后模拟一下操作过程即可,别一次只减 $1$ 就好 ...
分类:其他好文   时间:2019-10-15 10:04:19    阅读次数:84
E. Minimizing Difference
E. Minimizing Difference 【思路】:其实不难发现这个题目,问的是max与min的差值,给了k次操作,我们可以这样考虑一旦一个数变成了下一个数,那么你每次花费的操作就会增加,所以我们只要考虑把最小值变大或者最大值变小,看哪个花费更小,就选择变化哪个,如果一次变化1的话,那么肯定 ...
分类:其他好文   时间:2019-10-15 00:04:08    阅读次数:107
PTA(Advanced Level)1036.Boys vs Girls
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Inp ...
分类:其他好文   时间:2019-10-13 10:40:26    阅读次数:89
netty pooled vs unpooled ByteBuf
Whats the difference between Pooled vs Unpooled and Direct vs Heap in ByteBuf? Like , what does pooled means in context of a message received , becaus ...
分类:Web程序   时间:2019-10-12 20:49:29    阅读次数:194
[leetcode 周赛 157] 1218 最长定差子序列
1218 Longest Arithmetic Subsequence of Given Difference 最长定差子序列 问题描述 给你一个整数数组 和一个整数 ,请你找出 中所有相邻元素之间的差等于给定 的等差子序列,并返回其中最长的等差子序列的长度。 示例 1: 输入 :arr = [1, ...
分类:其他好文   时间:2019-10-12 11:27:48    阅读次数:112
TOJ4244: Sum
描述 Given a sequence, we define the seqence's value equals the difference between the largest element and the smallest element in the sequence. As an e ...
分类:其他好文   时间:2019-10-08 14:34:06    阅读次数:73
1146条   上一页 1 ... 8 9 10 11 12 ... 115 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!