摘要:
跟上一个题基本差不多,题目是不是有歧义啊。。。这个题的意思是2-10进制中至少在两个进制上是回文的,理解错了题意挂了一次。。。 1 /* 2 ID: cuizhe 3 LANG: C++ 4 TASK: dualpal 5 */ 6 #include <iostream> 7 #include <cstdio> 8 #include <cstring> 9 #include <cstdlib>10 #include <map>11 using namespace std;12 int judge(int x,int n)13 {14 阅读全文
摘要:
水题,做完回家。难得1Y。 1 /* 2 ID: cuizhe 3 LANG: C++ 4 TASK: palsquare 5 */ 6 #include <iostream> 7 #include <cstdio> 8 #include <cstring> 9 #include <cstdlib>10 #include <map>11 using namespace std;12 int n;13 int judge(int x)14 {15 int p[30],i,num;16 num = 1;17 while(x > 0) 阅读全文