"uoj179" 输入为线性规划标准形式 $$max \; z = \sum\limits_{j = 1}^{n}c_jx_j$$ $$ \left\{ \begin{aligned} \sum\limits_{j = 1}^{n}a_{ij}x_j = b_j \quad i \in [1,m] ...
分类:
其他好文 时间:
2018-06-30 17:44:39
阅读次数:
177
"https://www.hackerrank.com/contests/w31/challenges/colliding circles/problem" 设E(n)为序列长度为n时的期望值。 $$ \begin{aligned} E(n 1)=&E(n)+\frac1{n\choose2}\su ...
分类:
其他好文 时间:
2018-06-28 20:44:15
阅读次数:
141
justify content: how the flex items will be aligned along main axis options: flex start | flex end | center | space between | space around | space eve ...
分类:
Web程序 时间:
2018-06-21 19:42:36
阅读次数:
196
TablesAreCool I’m an inline-style link right-aligned $1600 col 2 is centered $12 zebra stripes are neat $1 ...
分类:
其他好文 时间:
2018-06-19 14:04:43
阅读次数:
117
https://stackoverflow.com/questions/19733447/bootstrap-navbar-with-left-center-or-right-aligned-items https://stackoverflow.com/questions/41513463/boo ...
分类:
编程语言 时间:
2018-06-18 01:11:49
阅读次数:
193
理论部分不解释了, 就是粘个实验课的代码,按照书上的算法写的,仅仅是把课本上的样例过了,有bug可能难免,欢迎指出。 Sample 1. $$ \left\{\begin{aligned}min z = 5x_1+21x_3\\s.t.\,\,x_1-x_2+6x_3-x_4=2 \\x_1+x_2 ...
分类:
其他好文 时间:
2018-06-06 12:36:50
阅读次数:
171
题目链接 "BZOJ3533" 题解 我们设询问的向量为$(x_0,y_0)$,参与乘积的向量为$(x,y)$ 则有 $$ \begin{aligned} ans &= x_0x + y_0y \\ y &= \frac{x_0}{y_0}x + \frac{ans}{y_0} \\ \end{al ...
分类:
其他好文 时间:
2018-05-20 20:07:33
阅读次数:
178
转自:https://www.cnblogs.com/ransn/p/5081198.html 一、概念 对齐跟数据在内存中的位置有关。如果一个变量的内存地址正好位于它长度的整数倍,他就被称做自然对齐。比如在32位cpu下,假设一个整型变量的地址为0x00000004,那它就是自然对齐的。 二、为什 ...
分类:
编程语言 时间:
2018-04-05 14:36:04
阅读次数:
235
比对 The raw Drop-seq data was processed with the standard pipeline (Drop-seq tools version 1.12 from McCarroll laboratory). Reads were aligned to the E ...
分类:
其他好文 时间:
2018-03-26 13:08:54
阅读次数:
237
上一篇blog已经讲了单调队列与单调栈的用法,本篇将讲述如何借助单调队列优化dp。 我先丢一道题:bzoj1855 此题不难想出O(n^4)做法,我们用f[i][j]表示第i天手中持有j只股票时,所赚钱的最大值。 不难推出以下式子: $f[i][j]=max\left\{\begin{aligned ...
分类:
其他好文 时间:
2018-03-03 11:01:26
阅读次数:
162