摘要:
797. 差分 题目链接 模板题:根据原数组构造差分数组,原数组为差分数组的前缀和数组 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const i 阅读全文
posted @ 2022-02-25 18:24
小菜珠的成长之路
阅读(49)
评论(0)
推荐(0)
摘要:
1960. 闪烁 题目链接 https://www.acwing.com/problem/content/1962/ 分析 状态压缩:将二进制转化为十进制 状态转移:在十进制状态下进行转移 int last = num & 1; int temp = (num >> 1) + (last << n 阅读全文
posted @ 2022-02-25 14:18
小菜珠的成长之路
阅读(20)
评论(0)
推荐(0)

浙公网安备 33010602011771号