![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
weixin_44040169
这个作者很懒,什么都没留下…
展开
-
Flower
Rabbit loves flowers very much and she plants n pots of flowers in her house. But she never prunes them because she is lazy. So the flowers have different heights and look ugly. One day, Kayaking deci...翻译 2019-05-16 15:46:17 · 432 阅读 · 0 评论 -
Sequence in the Pocket
DreamGrid has just found an integer sequence a1,a2,a3…in his right pocket. As DreamGrid is bored, he decides to play with the sequence. He can perform the following operation any number of times (incl...翻译 2019-05-16 16:32:09 · 153 阅读 · 0 评论 -
全排列的变换
Problem Description 小鑫今天从玄黄那里拿到了一个长度为n的全排列,可是小鑫不喜欢这个全排列,于是小鑫想要把这个全排列变成他希望的样子。 但是全排列不是随便就能变换的,全排列每次变换只能交换相邻的两个数位。例如:123可以通过一步变换变成132,但是不能通过一步变换变成321。 现在你能帮助小鑫把他从玄黄那里拿到的全排列变成他希望的样子吗?小鑫想知道最少需要多少步变换才能将手里的...原创 2019-05-16 16:53:25 · 199 阅读 · 0 评论 -
The puzzle
Kayaking is playing a puzzle game containing n different blocks. He marks the blocks with integers from 1 to n, which show the blocks’ original positions. Each time he can exchange two blocks and he w...翻译 2019-05-15 21:46:36 · 302 阅读 · 0 评论 -
H - Theater Square
H - Theater Square The Theater Square can be represented as a rectangle having height n and length m, divided into square 1×1 cells. Let’s denote the cell located at the intersection of i-th row and j...原创 2019-08-02 21:06:54 · 223 阅读 · 0 评论