Sherlock and Sushi
CodeChefOpen on judge ↗
Sherlock is in a restaurant to have some sushi with Dr. Watson. The restaurant is offering a special deal on sushi. The server presents sushi in ${n}$ plates in a particular order with each plate engraved with a character from 0 to 9. The server then explains the deal that the character on each plate starting from left to right when put together makes the bill amount. Sherlock and Dr. Watson have
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