注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Q1
Given an array arr containing $n$ non-negative integers and an element $x$, in one operation, $x$ can be added to or subtracted from any element of the array. MEX of an array is defined as the smallest non-negative integer which is not present in the array. For example, the MEX of $[0,1,1,3]$ is 2 , and the MEX the sum of the digits of the value in the sequence at that position. For example, position 4 contains the value 1211 . The sum of those digits is $1+2+1+1=5$. |