Score: Difficulty/Quality
Problem A. Adjacent Product Sum
Scoring: ;
Sort from largest to smallest, with answers shaped like: .
Problem B. Binary Arrays and Sliding Sums
Score: ;
Assume that is a group that divides the ring into groups. Call the corresponding positions within a group identical (i.e., all or all ) to be of the same class of bits.
We find that two are identical if different classes of bits are identical and there are the same number of similar bits. We conclude that the above case must also be satisfied for two to be identical (since we can infer from that the difference between two numbers with neighboring differences).
We enumerate the number of similar bits, and the answer can be calculated. You need to apply some basic combinatorial constants to the solution.
Problem C. Counting Hamiltonian Cycles
Score: ;
Consider that has been passed through at least once. where denotes the number of in , i.e., .
Maintaining the current set of chains from front to back, then consider the effect of adding a :
- If , then it is equivalent to one more chain.
- If , it is equivalent to being able to receive either the head or the tail of the current chain.
- If , then it is equivalent to letting the two chains fit together.
Considering an undirected graph would introduce some duplication, so consider a directed graph, and answer .
Problem D. Distance Parities
Score: ;
Join the edges of . Determine if for each there exists a such that that is.
Problem E. Excellent XOR Problem
Score: ;
If the overall is not it is done.
Otherwise, judging whether a prefix-suffix can be divided is done.
Problem F. F*** 3-Colorable Graphs
Score: ;
Connect at least two edges. (Otherwise if there is only one , coloring to color , the left part of the original graph to color , and the right part to color does not satisfy) We only need to construct .
If there exists and then it can be solved times.
Otherwise, since there is necessarily a chain of connectivity, it can be solved times.
Problem G. Graph Problem With Small
Score: ;
Suppose denotes the set of possible final endpoints starting from and having passed the set of points . The complexity of finding directly is .
Consider the Hamiltonian of , then enumerating the set of points for , should be . This is equivalent to asking if there are two sets of that merge into . We can do by putting it in bitset.
Problem H. Help Me to Get This Published
Rating: ;
Thesis Question.
The side staining of a first heterochromatic triangle is called:** Gray staining**. The sufficient property about the heterochromatic degree of Gry’s staining was only unearthed through this question. Thanks to Anton Trygub.
[Property 1] In Glay staining, if the number of colors , there must be a disjunctive graph of color sheets.
The proof is simple and left to the reader.
Assume later that color is disjoint and that is any connected branch of . Assume below that denotes the color of the edge.
[Property 2] In Glay coloring, suppose , then .
Proof: if because (otherwise ) then it follows that . Since is a connected branch of , the conclusion holds.
[Property 3] In Glay coloring, .
PROOF: Generalize to if is obvious.
If there are only fewer than or equal to colors in the graph, then .
If there are more than or equal to colors in the graph, then by [Property 1], take and assume that is the number of distinct numbers in (), then:
- If is reduced to a point, by induction there is: .
- If we look only inside , by induction: .
So:
Proof.
Assume below that .
[Property 4] In Glay coloring if there exists , then ().
Proof: it is clear that
[Property 5] For any there are:
This is a sufficient condition for the sequence of Gladius numbers to be legal.
Proof: Notice that the number of different colors of edges to cannot exceed , and it is sufficient to use [Conclusion 3] for subgraphs of .
The construction is roughly the same as staining the grays, pulling out any , cloning to an , and then adjusting the color between can be done to one of the two:
- ;
- .
In this problem, dp is designed according to Property 5, and denotes the current number of points enumerated to , the points already used, and the current number of programs for . Can do .
Problem I. Increasing Grid
Scoring: ;
Clearly , we label the former red and the latter blue, then for the partition line dp that is.
Problem J. Jewel of Data Structure Problems
Score: ;
Notice that the answers are between .
- If the current permutation is , then the answer is ;
- If the current permutation is legal, the answer is ;
- If everyone’s contribution to the reverse-ordered pair is even, the answer is ;
- Otherwise the answer is .
The parity of a reverse-order pair is equivalent to the parity of , where is the number of cycles of .
The parity of each individual’s contribution to the reverse-ordered pair is the parity of .
This allows for linearity.
Problem K. King of Swapping
Score: ;
Legitimate equivalence to the original graph strong connectivity.
Problem L. Least Annoying Constructive Problem.
Score: ;
If is even, then it is sufficient to construct perfect matches as in .
If is odd, it is also correct to isolate a point for perfect matching.
Problem M. Most Annoying Constructive Problem
Score: ;
The problem is, as the name suggests, annoying.
It can be shown that there are more than non-trivial even segments.
Then it’s followed by an inductive construction, which I don’t quite understand.
Problem N. No Zero-Sum Subsegment
Score: ;
A very annoying question.
Consider prefix sums, equivalent to jumps in the direction, requiring a scheme that cannot pass through duplicate points.
Consider how you can depart:
- Depart using pieces of , pieces of , and pieces of ;
- Use pieces of , pieces of , and pieces of .
The same thing happens at the end.
The middle walk is necessarily:
- ;
- ;
- ;
These combinations can be counted quickly by combining numbers.
We just need to enumerate roughly cases to do the math.
Complexity: .