回文
Joe__Chen
简简单单
展开
-
USACODual Palindromes回文
Dual Palindromes Mario Cruz (Colombia) & Hugo Rickeboer (Argentina)A number that reads the same from right to left as when read from left to right is called a palindrome. The number 12321 is a palind原创 2015-03-08 14:36:27 · 564 阅读 · 0 评论 -
USACO:Palindromic Squares;回文判断+进制转化
/* TASK:palsquare LANG:C++ ID:huibaochen */ /*一题:给你一个数n代表进制,算出从1到300的数的平方转化为n进制后是否进回文序列,是的话输出这个是的n进制和这个数的平方的n进制*/ #include #include #include int m, n, len, num, r; char str[1000 +5], ch[100 + 5];原创 2015-03-07 13:48:34 · 463 阅读 · 0 评论