在文件 acwing.cpp 第 3358 行定义.
3363 unordered_set<int>
ms;
3364 auto *
const m =
new int[
M];
3365 auto *
const n =
new int[
N + 1];
3366 memset(n, -1, (
N + 1) *
sizeof(
int));
3367 for(
int i = 0; i <
M; i++) {
3371 auto cp = unordered_map<int, int>();
3372 for(
int i = 0; i < K; i++) {
3377 cp.insert(make_pair(c, p));
3379 if(cp.contains(1)) {
3386 if(
ms.contains(1)) {
3389 for(
int i = 0; i <
M; i++) {
3391 if(cp.contains(m[i])) {
3397 while(n[current] != -1) {
3411 for(
int i =
M - 1; i >= 0; i--) {
3412 if(cp.contains(m[i])) {
3418 while(n[current] != -1) {
3423 for(
int i = 1; i <=
N; i++) {
void ms(vector< int > &arr, int l, int r, int *ans)
引用了 pat::a::a1016::M, acwing::acwing788::ms() , 以及 acwing::acwing2019::N.
被这些函数引用 acwing::TEST().