005. Fizz Buzz

Codeforces
IDCF10269005
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
Take in a number from 1 through 1000, print _Fizz_ if the number is divisible by 3, print _Buzz_ if the number is divisible by 5, or _FizzBuzz_ if the number is divisible by both. If none of these conditions are true, print nothing The only line of input contains a single positive integer N between 1 and 1000 inclusively _Fizz_, _Buzz_, _FizzBuzz_, or nothing ## Input The only line of input contains a single positive integer N between 1 and 1000 inclusively ## Output _Fizz_, _Buzz_, _FizzBuzz_, or nothing [samples]
**Definitions** Let $ N \in \mathbb{Z} $, with $ 1 \leq N \leq 1000 $. **Constraints** $ 1 \leq N \leq 1000 $ **Objective** Output: $$ \begin{cases} \text{Fizz} & \text{if } 3 \mid N \text{ and } 5 \nmid N \\ \text{Buzz} & \text{if } 5 \mid N \text{ and } 3 \nmid N \\ \text{FizzBuzz} & \text{if } 3 \mid N \text{ and } 5 \mid N \\ \text{nothing} & \text{otherwise} \end{cases} $$
API Response (JSON)
{
  "problem": {
    "name": "005. Fizz Buzz",
    "description": {
      "content": "Take in a number from 1 through 1000, print _Fizz_ if the number is divisible by 3, print _Buzz_ if the number is divisible by 5, or _FizzBuzz_ if the number is divisible by both. If none of these con",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269005"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Take in a number from 1 through 1000, print _Fizz_ if the number is divisible by 3, print _Buzz_ if the number is divisible by 5, or _FizzBuzz_ if the number is divisible by both. If none of these con...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ N \\in \\mathbb{Z} $, with $ 1 \\leq N \\leq 1000 $.\n\n**Constraints**  \n$ 1 \\leq N \\leq 1000 $\n\n**Objective**  \nOutput:  \n$$\n\\begin{cases}\n\\text{Fizz} & \\text{if } 3 \\mid N \\text{ ...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments