CSS 1.position:sticky 粘性定位,必须要设置top,bottom,left,right其中一个,最近在做吸顶效果用到了。 2.flex布局中的justify-content:space-evenly,这个是各元素之间以及两边元素的空白相等,(space-around是两边元素空白 ...
分类:
Web程序 时间:
2020-06-17 18:09:41
阅读次数:
65
如果不算数组开小和没开$long long$的话,我又是一遍过的。 思路很简单,考虑在线段树合并的时候,计算逆序对的贡献。 假设合并线段树$a$和$b$,则在区间$\left[l,r\right]$的时候, $a$在前所产生的逆序对个数为$a$的右子树的大小乘以$b$的左子树的大小。 $b$在前所产 ...
分类:
其他好文 时间:
2020-06-17 12:30:33
阅读次数:
40
1. pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> 2. 自定义注解 /** * MyLog ...
分类:
编程语言 时间:
2020-06-17 01:40:54
阅读次数:
60
记一道存在过滤的模板注入的题。直接给源代码 import flask import os app = flask.Flask(__name__) app.config['FLAG'] = os.environ.pop('FLAG') @app.route('/') def index(): retu ...
分类:
其他好文 时间:
2020-06-16 23:47:40
阅读次数:
155
Given a tree, you are supposed to list all the leaves in the order of top down, and left to right. Input Specification: Each input file contains one t ...
分类:
编程语言 时间:
2020-06-16 12:46:45
阅读次数:
64
官方文档: https://docs.python.org/zh-cn/3.7/library/asyncio.html#module-asyncio 为什么看这个 在看websockets的时候,发现不知道里面的async关键字是啥,为什么的函数调不到。就翻了翻官方文档看一下。 asyncio是p ...
分类:
其他好文 时间:
2020-06-16 01:20:44
阅读次数:
70
/** * @param {number[]} nums * @return {number[]} */ var productExceptSelf = function(nums) { let left = [] left[0] = 1; let right = [] right[nums.len ...
分类:
编程语言 时间:
2020-06-15 23:13:07
阅读次数:
63
前情提要 CsI 闪烁体晶体+PD+前放输出信号满足: $U(t) = \frac{N_f\tau_p}{\tau_p-\tau_f} \left[ e^{-\frac{t}{\tau_p}}-e^{-\frac{t}{\tau_f}} \right] + \frac{N_s\tau_p}{\tau ...
分类:
编程语言 时间:
2020-06-15 22:43:47
阅读次数:
63
在编译代码时,查询语法必须转换未针对.net CLR的方法调用。这些方法调用会调用标准查询运算符(名称未Where、Select、GroupBy、Join、Max和Average等),也就是表达式查询最终会变成扩展方法查询,只不过表达式查询看起来更明了,更加符合SQL语句的习惯;我习惯使用SQL语句... ...
分类:
其他好文 时间:
2020-06-15 21:22:50
阅读次数:
70
基本思想 与flink流的join原理不同的是,Spark双流join是对俩个流做满外连接 ,因为网络延迟等关系,不能保证每个窗口中的数据key都能匹配上,这样势必会出现三种情况:(some,some),(None,some),(Some,None),根据这三种情况,下面做一下详细解析: (some ...
分类:
其他好文 时间:
2020-06-15 21:21:14
阅读次数:
156