Putting Boxes Together 二分找到分界点, 左边的往右移, 右边的往左移。 其实把a[ i ] - i 之后就变成了移到一个点, 然后我维护移到一个线段都要维护自闭了。 ...
分类:
编程语言 时间:
2019-05-15 00:39:33
阅读次数:
143
#include #include #include #include #include #include #include #include #include #include #define REP(i,a,n) for(int i=a;i=a;--i) #define hr putchar(1... ...
分类:
其他好文 时间:
2019-04-23 09:15:19
阅读次数:
148
In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents now putting on the des ...
分类:
其他好文 时间:
2019-02-09 10:47:20
阅读次数:
111
http://codeforces.com/blog/entry/62013 两个结论: 1.一定有一个箱子不用动。 2.不动的箱子一定是加权前缀和为S/2的那个。 1显然,2由1易得。 于是问题变为:求一段区间前缀和>S/2的第一个数的位置。显然先求出S/2,再线段树上二分即可,实现过程见代码。 ...
分类:
其他好文 时间:
2019-02-04 12:45:41
阅读次数:
178
Putting it bluntly, virtualization is deception. (坦白说,虚拟化就是欺骗) 1.虚拟技术带来的好处与问题 随着21世纪,信息时代的步伐加快,一些基础设施遭到了虚拟机服务器、虚拟网络、虚拟存储、虚拟设备和其他的“虚拟技术”的逆袭,从而带来不少好处同时也 ...
分类:
其他好文 时间:
2018-12-17 20:16:15
阅读次数:
245
F. Putting Boxes Together time limit per test 2.5 seconds memory limit per test 256 megabytes input standard input output standard output F. Putting B ...
分类:
编程语言 时间:
2018-10-03 00:26:18
阅读次数:
195
使用模版的时候,出错:Puttingacontextvariablewithname"param"isforbiddenmodel.addAttribute("param","hello,springbootthymeleaf");规定了关键字,param不能作为参数传递出去;model.addAttribute("paraddd","hello,springbootthymeleaf");
分类:
编程语言 时间:
2017-08-25 17:40:12
阅读次数:
181
I'm putting together a script that has a requirement of knowing libmysqlclient.so.[15|16|18] .so file. It's usually located in /usr/lib/ , /usr/lib64/ ...
分类:
数据库 时间:
2017-08-10 19:50:27
阅读次数:
213
CHAPTER1 A Look at Functional Programming History CHAPTER2 Putting Functional Programming into a Modern Context CHAPTER3 Functions,Delegates,and Lambd ...
高盛白皮书 http://www.the-blockchain.com/docs/Goldman-Sachs-report-Blockchain-Putting-Theory-into-Practice.pdf ...
分类:
其他好文 时间:
2016-12-08 09:29:22
阅读次数:
1025