13. Labyrinth-13

Codeforces
IDCF92113
Time8000ms
Memory512MB
Difficulty
English · Original
Chinese · Translation
Formal · Original
See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01). [samples]
请参见此处的问题陈述:http://codeforces.com/contest/921/problem/01。 [samples]
**Definitions** Let $ t \in \mathbb{Z} $ be the number of test cases. Let $ T = \{ (n_k, a_k) \mid k \in \{1, \dots, t\} \} $ be the set of test cases, where for each $ k $: - $ n_k \in \mathbb{Z} $ is the length of the sequence. - $ a_k = (a_{k,1}, a_{k,2}, \dots, a_{k,n_k}) $ is a sequence of integers. **Constraints** 1. $ 1 \le t \le 1000 $ 2. For each $ k \in \{1, \dots, t\} $: - $ 1 \le n_k \le 50 $ - $ 1 \le a_{k,i} \le 100 $ for all $ i \in \{1, \dots, n_k\} $ **Objective** For each test case $ k $, compute the alternating sum: $$ S_k = \sum_{i=1}^{n_k} (-1)^{i-1} a_{k,i} $$
API Response (JSON)
{
  "problem": {
    "name": "13. Labyrinth-13",
    "description": {
      "content": "See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 8000,
      "memory_limit": 524288
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF92113"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "See the problem statement here: [http://codeforces.com/contest/921/problem/01](//codeforces.com/contest/921/problem/01).\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "请参见此处的问题陈述:http://codeforces.com/contest/921/problem/01。\n\n[samples]...",
      "is_translate": true,
      "language": "Chinese"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ t \\in \\mathbb{Z} $ be the number of test cases.  \nLet $ T = \\{ (n_k, a_k) \\mid k \\in \\{1, \\dots, t\\} \\} $ be the set of test cases, where for each $ k $:  \n- $ n_k \\in \\mathbb{...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments