Splitting Wheat
CodeChefOpen on judge ↗
Johnathan is a head farmer in Cape Town and he is known by his colleagues for being very polite to them and also to encourage them to work in building their respective lands. Then, if they get good yields he will reward them with wheat :) However, he knows they are all very good at Mathematics, so he decided to split the wheat evenly to all the other farmers he considers worth of receiving them,
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