[Full Score] [HUAWEI OD Machine Exam Questions 2023B Volume JAVA&JS] String Statistics

Huawei OD2023 (B volume) machine test question bank is fully covered, click here for the guide to brushing the questions

string statistics

Knowledge point string

 Time limit: 1s Space limit: 256MB Limited language: unlimited

Title description:

Given two character sets, one is the full character set and the other is the occupied character set. The characters in the occupied character set can no longer be used, and the remaining available character sets are required to be output.

Enter a description:

1. The input is a string, which must contain the @ symbol. The word before @ is the full character set, and the word after @ is the occupied character set.

2. The characters in the occupied character set must be the characters in the full character set. Characters in the character set are separated by commas.

3. Each character is expressed as a character plus a number, separated by a colon, such as a:1, which means 1 a character.

4. Only English letters are considered for characters, which are case-sensitive. Only positive integers are considered for numbers, and the number does not exceed 100.

5. If none of the characters are occupied, the @ logo still exists, for example a:3,b:5,c:2@

Output description:

Output available character sets, carriage return and line feed between different output character sets.

Note that the character order of the output must be the same as that of the input. Cannot output b:3,a:2,c:2

Guess you like

Origin blog.csdn.net/qq_34465338/article/details/130935489