Color the fence 时间限制:1000 ms | 内存限制:65535 KB 难度:2 Color the fence 时间限制:1000 ms | 内存限制:65535 KB 难度:2 Tom has fallen in love with Mary. Now Tom wants to ...
分类:
其他好文 时间:
2018-03-06 23:15:07
阅读次数:
185
题目链接:http://codeforces.com/problemset/problem/363/B 题目: There is a fence in front of Polycarpus's home. The fence consists of n planks of the same wid ...
分类:
其他好文 时间:
2018-03-04 10:32:46
阅读次数:
199
题意 给定一个长度为n的数列,有m次询问,询问形如l r k 要你在区间[l,r]内选一个长度为k的区间,求区间最小数的最大值 Sol 二分答案 怎么判定,每种数字开一棵线段树 某个位置上的数大于等于它为1 那么就是求区间最大的1的序列长度大于k 二分的最优答案一定在这个区间内,否则不优 排序后就是 ...
分类:
其他好文 时间:
2018-03-01 20:12:14
阅读次数:
168
first one https://www.npmjs.com 注册一个帐号 NPM 上传包 流程 创建一个 README.md的说明文件 在根中运行指令 注意 如果你的镜像地址是 用的 taobao(只读)的那请更改为默认镜像,否则无法发布包 淘宝镜像 npm config set registr ...
分类:
其他好文 时间:
2018-03-01 13:32:14
阅读次数:
153
Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,00 ...
分类:
其他好文 时间:
2018-02-27 19:35:46
阅读次数:
143
There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjacent ...
分类:
其他好文 时间:
2018-02-27 10:24:23
阅读次数:
168
本文简要的介绍类Struts2的Result结果配置、Servlet的API的访问,以及模型驱动、属性驱动基本使用示例。 ...
Fence Repair Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 55661 Accepted: 18331 Description Farmer John wants to repair a small length o ...
分类:
其他好文 时间:
2018-02-12 15:20:14
阅读次数:
189
关于ES6 块级作用域 任何一对花括号({})中的语句集都属于一个块,在块中声明的变量在代码块外都是不可访问的,称之为块级作用域,ES5以前没有块级作用域 let let 是ES6新增的声明变量的一种方法,与 var 最明显的区别是 不存在变量提升 产生新的作用域(块级作用域) 在一个作用域中 不允 ...
分类:
其他好文 时间:
2018-02-05 17:05:19
阅读次数:
189