题解
题解:P8306 【模板】字典树
~cpp #include <bits/stdc++.h> #define AC return #define K 0 using namespace std; int pos, root; int chs[3000006][65], t[3000006], T, n, q, a…
905549
还没有收录这位用户的资料。
~cpp #include <bits/stdc++.h> #define AC return #define K 0 using namespace std; int pos, root; int chs[3000006][65], t[3000006], T, n, q, a…
又来切水题了 思路: 首先,使用 cin 从标准输入读取三个变量 P、N 和 R,分别表示期望感染的总人数加 1、第 0 天的患病人数和一个病人每天会感染的人数。 接着,将初始感染人数 N 存储在 total 变量中,并将天数初始化为 0。 然后,使用 while 循环,只要 t…