02 2013 档案

摘要:先上题目: PalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from left to right as when the string is read from right to left. A mirrored stri 阅读全文
posted @ 2013-02-07 01:09 海拉鲁的林克
摘要:先上题目:Linear Cellular AutomataA biologist is experimenting with DNA modification of bacterial colonies being grown in a linear array of culture dishes. By changing the DNA, he is able ``program" the bacteria to respond to the population density of the neighboring dishes. Population is measured o 阅读全文
posted @ 2013-02-06 21:45 海拉鲁的林克
摘要:先上题目: Rotating SentencesIn ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to bottom, your program will display them from top to bottom and right to left.Input and Output 阅读全文
posted @ 2013-02-05 23:40 海拉鲁的林克
摘要:第一篇博客,嗯,从这一篇blog开始记录我在编程等方面的学习、解题和实践应用。 先上题目:Problem AEcological PremiumInput: standard inputOutput: standard outputTime Limit: 1 secondMemory Limit: 32 MBGerman farmers are given a premium depending on the conditions at their farmyard. Imagine the following simplified regulation: you know the si... 阅读全文
posted @ 2013-02-04 22:01 海拉鲁的林克