摘要: 题目链接 数位 dp 模版题,这里用记忆化搜索。 用两个变量(下面是 cnt1 和 cnt2)记录 $0$ 和 $1$ 的数量就行。 然后就做完了,时间复杂度 $O(\log_2^3 r)$。 #include<bits/stdc++.h> using namespace std; int l, r 阅读全文
posted @ 2026-01-02 10:05 Antony_pico 阅读(0) 评论(0) 推荐(0)