翻译中有误的地方:
你的任务是判断这个数字能否通过去掉其中的一些位上的数(当然不能去掉全部),使其成为一个能被 8 整除的正整数(不含前导 0)。
这里翻译中加粗的“正整数”有误,应为非负整数。原题中写的是非负整数:
Your task is to determine if it is possible in this case to remove some of the digits (possibly not remove any digit at all) so that the result contains at least one digit, forms a non-negative integer, doesn't have leading zeroes and is divisible by 8. After the removing, it is forbidden to rearrange the digits.
而且第二个样例输出的 0 也不是正整数。
希望管理员尽快改正,谢谢!