Codeforces Round 687 (Div. 1, based on Technocup 2021 Elimination Round 2)
Solutions for Codeforces Round 687 (Div. 1, based on Technocup 2021 Elimination Round 2) (contest 1456). 0/1 problems verified against sample I/O. Difficulty range: 3500-3500.
Codeforces Round 687 (Div. 1, based on Technocup 2021 Elimination Round 2)
Type: Div. 1 | Problems: 1 | Verified: 0/1 | Rating range: 3500-3500 | Time: 1m 51s
| Problem | Name | Rating | Tags | Solve Time | Verified |
|---|---|---|---|---|---|
| E | XOR-ranges | 3500 | dp, greedy | 1m 51s | ✗ |
Practice
›
Codeforces Solutions
›
Codeforces Round 687 (Div. 1, based on Technocup 2021 Elimination Round 2)
›
CF 1456E - XOR-ranges
We are asked to construct an array of length $n$ such that each element lies within a given segment $[li, ri]$ and the sum of costs of consecutive XOR differences is minimized. Each number $x$ has a cost defined by its set bits: the $i$-th bit contributes $ci$ to the cost.