048. Basic Math

Codeforces
IDCF10269048
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
Your 5 year old cousin needs your help with some basic math. Write a program for him to do addition and subtraction. The one and only line that you will be given is a math equation that uses addition and subtraction. Print the following "(original equation) = (answer)". ## Input The one and only line that you will be given is a math equation that uses addition and subtraction. ## Output Print the following "(original equation) = (answer)". [samples]
Let $E$ be a string representing a mathematical expression consisting of non-negative integers and the operators $+$ and $-$, with no parentheses or whitespace. Let $S$ be the value of $E$ evaluated left-to-right with standard arithmetic addition and subtraction. Output: $E = S$
API Response (JSON)
{
  "problem": {
    "name": "048. Basic Math",
    "description": {
      "content": "Your 5 year old cousin needs your help with some basic math. Write a program for him to do addition and subtraction. The one and only line that you will be given is a math equation that uses addition",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269048"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Your 5 year old cousin needs your help with some basic math. Write a program for him to do addition and subtraction.\n\nThe one and only line that you will be given is a math equation that uses addition...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "Let $E$ be a string representing a mathematical expression consisting of non-negative integers and the operators $+$ and $-$, with no parentheses or whitespace.\n\nLet $S$ be the value of $E$ evaluated ...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments