上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 63 下一页
摘要: C. Almost All Multiples Given two integers $n$ and $x$, a permutation$^{\dagger}$ $p$ of length $n$ is called funny if $p_i$ is a multiple of $i$ for 阅读全文
posted @ 2022-11-26 16:50 onlyblues 阅读(130) 评论(0) 推荐(0)
摘要: E. Binary Inversions You are given a binary array$^{\dagger}$ of length $n$. You are allowed to perform one operation on it at most once. In an operat 阅读全文
posted @ 2022-11-23 09:56 onlyblues 阅读(121) 评论(0) 推荐(0)
摘要: B. Elimination of a Ring Define a cyclic sequence of size $n$ as an array $s$ of length $n$, in which $s_n$ is adjacent to $s_1$. Muxii has a ring rep 阅读全文
posted @ 2022-11-21 16:33 onlyblues 阅读(125) 评论(0) 推荐(0)
摘要: G. Restore the Permutation A sequence of $n$ numbers is called permutation if it contains all numbers from $1$ to $n$ exactly once. For example, the s 阅读全文
posted @ 2022-11-20 16:59 onlyblues 阅读(137) 评论(0) 推荐(0)
摘要: Number of Beautiful Partitions You are given a string s that consists of the digits '1' to '9' and two integers k and minLength. A partition of s is c 阅读全文
posted @ 2022-11-20 15:38 onlyblues 阅读(44) 评论(0) 推荐(0)
摘要: 排队 $n$ 个小朋友排成一排,从左到右依次编号为 $1 \sim n$。 第 $i$ 个小朋友的身高为 $h_i$。 虽然队伍已经排好,但是小朋友们对此并不完全满意。 对于一个小朋友来说,如果存在其他小朋友身高比他更矮,却站在他右侧的情况,该小朋友就会感到不满。 每个小朋友的不满程度都可以量化计算 阅读全文
posted @ 2022-11-20 10:05 onlyblues 阅读(183) 评论(0) 推荐(0)
摘要: E. Hanging Hearts Pak Chanek has $n$ blank heart-shaped cards. Card $1$ is attached directly to the wall while each of the other cards is hanging onto 阅读全文
posted @ 2022-11-18 20:31 onlyblues 阅读(64) 评论(0) 推荐(0)
摘要: D. Count GCD You are given two integers $n$ and $m$ and an array $a$ of $n$ integers. For each $1 \le i \le n$ it holds that $1 \le a_i \le m$. Your t 阅读全文
posted @ 2022-11-18 11:42 onlyblues 阅读(108) 评论(4) 推荐(1)
摘要: D. Knowledge Cards Pak Chanek, a renowned scholar, invented a card puzzle using his knowledge. In the puzzle, you are given a board with $n$ rows and 阅读全文
posted @ 2022-11-17 21:07 onlyblues 阅读(138) 评论(2) 推荐(0)
摘要: E. Cactus Wall Monocarp is playing Minecraft and wants to build a wall of cacti. He wants to build it on a field of sand of the size of $n \times m$ c 阅读全文
posted @ 2022-11-16 10:10 onlyblues 阅读(77) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 63 下一页
Web Analytics