030. World Cup (Easier Version)

Codeforces
IDCF10269030
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
While watching the world cup, you wonder how many points your team has in the group stage. Recall that during the group stage teams are awarded three points for a win, one point for a tie, and zero points for a loss. For this problem, figure out how many group stage points your team has based on their record (wins, losses, and ties). The only line of input contains three integers separated by hyphens (-). Each of these values represents how many wins, losses, and ties your team has had so far during the group stage, respectively. Output a single integer _p_: the number of group stage points that your team currently has. ## Input The only line of input contains three integers separated by hyphens (-). Each of these values represents how many wins, losses, and ties your team has had so far during the group stage, respectively. ## Output Output a single integer _p_: the number of group stage points that your team currently has. [samples]
**Definitions** Let $ w, d, l \in \mathbb{Z}_{\geq 0} $ denote the number of wins, draws (ties), and losses, respectively. **Constraints** The input is a triple $ (w, d, l) $, where each value is a non-negative integer. **Objective** Compute the total points $ p $: $$ p = 3w + 1d + 0l $$
API Response (JSON)
{
  "problem": {
    "name": "030. World Cup (Easier Version)",
    "description": {
      "content": "While watching the world cup, you wonder how many points your team has in the group stage. Recall that during the group stage teams are awarded three points for a win, one point for a tie, and zero po",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269030"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "While watching the world cup, you wonder how many points your team has in the group stage. Recall that during the group stage teams are awarded three points for a win, one point for a tie, and zero po...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ w, d, l \\in \\mathbb{Z}_{\\geq 0} $ denote the number of wins, draws (ties), and losses, respectively.\n\n**Constraints**  \nThe input is a triple $ (w, d, l) $, where each value is...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments