ReLU

AtCoder
IDabc183_a
Time2000ms
Memory256MB
Difficulty
The function ReLU is defined as follows:[](ReLU(x) = \begin{cases} x & (x \geqq 0) \ 0 & (x < 0) \ \end{cases}) ![image](https://img.atcoder.jp/ghi/relu.png) Given an integer $x$, find $ReLU(x)$. ## Constraints * $x$ is an integer. * $-10 \leq x \leq 10$ ## Input Input is given from Standard Input in the following format: $x$ [samples]
Samples
Input #1
1
Output #1
1

We have $1 \geq 0$, so $ReLU(1) = 1$.
Input #2
0
Output #2
0
Input #3
\-1
Output #3
0
API Response (JSON)
{
  "problem": {
    "name": "ReLU",
    "description": {
      "content": "The function ReLU is defined as follows:[](ReLU(x) =         \\begin{cases}             x & (x \\geqq 0) \\             0 & (x < 0) \\         \\end{cases}) ![image](https://img.atcoder.jp/ghi/relu.png) Gi",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc183_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "The function ReLU is defined as follows:[](ReLU(x) =\n        \\begin{cases}\n            x & (x \\geqq 0) \\\n            0 & (x < 0) \\\n        \\end{cases})\n![image](https://img.atcoder.jp/ghi/relu.png)\nGi...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments