题目:传送门 题意: 给你一个长度为 N 的只由123 构成的字符串 a ,定义 Xi,j 满足: 思路: 推荐博客:博one 博two 第一个观察,最终的答案只可能是 0、1、2,然后,从 N = 2 起,Xi,j 就不存在 3 了,都是 0、1、2,那我们直接在输入的时候,就将 123 转换为 ...
分类:
其他好文 时间:
2020-03-23 16:48:55
阅读次数:
92
输入标签名+tab > 子标签 * 多少个标签 $ 标签的名称序号 { } 标签的内容 + 并列的标签 [ ] 属性 HTML script + 并列的标签:div#one+div#two 点击tab 引入 表格 链接 a[href=#] 再tab <a href="#"></a> a:link 再 ...
分类:
Web程序 时间:
2020-03-22 23:52:01
阅读次数:
116
首先在前句已经总领,将所要compare的对象先说出来了,two kind of water,然后还说了原因,是Pore size。长难句中反复出现的对象是two kind of water, two kind of pore size 和surface tension,题干考查实际上是这三者的逻辑 ...
分类:
其他好文 时间:
2020-03-22 23:50:53
阅读次数:
86
promise 是为了解决异步操作(回调地狱) function one(){ setTimeOut(()=>{ console.log("吃饭")),3000} function two(){ setTimeOut(()=>{ console.log("睡觉")),3000} function t ...
分类:
其他好文 时间:
2020-03-22 11:03:26
阅读次数:
73
LeetCode 1385. Find the Distance Value Between Two Arrays两个数组间的距离值【Easy】【Python】【暴力】 Problem "LeetCode" Given two integer arrays and , and the integer ...
分类:
编程语言 时间:
2020-03-22 10:27:21
阅读次数:
80
原题链接在这里:https://leetcode.com/problems/rotate-string/ 题目: We are given two strings, A and B. A shift on A consists of taking string A and moving the le ...
分类:
其他好文 时间:
2020-03-21 14:31:02
阅读次数:
42
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:
其他好文 时间:
2020-03-20 18:39:27
阅读次数:
72
1. Two-dimensional Wiener Process dS1 = r·S1·dt + σ1·S1·dW1 ; and dS2 = r·S2·dt + σ2·S2·dW2 Solutions: St = S0·exp[(r - σ2 /2 )·t + σ·Wt] 1.1 No Corre ...
分类:
其他好文 时间:
2020-03-20 09:12:58
阅读次数:
55
地址:https://leetcode-cn.com/problems/two-sum/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/3/18 * Time: 下午6:23 */ /** * 给定一个整数数组 nums 和 ...
分类:
其他好文 时间:
2020-03-19 09:35:48
阅读次数:
69
Tokens on the Segments Time Limit: 1000 msMemory Limit: 65536 KB Consider segments on a two-dimensional plane, where the endpoints of the -th segment ...
分类:
其他好文 时间:
2020-03-18 18:57:20
阅读次数:
98