上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 53 下一页
摘要: B. Raspberries You are given an array of integers $a_1, a_2, \ldots, a_n$ and a number $k$ ($2 \leq k \leq 5$). In one operation, you can do the follo 阅读全文
posted @ 2023-10-23 19:34 onlyblues 阅读(14) 评论(0) 推荐(0) 编辑
摘要: C. Medium Design The array $a_1, a_2, \ldots, a_m$ is initially filled with zeroes. You are given $n$ pairwise distinct segments $1 \le l_i \le r_i \l 阅读全文
posted @ 2023-10-23 17:28 onlyblues 阅读(138) 评论(0) 推荐(0) 编辑
摘要: koishi的数学题 题目描述 Koishi 在 Flandre 的指导下成为了一名数学大师,她想了一道简单的数学题。 输入一个整数 $n$,设 $\displaystyle f(x) = \sum_{i=1}^n x \bmod i$,你需要输出 $f(1), f(2), \ldots , f(n 阅读全文
posted @ 2023-10-21 14:21 onlyblues 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 统计子矩阵 给定一个 $N \times M$ 的矩阵 $A$,请你统计有多少个子矩阵 (最小 $1 \times 1$,最大 $N × M$) 满足子矩阵中所有数的和不超过给定的整数 $K$? 输入格式 第一行包含三个整数 $N, M$ 和 $K$。 之后 $N$ 行每行包含 $M$ 个整数,代表 阅读全文
posted @ 2023-10-20 10:04 onlyblues 阅读(21) 评论(0) 推荐(0) 编辑
摘要: [COCI2021-2022#6] Zemljište 题目描述 有一块地,大小为 $r \times s$,$\rm Matej$ 想买下它。这块地每个 $1\times1$ 的正方形都有不同的价格。 设一片非空子矩阵价格总和为 $m$,则这片子矩阵的权值为 $|m-a|+|m-b|$,您需要找到 阅读全文
posted @ 2023-10-20 09:26 onlyblues 阅读(11) 评论(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 阅读(5) 评论(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 阅读(26) 评论(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 阅读(24) 评论(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 阅读(85) 评论(0) 推荐(1) 编辑
摘要: 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 阅读(44) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 53 下一页
Web Analytics