在执行update命令之后,出现系统校验和不符,网上找了一些方法,最后在大神的帮助下终于解决了!!
1.更改
/etc/apt/apt.conf.d/00aptitude 文件,在最后一行加入:Acquire::CompressionTypes::Order "gz";
然后执行 update就可以了。 (我是用这个方法解决的)
2.在软件更新管理器中点击右下角的“设置”,在其它软件中...
分类:
其他好文 时间:
2014-08-10 13:07:30
阅读次数:
219
题意 把一堆东西尽量分为两份 第一份不小于第二份
把所有东西的总价值s除以2 让它装尽量多的东西作为第二份 剩下的就是第一份了
题目有个小坑点 是以负数作为结束条件的 不是-1 还有不要开始把s/=2 后来第一份又用s*2-d[s] 因为s/2*2不一定等于s了...
分类:
其他好文 时间:
2014-08-10 10:29:20
阅读次数:
282
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
zigzag层序遍历树
For example:
Given binary...
分类:
其他好文 时间:
2014-08-09 23:19:59
阅读次数:
363
Reference:http://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming)Therule of three(also known as the Law of The Big Three or The Big Three) is...
分类:
其他好文 时间:
2014-08-09 23:03:59
阅读次数:
331
Problem Description
PM Room defines a sequence A = {A1, A2,..., AN}, each of which is either 0 or 1. In order
to beat him, programmer Moor has to construct another sequence B = {B1, B2,... , BN} of...
分类:
其他好文 时间:
2014-08-09 21:34:09
阅读次数:
365
宏就是文字展开,实际中可以展开写出来发现错误。
6.1 不能忽视宏定义中的空格
6.2 宏并不是函数
宏定义一个函数时,
1、要把每个参数用括号括起来
2、同时也要把整个表达式括起来。
3、要确保宏中的参数没有副作用
#define max(a,b) ((a)>(b)?(a):(b))
max(big,x[i++]),这时++有可能被计算两次...
分类:
其他好文 时间:
2014-08-09 16:00:18
阅读次数:
204
--摘录自《T-SQL编程入门经典》 ROW_NUMBER()函数根据作为参数传递给这个函数的 ORDER BY 子句的值,返回一个不断递增的整数值。如果 ROW_NUMBER 的 ORDER BY 的值和结果集中的顺序相匹配,返回值将是递增的,以升序排列。如果 ROW_NUMBER 的 ORDE....
分类:
其他好文 时间:
2014-08-09 13:25:17
阅读次数:
270
Binary Tree Level Order Traversal IIGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level...
分类:
其他好文 时间:
2014-08-08 23:53:16
阅读次数:
221
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2014-08-08 23:52:12
阅读次数:
238
Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).Fo...
分类:
其他好文 时间:
2014-08-08 23:51:06
阅读次数:
265