摘要: #include #include // 求x用10进制表示时的数位长度 int len(int x){ if(x<10) return 1; return len(x/10)+1; } // 取x的第k位数字 int f(int x, int k){ if(len(x)-k==0) return x%10; return f(x / pow(10, ... 阅读全文
posted @ 2017-04-12 08:06 天秤libra 阅读(235) 评论(2) 推荐(0) 编辑
摘要: #include #include #define N 256 int fun(const char* s1, const char* s2) { int a[N][N]; int len1 = strlen(s1); //字符串s1的长度 int len2 = strlen(s2); //字符串s2的长度 int i,j; ... 阅读全文
posted @ 2017-04-12 08:06 天秤libra 阅读(316) 评论(0) 推荐(0) 编辑