这个字典序海星 思路:$DP$ 提交:4次 错因:刚开始把字典序理解错了,怒看题解一脸懵逼;后来往前跳的时候又没有管上升$QwQ$窝太菜了。 题解: 所谓的字典序是相对位置!!!而不是元素本身的大小!!! 先求出每个点往后的的最长上升子序列。 然后对于每个询问,若询问的长度$len =$最长的上升子 ...
分类:
其他好文 时间:
2019-07-23 00:36:01
阅读次数:
105
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri ...
分类:
其他好文 时间:
2019-07-20 13:01:37
阅读次数:
93
F - Wormholes 题目链接:https://vjudge.net/contest/66569#problem/F 题目: While exploring his many farms, Farmer John has discovered a number of amazing wormh ...
分类:
其他好文 时间:
2019-07-20 09:57:49
阅读次数:
82
## Why Scala在数据集不是很大的时候,开发人员可以使用python、R、MATLAB等语言在单机上处理数据集。但是在大数据时代,数据集少说都是TB、PB级别,此时便需要分布式地处理。相较于上述语言,Scala有着现成的框架即Spark能分布式地处理问题,Scala中有着丰富的Spark A... ...
分类:
其他好文 时间:
2019-07-20 09:21:24
阅读次数:
84
前言: 近期漏洞修复频繁,各种组件需要升级,经多次碰撞,发现 yum update 来升级组件是最有效最安全的方式(绿盟通过版本比对的扫描结果可以忽略)。 然而,各家的设备各家管,一到升级就发现一堆问题了。呐这就发生了这么一个报错: yum update yum -y #随便写一个,其实都一样 Th ...
分类:
其他好文 时间:
2019-07-11 00:37:49
阅读次数:
184
一年一度的圣诞节快要来到了。每年的圣诞节小E都会收到许多礼物,当然他也会送出许多礼物。不同的人物在小E心目中的重要性不同,在小E心中分量越重的人,收到的礼物会越多。 小E从商店中购买了n件礼物,打算送给m个人,其中送给第i个人礼物数量为wi。 请你帮忙计算出送礼物的方案数(两个方案被认为是不同的,当... ...
分类:
其他好文 时间:
2019-07-07 21:34:15
阅读次数:
172
How Does React Native Work? The idea of writing mobile applications in JavaScript feels a little odd. How is it possible to use React in a mobile envi ...
分类:
其他好文 时间:
2019-07-05 19:10:35
阅读次数:
132
Spring Security Oauth2 : Possible CSRF detected 使用Spring Security 作为 Oauth2 授权服务器时,在授权服务器登录授权后,重定向到客户端服务器时,出现了401 Unauthorized 错误。明明已经授权了,为何还会未授权了。 跟踪 ...
分类:
编程语言 时间:
2019-07-04 17:38:30
阅读次数:
150
2743711 Possible Unexpected Results When Using Query With an ORDER BY Clause on a Rowstore Table With a Parallelized Search on a Cpbtree Type Index Ve ...
分类:
其他好文 时间:
2019-07-04 11:44:12
阅读次数:
104
You are given a rooted tree with n vertices. The vertices are numbered from 1 to n, the root is the vertex number 1. Each vertex has a color, let's de ...
分类:
其他好文 时间:
2019-07-03 00:38:54
阅读次数:
127