`
steven-zhou
  • 浏览: 212328 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论
文章列表
比如: "AABB"      回文长度为: 4  回文子串为: "AABB" "12abcba22" 回文长度为: 7  回文子串为: "2abcba2" #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main(int argc, char **argv) { if (argc != 2) { printf("usage: ./a.out & ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> int rand_no_overlap(int start, int end); int main(int argc, char **argv) { rand_no_overlap(1, 10); exit(EXIT_SUCCESS); } int rand_no_overlap(int start, int end) { int size = end - start + 1 ...
如:数组 int a[9] = {1,2,3,4,5,4,3,2,1}; 打印 * *** ***** ******* ********* #include <stdio.h> #include <stdlib.h> #include <unistd.h> static void erect_pillar(int a[], int size); static int max_elem(int a[], int size); int main(int argc, char **argv) ...
Global site tag (gtag.js) - Google Analytics