← All problemsSign in

Parliament

CodeChefRating 419Open on judge ↗

An important resolution is being discussed in the Parliament of Chefland. There are $N$ members present in the Parliament out of which $X$ members voted in favour of the resolution and the remaining voted against it. According to the constitution of Chefland, a resolution is passed if and only if half or more than half the members present in the Parliament vote in favour of the resolution. Deter

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