- 博客(27)
- 资源 (2)
- 收藏
- 关注
原创 基于 Astro 与 Directus 的新时代 JAMStack 博客实践
Incremental Build 虽然有,但只支持本地 Markdown 文件,只要打开增量构建,Remote Content 会直接消失。果然是非常 Experimental 的 Feature 啊。默认没有异步构建,或者说默认的 Concurrent Number 为 1,导致如果你的 Single Page Build 过程中有阻塞工作,总构建时长就会非常令人感叹。开放的 API 感觉缺了不少东西,比如说缺少为使用者提供的 Cache API 之类的,只能自己脏脏地乱写。
2024-11-03 01:22:00
1035
原创 4 Empirical Properties of Limit Order Books
可以发现即使在相当远的位置也有许多的流动性,同时,在 small-tick stocks 上可以观察到强烈的 round-number effects:大家比较喜欢挂单在整数上。在 small-tick stocks 中,有更多的挂单会选择挂在 Spread 上,这可能是因为很多时候 spread 相对较大。此外,也有可能有许多交易者选择在流动性好的时候进行交易,从而进一步促成了交易的聚集。当然,要注意,这里的 Volume Profile 是平均值,那么在一个 snapshot 的分布究竟是怎么样的呢?
2024-11-02 22:40:48
1047
原创 2 The Statistics of Price Changes
金融市场的 Random Walk Model 以及 stylized facts. 阅读 Trades, Quotes and Prices 的第二章。数学,统计学,机器学习,人们总是用各种各样的办法研究金融市场。
2024-11-01 17:36:31
909
原创 Docker 自建 Registry
如果你需要保存自己的镜像,但又不想直接公开出来,那么可以选择自建 Registry.如果想要加速国内访问,可以选择自建 Docker Proxy,或者使用本文发表于需要把我自己打包的 image 部署出来,自建一个 registry.登录上就行了。Done.之后就可以用 来登录了。
2024-10-30 21:20:18
278
原创 [LuoguP1203][USACO1.1]P1203 Broken Necklace
Solution这道题数据规模奇小,因此大部分人都使用了暴力搜索的方法,这也是我一开始的想法。对于 100100%100 的数据,3≤n≤3503≤n≤3503≤n≤350的确可以如此,但暴力搜索的方法也需要进行一些奇怪的判断,因此我又决定直接打dp的解法,其实dp也是很自然的一种想法……Dynamic Programming我们可以发现,每个点向左向右,取蓝色取红色能连续取的个数一...
2019-12-31 20:23:12
212
原创 [LuoguP1025][数据加强]数的划分
原题连接:Click加强数据:ClickSolution参考博客:Click题目意思非常明确了,这是一道组合数学的题目。我就直接讲dp解法了。dp题意可以转化为将nnn个苹果放进kkk个盒子里,并且不允许空盒。设f[i][j]f[i][j]f[i][j]代表将iii个苹果放入jjj个盒子中,那么我们用解决这类问题的常用方法来分析:我们必须先保证每个盒子非空,因此在iii个苹果中...
2019-12-26 17:46:42
217
原创 [Codeforces #608 div2]1271D Portals
DescriptionYou play a strategic video game (yeah, we ran out of good problem legends). In this game you control a large army, and your goal is to conquer nnn castles of your opponent.Let’s describe ...
2019-12-17 16:33:45
577
原创 [Codeforces #608 div2]1271C Shawarma Tent
DescriptionThe map of the capital of Berland can be viewed on the infinite coordinate plane. Each point with integer coordinates contains a building, and there are streets connecting every building t...
2019-12-17 15:16:16
459
原创 [Codeforces #608 div2]1272B Blocks
DescriptionThere are nnn blocks arranged in a row and numbered from left to right, starting from one. Each block is either black or white.You may perform the following operation zero or more times: ...
2019-12-17 14:51:06
382
原创 [Codeforces #608 div2]1271A Suits
DescriptionA new delivery of clothing has arrived today to the clothing store. This delivery consists of aaa ties,bbb scarves,ccc vests and ddd jackets.The store does not sell single clothing items ...
2019-12-17 12:53:29
320
原创 [Luogu][P2458] [SDOI2006]保安站岗
题目链接看起来似乎跟最小点覆盖有点像。但区别在于:最小点覆盖要求所有边在其中,而本题要求所有点在其中。即:一个点不选时,它的儿子不一定需要全选。画图理解:对于这样一幅图,本题中可以这样选择:3,53,53,5:333将相邻的点2,42,42,4覆盖,而555将相邻的点1,61,61,6覆盖,因此所有点都被覆盖了。那么就必须修改状态了。Dynamic Programing考虑对于...
2019-12-13 14:01:08
235
原创 [U53204] 树上背包的优化
题目链接本文旨在介绍树上背包的优化。可见例题,例题中N,M∈[1,100000]N,M \in [1,100000]N,M∈[1,100000]的数据量让O(nm2)O(nm^2)O(nm2)的朴素树上背包T到飞起,我们需要考虑优化。个人会将各种优化讲到极限(当然是本蒟蒻的极限)。根据一番学习,我也认为上下界优化最简单易理解……上下界优化这位神犇的博客相当不错了:戳我%他我也口胡两句吧...
2019-12-12 22:14:00
718
1
原创 [Codeforces] #603 (Div. 2) A-E题解
[Codeforces]1263A Sweet Problem[Codeforces]1263B PIN Code[Codeforces]1263C Everyone is a Winner![Codeforces]1263D Secret Passwords[Codeforces]1263E Editor
2019-12-04 17:32:22
187
原创 [Codeforces]1263E Editor
The development of a text editor is a hard problem. You need to implement an extra module for brackets coloring in text.Your editor consists of a line with infinite length and cursor, which points to...
2019-12-04 17:28:52
459
原创 [Codeforces]1263D Secret Passwords
题目One unknown hacker wants to get the admin’s password of AtForces testing system, to get problems from the next contest. To achieve that, he sneaked into the administrator’s office and stole a piece...
2019-12-04 17:16:39
302
原创 [Codeforces]1263C Everyone is a Winner!
题目On the well-known testing system MathForces, a draw of nnn rating units is arranged. The rating will be distributed according to the following algorithm: if kkk participants take part in this event...
2019-12-04 16:58:09
535
原创 [Codeforces]1263B PIN Code
题目A PIN code is a string that consists of exactly 444 digits. Examples of possible PIN codes: 701370137013, 000000000000 and 099009900990. Please note that the PIN code can begin with any digit, even...
2019-12-04 16:16:52
303
原创 [CodeForces]1263A Sweet Problem
题目链接题目描述You have three piles of candies: red, green and blue candies:the first pile contains only red candies and there are rrr candies in it,the second pile contains only green candies and there ...
2019-12-03 22:01:47
347
原创 [洛谷Luogu]P1141 01迷宫[联通块 并查集]
题目链接大致题意相邻格子不同为连通,计算每个点所在的连通块大小。想法我采用了并查集的做法。开一个辅助数组记录连通块大小,每次合并的时候更新父亲节点的大小即可。一个点先与它上面的点判定,若判定连通则加入上方点所属的块中。再与左边的点判定,若连通则再将两个块合并。总体复杂度O(n3)O(n^3)O(n3),其中并查集不加优化复杂度为O(n)O(n)O(n),使用路径压缩+按节点大小...
2019-11-28 17:35:48
295
原创 [洛谷Luogu]P1803 线段覆盖问题
贪心想法题解的各位dalaodalaodalao都讲得很清楚了,在下就提供一种桶排的做法吧。因为给出数据范围0≤ai<bi≤10000000≤ai<bi≤10000000≤ai<bi≤1000000可以想到使用桶排的方式优化。即从快排的O(nlogn)O(nlogn)O(nlogn)的复杂度降低到了O(n)O(n)O(n)的复杂度。需要考虑的问题快排是依照右端点直接排序后遍历所有线段,因...
2019-11-27 16:06:30
234
原创 [JZOJ]3413.KC的瓷器
DescriptionKC来到了一个盛产瓷器的国度。他来到了一位商人的店铺。在这个店铺中,KC看到了一个有n(1<=n<=100)排的柜子,每排都有一些瓷器,每排不超过100个。那些精美的艺术品使KC一下心动了,决定从N排的商品中买下m(1<=m<=10000)个瓷器。这个商人看KC的脸上长满了痘子,就像苔藓一样,跟精美的瓷器相比相差太多,认为这么精致的艺术品被这样的...
2019-10-31 22:06:44
202
原创 [JZOI]1251.收费站[二分][最短路]
Description在某个遥远的国家里,有n个城市。编号为1,2,3,……,n。 这个国家的政府修建了m条双向的公路。每条公路连接着两个城市。沿着某条公路,开车从一个城市到另一个城市,需要花费一定的汽油。开车每经过一个城市,都会被收取一定的费用(包括起点和终点城市)。所有的收费站都在城市中,在城市间的公路上没有任何的收费站。小红现在要开车从城市u到城市v(1<=u,v<=n)...
2019-10-31 21:20:22
243
LLVM-9.0.0-win64.zip
2019-11-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人