#abc248a. A - Lacked Number

A - Lacked Number

Score : 100100 points

问题描述

你将得到一个长度恰好为 99 的字符串 SS,其中包含数字。从 09 中的所有数字都恰好出现一次。

请输出在 SS 中缺失的唯一一个数字。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given a string SS of length exactly 99 consisting of digits. One but all digits from 0 to 9 appear exactly once in SS.

Print the only digit missing in SS.

Constraints

  • SS is a string of length 99 consisting of digits.
  • All characters in SS are distinct.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the only digit missing in SS.

Sample Input 1

023456789

Sample Output 1

1

The string 023456789 only lacks 11. Thus, 11 should be printed.

Sample Input 2

459230781

Sample Output 2

6

The string 459230781 only lacks 66. Thus, 66 should be printed.

Note that the digits in the string may not appear in increasing order.

update @ 2024/3/10 10:36:39