这个居然还一下就通过了,呵呵:
/* ID: qq104801 LANG: C++ TASK: palsquare */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> /* for debug only:counter */ void debug_dummy(void) { return; } int base; char x[64],y[64]; char num[]={'0','1','2','3','4','5','6','7','8','9', 'A','B','C','D','E','F','G','H','I','J'}; void xnum(int a,int b,char* xx) { int i=0; int c=a; int l; char y[64]; while(c!=0) { y[i]=num[c%b]; c=c/b; i++; } y[i]='