B. Binary Cafe | Codeforces Round 878 | Full solution

Click a thumbnail to watch in a lightweight modal. (No downloads — view only.)