摘要: isalpha iscntrl isdigit isgraph islower isupper tolower toupper isalnum isprint ispunct isspace isxdigit isascii 阅读全文
posted @ 2019-07-06 17:08 YZBPXX 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 定义: int[][] a = new int[3][]; a[0] = new int[10]; a[1] = new int[5]; Console.Write("{0},{1}", a[0].Length, a[1].Length); 不同的行可以分配不同的空间 阅读全文
posted @ 2019-07-05 18:14 YZBPXX 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 题目链接:acm.hdu.edu.cn/status.php?user=YZBPXX&pid=1166&status=5 阅读全文
posted @ 2019-06-22 18:52 YZBPXX 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 使用完后在使用必须要clear(); 阅读全文
posted @ 2019-06-22 18:42 YZBPXX 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 从字符串读取格式化输入 输入到字符串中 阅读全文
posted @ 2019-06-22 18:31 YZBPXX 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 反转容器 阅读全文
posted @ 2019-06-22 18:29 YZBPXX 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 反转字符串 保留在原函数中 阅读全文
posted @ 2019-06-22 18:28 YZBPXX 阅读(105) 评论(0) 推荐(0) 编辑
摘要: const int max_n=10){ k=(k-1)/2; dat[k]=min(dat[k*2+1],dat[k*2+2]);//注意是下标是从0开始,所以有些变化 } } //求[a,b)的最小值 //后面的参数为了方便计算传入,原则上可以计算出 //k时节点编号,l,r表示[l,r)区间 //外部调用时用query(a,b,0,0,n) int ... 阅读全文
posted @ 2019-06-17 19:30 YZBPXX 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目链接 https://ac.nowcoder.com/acm/contest/911/G 这里策略是最小的数紧接着次小的数 阅读全文
posted @ 2019-06-10 14:40 YZBPXX 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 输入n 输出一个由1到n相邻是素数的环 阅读全文
posted @ 2019-06-04 20:46 YZBPXX 阅读(180) 评论(0) 推荐(0) 编辑