上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 66 下一页
摘要: 构造数组 请你构造一个长度为 $n$ 的正整数数组 $a_1,a_2, \ldots ,a_n$。 我们会给出一个长度为 $n−1$ 的由 $<$、$>$、$=$ 组成的字符串 $s_1s_2 \ldots s_{n−1}$ 用于约束你的构造: 如果 $s_i$ 为 $<$,则表示你构造的数组需满足 阅读全文
posted @ 2022-11-12 15:22 onlyblues 阅读(77) 评论(0) 推荐(0)
摘要: Next Greater Element IV You are given a 0-indexed array of non-negative integers nums . For each integer in nums , you must find its respective second 阅读全文
posted @ 2022-10-30 23:20 onlyblues 阅读(99) 评论(0) 推荐(0)
摘要: C1. Sheikh (Easy version) This is the easy version of the problem. The only difference is that in this version $q=1$. You are given an array of intege 阅读全文
posted @ 2022-10-28 14:31 onlyblues 阅读(109) 评论(0) 推荐(0)
摘要: D. Factorial Divisibility You are given an integer $x$ and an array of integers $a_1,a_2, \dots ,a_n$. You have to determine if the number $a_1!+a_2!+ 阅读全文
posted @ 2022-10-27 23:16 onlyblues 阅读(181) 评论(0) 推荐(1)
摘要: F. MEX vs MED You are given a permutation $p_1,p_2, \dots ,p_n$ of length $n$ of numbers $0, \dots ,n−1$. Count the number of subsegments $1 \leq l \l 阅读全文
posted @ 2022-10-26 11:35 onlyblues 阅读(172) 评论(0) 推荐(0)
摘要: E. FTL Monocarp is playing a video game. In the game, he controls a spaceship and has to destroy an enemy spaceship. Monocarp has two lasers installed 阅读全文
posted @ 2022-10-25 17:32 onlyblues 阅读(78) 评论(0) 推荐(0)
摘要: C1. Make Nonzero Sum (easy version) This is the easy version of the problem. The difference is that in this version the array can not contain zeros. Y 阅读全文
posted @ 2022-10-24 23:22 onlyblues 阅读(121) 评论(0) 推荐(0)
摘要: D1. Balance (Easy version) This is the easy version of the problem. The only difference is that in this version there are no "remove" queries. Initial 阅读全文
posted @ 2022-10-24 16:53 onlyblues 阅读(245) 评论(0) 推荐(0)
摘要: B. Ugu A binary string is a string consisting only of the characters $0$ and $1$. You are given a binary string $s_1 s_2 \dots s_n$. It is necessary t 阅读全文
posted @ 2022-10-24 15:32 onlyblues 阅读(163) 评论(0) 推荐(0)
摘要: A. Bestie You are given an array $a$ consisting of $n$ integers $a_1,a_2, \dots ,a_n$. Friends asked you to make the greatest common divisor (GCD) of 阅读全文
posted @ 2022-10-23 23:24 onlyblues 阅读(121) 评论(0) 推荐(0)
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 66 下一页
Web Analytics