A Very Easy Question
CodeChefOpen on judge ↗
Campus election is happening at Chef's college and Chef is responsible for counting the votes. There are $N$ students contesting election and they are given ID numbers from $1$ to $N$. In chef's college only professors are allowed to vote and the professors are fond of ranges so instead of voting for one student they give $x$ points for a range of students. There are $M$ professors and each pick a
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