上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 65 下一页
摘要: 佳佳的斐波那契 佳佳对数学,尤其对数列十分感兴趣。 在研究完 Fibonacci 数列后,他创造出许多稀奇古怪的数列。 例如用 $S(n)$ 表示 Fibonacci 前 $n$ 项和 $\text{mod} \ m$ 的值,即 $S(n)=(F_1+F_2+…+F_n) \bmod m$,其中 $ 阅读全文
posted @ 2023-03-28 20:26 onlyblues 阅读(110) 评论(0) 推荐(0)
摘要: C. Candy Store The store sells $n$ types of candies with numbers from $1$ to $n$. One candy of type $i$ costs $b_i$ coins. In total, there are $a_i$ c 阅读全文
posted @ 2023-03-27 23:00 onlyblues 阅读(181) 评论(0) 推荐(0)
摘要: D. Binary String Sorting You are given a binary string $s$ consisting of only characters 0 and/or 1. You can perform several operations on this string 阅读全文
posted @ 2023-03-24 10:08 onlyblues 阅读(261) 评论(0) 推荐(0)
摘要: 最长公共上升子序列 熊大妈的奶牛在小沐沐的熏陶下开始研究信息题目。 小沐沐先让奶牛研究了最长上升子序列,再让他们研究了最长公共子序列,现在又让他们研究最长公共上升子序列了。 小沐沐说,对于两个数列 $A$ 和 $B$,如果它们都包含一段位置不一定连续的数,且数值是严格递增的,那么称这一段数是两个数列 阅读全文
posted @ 2023-03-21 12:00 onlyblues 阅读(72) 评论(0) 推荐(0)
摘要: C. Sequence Master For some positive integer $m$, YunQian considers an array $q$ of $2m$ (possibly negative) integers good, if and only if for every p 阅读全文
posted @ 2023-03-19 18:01 onlyblues 阅读(262) 评论(0) 推荐(0)
摘要: 关押罪犯 $S$ 城现有两座监狱,一共关押着 $N$ 名罪犯,编号分别为 $1 \sim N$。 他们之间的关系自然也极不和谐。 很多罪犯之间甚至积怨已久,如果客观条件具备则随时可能爆发冲突。 我们用“怨气值”(一个正整数值)来表示某两名罪犯之间的仇恨程度,怨气值越大,则这两名罪犯之间的积怨越多。 阅读全文
posted @ 2023-03-17 20:07 onlyblues 阅读(65) 评论(0) 推荐(0)
摘要: E. Music Festival The boy Vitya loves to listen to music very much. He knows that $n$ albums are due to be released this Friday, $i$-th of which conta 阅读全文
posted @ 2023-03-15 12:17 onlyblues 阅读(57) 评论(0) 推荐(0)
摘要: C. The Very Beautiful Blanket Kirill wants to weave the very beautiful blanket consisting of $n \times m$ of the same size square patches of some colo 阅读全文
posted @ 2023-03-15 09:18 onlyblues 阅读(148) 评论(0) 推荐(0)
摘要: C. Pull Your Luck While James is gone on business, Vesper takes her time and explores what the legendary Casino Royale has to offer to people who are 阅读全文
posted @ 2023-03-14 20:11 onlyblues 阅读(272) 评论(0) 推荐(0)
摘要: A. Lame King You are given a checkerboard of size $201 \times 201$, i. e. it has $201$ rows and $201$ columns. The rows of this checkerboard are numbe 阅读全文
posted @ 2023-03-14 17:07 onlyblues 阅读(80) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 65 下一页
Web Analytics