{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n div.illustration {\n float: right;\n padding-left: 20px;\n }\n div.illustration .illustration {\n width: 100%;\n border-radius: 4px;\n }\n pre {\n display: block;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n color: #333;\n word-break: break-all;\n word-wrap: break-word;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\n \u003cp\u003eAncay youyay eakspay igpay atinlay? (Can you speak pig\n latin?) If you can’t, here are the rules:\u003c/p\u003e\n\n \u003cul class\u003d\"itemize\"\u003e\n \u003cli\u003e\n \u003cp\u003eIf a word begins with a consonant, take all of the\n letters before the first vowel and move them to the end of\n the word, then add \u003ci class\u003d\"itshape\"\u003eay\u003c/i\u003e to the end of\n the word. Examples: \u003ci class\u003d\"itshape\"\u003epig\u003c/i\u003e \u003cspan class\u003d\"tex2jax_process\"\u003e$\\to $\u003c/span\u003e \u003ci class\u003d\"itshape\"\u003eigpay\u003c/i\u003e, \u003ci class\u003d\"itshape\"\u003ethere\u003c/i\u003e\n \u003cspan class\u003d\"tex2jax_process\"\u003e$\\to $\u003c/span\u003e \u003ci class\u003d\"itshape\"\u003eerethay\u003c/i\u003e.\u003c/p\u003e\n \u003c/li\u003e\n\n \u003cli\u003e\n \u003cp\u003eIf a word begins with a vowel (\u003ci class\u003d\"itshape\"\u003ea\u003c/i\u003e,\n \u003ci class\u003d\"itshape\"\u003ee\u003c/i\u003e, \u003ci class\u003d\"itshape\"\u003ei\u003c/i\u003e,\n \u003ci class\u003d\"itshape\"\u003eo\u003c/i\u003e, \u003ci class\u003d\"itshape\"\u003eu\u003c/i\u003e, or\n \u003ci class\u003d\"itshape\"\u003ey\u003c/i\u003e), simply add \u003ci class\u003d\"itshape\"\u003eyay\u003c/i\u003e to the end of the word. For this problem,\n \u003ci class\u003d\"itshape\"\u003ey\u003c/i\u003e is always a vowel. Examples:\n \u003ci class\u003d\"itshape\"\u003eand\u003c/i\u003e \u003cspan class\u003d\"tex2jax_process\"\u003e$\\to $\u003c/span\u003e \u003ci class\u003d\"itshape\"\u003eandyay\u003c/i\u003e, \u003ci class\u003d\"itshape\"\u003eordinary\u003c/i\u003e\n \u003cspan class\u003d\"tex2jax_process\"\u003e$\\to $\u003c/span\u003e \u003ci class\u003d\"itshape\"\u003eordinaryyay\u003c/i\u003e.\u003c/p\u003e\n \u003c/li\u003e\n \u003c/ul\u003e\n\n \u003cp\u003eAlthough there are many variants of Pig Latin (such as\n Kedelkloppersprook in Germany), for this problem we will always\n use the rules described above.\u003c/p\u003e\n\n \u003cp\u003eA friend of yours was frustrated with everyone writing in\n Pig Latin and has asked you to write a program to translate to\n Pig Latin for him. Ouldway youyay ebay osay indkay otay oday\n ityay? (Would you be so kind to do it?)\u003c/p\u003e\n\n \u003ch2\u003eInput\u003c/h2\u003e\n\n \u003cp\u003eInput consists of \u003cspan class\u003d\"tex2jax_process\"\u003e$1$\u003c/span\u003e\n to \u003cspan class\u003d\"tex2jax_process\"\u003e$4\\, 000$\u003c/span\u003e lines, ending\n at end of file. Each line contains up to \u003cspan class\u003d\"tex2jax_process\"\u003e$100$\u003c/span\u003e words, each word up to\n \u003cspan class\u003d\"tex2jax_process\"\u003e$30$\u003c/span\u003e characters long,\n using only the characters a–z (lowercase). Every word contains\n at least one vowel, and adjacent words are separated by a\n single space. No punctuation or special characters will appear\n in the input.\u003c/p\u003e\n\n \u003ch2\u003eOutput\u003c/h2\u003e\n\n \u003cp\u003eYour program should output the text translated to Pig Latin\n using the rules described above.\u003c/p\u003e\n\n \u003ch2\u003eSample 1\u003c/h2\u003e\u003cbody\u003e\u003ctable class\u003d\"vjudge_sample\"\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003ei cant speak pig latin\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eiyay antcay eakspay igpay atinlay\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/body\u003e\n\n \u003ch2\u003eSample 2\u003c/h2\u003e\u003cbody\u003e\u003ctable class\u003d\"vjudge_sample\"\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003ethe quick brown fox\njumps over the lazy dog\nand ordinary foxes\ndont jump over lazy dogs\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eethay uickqay ownbray oxfay\numpsjay overyay ethay azylay ogday\nandyay ordinaryyay oxesfay\nontday umpjay overyay azylay ogsday\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/body\u003e\n "}}]}