Restricted

AtCoder
IDabc063_a
Time2000ms
Memory256MB
Difficulty
You are given two integers $A$ and $B$ as the input. Output the value of $A + B$. However, if $A + B$ is $10$ or greater, output `error` instead. ## Constraints * $A$ and $B$ are integers. * $1 ≤ A, B ≤ 9$ ## Input Input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
6 3
Output #1
9
Input #2
6 4
Output #2
error
API Response (JSON)
{
  "problem": {
    "name": "Restricted",
    "description": {
      "content": "You are given two integers $A$ and $B$ as the input. Output the value of $A + B$. However, if $A + B$ is $10$ or greater, output `error` instead.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc063_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given two integers $A$ and $B$ as the input. Output the value of $A + B$.\nHowever, if $A + B$ is $10$ or greater, output `error` instead.\n\n## Constraints\n\n*   $A$ and $B$ are integers.\n*   $1 ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments