上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 63 下一页
摘要: D. Robot Queries There is an infinite $2$-dimensional grid. Initially, a robot stands in the point $(0, 0)$. The robot can execute four commands: U — 阅读全文
posted @ 2023-12-04 20:56 onlyblues 阅读(138) 评论(0) 推荐(0)
摘要: F - Palindrome Query Problem Statement You are given a string $S$ of length $N$ consisting of lowercase English letters.Process $Q$ queries described 阅读全文
posted @ 2023-12-03 18:31 onlyblues 阅读(84) 评论(0) 推荐(0)
摘要: E. Permutation Sorting You are given a permutation$^\dagger$ $a$ of size $n$. We call an index $i$ good if $a_i=i$ is satisfied. After each second, we 阅读全文
posted @ 2023-12-01 18:00 onlyblues 阅读(56) 评论(0) 推荐(0)
摘要: D2. Xor-Subsequence (hard version) It is the hard version of the problem. The only difference is that in this version $a_i \le 10^9$. You are given an 阅读全文
posted @ 2023-11-29 17:40 onlyblues 阅读(33) 评论(0) 推荐(0)
摘要: D1. Xor-Subsequence (easy version) It is the easy version of the problem. The only difference is that in this version $a_i \le 200$. You are given an 阅读全文
posted @ 2023-11-29 16:21 onlyblues 阅读(31) 评论(0) 推荐(0)
摘要: Count Beautiful Substrings II You are given a string s and a positive integer k. Let vowels and consonants be the number of vowels and consonants in a 阅读全文
posted @ 2023-11-28 09:17 onlyblues 阅读(47) 评论(0) 推荐(0)
摘要: Make Lexicographically Smallest Array by Swapping Elements You are given a 0-indexed array of positive integers nums and a positive integer limit. In 阅读全文
posted @ 2023-11-28 09:17 onlyblues 阅读(86) 评论(0) 推荐(0)
摘要: D. Small GCD Let $a$, $b$, and $c$ be integers. We define function $f(a, b, c)$ as follows: Order the numbers $a$, $b$, $c$ in such a way that $a \le 阅读全文
posted @ 2023-11-27 18:30 onlyblues 阅读(240) 评论(1) 推荐(1)
摘要: D. Ones and Twos You are given a $1$-indexed array $a$ of length $n$ where each element is $1$ or $2$. Process $q$ queries of the following two types: 阅读全文
posted @ 2023-11-26 21:17 onlyblues 阅读(46) 评论(0) 推荐(0)
摘要: D. Letter Picking Alice and Bob are playing a game. Initially, they are given a non-empty string $s$, consisting of lowercase Latin letters. The lengt 阅读全文
posted @ 2023-11-25 14:19 onlyblues 阅读(94) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 63 下一页
Web Analytics