摘要:
题目描述 Petr likes to come up with problems about randomly generated data. This time problem is about random permutation. He decided to generate a random 阅读全文
摘要:
题目描述 HH 有一串由各种漂亮的贝壳组成的项链。HH 相信不同的贝壳会带来好运,所以每次散步完后,他都会随意取出一段贝壳,思考它们所表达的含义。HH 不断地收集新的贝壳,因此,他的项链变得越来越长。 有一天,他突然提出了一个问题:某一段贝壳中,包含了多少种不同的贝壳?这个问题很难回答…… 因为项链 阅读全文
摘要:
链接:https://ac.nowcoder.com/acm/contest/11256/B 来源:牛客网 题目描述 There're nn boxes in front of you. You know that each box contains a ball either in white o 阅读全文
摘要:
链接:https://ac.nowcoder.com/acm/contest/11256/K 来源:牛客网 题目描述 Given nn integers a1,a2,⋯ ,ana1,a2,⋯,an and mm queries. For each query, you are given a con 阅读全文