考前必看
\textsf{\color{red}这是一些重要细节,考前必看!}
-
一定要用
scanf&printf -
注意数据范围
-
多测清空数组太大的话,不要全部赋值或
memset,用什么清什么 -
#define int long long,scanf&printf一定要%lld -
vector嵌套使用,清空时一定要遍历第一维,直接clear()没用 -
不要忽略
\textsf{\color{orange}[warning]} ,开启”更多警告“选项
\textsf{\color{green}题目思考不出,想一想这些算法!}
-
前缀和
-
数学
-
双指针
-
贪心
-
区间DP
\textsf{\color{blue}找不到算法,想一想这些思路!}
-
由特殊到一般
-
暴力优化
-
找规律
-
特殊情况(部分分)
-
画图模拟
-
抽象模型