当前位置:网站首页>Joint examination of six provinces 2017
Joint examination of six provinces 2017
2022-07-03 23:59:00 【hungry1234】
Sushi restaurant
Maximum weighted closed subgraph
Because the weight of each point is calculated only once , Consider transforming it into a graph
Map each section [l,r] towards [l+1,r] And [l,r-1] Even the edge , The point weight is the interval delicious value , Every interval [i,i] The point weight is the interval delicious value -c, Finally, each kind of sushi is connected to the point representing this kind of sushi , The point is m*id^2
In this picture , Selected a point , We must choose the successor of this point , Maximize point weight
Is the maximal weighted closed subgraph
Connect the punctual weight node with S Connecting edges means selecting this point , Negative point weight node and T Edge building means that this point is not selected , In order to meet the conditions, we need to let S,T Disconnected , The minimum cut is enough
final exam
Maintain the prefix and number of students at a certain time , Greater than the prefix sum of a certain time , Less than the prefix sum of a certain time , Enumeration is enough
Combinatorial number problem

all ik+r stay modk Congruence in the sense of , Therefore, it is considered that f[i][j] Express election i Items in modk The remainder is j The answer
Every time you choose or not , so ![f[i][j]=f[i-1][(j-1)%k]+f[i-1][j]](http://img.inotgo.com/imagesLocal/202202/14/202202142034430821_4.gif)
Matrix optimization times recursion can
Meeting is greeting
1. Extend Euler's theorem

The establishment condition is k>m
2. Power of light speed
In index a And modulus mod In the same case , Let the maximum modulus be b, Preprocessing a Of 1-√b Result of the power , In pretreatment k*√b(k<=√b) Result , You can find it directly every time
seek 
You know , The maximum number of changes per location √mod Time , Because after that mod=1 The following result is 0, Save this √mod The second answer
It is found that the base number is c, But the modulus will change , But the number of modules is very small , Preprocess the power of light speed of each module , You can query directly every time
Segment tree is used to maintain interval and , Every time you make a change, make a violent change to every point , Because there will be no edge after a certain number of modifications
Break up is a wish
probability dp, Find the best pull x This state can represent all situations of playing , Order dp[x] Indicates the optimal pull x After the second pull
Yes
, It means if you choose the right , The minimum number of times is x-1, otherwise x+1
Make x=n, Yes ![dp[n]=dp[n-1]+1](http://img.inotgo.com/imagesLocal/202202/14/202202142034430821_0.gif)
Therefore, the difference between the two maintenance items is found , Make del[i]=dp[i]-dp[i-1]
![dp[x]=\frac{x}{n}(dp[x]-del[x])+\frac{n-x}{n}(dp[x]+del[x+1])+1](http://img.inotgo.com/imagesLocal/202202/14/202202142034430821_2.gif)
And found that del You can deduce
So because dp[k]=k,dp It can also be deduced
边栏推荐
- A method to solve Bert long text matching
- D24:divisor and multiple (divisor and multiple, translation + solution)
- Common mode interference of EMC
- Cgb2201 preparatory class evening self-study and lecture content
- Gossip about redis source code 79
- "Learning notes" recursive & recursive
- 2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
- Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
- Live app source code, jump to links outside the station or jump to pages inside the platform
- FPGA tutorial and Allegro tutorial - link
猜你喜欢

Analysis on the scale of China's smart health industry and prediction report on the investment trend of the 14th five year plan 2022-2028 Edition

Current detection circuit - including op amp current scheme

Yyds dry goods inventory three JS source code interpretation - getobjectbyproperty method

Similarities and differences of text similarity between Jaccard and cosine

How to make icons easily

Tencent interview: can you find the number of 1 in binary?

Fluent learning (4) listview

"Learning notes" recursive & recursive

2022 t elevator repair registration examination and the latest analysis of T elevator repair

I wrote a chat software with timeout connect function
随机推荐
Enter MySQL in docker container by command under Linux
股票开户最低佣金炒股开户免费,网上开户安全吗
How to make recv have a little temper?
Private project practice sharing populate joint query in mongoose makes the template unable to render - solve the error message: syntaxerror: unexpected token r in JSON at
Selenium library 4.5.0 keyword explanation (4)
Idea a method for starting multiple instances of a service
Selenium check box
Is the low commission link on the internet safe? How to open an account for China Merchants Securities?
D30:color tunnels (color tunnels, translation)
[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections
2020.2.14
The upload experience version of uniapp wechat applet enters the blank page for the first time, and the page data can be seen only after it is refreshed again
[source code] VB6 chat robot
Open 2022 efficient office, starting from project management
Fudan 961 review
Gossip about redis source code 78
A treasure open source software, cross platform terminal artifact tabby
Axure resources and prototype tool Axure RP 9 download
Entropy and full connection layer
What is the difference between NFT, SFT and dnft? How to build NFT platform applications?