摘要:
题目 Bertown is a city with nn buildings in a straight line. The city's security service discovered that some buildings were mined. A map was compiled, 阅读全文
摘要:
题目 "QAQ" is a word to denote an expression of crying. Imagine "Q" as eyes with tears and "A" as a mouth. Now Diamond has given Bort a string consistin 阅读全文
摘要:
题目John is the only priest in his town. October 26th is the John’s busiest day in a year because there isan old legend in the town that the couple who 阅读全文
摘要:
题目A Subsequence is a sequence obtained by deleting zero or more characters in a string. A Palindrome isa string which when read from left to right, re 阅读全文
摘要:
题目There are lots of number games for children. These games are pretty easy to play but not so easy tomake. We will discuss about an interesting game h 阅读全文
摘要:
题目We say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, ‘racecar’ is a palindrome, but ‘fastc 阅读全文
摘要:
题目(If you smiled when you see the title, this problem is for you ^_^)For those who don’t know KTV, see: http://en.wikipedia.org/wiki/Karaoke_boxThere 阅读全文
摘要:
题目n sprinklers are installed in a horizontal strip of grass l meters long and w meters wide. Each sprinkleris installed at the horizontal center line 阅读全文
摘要:
题目Consider an integer sequence consisting of N elements whereX1 = 1X2 = 2X3 = 3Xi = (Xi−1 + Xi−2 + Xi−3)%M + 1 for i = 4 to NFind 2 values a and b so 阅读全文