P4170-[CQOI2007]涂色 题目: 题目描述: 假设你有一条长度为 $5$ 的木版,初始时没有涂过任何颜色。你希望把它的 $5$ 个单位长度分别涂上红、
P3146-[USACO16OPEN]248 G 题目: 题目描述: Bessie likes downloading games to play on her cell phone, even though she doesfind the small touch screen rather cumbersome to use with her large hooves. She is particularly intrigued by the current game she is playing. The game starts with a sequence of $N$ positive integers ($2 \leq N\leq 248$), each in the range $1 \ldots 40$. In one
P4158-[SCOI2009]粉刷匠 题目: 题目描述: windy 有 N 条木板需要被粉刷。 每条木板被分为 M 个格子。 每个格子要被刷成红色或蓝色。 windy 每次粉刷
CF260E-Dividing Kingdom 题目: 题目描述: A country called Flatland is an infinite two-dimensional plane. Flatland has $ n $ cities, each of them is a point on the plane. Flatland is ruled by king Circle IV. Circle IV has 9 sons. He wants to give each of his sons part of Flatland to rule. For that, he wants to draw four distinct straight lines, such
P1351-联合权值 题目: 题目描述: 无向连通图 $G$ 有 $n$ 个点,$n-1$ 条边。点从 $1$ 到 $n$ 依次编号, 编号为 $i$ 的点的权值为 $W_i$,每条边的长度均
P1967-货车运输 题目: 题目描述: A 国有 $n$ 座城市,编号从 $1 $ 到 $ n$,城市之间有 $m$ 条双向道路。每一条道路对车辆都有重量限制,简称限重。 现在