TLD

AtCoder
IDabc339_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ consisting of lowercase English letters and the character `.`. Print the last substring when $S$ is split by `.`s. In other words, print the longest suffix of $S$ that does not contain `.`. ## Constraints * $S$ is a string of length between $2$ and $100$, inclusive, consisting of lowercase English letters and `.`. * $S$ contains at least one `.`. * $S$ does not end with `.`. ## Input The input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
atcoder.jp
Output #1
jp

The longest suffix of `atcoder.jp` that does not contain `.` is `jp`.
Input #2
translate.google.com
Output #2
com

$S$ may contain multiple `.`s.
Input #3
.z
Output #3
z

$S$ may start with `.`.
Input #4
..........txt
Output #4
txt

$S$ may contain consecutive `.`s.
API Response (JSON)
{
  "problem": {
    "name": "TLD",
    "description": {
      "content": "You are given a string $S$ consisting of lowercase English letters and the character `.`.   Print the last substring when $S$ is split by `.`s.   In other words, print the longest suffix of $S$ that d",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc339_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ consisting of lowercase English letters and the character `.`.  \nPrint the last substring when $S$ is split by `.`s.  \nIn other words, print the longest suffix of $S$ that d...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments