跳到正文

个人记录

Mex

xxr___约 1 分钟
原文
文章信息与版本

文章信息

发布
2025年5月2日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 1 分钟

版本

  1. v1当前

problem statement/description:

Now, you have an array AA with length NN, and a integer KK. Please you get every subsequence of AA which their length more than KK for their Mex ‘s sum.

Mex is the smallest non-negative integer of the sequence that haven’t done appear.

Data Range:

N≤106,1≤K≤N,Ai≤1018N\leq 10^6,1\leq K\leq N,A_i\leq 10^{18}

Time limit: ∞\infty s

原文