Post History
Bash, 205 bytes for s in C{C{CC,D,M},DC,MC} {CM,DC,D}{D,M} I{C,D,I{II,V,X},L,M,VI,X{C,I,L,V,X}} L{C,D,L,M,XC,XL} MMMM V{C,D,IV,IX,L,M,V,X} X{C{C,D,L,M,X},D,LX,M,X{C,L,XX}} do echo $1|grep -q $s...
Answer
#1: Initial revision
# [Bash], 205 bytes <!-- language-all: lang-bash --> <pre><code>for s in C{C{CC,D,M},DC,MC} {CM,DC,D}{D,M} I{C,D,I{II,V,X},L,M,VI,X{C,I,L,V,X}} L{C,D,L,M,XC,XL} MMMM V{C,D,IV,IX,L,M,V,X} X{C{C,D,L,M,X},D,LX,M,X{C,L,XX}} do echo $1|grep -q $s&&echo $s&&exit done echo T </code></pre> The golfing is done mostly in the list of 50 strings. Other than that, the code is pretty straightforward, with the only additional golfing being the removal of unnecessary whitespace and use of a single-letter variable name. [Try it online!][TIO-ly1vrj7j] [Bash]: https://www.gnu.org/software/bash/ [TIO-ly1vrj7j]: https://tio.run/##NY09DsMwCIX3nIIhykSHngEvSGarLNb@pE2WpE06VHJ9dhcSFZbHx3twOa9Drfd5gRXGCShbEwaUgoFQqEAmcRlKdgqcfc2ZGRNqwYiCiVENsw3OCsTN5Csl1FhArCDt0YSse8y8oP7xby4u1JWxiGq3mtsM/XWYoT1@H0v/hMML2rXrdubiM77NNPXNhk5NrTUEYVYlIQok8gM "Bash – Try It Online"