比赛概览
比赛信息
• 比赛链接:Codeforces Round 1042 (Div. 3)
• 时间:Aug/10/2025 22:35UTC+8
• 排名:812
• 解题数:5/8
• Rating变化:+42 (1581 → 1623)
A. Lever
link:A. Lever
time limit per test: 2 seconds
memory limit per test: 256 megabytes
题目描述
In Divergent Universe, The Lever iterates itself given two arrays $a$ and $b$ of length $n$. In each iteration, The Lever will do the following:
Choose a random index $i$ such that $a_i > b_i$. Then, decrease $a_i$ by $1$. If there does not exist such $i$, ignore this step.
...