上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 63 下一页
摘要: D. ConstructOR You are given three integers $a$, $b$, and $d$. Your task is to find any integer $x$ which satisfies all of the following conditions, o 阅读全文
posted @ 2022-11-15 20:02 onlyblues 阅读(109) 评论(4) 推荐(0)
摘要: 区间最大公约数 给定一个长度为 $N$ 的数列 $A$,以及 $M$ 条指令,每条指令可能是以下两种之一: C l r d ,表示把 $A[l],A[l+1], \ldots ,A[r]$ 都加上 $d$。 Q l r ,表示询问 $A[l],A[l+1], \ldots ,A[r]$ 的最大公约数 阅读全文
posted @ 2022-11-15 14:38 onlyblues 阅读(504) 评论(0) 推荐(0)
摘要: B. Diverse Substrings A non-empty digit string is diverse if the number of occurrences of each character in it doesn't exceed the number of distinct c 阅读全文
posted @ 2022-11-14 21:21 onlyblues 阅读(174) 评论(0) 推荐(0)
摘要: Maximum Number of Non-overlapping Palindrome Substrings You are given a string s and a positive integer k . Select a set of non-overlapping substrings 阅读全文
posted @ 2022-11-14 20:38 onlyblues 阅读(104) 评论(0) 推荐(0)
摘要: Minimum Number of Operations to Sort a Binary Tree by Level You are given the root of a binary tree with unique values. In one operation, you can choo 阅读全文
posted @ 2022-11-14 20:10 onlyblues 阅读(79) 评论(0) 推荐(0)
摘要: 摆放棋子 给定一个 $n \times m$ 的国际象棋棋盘(即一个 $n \times m$ 的方格矩阵)。 我们知道传统国际象棋中,主教(象)的行走规则是只能斜走,格数不限,但不可转向。 现在,我们对主教进行了修改,不妨称加强后的主教为大主教。 大主教仍然只能斜走,格数不限,但是当其走到棋盘边缘 阅读全文
posted @ 2022-11-13 20:34 onlyblues 阅读(186) 评论(0) 推荐(0)
摘要: D. Yet Another Problem You are given an array $a$ of $n$ integers $a_1,a_2,a_3, \ldots, a_n$. You have to answer $q$ independent queries, each consist 阅读全文
posted @ 2022-11-13 15:00 onlyblues 阅读(36) 评论(0) 推荐(0)
摘要: C. Swap Game Alice and Bob are playing a game on an array $a$ of $n$ positive integers. Alice and Bob make alternating moves with Alice going first. I 阅读全文
posted @ 2022-11-12 18:09 onlyblues 阅读(163) 评论(0) 推荐(0)
摘要: 构造数组 请你构造一个长度为 $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 阅读(44) 评论(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 阅读(79) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 63 下一页
Web Analytics