A. Adding Two Integers

Codeforces
IDCF10206A
Time1000ms
Memory64MB
Difficulty
English · Original
Formal · Original
Given two integers (a and b), get their sum: There will be one line with two integers given, a and b, separated by spaces. You should return the integer sum of a and b, sum. #cf_span(class=[tex-font-style-underline], body=[Constraints]):  - 1, 000, 000, 000 ≤ a ≤ 1, 000, 000, 000  - 1, 000, 000, 000 ≤ b ≤ 1, 000, 000, 000  - 2, 000, 000, 000 ≤ sum ≤ 2, 000, 000, 000 ## Input There will be one line with two integers given, a and b, separated by spaces. ## Output You should return the integer sum of a and b, sum. [samples] ## Note #cf_span(class=[tex-font-style-underline], body=[Constraints]): - 1, 000, 000, 000 ≤ a ≤ 1, 000, 000, 000 - 1, 000, 000, 000 ≤ b ≤ 1, 000, 000, 000 - 2, 000, 000, 000 ≤ sum ≤ 2, 000, 000, 000
**Definitions** Let $ a, b \in \mathbb{Z} $ be two integers. **Constraints** 1. $ -1{,}000{,}000{,}000 \leq a \leq 1{,}000{,}000{,}000 $ 2. $ -1{,}000{,}000{,}000 \leq b \leq 1{,}000{,}000{,}000 $ 3. $ -2{,}000{,}000{,}000 \leq a + b \leq 2{,}000{,}000{,}000 $ **Objective** Compute $ s = a + b $.
API Response (JSON)
{
  "problem": {
    "name": "A. Adding Two Integers",
    "description": {
      "content": "Given two integers (a and b), get their sum: There will be one line with two integers given, a and b, separated by spaces. You should return the integer sum of a and b, sum.  #cf_span(class=[tex-fo",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 65536
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10206A"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given two integers (a and b), get their sum:\n\nThere will be one line with two integers given, a and b, separated by spaces.\n\nYou should return the integer sum of a and b, sum. \n\n#cf_span(class=[tex-fo...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ a, b \\in \\mathbb{Z} $ be two integers.\n\n**Constraints**  \n1. $ -1{,}000{,}000{,}000 \\leq a \\leq 1{,}000{,}000{,}000 $  \n2. $ -1{,}000{,}000{,}000 \\leq b \\leq 1{,}000{,}000{,}00...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments