Ashvant and his girlfriends
CodeChefOpen on judge ↗
Ashvant is a cool guy with lot of girlfriends. Since valentines day is nearing he wishes to visit one of his girlfriends who is currently at a different city. So he decides to travel by bus and in meantime he was thinking about gifting her. He thought of gifting something unique. He had THREE types of very rare stones(type1, type2, type3). He had many stones in each type. These are very rare st
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