EVM Hacking
There are three cities and thus three EVMs. An insider told Chef that his party got $A, B, C$ votes respectively in these three cities according to the EVMs. Also, the total number of votes cast are $P, Q, R$ respectively for the three cities. Chef, being the party leader, can hack **at most** one EVM so that his party wins. On hacking a particular EVM all the votes cast in that EVM are counted
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