A 一种合法构造方式是$299\cdots 9$ "code" B 发现每次的$x_{i 1}$都是知道的,于是可以直接递推。 "code" C 最终答案所选的数一定是$n k+1$到$n$的所有数。把这些数所在的位置记作$p_1,p_2,\cdots,p_k$. 不难发现每个$r_i\in [p_ ...
分类:
其他好文 时间:
2020-03-31 01:03:51
阅读次数:
66
!/usr/bin/python coding:utf 8 import numpy as np import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm import tim ...
分类:
编程语言 时间:
2020-03-29 19:35:19
阅读次数:
116
一、题目说明 题目215. Kth Largest Element in an Array,在一个无序数组中找第k大的元素。难度是Medium! 二、我的解答 这个题目最直观的解答是,先对数组排序,然后直接返回: 性能如下: 三、优化措施 用小根堆实现,无需多言: 上面2个方法都不是最好的办法:方法 ...
分类:
其他好文 时间:
2020-03-29 10:58:34
阅读次数:
60
highstate_doc.read_file output the contents of a file: this is a workaround if the cp.push module does not work. https://github.com/saltstack/salt/iss ...
分类:
其他好文 时间:
2020-03-28 21:52:39
阅读次数:
86
一、前言 登录功能是每个系统的基础,本篇实现了基于token的用户登录和请求权限控制。 二、数据库model models文件夹下新建user.py,创建ORM实体类 # !/usr/bin/python3 # -*- coding: utf-8 -*- """ @Author : Huguodon ...
分类:
编程语言 时间:
2020-03-28 21:44:48
阅读次数:
137
给定字符串 s 和 t ,判断 s 是否为 t 的子序列。 你可以认为 s 和 t 中仅包含英文小写字母。字符串 t 可能会很长(长度 ~= 500,000),而 s 是个短字符串(长度 <=100)。 字符串的一个子序列是原始字符串删除一些(也可以不删除)字符而不改变剩余字符相对位置形成的新字符串 ...
分类:
其他好文 时间:
2020-03-28 13:20:46
阅读次数:
76
一、为什么用这个标题 标题中的Chinglish并不是为了装逼,而是为了更加原汁原味的表达这个问题的出现场景,这个说法来自gcc的提示:gcc-4.4.7\gcc\cp\parser.cstatic boolcp_parser_optional_template_keyword (cp_parser ...
分类:
其他好文 时间:
2020-03-27 21:26:07
阅读次数:
60
在讲完 SDRAM 的基本工作原理和主要操作之后,我们现在要重要分析一下 SDRAM 的时序与性能 之间的关系,它不在局限于芯片本身,而是从整体的内存系统去分析。这也是广大 DIYer 所关心的话 题。 比如 CL 值对性能的影响有多大几乎是每个内存论坛都会有讨论,今天我们就详细探讨一下,其 中的很 ...
分类:
其他好文 时间:
2020-03-27 18:24:23
阅读次数:
66
from selenium import webdriver driver = webdriver.Chrome()driver.get('https://baidu.com/') 1.切换Tab到最后一个页签 driver.switch_to.window(driver.window_handle ...
分类:
其他好文 时间:
2020-03-27 17:14:30
阅读次数:
81
复制文章:https://blog.csdn.net/lxllzl/article/details/86484885 cygpath — Convert Unix and Windows format paths, or output system path information。 下面是命令模板 ...
分类:
其他好文 时间:
2020-03-27 11:10:27
阅读次数:
98