当前位置:网站首页>7.6 simulation summary
7.6 simulation summary
2022-07-07 01:22:00 【Flame*】
Goo Goo Goo
I thought a car of people would pass
Because of the average 170+
I was a bit surprised
Time arrangement
7.30-9.00
Look at the question Feeling T1 Obviously, pressure T2 Almost 50 T3 It's just n^2 I thought about it for a long time. T2 What else do you do It feels monotonous But I didn't catch the idea
Call first T2 violence
9.00-10.00
It doesn't feel good Thought for a while T3 No idea
And then I hit T3 The violence of
10.00-10.40
I hit T1 The violence of Thought about it for a while Think T1 Is there any mysterious practice in the second gear of ( Because it's a picture ) It feels like a tree dp That smell But not very good
10.40-12.00
Recall T1 In response, the monotonicity of decision-making can be cut in blocks
Then try to recall how to maintain interval inverse ordinal numbers Here I made a mistake Because I heard it before noi That question I think the inverse number of intervals is very complex ( In fact, the field is pushed out ) After pushing it out, I still feel a little unclear, so ( Because noi That question has both range and range limits )
Finally, there is not enough time ( There's nothing left 20 minute ) Just check the question
Topic analysis
T1
f [ S , o p 1 , p o s , o p 2 ] f[S,op1,pos,op2] f[S,op1,pos,op2] The status of the current point is S S S Whether the status at the end is o p 1 op1 op1 At point p o s pos pos On The state of the last side is o p 2 op2 op2
Consider the transfer according to the situation
Normal analog transfer
o p 1 = 0 op1=0 op1=0 When I arrived at a marked point : You can consider turning to o p 1 = 1 op1=1 op1=1 Plus contribution
o p 1 = 1 op1=1 op1=1 Enumerate a mark point that has not been passed as a new starting point Simultaneous direction o p 2 = 1 / 0 op2=1/0 op2=1/0 Transfer
It seems that I am better at making pressure dp One o'clock
T2
f [ i ] f[i] f[i] It means that the last paragraph is divided into i i i The minimum cost of
It can be noted that The price is the inverse sequence of intervals Then consider filling in each number Different positions in front From small to large The increased value is not increased Form like 5554444321111... 5 5 5 4 4 4 4 3 2 1 1 1 1... 5554444321111...( The position where the value changes is a larger number )
Then you can n 2 n^2 n2 do
Based on this property It can be proved that the decision is monotonous
So there is n l o g n n nlogn~\sqrt n nlogn n Decision monotonicity nested block approach
upd
The exact solution is cdq Monotonicity of nested divide and conquer decision + Similar to Mo team method Maintain two pointers Violent jump interval reverse order pair
The reason why we need cdq Set it up Because the monotony of divide and conquer decision requires that there is no dependence between the contents And this depends So pass cdq Divide and conquer to get the front dp value
T3
This is really not I just want to n^2 Or sprinkle some
边栏推荐
猜你喜欢
"Exquisite store manager" youth entrepreneurship incubation camp - the first phase of Shunde market has been successfully completed!
Wood extraction in Halcon
ClickHouse字段分组聚合、按照任意时间段粒度查询SQL
Lldp compatible CDP function configuration
云呐|工单管理办法,如何开展工单管理
UI控件Telerik UI for WinForms新主题——VS2022启发式主题
Dark horse notes - exception handling
子网划分、构造超网 典型题
[case sharing] basic function configuration of network loop detection
如何管理分布式团队?
随机推荐
【芯片方案设计】脉搏血氧仪
Boot - Prometheus push gateway use
golang中的atomic,以及CAS操作
THREE.AxesHelper is not a constructor
Data type of pytorch tensor
第三方跳转网站 出现 405 Method Not Allowed
Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman
实现mysql与ES的增量数据同步
Neon Optimization: About Cross access and reverse cross access
负载均衡性能参数如何测评?
Failed to successfully launch or connect to a child MSBuild. exe process. Verify that the MSBuild. exe
安利一波C2工具
Meet in the middle
736. Lisp 语法解析 : DFS 模拟题
安全保护能力是什么意思?等保不同级别保护能力分别是怎样?
Add the applet "lazycodeloading": "requiredcomponents" in taro,
LLDP兼容CDP功能配置
剑指 Offer II 035. 最小时间差-快速排序加数据转换
Taro applet enables wxml code compression
C语言实例_5