摘要: Description windy学会了一种游戏。对于1到N这N个数字,都有唯一且不同的1到N的数字与之对应。最开始windy把数字按 顺序1,2,3,……,N写一排在纸上。然后再在这一排下面写上它们对应的数字。然后又在新的一排下面写上它们 对应的数字。如此反复,直到序列再次变为1,2,3,……,N 阅读全文
posted @ 2018-02-05 20:18 Z-Y-Y-S 阅读(330) 评论(0) 推荐(0) 编辑
摘要: Alice and Bob have a set of N cards labelled with numbers 1 ... N (so that no two cards have the same label) and a shuffle machine. We assume that N i 阅读全文
posted @ 2018-02-05 15:46 Z-Y-Y-S 阅读(297) 评论(0) 推荐(0) 编辑
摘要: Description Bob and Alice started to use a brand-new encoding scheme. Surprisingly it is not a Public Key Cryptosystem, but their encoding and decodin 阅读全文
posted @ 2018-02-05 14:13 Z-Y-Y-S 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Description We remind that the permutation of some final set is a one-to-one mapping of the set onto itself. Less formally, that is a way to reorder e 阅读全文
posted @ 2018-02-05 10:17 Z-Y-Y-S 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Description 小C有一个集合S,里面的元素都是小于M的非负整数。他用程序编写了一个数列生成器,可以生成一个长度为N的数列,数列中的每个数都属于集合S。 小C用这个生成器生成了许多这样的数列。但是小C有一个问题需要你的帮助:给定整数x,求所有可以生成出的,且满足数列中所有数的乘积mod M的 阅读全文
posted @ 2018-02-05 09:23 Z-Y-Y-S 阅读(315) 评论(0) 推荐(0) 编辑