当前位置:网站首页>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
边栏推荐
- 云呐|工单管理软件,工单管理软件APP
- Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
- NEON优化:性能优化经验总结
- Data type of pytorch tensor
- 【信号与系统】
- 系统休眠文件可以删除吗 系统休眠文件怎么删除
- THREE.AxesHelper is not a constructor
- The cost of returning tables in MySQL
- Let's see through the network i/o model from beginning to end
- [signal and system]
猜你喜欢

免费白嫖的图床对比

AI 从代码中自动生成注释文档

Force buckle 1037 Effective boomerang

阿里云中mysql数据库被攻击了,最终数据找回来了

线段树(SegmentTree)

Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which

界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?

pytorch之数据类型tensor

UI control telerik UI for WinForms new theme - vs2022 heuristic theme

JTAG principle of arm bare board debugging
随机推荐
NEON优化:矩阵转置的指令优化案例
线段树(SegmentTree)
分享一个通用的so动态库的编译方法
系统休眠文件可以删除吗 系统休眠文件怎么删除
Pytorch中torch和torchvision的安装
There is an error in the paddehub application
树莓派/arm设备上安装火狐Firefox浏览器
云呐|工单管理办法,如何开展工单管理
Taro2.* applet configuration sharing wechat circle of friends
【C语言进阶篇】指针的8道笔试题
负载均衡性能参数如何测评?
[HFCTF2020]BabyUpload session解析引擎
Implementation principle of waitgroup in golang
Gazebo的安装&与ROS的连接
数据手册中的词汇
Neon Optimization: performance optimization FAQ QA
免费白嫖的图床对比
The difference between spin and sleep
让我们,从头到尾,通透网络I/O模型
golang中的atomic,以及CAS操作