摘要:
题目链接:Here AcWing 3805. 环形数组 签到题,循环减少出现次数,如果是 cnt[x] = 1 的话加入新的数组中 const int N = 1e3 + 10; int cnt[N]; int main() { cin.tie(nullptr)->sync_with_stdio(f 阅读全文
posted @ 2021-08-17 19:38
RioTian
阅读(42)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-08-17 15:24
RioTian
阅读(0)
评论(0)
推荐(0)
摘要:
题目链接:Here ABC水题, D. Not Divisible 看了题解才想到,可以用 Sieve of Eratosthenes,因为 \(A_i\) 最大才 \(10^6\) 但有注意的点 1 1 5 2 2 2 3 3 5 2 2 2 4 4 5 1 1 1 1 2 重复出现的数字 简单的 阅读全文
posted @ 2021-08-17 15:10
RioTian
阅读(91)
评论(0)
推荐(0)

浙公网安备 33010602011771号