# Choosing Cats Estimated time limit: 0.5 seconds. Memory limit: 128 MB. On the target judge, use twice the largest per-case median runtime of the reference program, rounded up to a multiple of $0.5$ seconds. See the [reference environment](../../../docs/评测环境与性能.md). ## Story A cat enthusiast wants to choose a fixed number of cats from a numbered list. Each cat has a score. The selected cats keep their number order, and earlier selections receive greater weights. ## Formal Problem Statement There are $n$ cats, and cat $i$ has score $v_i$ . Select exactly $k$ distinct indices, written in increasing order as $i_1