当前位置:网站首页>Sd6.20 summary of intensive training
Sd6.20 summary of intensive training
2022-06-21 20:12:00 【Flame*】
ok Today is not very sleepy Have a good start
I seem to have found something , I doubt whether my sleepiness is determined by the routine of today's question ( Whether the automatic body test is a routine If you don't follow the routine, help me release my sleepiness )
blame
Time arrangement
8.10-10.00
Look at the question I feel that everything is quite done obviously T1 log about T2 It's a moment product (n^3 It feels like ) T3 It should be a block (1G)
And then he pushed T1 Thought of two points + Line tree approach Feel like running log^2 It was a little dangerous, so I thought for a while But I wrote it directly
Then a test 4s dangerous
10.00-10.20
Considering that there is no repair rmq direct st Just make the watch Less seconds 1log
So I changed wildly After that, I will speed up my reading In the end 0.6s 了
10.20-11.00
Thought about it for a while T2 T3,T2 Be able to do shape pressing ,T3 Thought about it for a while Feeling nq But I have no idea
11.00-12.05
Write the shape pressure After running the data, I found that it was impossible 20 And suddenly found k=5 I didn't open the array correctly in that file .
Suddenly a daze ( The calculator is wrong ) think k=5 That one should be written separately The more you write, the more strange it becomes ( The discovery complexity is the same ) Then I did it by hand I found it unnecessary to drive alone .
Wasted my precious time ( anger
12.05-12.50
Thought about it for a while T3 The reaction can be double pointer Get a bucket cnt Just maintain the double pointer ( Move the pointer when it is illegal The length does not increase )(30
then nq You've gone too far 50)
Topic analysis
T1
Consider for a [ i ] a[i] a[i] Find the latest successor x − a [ i ] x-a[i] x−a[i]
Then it divides the controllable range
And to avoid double counting the answers You need to pay attention to the two minutes
T2
Consider the pressure dp f [ s , x ] f[s,x] f[s,x] The button set used for the expression is s s s At the moment x x x Number of alternatives be aware Because the big ones can only recover the small ones Finally, the big ones must not be recovered , So the answer must be limited , The state must also grow from small to large
then dp!
T3
Consider double pointers And then if r − 1 r-1 r−1 after The answer has become illegal So let's l + + , r + + l++,r++ l++,r++ ( Only when the interval becomes smaller can it become a better answer )
I feel that today's performance is quite regular Play normal ( even to the extent that T3 It's a little beyond my imagination )
But if it's better Maybe hope T3 It is more practical to do more ( The same is true of the list )
边栏推荐
- CloudCompare&PCL 点云点匹配(基于欧式距离)
- RPA财务流程自动化 | 浦发集团携手云扩科技加速财务数字化运营
- 机器学习之绪论
- API de table & SQL et module d'échantillon pour le système Flink
- 理财产品如果过了开放日期怎么赎回?
- [complete course of time series prediction] take temperature prediction as an example to illustrate the composition of the paper and the construction of pytorch code pipeline
- zabbix6.0+timescaledb+企业微信告警
- 播放量高达4000w+,情侣如何靠撒狗粮出圈?
- Inno setup installation path box learning
- Simple use of JS
猜你喜欢

Category

With a playback volume of up to 4000w+, how do couples get out of the ring by scattering dog food?

What statements are added to MySQL

gorm数据库是否需要设置外键

汇编语言贪吃蛇、俄罗斯方块双任务设计实现详解(三)——俄罗斯方块详细设计

Implementation of assembly language greedy snake and Tetris dual task design (II) -- detailed design of greedy snake

谷粒学院P40~43

mysql如何实现分组求和

一种简单的架构设计逻辑|得物技术
![[dry goods knowledge] redis: from the application to the bottom, one article will help you](/img/d3/084f6e69f7196d9e10c98bdfe71e1c.png)
[dry goods knowledge] redis: from the application to the bottom, one article will help you
随机推荐
Recycleview lazy load failure (II)
《安富莱嵌入式周报》第270期:2022.06.13--2022.06.19
RPA financial process automation | Shanghai Pudong Development Group and cloud expansion technology accelerate financial digital operation
2022-06-20
Inno setup installation path box learning
删除倒数第k个节点-链表专题
汇编语言贪吃蛇、俄罗斯方块双任务设计实现详解(一)——整体系统设计
[complete course of time series prediction] take temperature prediction as an example to illustrate the composition of the paper and the construction of pytorch code pipeline
开通融资融券账户安全吗?有什么要求?
Tensorflow 2: use neural network to classify and compare fashion MNIST
07_那些可以改变你认知的知识
[dry goods knowledge] redis: from the application to the bottom, one article will help you
Daily development of common tools to improve efficiency
自定义代码模板
Linux MySQL command
Gradle download and installation configuration
With a playback volume of up to 4000w+, how do couples get out of the ring by scattering dog food?
07_ Knowledge that can change your perception
1157 Anniversary
张至顺道长自述