注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
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 of $[1,2,4]$ is 0 .
Find the maximum possible MEX of the array that can be achieved by doing the above operation any number of times.
Q2
The following sequence is formed using words and numbers:
- The first number is 1
- In the first number, there 您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 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$. |