02-SHIBU AND MATCHES
CodeChefOpen on judge ↗
Shibu Bhaiya found some matches behind the campus shop and he immediately started collecting them. The first thing Bhaiya wanted to do was to calculate his sale — the sum of A and B, where A and B is the cost of products he sold today and write it using matches. Help Shibu Bhaiya and tell him the number of matches needed to write his total sale. Digits are formed using matches in the following w
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