← All problemsSign in

Digit Operation

CodeChefRating 1798Open on judge ↗

You are given arrays $A$ and $B$, each consisting of $N$ **strings**, and a positive integer $K$. For all $1\le i \le N$, both $A_i$ and $B_i$ consist of characters from $0$ to $9$ (both inclusive). You can perform the following types of operations on array $A$: - Type $1$: Choose two indices $i$ and $j$ $(i\neq j)$ and swap any character of $A_i$ with any character of $A_j$. The cost of this o

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start