上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 64 下一页
摘要: String Transformation You are given two strings s and t of equal length n. You can perform the following operation on the string s: Remove a suffix of 阅读全文
posted @ 2023-09-10 20:52 onlyblues 阅读(46) 评论(0) 推荐(0)
摘要: F. Selling a Menagerie You are the owner of a menagerie consisting of $n$ animals numbered from $1$ to $n$. However, maintaining the menagerie is quit 阅读全文
posted @ 2023-09-08 15:51 onlyblues 阅读(98) 评论(0) 推荐(1)
摘要: 整理书籍 书架上有若干本书排成一排。 每本书要么是大型书(用 L 表示),要么是中型书(用 M 表示),要么是小型书(用 S 表示)。 我们希望所有书能够从大到小有序排列,也就是说,所有大型书都在左侧,所有中型书都在中间,所有小型书都在右侧。 为此,你可以进行任意次交换操作,每次可以任选两本书并交换 阅读全文
posted @ 2023-09-06 11:56 onlyblues 阅读(59) 评论(0) 推荐(0)
摘要: D. Balanced String You are given a binary string $s$ (a binary string is a string consisting of characters 0 and/or 1). Let's call a binary string bal 阅读全文
posted @ 2023-09-05 21:22 onlyblues 阅读(125) 评论(5) 推荐(0)
摘要: F1. Omsk Metro (simple version) This is the simple version of the problem. The only difference between the simple and hard versions is that in this ve 阅读全文
posted @ 2023-09-04 21:41 onlyblues 阅读(66) 评论(0) 推荐(0)
摘要: Minimum Edge Weight Equilibrium Queries in a Tree There is an undirected tree with n nodes labeled from 0 to n - 1. You are given the integer n and a 阅读全文
posted @ 2023-09-04 16:28 onlyblues 阅读(94) 评论(0) 推荐(0)
摘要: D. Sorting By Multiplication You are given an array $a$ of length $n$, consisting of positive integers. You can perform the following operation on thi 阅读全文
posted @ 2023-09-02 16:07 onlyblues 阅读(122) 评论(0) 推荐(1)
摘要: C. Vika and Price Tags Vika came to her favorite cosmetics store "Golden Pear". She noticed that the prices of $n$ items have changed since her last v 阅读全文
posted @ 2023-09-02 14:45 onlyblues 阅读(63) 评论(0) 推荐(0)
摘要: D. Imbalanced Arrays Ntarsis has come up with an array $a$ of $n$ non-negative integers. Call an array $b$ of $n$ integers imbalanced if it satisfies 阅读全文
posted @ 2023-09-01 17:31 onlyblues 阅读(53) 评论(0) 推荐(0)
摘要: C. MEX Repetition You are given an array $a_1,a_2,\ldots, a_n$ of pairwise distinct integers from $0$ to $n$. Consider the following operation: consec 阅读全文
posted @ 2023-08-31 14:43 onlyblues 阅读(59) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 64 下一页
Web Analytics