随笔分类 -  【蓝桥杯】

摘要:#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 阅读(325) 评论(0) 推荐(0)
摘要:#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 阅读(247) 评论(2) 推荐(0)
摘要:BASIC-1 闰年判断 BASIC-2 01串 阅读全文
posted @ 2017-02-03 01:24 天秤libra 阅读(398) 评论(0) 推荐(0)
摘要:BEGIN-1 A+B问题 BEGIN-2 序列求和 BEGIN-3 圆的面积 BEGIN-4 Fibonaci数列 阅读全文
posted @ 2016-10-30 22:51 天秤libra 阅读(565) 评论(0) 推荐(0)