https://vjudge.net/problem/UVA-1451 题意:给定长度为n的01串,选一个长度至少为L的连续子串,使得子串中数字的平均值最大。 思路:这题需要数形结合,真的是很灵活。 入门经典上讲得很详细,或者也可以看看这个,写得很不错。浅谈树形结合思想在信息竞赛中的应用 这道题的话 ...
分类:
其他 时间:
2017-01-28 11:26:39
收藏:
0 评论:
0 赞:
0 阅读:
223
Description Lweb 面对如山的英语单词,陷入了深深的沉思,“我怎么样才能快点学完,然后去玩三国杀呢?”。这时候睿智 的凤老师从远处飘来,他送给了 Lweb 一本计划册和一大缸泡椒,他的计划册是长这样的: ————— 序号 单词 ————— 1 2 …… n-2 n-1 n ————— ...
分类:
其他 时间:
2017-01-28 10:47:02
收藏:
0 评论:
0 赞:
0 阅读:
315
Visual Studio 集成的 Git 有哪些版本控制功能? 保存解决方案的完整快照(以下称为提交commit) 提交以分支形式组织和管理: 新建分支 合并分支 变基 针对提交的操作: 查看历史记录,详细信息 还原某个提交(对应 reset –soft):以最近的提交去除指定的提交中的修改内容,... ...
分类:
其他 时间:
2017-01-28 10:46:24
收藏:
0 评论:
0 赞:
0 阅读:
341
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - ...
分类:
其他 时间:
2017-01-28 10:45:26
收藏:
0 评论:
0 赞:
0 阅读:
224
Intersecting Lines Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 15145 Accepted: 6640 Description We all know that a pair of distinct poi ...
分类:
其他 时间:
2017-01-28 10:44:33
收藏:
0 评论:
0 赞:
0 阅读:
335
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you ...
分类:
其他 时间:
2017-01-28 10:05:03
收藏:
0 评论:
0 赞:
0 阅读:
217
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他 时间:
2017-01-28 10:04:45
收藏:
0 评论:
0 赞:
0 阅读:
213
Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 -- ...
分类:
其他 时间:
2017-01-28 10:04:15
收藏:
0 评论:
0 赞:
0 阅读:
321
this 和 super 都代表什么 this 代表当前对象的引用,谁来调用我,我就代表谁 super 代表当前对象的父类引用 this 和 super 的区别 调用成员变量 this.成员变量 调用本类的成员变量 也可以调用父类的成员变量 super.成员变量 调用父类的成员变量 调用构造方法 t ...
分类:
其他 时间:
2017-01-28 10:02:38
收藏:
0 评论:
0 赞:
0 阅读:
257
3.1 Redirection Most processes initiated by UNIX commands write to the standard output (that is, they write to the terminal screen), and many take the ...
分类:
其他 时间:
2017-01-28 09:22:36
收藏:
0 评论:
0 赞:
0 阅读:
365
4.1 Wildcards The * wildcard The character * is called a wildcard, and will match against none or more character(s) in a file (or directory) name. For ...
分类:
其他 时间:
2017-01-28 09:22:21
收藏:
0 评论:
0 赞:
0 阅读:
340
5.1 File system security (access rights) In your unixstuff directory, type % ls -l (l for long listing!) You will see that you now get lots of details ...
分类:
其他 时间:
2017-01-28 09:21:38
收藏:
0 评论:
0 赞:
0 阅读:
305
What is UNIX? UNIX is an operating system which was first developed in the 1960s, and has been under constant development ever since. By operating sys ...
分类:
其他 时间:
2017-01-28 09:21:04
收藏:
0 评论:
0 赞:
0 阅读:
289
2.1 Copying Files cp (copy) cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2 What we are ...
分类:
其他 时间:
2017-01-28 09:20:51
收藏:
0 评论:
0 赞:
0 阅读:
300
1.1 Listing files and directories ls (list) When you first login, your current working directory is your home directory. Your home directory has the s ...
分类:
其他 时间:
2017-01-28 09:20:32
收藏:
0 评论:
0 赞:
0 阅读:
217
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv ...
分类:
其他 时间:
2017-01-28 08:40:07
收藏:
0 评论:
0 赞:
0 阅读:
272
原文章:http://blog.csdn.net/xsj_blog/article/details/52037609 easy_install 和 pip的介绍: easy_install和pip都是用来下载安装Python一个公共资源库PyPI 的相关资源包的,pip是easy_install的改 ...
分类:
其他 时间:
2017-01-28 08:39:46
收藏:
0 评论:
0 赞:
0 阅读:
294
Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space. 此题 ...
分类:
其他 时间:
2017-01-28 08:39:27
收藏:
0 评论:
0 赞:
0 阅读:
293
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:
其他 时间:
2017-01-28 07:59:28
收藏:
0 评论:
0 赞:
0 阅读:
354
背景: SQL Server 2008 R2 10.50.1600 没有设置页面文件,内存为64G,数据库分配50G cpu使用占了50%以上,平时只有10-20%,某台服务器“RESOURCE MONITOR“CPU占用特别高。 原因: 网上有说是虚拟内存不够,也有说升级版本就可以解决。 猜测,是 ...
分类:
其他 时间:
2017-01-28 07:59:05
收藏:
0 评论:
0 赞:
0 阅读:
526