Crochet planning

Input

Single or multiple lines containing the characters granny Mary used to represent each type of stich. When reading a ’#’ it will mean the end of the sequence.

Output

Amount of yarn required in cm.

Problem information

Author: HP CodeWars

Generation: 2026-01-25T14:15:50.164Z

© Jutge.org, 2006–2026.
https://jutge.org