摘要: 1046. 打印方阵 (Standard IO) 题目描述 打印一个n*n的数字方阵,例如n=4时:(n<=100) 1 3 4 102 5 9 116 8 12 157 13 14 16 输入 输入n。 样例输入 4 输出 输出n*n的方阵。 样例输出 1 3 4 10 2 5 9 11 6 8 阅读全文
posted @ 2021-05-01 11:15 HiRaAB 阅读(54) 评论(0) 推荐(0)
摘要: s'daa #include <stdio.h> #include <string.h> #include <ctype.h> char s[10001]; int main() { while(scanf("%s",s)!=EOF); printf("%d",strlen(s)); return 阅读全文
posted @ 2021-02-21 11:52 HiRaAB 阅读(26) 评论(0) 推荐(0)
摘要: 1.使用string.h中的strrev函数 #include<stdio.h> #include<string.h> int main() { char s[]="hello"; strrev(s); puts(s); return 0; } 阅读全文
posted @ 2021-02-21 11:36 HiRaAB 阅读(77) 评论(0) 推荐(0)
摘要: 刚开始学习递归的时候有点懵,老是不理解结束条件,后来看到一篇文章才开始掌握递归的思想 https://mp.weixin.qq.com/s/mJ_jZZoak7uhItNgnfmZvQ 阅读全文
posted @ 2021-02-08 20:48 HiRaAB 阅读(68) 评论(0) 推荐(0)