How much of each year do spiders killing insects? Why, you may wonder, should spiders be our friends? Because they destroy so many insects, and insect ...
分类:
其他好文 时间:
2020-02-08 17:49:56
阅读次数:
83
Codeforces Round 605(Div3)A~E A. Three Friends 题意: + 给三个数$a,b,c$,对每一个数字可以进行一次操作,加一减一或者不变。 + 求三个数两两组合的差值绝对值的最小值。 思路: + 先排个序。 + 假设排序后三个数从小到大是$a,b,c$。 + ...
分类:
其他好文 时间:
2020-01-31 19:17:05
阅读次数:
81
问题描述:原来在2.2版本中使用autofac作为注入时的管理容器,现在要升级到3.1版本,遇到了很多的问题,各种解析不了。。。 解决方案:最后因为水平太low就放弃了,改用微软自带的容器管理,改造过程中也遇到了一些问题 1、注册顺序需要注意,尤其是有依赖关系的;还有就是注册类型,静态的不能引用会话 ...
分类:
Web程序 时间:
2020-01-27 23:29:49
阅读次数:
238
Oh, New Year. The time to gather all your friends and reflect on the heartwarming events of the past year... nn friends live in a city which can be re ...
分类:
其他好文 时间:
2020-01-22 13:02:12
阅读次数:
59
A. Eating Souptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output The three friends, Kuro, Shiro, an ...
分类:
其他好文 时间:
2020-01-21 23:39:58
阅读次数:
90
There are nn friends who want to give gifts for the New Year to each other. Each friend should give exactly one gift and receive exactly one gift. The ...
分类:
其他好文 时间:
2020-01-21 13:24:12
阅读次数:
49
"题目" 显然SAM版题,写它的原因就是我太颓了;之后学习了一下正规的广义SAM写法,争取以后不再写 代码 ...
分类:
其他好文 时间:
2020-01-20 23:09:16
阅读次数:
125
Besides the ordinary Boy Friend and Girl Friend, here we define a more academic kind of friend: Prime Friend. We call a nonnegative integer A is the i ...
分类:
其他好文 时间:
2020-01-15 12:15:50
阅读次数:
108
"题面" "英文题面" 题解: 由于要统计字符串在某一串中的出现情况,不难想到用线段树合并。 对所有串建立广义SAM,然后拓扑排序,沿着link边向上合并即可。 每次查询,只需保存每个串终止位置的节点编号,在线段树上查询。 注意建立广义SAM时不能简单地把last设为1,还要注意不能每次都新加节点, ...
分类:
其他好文 时间:
2020-01-14 09:58:49
阅读次数:
79
A. Three Friends "题目链接" 题目大意 给你三个数$a,b,c$,每个数可以选择向左,向右或者原地不动,求$\min \left(\left|a b\right|+\left|a c\right|+\left|b c\right|\right)的值$ 解题思路 1. 先按定义求出答 ...
分类:
其他好文 时间:
2020-01-13 19:38:05
阅读次数:
50