当前位置:网站首页>7.27 simulation summary
7.27 simulation summary
2022-07-28 14:11:00 【Flame*】
Mirs spread their wings on the edge of breaking their mentality again
Find yourself having a problem : Last game was average -> This one is eager to make a high and unreasonable score on a certain problem -> Occupy a reasonable time for other questions -> Send
And it seems that there is a strange bias at the beginning of the competition )
There are also official competitions I especially don't want to do the parenthesis sequence when saving the election ) I especially want to do it seriously for a while I didn't even feel sleepy today )
And it seems that the reliance on the examples given by the topic is too strong )
today T2 Hang up 25 T3 Hang up 20
A particularly bad place :
T1 After making it up for a long time, it was still violent
T2 Reasons for scoring : Modulo on index should be modulo phi(x)
Time arrangement
8.30-9.30
Look at the question T1 Tree form dp T2 I feel I can divide and conquer by root sign T3 Don't understand, ( When you see the brackets, you start to look big
Thought about it for a while T1 I don't know if it's true dp But complexity n 5 n^5 n5 about And I feel that the space cannot be opened
9.30-11.10
Write T2 Test sample after writing Find that the sample can start to print the table
At the same time, it optimizes
And sort it out T2 Table of Stuck in 12kb
11.10-11.40
Write T3 The violence of
11.40-12.10
Write T1 The violence of
Topic analysis
T1
I feel I can move the edge right to the point right Difference from bottom to top Then consider A pair of chains x , y x,y x,y The operation of
If x x x yes y y y Our ancestors x x x spot -1 y y y +1
set up lca by z z z , z z z-2 , x x x+1 y y y+1
The last difference array and dp Arrays are equal
f [ x , i , j , k ] f[x,i,j,k] f[x,i,j,k] Indication point x x x In the subtree Yes i i i Points up and no matching left point j j j Points up and no matching right point k k k The number of schemes when there are no matching points around
Two points can be considered when transferring x x x by lca perhaps x x x Merged with the following point
( I don't know Not written ) I don't know the complexity GA ) Should be n^3?
upd
The clam can't live I ordered violence for a long time Finally, I found that when I ordered violence, I deduced the positive solution )
g [ x , w ] g[x,w] g[x,w] It means that x x x There are w w w Number of schemes of color blocks
Then the difference between positive solution and violence is
Violence enumerates the color blocks represented by the father side How many left and right
The positive solution is to put it directly into the tree backpack and do it together
My violence is that I don't need to be a tree backpack But the discovery will be 3344 In this way hack Then I looked at the code and suddenly realized )
honestly Someone really wrote it 60 Do you
I feel as long as I notice the tree backpack It is very obvious to convert the father side Consider the father's request to have one on each side So the number of voids is less Let's remove the left and right and leave v v v individual Merge x x x individual So the solution is C v + 1 x C_{v+1}^{x} Cv+1x Nothing else changes
T2
Consider less than 80 When Only 2 3 5 7 , So these numbers are stored in the status Other binary maintenance
T3
The practice of examination is too sloppy ) The feeling is that the brackets match the questions of the series Simulation game / I didn't take the exam too much, and then I felt numb at first sight ) I feel very bad
Correct method of violence : Consider putting all operations on the stack and simulating ) Be sure to simulate that bracket !!!
边栏推荐
- leetcode(442)数组中重复的数据
- jenkins
- 83. (cesium home) how the cesium example works
- Multi level cache scheme
- 离散对数问题(DLP) && Diffie-Hellman问题(DHP)
- 关于栈的理解以及实际应用场景
- Understanding of "image denoising using an improved generic advantageous network with Wasserstein distance"
- 创建线程池的四种方式
- VOS3000如何呼入送到OKCC
- Duplicate data in leetcode (442) array
猜你喜欢

MVC模型:日历系统

如何有效进行回顾会议(上)?

Istio四之故障注入和链路追踪

Qt5 development from introduction to mastery -- the first overview

Algorithm --- different paths (kotlin)

修订版 | 目标检测:速度和准确性比较(Faster R-CNN,R-FCN,SSD,FPN,RetinaNet和YOLOv3)...
![[lvgl events] Application of events on different components (I)](/img/a8/7c24e68f3506bbef3c2e922729471c.png)
[lvgl events] Application of events on different components (I)

Istio IV fault injection and link tracking

Multithreading and high concurrency (III) -- source code analysis AQS principle

安全保障基于软件全生命周期-NetworkPolicy应用
随机推荐
离散对数问题(DLP) && Diffie-Hellman问题(DHP)
Docker deploys Mysql to realize remote connection [easy to understand]
R language uses dpois function to generate Poisson distribution density data and plot function to visualize Poisson distribution density data
【Utils】FastDFS工具类
LeetCode 0142.环形链表 II
了解BFC特性,轻松实现自适应布局
盘点操作URL中常用的几个高效API
Socket class understanding and learning about TCP character stream programming
[util] redis tool class: change the value serializer of redis to genericjackson2jsonredisserializer, and the return value can be object or collection
Duplicate data in leetcode (442) array
掌握常见的几种排序-选择排序
牛客多校-Link with Level Edito I-(线性dp)
DXF读写:标注样式组码中文说明
Thoroughly master binary search
[basic course of flight control development 7] crazy shell · open source formation UAV SPI (barometer data acquisition)
jenkins
regular expression
Clickhouse分布式集群搭建
Entering the world of audio and video -- flv video packaging format
MySQL开发技巧——视图