Trophy or Hearts
CodeChefOpen on judge ↗
Royal Challengers Bangalore aka RCB needs only 26 runs to win the finale match. Their fans cannot wait for the innings to finish so they want you to predict how many runs the current batsman who is last will make which will decide whether RCB will win the trophy or just hearts this year. The fans are having two strings of equal length and the runs made by the batsman will be the number of distinc
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