题目链接 Run Length Encoding Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 5006 Accepted: 1560 Description Your task is to write a program th ...
分类:
其他好文 时间:
2018-10-06 13:21:16
阅读次数:
146
const puppeteer = require('puppeteer'); puppeteer.launch().then(async browser => { const page = await browser.newPage(); //设置启用拦截 await page.setReques ...
分类:
其他好文 时间:
2018-10-06 12:06:53
阅读次数:
228
BOM BOM的介绍 javasctipt基础分为三个部分: ECMAScript : javascript的语法标准 . 包括变量 表达式 运算符 函数 if语句 for语句 DOM : 文档对象模型 ,操作网页上的元素的API . 比如让盒子移动 ,变色 轮播图 BOM : 浏览器对象模型,操作 ...
分类:
其他好文 时间:
2018-10-06 12:05:38
阅读次数:
205
<?php/*时间转换成秒*/functiontime_to_second($time){if(!$time){$ret=0;}else{$parsed=date_parse($time);$ret=$parsed[‘hour‘]*3600+$parsed[‘minute‘]*60+$parsed[‘second‘];}return$ret;}/*秒转换成时间*/functionsecond
分类:
编程语言 时间:
2018-10-06 00:33:59
阅读次数:
159
前言 php的session信息是储存在文件中的 session.serialize_handler存在以下几种 php_binary 键名的长度对应的ascii字符+键名+经过serialize()函数序列化后的值 php 键名+竖线(|)+经过serialize()函数处理过的值 php_ser ...
分类:
Web程序 时间:
2018-10-05 22:39:22
阅读次数:
234
output standard output output standard output output Rick and his co-workers have made a new radioactive formula and a lot of bad guys are after them. ...
分类:
其他好文 时间:
2018-10-05 22:39:13
阅读次数:
204
Given a linked list, swap every two adjacent nodes and return its head. Example: Note: Your algorithm should use only constant extra space. You may no ...
分类:
其他好文 时间:
2018-10-05 22:34:58
阅读次数:
193
虽然很基础,但是还是复习了一下,毕竟比树剖好写。。。 代码: ...
分类:
其他好文 时间:
2018-10-05 22:34:28
阅读次数:
224
前2章探索了this绑定指向不同的对象需要函数引用的call-site。 但是什么是对象,为什么我们需要指向它们? 本章探索细节。 Syntax Type Build-in 对象 Contents Computed Property Names Property vs. Method Arrays ...
分类:
Web程序 时间:
2018-10-05 20:22:45
阅读次数:
175
"题目戳这里" 一句话题意 一棵树,任意相隔一个点的两个点连一条新边(原边留下),问所有点对的距离之和。 Solution 本来看见是黑题有点怕,但仔细一想也没有那么难。 先处理出每个点的深度(dep)和子树大小(size),我们把原树上的边称为老边,新建的边是新边。 首先因为隔了一个点有一条新边, ...
分类:
其他好文 时间:
2018-10-05 20:20:42
阅读次数:
164