上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 65 下一页
摘要: [COCI2021-2022#6] Zemljište 题目描述 有一块地,大小为 $r \times s$,$\rm Matej$ 想买下它。这块地每个 $1\times1$ 的正方形都有不同的价格。 设一片非空子矩阵价格总和为 $m$,则这片子矩阵的权值为 $|m-a|+|m-b|$,您需要找到 阅读全文
posted @ 2023-10-20 09:26 onlyblues 阅读(46) 评论(0) 推荐(0)
摘要: D. Professor Higashikata Josuke is tired of his peaceful life in Morioh. Following in his nephew Jotaro's footsteps, he decides to study hard and beco 阅读全文
posted @ 2023-10-18 14:55 onlyblues 阅读(45) 评论(0) 推荐(0)
摘要: D. Monocarp and the Set Monocarp has $n$ numbers $1, 2, \dots, n$ and a set (initially empty). He adds his numbers to this set $n$ times in some order 阅读全文
posted @ 2023-10-17 16:48 onlyblues 阅读(85) 评论(0) 推荐(0)
摘要: Count of Sub-Multisets With Bounded Sum You are given a 0-indexed array nums of non-negative integers, and two integers l and r. Return the count of s 阅读全文
posted @ 2023-10-15 18:08 onlyblues 阅读(137) 评论(0) 推荐(0)
摘要: G. Anya and the Mysterious String Anya received a string $s$ of length $n$ brought from Rome. The string $s$ consists of lowercase Latin letters and a 阅读全文
posted @ 2023-10-14 14:51 onlyblues 阅读(134) 评论(0) 推荐(2)
摘要: C. Decreasing String Recall that string $a$ is lexicographically smaller than string $b$ if $a$ is a prefix of $b$ (and $a \ne b$), or there exists an 阅读全文
posted @ 2023-10-13 23:07 onlyblues 阅读(96) 评论(0) 推荐(0)
摘要: G. ABBC or BACB You are given a string $s$ made up of characters $\texttt{A}$ and $\texttt{B}$. Initially you have no coins. You can perform two types 阅读全文
posted @ 2023-10-12 14:32 onlyblues 阅读(114) 评论(0) 推荐(0)
摘要: C. Card Game There are $n$ cards stacked in a deck. Initially, $a_{i}$ is written on the $i$-th card from the top. The value written on a card does no 阅读全文
posted @ 2023-10-10 17:01 onlyblues 阅读(85) 评论(0) 推荐(0)
摘要: D. Sum of XOR Functions You are given an array $a$ of length $n$ consisting of non-negative integers. You have to calculate the value of $\sum_{l=1}^{ 阅读全文
posted @ 2023-10-09 14:52 onlyblues 阅读(109) 评论(0) 推荐(0)
摘要: D. Effects of Anti Pimples Chaneka has an array $[a_1,a_2,\ldots,a_n]$. Initially, all elements are white. Chaneka will choose one or more different i 阅读全文
posted @ 2023-10-09 11:38 onlyblues 阅读(47) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 65 下一页
Web Analytics