跳至主要內容
Codeforces Round 895 (Div. 3)

A. Two Vessels

题目翻译

你有两个装有水的容器。第一个容器含有aa克水,第二个容器含有bb克水。这两艘船都非常大,可以容纳任意数量的水。


全民制作人ikun大约 14 分钟AlgorithmCodeforcesAlgorithmCodeforcesdiv3
Codeforces Round 891 (Div. 3)

Codeforces Round 891 (Div. 3)

A. Array Coloring

题目

给你一个由nn个整数组成的数组。您的任务是确定是否可以将其所有元素着色为两种颜色,使得两种颜色的元素之和具有相同的奇偶性,并且每种颜色至少有一个元素着色。


全民制作人ikun大约 12 分钟AlgorithmCodeforcesAlgorithmCodeforcesdiv3
Codeforces Round 883 (Div. 3)

Codeforces Round 883 (Div. 3)

链接:https://codeforces.com/contest/1846

A. Rudolph and Cut the Rope

There are nn nails driven into the wall, the ii-th nail is driven aia_i meters above the ground, one end of the bib_i meters long rope is tied to it. All nails hang at different heights one above the other. One candy is tied to all ropes at once. Candy is tied to end of a rope that is not tied to a nail.


全民制作人ikun大约 18 分钟AlgorithmCodeforcesAlgorithmCodeforcesdiv3