B. Biodiversity

Codeforces
IDCF10250B
Time3000ms
Memory256MB
Difficulty
English · Original
Formal · Original
The input consists of the following lines: *Limits* A string that appears a number of times that is greater than the sum of the others, if there is any, or the string "NONE" otherwise. ## Input The input consists of the following lines: on the first line: an integer $N$; on each of the next $N$ lines: the species of an animal as a string of length at most 20, containing only ASCII alphanumeric characters. *Limits* $1 <= N <= 2 times 10^5$. ## Output A string that appears a number of times that is greater than the sum of the others, if there is any, or the string "NONE" otherwise. [samples]
**Definitions** Let $ n \in \mathbb{Z}^+ $ be the number of friends. Let $ U = (u_1, u_2, \dots, u_n) $ be a sequence of distinct usernames, where each $ u_i \in \Sigma^* $, $ \Sigma = \{A\text{-}Z, a\text{-}z, 0\text{-}9, \_\} $, and $ 1 \leq |u_i| \leq 12 $. **Constraints** 1. $ 1 \leq n \leq 10^5 $ 2. Each $ u_i $ consists only of characters in $ \Sigma $, and $ |u_i| \in [1, 12] $ 3. All $ u_i $ are distinct. **Objective** For each $ i \in \{1, \dots, n\} $, output: $$ u_i : \text{F} $$ on a separate line, in order of increasing $ i $.
API Response (JSON)
{
  "problem": {
    "name": "B. Biodiversity",
    "description": {
      "content": "The input consists of the following lines:  *Limits*  A string that appears a number of times that is greater than the sum of the others, if there is any, or the string \"NONE\" otherwise. ",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 3000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10250B"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "The input consists of the following lines: \n\n*Limits* \n\nA string that appears a number of times that is greater than the sum of the others, if there is any, or the string \"NONE\" otherwise.\n\n## Input\n\n...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the number of friends.  \nLet $ U = (u_1, u_2, \\dots, u_n) $ be a sequence of distinct usernames, where each $ u_i \\in \\Sigma^* $, $ \\Sigma = \\{A\\text{-}...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments