<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #div1{ height: 200px; background: gold; overflow: scroll; ...
分类:
Web程序 时间:
2020-05-04 19:49:16
阅读次数:
87
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #div1{ height:200px; width: 200px; background: gold; } #di ...
分类:
其他好文 时间:
2020-05-04 17:43:22
阅读次数:
90
"题目" 地图是一棵无根树,pty从某个点出发,每次可以往某一条边走,“逃离”定义为可以在不遇到怪(点或边上相遇)的情况下,到达叶子节点。 若干个叶子节点上一开始可以放若干个怪,每次这些怪都可以往某一边走。 问对于每个点,最少要放多少怪才能保证抓住pty。 $n \leq 70000$ 实际上可以做 ...
分类:
其他好文 时间:
2020-05-02 23:17:02
阅读次数:
95
Date 日期对象的值就是当前的系统时间 创建日期对象 构造函数 new Date() Thu Feb 13 2020 14:49:52 GMT+0800 (中国标准时间) Date.toLocalString() 字符串本地化 2020/2/13 下午2:51:35 Date.getYear() ...
分类:
其他好文 时间:
2020-05-02 16:54:39
阅读次数:
89
In a gold mine grid of size m * n, each cell in this mine has an integer representing the amount of gold in that cell, 0 if it is empty. Return the ma ...
分类:
其他好文 时间:
2020-04-28 00:42:36
阅读次数:
52
Redistricting 计 $$ P_i = \sum_{j=1}^{i}[S_i=\texttt{H}] [S_i=\texttt{G}] $$ 计 $F_i$ 为考虑了 $[1,i]$ 这个前缀的最优解,那么 $$ F_i = \min_{i K+1<j<i} F_j + [P_i \le ...
分类:
其他好文 时间:
2020-04-23 01:11:19
阅读次数:
78
给出?N 名运动员的成绩,找出他们的相对名次并授予前三名对应的奖牌。前三名运动员将会被分别授予 “金牌”,“银牌” 和“ 铜牌”("Gold Medal", "Silver Medal", "Bronze Medal")。 (注:分数越高的选手,排名越靠前。) 示例 1: Ans ...
分类:
其他好文 时间:
2020-04-13 00:22:57
阅读次数:
88
题目描述 Farmer John 马戏团的 N 头奶牛( 1 ≤ N ≤ 10^5 )正在准备她们接下来的演出。演出在一棵结点编号为 1 … N 的树上进行。演出的“起始状态”可以定义为一个整数 1 ≤ K ≤ N 以及奶牛 1 … K 在树上的结点分布,使得没有两头奶牛位于相同的结点。 在一场演出 ...
分类:
其他好文 时间:
2020-04-12 16:09:49
阅读次数:
97
先给大家报告一个好消息,前几天圣诞节的掘金翻译计划里的35篇技术文章在短短的24小时内就被大家认领完毕了,今天已经有20多个 PR,看来大家是相当热情。想知道我们掘金翻译计划收录了哪些优质的技术文章?快来我们 Github 页面围观吧,戳→https://github.com/xitu/gold-m ...
分类:
移动开发 时间:
2020-04-08 16:25:17
阅读次数:
111
cssstyle.css #div1{color:blue}#div2{color:gold}#div3{color:red}css.html <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</tit ...
分类:
Web程序 时间:
2020-04-07 22:40:52
阅读次数:
90