LaunchpadHash maps

L3: Orbit Tally

Orimovo's traffic desk logs every craft that passes the workshop. Each row of your input is day,callsign: a day of December (1 to 24) and a call sign made of three capital letters followed by a three-digit serial number, such as RDR417.

Find the call sign that appears in the most rows (your log has exactly one such sign). Multiply its serial number by the number of rows it appears in. For example:

1,RDR417
1,SNO201
2,RDR417
2,RDR417
3,SNO201
3,GFT555
4,TRE008
4,TRE008

RDR417 appears in 3 rows, more than any other, so the answer is 417 × 3 = 1251.

What do you get for the busiest call sign in your log?