当前位置:网站首页>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
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
Therefore, the difference between the two maintenance items is found , Make del[i]=dp[i]-dp[i-1]
And found that del You can deduce
So because dp[k]=k,dp It can also be deduced
边栏推荐
- C # basic knowledge (2)
- 股票開戶傭金最低的券商有哪些大家推薦一下,手機上開戶安全嗎
- Subgraph isomorphism -subgraph isomorphism
- [PHP basics] cookie basics, application case code and attack and defense
- 炒股開戶傭金優惠怎麼才能獲得,網上開戶安全嗎
- Sword finger offer day 4 (Sword finger offer 03. duplicate numbers in the array, sword finger offer 53 - I. find the number I in the sorted array, and the missing numbers in sword finger offer 53 - ii
- 2020.2.14
- [leetcode] interview question 17.08 Circus tower
- Les sociétés de valeurs mobilières dont la Commission d'ouverture d'un compte d'actions est la plus faible ont ce que tout le monde recommande.
- [MySQL] classification of multi table queries
猜你喜欢
I wrote a chat software with timeout connect function
Briefly understand the operation mode of developing NFT platform
A method to solve Bert long text matching
Current detection circuit - including op amp current scheme
Introducing Software Testing
STM32 GPIO CSDN creative punch in
A treasure open source software, cross platform terminal artifact tabby
2/14 (regular expression, sed streaming editor)
Zipper table in data warehouse (compressed storage)
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
随机推荐
Investment demand and income forecast report of China's building ceramics industry, 2022-2028
2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
Actual combat | use composite material 3 in application
What is the Valentine's Day gift given by the operator to the product?
Gossip about redis source code 83
Pandaoxi's video
Social network analysis -social network analysis
2022.02.13
Regular expressions and text processors for shell programming
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
网上的低佣金链接安全吗?招商证券怎么开户?
Zipper table in data warehouse (compressed storage)
2/14 (regular expression, sed streaming editor)
P1339 [USACO09OCT]Heat Wave G
Correlation analysis summary
How to make recv have a little temper?
Idea integrates Microsoft TFs plug-in
No qualifying bean of type ‘com. netflix. discovery. AbstractDiscoveryClientOptionalArgs<?>‘ available
The interviewer's biggest lie to deceive you, bypassing three years of less struggle
[2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections