Luffy and Zoro
CodeChefOpen on judge ↗
Luffy and Zoro are notorious pirates. They are infamous throughout Grand Line. One day they robbed Bank of Mariejois and looted a lot of beli (currency). this currency has different denominations. They want to divide the money in best possible way, so that difference in their shares is least. Help them and print the difference, otherwise they will fight. Input The first line of the input conta
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