摘要: 自己之前在segment上的总结; https://segmentfault.com/a/1190000018183359 阅读全文
posted @ 2020-01-16 11:39 暮云林凌 阅读(118) 评论(0) 推荐(0)
摘要: 基本思想: 和示例思想相同,典型的字符串处理,注意即可,没啥新意; 关键点: 字符串问题; 1 #include<iostream> 2 #include<stdlib.h> 3 #include<stdio.h> 4 #include<vector> 5 #include<string> 6 #i 阅读全文
posted @ 2020-01-16 11:38 暮云林凌 阅读(159) 评论(0) 推荐(0)
摘要: 基本思想: 没啥难度,就是审题障碍,到底是同位置第一对还是不同位置第一对元素,英文题确实审题障碍; 关键点: 无; 1 #include<iostream> 2 #include<stdlib.h> 3 #include<stdio.h> 4 #include<vector> 5 #include< 阅读全文
posted @ 2020-01-15 17:06 暮云林凌 阅读(151) 评论(0) 推荐(0)
摘要: 基本思想: 进制问题,回文串判定; 关键点: 注意回文子串和回文串问题; #include<iostream> #include<stdlib.h> #include<stdio.h> #include<vector> #include<string> #include<math.h> #inclu 阅读全文
posted @ 2020-01-15 16:09 暮云林凌 阅读(118) 评论(0) 推荐(0)
摘要: 基本思想: 进制转换经典问题; 关键点: 关于进制处理,需要注意下这个常用操作; 1 #include<iostream> 2 #include<stdlib.h> 3 #include<stdio.h> 4 #include<vector> 5 #include<string> 6 #includ 阅读全文
posted @ 2020-01-15 15:50 暮云林凌 阅读(142) 评论(0) 推荐(0)
摘要: 基本思想: 进制转换,没什么可说的; 关键点: 无; #include<iostream> #include<stdlib.h> #include<stdio.h> #include<vector> #include<string> #include<math.h> #include<algorit 阅读全文
posted @ 2020-01-15 15:36 暮云林凌 阅读(110) 评论(0) 推荐(0)
摘要: 基本思想: 考察数学基本不等式的内容,主要是缕清不等关系和最大关系,编程本身无难度; 关键点: 无; #include<iostream> #include<stdlib.h> #include<stdio.h> #include<vector> #include<string> #include< 阅读全文
posted @ 2020-01-15 15:29 暮云林凌 阅读(180) 评论(0) 推荐(0)
摘要: 基本思想: 简单对比,弱智题 关键点: 无 #include<iostream> #include<stdlib.h> #include<stdio.h> #include<vector> #include<string> #include<math.h> #include<algorithm> u 阅读全文
posted @ 2020-01-15 14:56 暮云林凌 阅读(132) 评论(0) 推荐(0)
摘要: 基本思想: 还是sort cmp那一套; 关键点: 没啥可说的; 1 #include<iostream> 2 #include<stdlib.h> 3 #include<stdio.h> 4 #include<vector> 5 #include<string> 6 #include<math.h 阅读全文
posted @ 2020-01-15 12:32 暮云林凌 阅读(137) 评论(0) 推荐(0)
摘要: 刷题中排序常用,sort指出三个参数:起始位置、终止位置、cmp函数排序方法(其中值得注意的是,尾元素是最后一个元素的下一位置); 对于sort,vector也可以,使用begin和end指针即可,其他普通数组直接是头指针,头指针+元素个数; 重点在于cmp的问题,这里经常混淆,只需要记住:希望元素 阅读全文
posted @ 2020-01-13 17:45 暮云林凌 阅读(1307) 评论(0) 推荐(0)