Back to Cosmos

Problem Link:

code/online_challenges/src/codechef/MATCHES/README.md

latest534 B
Original Source

Problem Link:

MATCHES

Description

Chef's son Chefu found some matches in the kitchen and he immediately starting playing with them.

The first thing Chefu wanted to do was to calculate the result of his homework — the sum of A and B, and write it using matches. Help Chefu and tell him the number of matches needed to write the result.

Digits are formed using matches in the following way: