Crochet planning X20288


Statement
 

pdf   zip

html

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.

Public test cases
  • Input

    o+T
    #
    

    Output

    4.5
    
  • Input

    oT++T
    T+ooo
    #
    

    Output

    14.5
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C++ Python
    User solutions
    C++ Haskell Java Python Rust