摘要: 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 palindrome; the number 77778 is not. Of course, palindromes have neither leading nor trailing zeroes, s 阅读全文
posted @ 2012-08-22 20:45 _雨 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Palindromic Squares Rob KolstadPalindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 <= B <= 20 base 10), print all the integers N (1 <= N <= 300 base 10) such that the square of N is palindromic when expressed 阅读全文
posted @ 2012-08-22 20:23 _雨 阅读(151) 评论(0) 推荐(0) 编辑
摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2417找峰值点 从小到大输出View Code 1 #include<stdio.h> 2 #include<string.h> 3 int a[50001],b[50001]; 4 int main() 5 { 6 int i,j,k,n,m; 7 while(scanf("%d", &n)!=EOF) 8 { 9 int g = 0;10 for(i = 1; i <= n ; i+ 阅读全文
posted @ 2012-08-22 19:37 _雨 阅读(185) 评论(0) 推荐(0) 编辑