当前位置:网站首页>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
边栏推荐
- THREE. AxesHelper is not a constructor
- Taro 小程序开启wxml代码压缩
- 身体质量指数程序,入门写死的小程序项目
- Dark horse notes - create immutable sets and streams
- mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
- Deep learning framework TF installation
- Gazebo的安装&与ROS的连接
- Pytorch中torch和torchvision的安装
- HMM 笔记
- ARM裸板调试之JTAG原理
猜你喜欢
[case sharing] basic function configuration of network loop detection
Boot - Prometheus push gateway use
pytorch之数据类型tensor
Wood extraction in Halcon
移植DAC芯片MCP4725驱动到NUC980
Lldp compatible CDP function configuration
boot - prometheus-push gateway 使用
UI控件Telerik UI for WinForms新主题——VS2022启发式主题
[hfctf2020]babyupload session parsing engine
【C语言进阶篇】指针的8道笔试题
随机推荐
【案例分享】网络环路检测基本功能配置
Install Firefox browser on raspberry pie /arm device
SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
boot - prometheus-push gateway 使用
Segmenttree
UI control telerik UI for WinForms new theme - vs2022 heuristic theme
Analysis of mutex principle in golang
Openjudge noi 1.7 08: character substitution
7.6模拟赛总结
Spark TPCDS Data Gen
[HFCTF2020]BabyUpload session解析引擎
Google发布安全更新,修复Chrome中已被利用的0 day
HMM 笔记
机器学习:随机梯度下降(SGD)与梯度下降(GD)的区别与代码实现。
Docker method to install MySQL
Failed to successfully launch or connect to a child MSBuild. exe process. Verify that the MSBuild. exe
1123. 最深叶节点的最近公共祖先
JTAG principle of arm bare board debugging
Metauniverse urban legend 02: metaphor of the number one player
Supersocket 1.6 creates a simple socket server with message length in the header