上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 53 下一页
摘要: G. ABBC or BACB You are given a string $s$ made up of characters $\texttt{A}$ and $\texttt{B}$. Initially you have no coins. You can perform two types 阅读全文
posted @ 2023-10-12 14:32 onlyblues 阅读(48) 评论(0) 推荐(0) 编辑
摘要: C. Card Game There are $n$ cards stacked in a deck. Initially, $a_{i}$ is written on the $i$-th card from the top. The value written on a card does no 阅读全文
posted @ 2023-10-10 17:01 onlyblues 阅读(22) 评论(0) 推荐(0) 编辑
摘要: D. Sum of XOR Functions You are given an array $a$ of length $n$ consisting of non-negative integers. You have to calculate the value of $\sum_{l=1}^{ 阅读全文
posted @ 2023-10-09 14:52 onlyblues 阅读(55) 评论(0) 推荐(0) 编辑
摘要: D. Effects of Anti Pimples Chaneka has an array $[a_1,a_2,\ldots,a_n]$. Initially, all elements are white. Chaneka will choose one or more different i 阅读全文
posted @ 2023-10-09 11:38 onlyblues 阅读(15) 评论(0) 推荐(0) 编辑
摘要: D. Prefix Purchase You have an array $a$ of size $n$, initially filled with zeros ($a_1 = a_2 = \ldots = a_n = 0$). You also have an array of integers 阅读全文
posted @ 2023-10-07 15:06 onlyblues 阅读(23) 评论(0) 推荐(0) 编辑
摘要: Python缩进 在 Python 中,代码块没有显式的开始/结束或大括号来标记代码块的开始和结束。 相反,代码块是通过缩进定义的。 我们考虑一个极其简化的 Python 子集,其只有两种类型的语句:简单语句和 $For$ 语句。 简单语句(Simple statements)仅占一行,每行一个。 阅读全文
posted @ 2023-10-06 15:12 onlyblues 阅读(18) 评论(0) 推荐(0) 编辑
摘要: D1. Candy Party (Easy Version) This is the easy version of the problem. The only difference is that in this version everyone must give candies to exac 阅读全文
posted @ 2023-09-14 10:17 onlyblues 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(11) 评论(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 阅读(65) 评论(0) 推荐(1) 编辑
摘要: 整理书籍 书架上有若干本书排成一排。 每本书要么是大型书(用 L 表示),要么是中型书(用 M 表示),要么是小型书(用 S 表示)。 我们希望所有书能够从大到小有序排列,也就是说,所有大型书都在左侧,所有中型书都在中间,所有小型书都在右侧。 为此,你可以进行任意次交换操作,每次可以任选两本书并交换 阅读全文
posted @ 2023-09-06 11:56 onlyblues 阅读(6) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 53 下一页
Web Analytics