← All problemsSign in

Freedom

CodeChefRating 1783Open on judge ↗

Eren, Mikasa, and Armin are playing a game with an array $A$ of length $N$ to get FREEDOM. Eren can select any indices $i$ and $j$ such that $1\le i\lt j\le N$. Let $a, b,$ and $c$ denote the points of Eren, Mikasa, and Armin respectively, where: - $a = A_i - A_j$ - $b = A_i + A_j$ - $c = A_i \times A_j$ Eren, Mikasa and Armin will get FREEDOM if the values of $a, b,$ and $c$ form an [arithme

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