Detailed explanation of the first round of CSP-S 2019 improvement group

⌊ \ lfloor ⌊May I no longer fail myself, miracles no longer fail miracles⌉ \rceil

⌊ \ lfloor ⌊Rainbow after the storm, CSP-J/S 2020, come on! ⌉ \rceil

Multiple choice

6.

Description:
How many different 4-digit numbers are composed of 1, 1, 2, 4, 8, 8?

Solution

Everyone doesn't want to enumerate violently, right? So I used the optimized version of enumeration to get answers faster in the examination room.

There are the following types of numbers:
1124 11241 1 2 4 type: 12 (1124, 1214, 4122, etc.)
1128 11281 1 2 8 type: 12 (1128, 1812, 8121, etc.)
1148 1148. 1 . 1 . 4 . 8 Type: 12
1188 11881 1 8 8 type: 6 pcs
1248 12481 2 4 8 type: 24
1288 12881 2 8 8 type: 12
1488 14881 4 8 8 type: 12
2488 24882 4 8 8 type: 12

Add up to 102 1021 0 2 , so I happily choose B~

8.

Description

G is a non-connected undirected graph (no heavy edges and self-loops) with 28 edges in total. How many vertices does the graph have at least?

Solution

Simple structure questions.

We construct a graph like this: first draw a graph containing 8 8Complete graph with 8 nodes, and then add an isolated point next to it.

Then not only meets the conditions, but also minimizes the number of vertices~

9.

Description

Some numbers can be inverted, such as 0, 1, and 8 upside down or themselves, 6 upside down, or 9, 9 upside down or 6, other numbers upside down do not constitute numbers. Similarly, some multiple digits can be reversed, for example, 106 is reversed to 901. Suppose the license plate of a certain city has only 5 digits, and each digit can be 0-9. How many license plates in this city are inverted and are still the original license plates, and the five digits on the license plate can be divisible by 3?

Solution

Anyway, I enumerate directly and violently in the examination room, there is nothing to say.

Guess you like

Origin blog.csdn.net/Cherrt/article/details/108955882