上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 63 下一页
摘要: F - Hop Sugoroku Problem Statement There is a row of $N$ squares labeled $1,2,\dots,N$ and a sequence $A=(A_1,A_2,\dots,A_N)$ of length $N$.Initially, 阅读全文
posted @ 2024-01-17 19:30 onlyblues 阅读(31) 评论(0) 推荐(0)
摘要: F. Sum of Progression You are given an array $a$ of $n$ numbers. There are also $q$ queries of the form $s, d, k$. For each query $q$, find the sum of 阅读全文
posted @ 2024-01-16 23:48 onlyblues 阅读(140) 评论(0) 推荐(0)
摘要: E. Happy Life in University Egor and his friend Arseniy are finishing school this year and will soon enter university. And since they are very respons 阅读全文
posted @ 2024-01-14 00:59 onlyblues 阅读(14) 评论(0) 推荐(0)
摘要: 制作地图 贝茜正在学习制作扫雷地图。 作为初学者,它打算先从简单的一维地图做起,它准备制作一张 $1 \times n$ 大小的地图(即 $1 \times n$ 的方格矩阵)。 地图中含有地雷的方格,应标记为 *;不含地雷的方格,应标记为一个 $0$ 到 $2$ 之间的数字,用来表示其相邻方格中的 阅读全文
posted @ 2024-01-12 18:33 onlyblues 阅读(46) 评论(0) 推荐(0)
摘要: 重新分装 有 $n$ 种零件,编号 $1 \sim n$。 第 $i$ 种零件的数量为 $a_i$。 有 $n$ 个箱子,编号 $1 \sim n$。 初始时,所有零件都装在第 $1$ 个箱子里。 我们希望将所有零件重新分装,使得最终对于每个 $i$($1 \le i \le n$)都满足,所有的第 阅读全文
posted @ 2024-01-11 22:24 onlyblues 阅读(19) 评论(0) 推荐(0)
摘要: [USACO07DEC] Sightseeing Cows G 题目描述 Farmer John has decided to reward his cows for their hard work by taking them on a tour of the big city! The cows 阅读全文
posted @ 2023-12-30 16:05 onlyblues 阅读(39) 评论(0) 推荐(0)
摘要: G. Bicycles All of Slavic's friends are planning to travel from the place where they live to a party using their bikes. And they all have a bike excep 阅读全文
posted @ 2023-12-29 16:07 onlyblues 阅读(149) 评论(0) 推荐(0)
摘要: E2. Game with Marbles (Hard Version) The easy and hard versions of this problem differ only in the constraints on the number of test cases and $n$. In 阅读全文
posted @ 2023-12-28 21:18 onlyblues 阅读(159) 评论(0) 推荐(0)
摘要: C. Heavy Intervals You have $n$ intervals $[l_1, r_1], [l_2, r_2], \dots, [l_n, r_n]$, such that $l_i < r_i$ for each $i$, and all the endpoints of th 阅读全文
posted @ 2023-12-27 22:38 onlyblues 阅读(85) 评论(0) 推荐(0)
摘要: D. Yet Another Inversions Problem You are given a permutation $p_0, p_1, \ldots, p_{n-1}$ of odd integers from $1$ to $2n-1$ and a permutation $q_0, q 阅读全文
posted @ 2023-12-26 23:23 onlyblues 阅读(89) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 63 下一页
Web Analytics