C. Pig Latin

Codeforces
IDCF10188C
Time1000ms
Memory64MB
Difficulty
https://en.wikipedia.org/wiki/Pig_Latin Pig Latin is a secret language which is similar to English. To convert an English word to Pig Latin, take the first letter of that word, move it to the end, and then add "ay". Peccy and Danbo are two Amazon mascots. They like sending each other messages over Amazon Chime, but they've realised that their messages are unencrypted! Help Peccy and Danbo encrypt their messages by converting them into Pig Latin. Make sure to check the examples. The first line will contain an integer T, where T is the number of sentences given. Each sentence will be on a new line and will not contain punctuation. However, they will be capitalised at the beginning (but not anywhere else). Make sure you check the examples given. A list of sentences in Pig Latin. Each sentence should be on a new line and should not contain punctuation, but it should start with a capital letter. #cf_span(class=[tex-font-style-underline], body=[Constraints]): 1 ≤ T ≤ 20 Each sentence will not contain punctuation and will be all lowercase English characters, except for the very first letter of the very first word, which will be an uppercase English character. ## Input The first line will contain an integer T, where T is the number of sentences given. Each sentence will be on a new line and will not contain punctuation. However, they will be capitalised at the beginning (but not anywhere else). Make sure you check the examples given. ## Output A list of sentences in Pig Latin. Each sentence should be on a new line and should not contain punctuation, but it should start with a capital letter. [samples] ## Note #cf_span(class=[tex-font-style-underline], body=[Constraints]):1 ≤ T ≤ 20Each sentence will not contain punctuation and will be all lowercase English characters, except for the very first letter of the very first word, which will be an uppercase English character.
API Response (JSON)
{
  "problem": {
    "name": "C. Pig Latin",
    "description": {
      "content": "https://en.wikipedia.org/wiki/Pig_Latin Pig Latin is a secret language which is similar to English. To convert an English word to Pig Latin, take the first letter of that word, move it to the end, an",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 65536
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10188C"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "https://en.wikipedia.org/wiki/Pig_Latin\n\nPig Latin is a secret language which is similar to English. To convert an English word to Pig Latin, take the first letter of that word, move it to the end, an...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments