当前位置:网站首页>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 !!!
边栏推荐
- Multithreading and high concurrency (III) -- source code analysis AQS principle
- What is a spin lock? A spin lock means that when a thread attempts to acquire a lock, if the lock has been occupied by other threads, it will always cycle to detect whether the lock has been released,
- es6你用过哪些惊艳的写法
- How to configure ADB environment variables (where to open environment variables)
- 浅谈WebSocket
- Generation of tables and contingency tables (cross tables) of R language factor data: use the summary function to analyze the list, view the chi square test results, and judge whether the two factor v
- Master several common sorting - Select Sorting
- jenkins
- LeetCode 0143. 重排链表
- Clickhouse架构与设计
猜你喜欢

Security assurance is based on software life cycle -istio authorization mechanism

Record a fake login of cookie

Slam thesis collection

安全保障基于软件全生命周期-Istio的授权机制

Diablo 4 ps4/ps5 beta has been added to the Playstation database

解决uniapp微信小程序canvas不能引入字体的问题

一文读懂如何部署具有外部数据库的高可用 K3s

redis哨兵机制

The strongest distributed locking tool: redisson

安全保障基于软件全生命周期-NetworkPolicy应用
随机推荐
webSocket聊天
Graph traversal (BFS & DFS basis)
【Try to Hack】HFish蜜罐部署
Four ways to create thread pools
R language Visual scatter diagram, geom using ggrep package_ text_ The repl function avoids overlapping labels between data points (add labels to specific areas of the visual image using the parameter
LeetCode 0143. 重排链表
软件测试技术之如何编写测试用例
Operator3 - design an operator
IP黑白名单
Dojp1520 gate jumping problem solution
Socket类关于TCP字符流编程的理解学习
Niuke multi school link with level editor i- (linear DP)
Generation of tables and contingency tables (cross tables) of R language factor data: use the summary function to analyze the list, view the chi square test results, and judge whether the two factor v
vite在项目中配置路径别名
Entering the world of audio and video -- flv video packaging format
MySQL开发技巧——视图
R language uses dpois function to generate Poisson distribution density data and plot function to visualize Poisson distribution density data
Jmeter安装教程及登录增加token
Clickhouse架构与设计
Diablo 4 ps4/ps5 beta has been added to the Playstation database