摘要:
题目传送门 codeforces 洛谷 题面 For an array of integers $[a_1, a_2, \dots, a_n]$, let's call the value $|a_1-a_2|+|a_2-a_3|+\cdots+|a_{n-1}-a_n|$ the contrast 阅读全文
摘要:
题目传送门 codeforces 洛谷 题面 Alice and Bob are playing a game. They have an array $a_1, a_2,\ldots,a_n$. The game consists of two steps: First, Alice will r 阅读全文
摘要:
题目传送门 codeforces 洛谷 题面 There are $n$ cities located on the number line, the $i$\-th city is in the point $a_i$. The coordinates of the cities are give 阅读全文
摘要:
寄,会写题不会讲 题目传送门 codeforces 洛谷 题面 In this problem, you are initially given an empty multiset. You have to process two types of queries: ADD \(x\) — add 阅读全文
摘要:
题目链接 codeforces 洛谷 题面 Winter holidays are coming up. They are going to last for $n$ days. During the holidays, Monocarp wants to try all of these acti 阅读全文