ABC Conjecture 3
You are given a string $S$ of length $N$, containing only the characters `a`, `b`, and `c`. In one move, you can modify $S$ as follows: - Choose three indices $i, j, k$ ($1 \leq i \lt j \lt k \leq |S|$) such that $S_i = \texttt{a}, S_j = \texttt{b}, S_k = \texttt{c}$. That is, choose some [subsequence](https://en.wikipedia.org/wiki/Subsequence) of $S$ that equals `abc`. - Then, delete either th
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start