摘要:
题目描述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 po 阅读全文
posted @ 2020-04-15 16:28
AlexLIN·
阅读(192)
评论(0)
推荐(0)
摘要:
Putting two similar strings together will create a very strong power that can quake the earth into parts and the person who did that can be called the 阅读全文
posted @ 2020-04-15 16:00
AlexLIN·
阅读(315)
评论(0)
推荐(0)
摘要:
小希到了大学,发现宿舍里有很多蟑螂,蟑螂有两种颜色:红色和黑色 他把宿舍里的蟑螂排成一排,一共n只,小希想让他们变成颜色交替。 每次操作可以为:一、将一只蟑螂染成另一种颜色,二、交换两个蟑螂的位置 小希没有带电脑,他请你帮忙计算一下,最少需要操作几次才能形成颜色交替的一排蟑螂 Input 第一行一个 阅读全文
posted @ 2020-04-15 01:03
AlexLIN·
阅读(208)
评论(0)
推荐(0)