011. Ski Sum

Codeforces
IDCF10269011
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
Your favorite ski resort has a certain number of easy trails, more difficult trails, most difficult trails, and expert-only trails. Given these values, find how many trails there are at the ski resort. Note that the same trail will never be two different difficulties. The only line of input contains 4 space-separated integers, each representing the number of easy trails, more difficult trails, most difficult trails, and expert-only trails, respectively. Print one positive integer: the total number of ski trails at the mountain. ## Input The only line of input contains 4 space-separated integers, each representing the number of easy trails, more difficult trails, most difficult trails, and expert-only trails, respectively. ## Output Print one positive integer: the total number of ski trails at the mountain. [samples]
**Definitions** Let $ e, d, m, x \in \mathbb{Z}_{\geq 0} $ denote the number of easy, more difficult, most difficult, and expert-only trails, respectively. **Constraints** The input consists of four non-negative integers: $ e, d, m, x \geq 0 $. **Objective** Compute the total number of trails: $$ T = e + d + m + x $$
API Response (JSON)
{
  "problem": {
    "name": "011. Ski Sum",
    "description": {
      "content": "Your favorite ski resort has a certain number of easy trails, more difficult trails, most difficult trails, and expert-only trails. Given these values, find how many trails there are at the ski resort",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269011"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Your favorite ski resort has a certain number of easy trails, more difficult trails, most difficult trails, and expert-only trails. Given these values, find how many trails there are at the ski resort...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ e, d, m, x \\in \\mathbb{Z}_{\\geq 0} $ denote the number of easy, more difficult, most difficult, and expert-only trails, respectively.\n\n**Constraints**  \nThe input consists of f...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments