摘要:
Description Fermat's theorem states that for any prime number p and for any integer a > 1, ap = a (mod p). That is, if we raise ... 阅读全文
摘要:
Description 作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿。终于有一天,小Z再也无法忍受这恼人的找袜子过程,于是他决定听天由命…… 具体来说,小Z把这N只袜子从1到N编号,然后从编号L到R(L 尽管小Z并不在意... 阅读全文
摘要:
Description A number of schools are connected to a computer network. Agreements have been developed among those schools: each sch... 阅读全文
摘要:
Description Consider the two networks shown below. Assuming that data moves around these networks only between directly connected... 阅读全文
摘要:
Description A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numb... 阅读全文
摘要:
Description A Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a reque... 阅读全文
摘要:
Description There are so many different religions in the world today that it is difficult to keep track of them all. You are inte... 阅读全文
摘要:
Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a memb... 阅读全文
摘要:
Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another... 阅读全文
摘要:
Description Bessie has been hired to build a cheap internet network among Farmer John's N (2 #include#includeusing namespace std;... 阅读全文