当前位置:网站首页>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
边栏推荐
- Advanced C language - pointer 2 - knowledge points sorting
- Interesting 10 CMD commands
- C # basic knowledge (2)
- Gossip about redis source code 78
- AI Challenger 2018 text mining competition related solutions and code summary
- Schematic diagram of crystal oscillator clock and PCB Design Guide
- 想请教一下,十大劵商如何开户?在线开户是安全么?
- Alibaba cloud container service differentiation SLO hybrid technology practice
- Zipper table in data warehouse (compressed storage)
- [CSDN Q & A] experience and suggestions
猜你喜欢

EPF: a fuzzy testing framework for network protocols based on evolution, protocol awareness and coverage guidance

Vscode regular match replace console log(.*)
![[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections](/img/c6/3dc7d01600f6713afdbb4cf3df5238.jpg)
[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections

Investment demand and income forecast report of China's building ceramics industry, 2022-2028

Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028

Entropy and full connection layer
![[Happy Valentine's day]](/img/d9/9280398eb64907a567df6eea772adb.jpg)
[Happy Valentine's day] "I still like you very much, like sin ² a+cos ² A consistent "(white code in the attached table)
![P3371 [template] single source shortest path (weakened version)](/img/c5/bcb22e1ea573253005e56ebbd73bb7.jpg)
P3371 [template] single source shortest path (weakened version)

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

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
随机推荐
How to write a good title of 10w+?
No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
网上的低佣金链接安全吗?招商证券怎么开户?
Analysis of refrigeration and air conditioning equipment operation in 2022 and examination question bank of refrigeration and air conditioning equipment operation
Gossip about redis source code 74
P3371 [template] single source shortest path (weakened version)
Test the influence of influent swacth on the electromagnetic coil of quartz meter
Is the low commission link on the internet safe? How to open an account for China Merchants Securities?
IO flow principle and classification
2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) simulated examination and Guangdong Provincial Safety Officer a certificate third batch (main person in charg
Gossip about redis source code 81
股票開戶傭金最低的券商有哪些大家推薦一下,手機上開戶安全嗎
The difference between single power amplifier and dual power amplifier
Selenium library 4.5.0 keyword explanation (4)
How can I get the Commission discount of stock trading account opening? Is it safe to open an account online
I would like to ask how the top ten securities firms open accounts? Is it safe to open an account online?
Alibaba cloud container service differentiation SLO hybrid technology practice
Several ways to set up a blog locally [attach relevant software download links]
Powerful blog summary
2022 t elevator repair registration examination and the latest analysis of T elevator repair