#abc248a. A - Lacked Number
A - Lacked Number
Score : points
问题描述
你将得到一个长度恰好为 的字符串 ,其中包含数字。从 0
到 9
中的所有数字都恰好出现一次。
请输出在 中缺失的唯一一个数字。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a string of length exactly consisting of digits. One but all digits from 0
to 9
appear exactly once in .
Print the only digit missing in .
Constraints
- is a string of length consisting of digits.
- All characters in are distinct.
Input
Input is given from Standard Input in the following format:
Output
Print the only digit missing in .
Sample Input 1
023456789
Sample Output 1
1
The string 023456789
only lacks . Thus, should be printed.
Sample Input 2
459230781
Sample Output 2
6
The string 459230781
only lacks . Thus, should be printed.
Note that the digits in the string may not appear in increasing order.
update @ 2024/3/10 10:36:39