Back
Close
  • 51

Statement

 Goal

A friend of yours has decided to turn the months into a base-12 system. She has given you a list of numbers to add together. Note that each month is shortened to it's first 3 letter.
Jan=January
Feb=February
Mar=March
Apr=April
May=May
Jun=June
Jul=July
Aug=August
Sep=September
Oct=October
Nov=November
Dec=December
Input
Line 1: Number of dates N
Next N Lines: String M in base 12.
Output
The sum of the input numbers (In base-12 form of course).
Example
Input
2
FebSepDec
JunMarJan
Output
JulNovDec
Solve it

A higher resolution is required to access the IDE

codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants