摘要: DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write a program which, given a string, determines the minimal number of characters to be inserted into the string in order to obtain a palindrome.As an exa 阅读全文
posted @ 2012-04-11 18:36 JWMNEU 阅读(137) 评论(0) 推荐(0) 编辑
摘要: DescriptionA cyclic number is an integer n digits in length which, when multiplied by any integer from 1 to n, yields a"cycle"of the digits of the original number. That is, if you consider the number after the last digit to "wrap around"back to the first digit, the sequence of di 阅读全文
posted @ 2012-04-11 15:43 JWMNEU 阅读(230) 评论(0) 推荐(0) 编辑