摘要:
Time Limit: 2 Seconds Memory Limit: 65536 KB You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. B... 阅读全文
摘要:
Time Limit: 2 Seconds Memory Limit: 65536 KB Children are taught to add multi-digit numbers from right-to-left one digit at a time. Many find the "carry" operation - in which a 1 is carried fr... 阅读全文
摘要:
Time Limit: 2 Seconds Memory Limit: 65536 KB A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which are set. Here's a ... 阅读全文
摘要:
Time Limit: 2 Seconds Memory Limit: 65536 KB In 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the following conjecture: Every even n... 阅读全文
摘要:
Time Limit: 2 Seconds Memory Limit: 65536 KB There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2) Input Input consists of a sequence of lines, each... 阅读全文