Tarea
Su tarea es convertir un texto en ortografía medieval.
Detalles
jse convierte aiyJparaI.uyUal comienzo de las palabras se convierten envyVrespectivamente.vyVen cualquier lugar excepto el comienzo de las palabras se convierten enuyUrespectivamente.sse convierte aſ(U + 017F) a menos que al final de la palabra o precedido por otros.
Especificaciones
- Una palabra se define como una secuencia de letras en
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. - Todas las palabras tendrán al menos dos letras.
- La entrada solo consistirá en caracteres ASCII imprimibles (U + 0020 - U + 007E).
- No habrá ocurrencias de más de dos consecutivas
s. Es decir,sssno será una subcadena de la entrada.
Casos de prueba
Palabras individuales:
Input Output
------------------------
Joy Ioy
joy ioy
Universe Vniuerſe
universe vniuerſe
Success Succeſs
successfull ſucceſsfull
Supervise Superuiſe
supervise ſuperuiſe
Super-vise Super-viſe
I've I've
majors maiors
UNIVERSE VNIUERSE
0universe 0vniuerſe
0verify 0verify
I0ve I0ve
_UU_ _VU_
_VV_ _VU_
ss_ ſs_
Párrafo entero:
Input: Christian Reader, I have for thy use collected this small Concordance, with no small labour. For being to comprise much in little roome, I was to make choyse of the most principall and usefull places, and to rank them under such words as I thought most essentiall and materiall in the sentence, because the scant roome allotted unto me, would not permit that I should expresse them under every word in the verse, as it is the manner in large Concordances.
Output: Chriſtian Reader, I haue for thy vſe collected this ſmall Concordance, with no ſmall labour. For being to compriſe much in little roome, I was to make choyſe of the moſt principall and vſefull places, and to rank them vnder ſuch words as I thought moſt eſsentiall and materiall in the ſentence, becauſe the ſcant roome allotted vnto me, would not permit that I ſhould expreſse them vnder euery word in the verſe, as it is the manner in large Concordances.
El hash SHA-256 de la salida del último caso de prueba es:
5641899e7d55e6d1fc6e9aa4804f2710e883146bac0e757308afc58521621644
Descargo de responsabilidad
La ortografía de Medievall no es tan constante. Por favor, no complayne si usted ve libros antiguos con una ortografía diferente.
ſcomo 1 byte?
Super-viseconvertirse Super-viſe?