#P7398. [COCI 2020/2021 #5] Šifra
[COCI 2020/2021 #5] Šifra
Description
Given a string of length at most that contains only lowercase letters and characters from (the letters in the string can be treated as separators), find how many distinct numbers appear in the string.
Input Format
One line containing a string with only lowercase letters and characters from . It is guaranteed that each number has at most digits.
Output Format
Output the number of distinct numbers in the string.
abc123abc2a3a1
4
borna123vitez
1
as23dkrf23smk1asd23sam9
3
Hint
Constraints
For of the testdata, all numbers that appear are pairwise distinct.
For of the testdata, the string length is between and .
Notes
The score for this problem follows the original COCI settings, with a full score of .
This problem is translated from COCI2020-2021 CONTEST #5 T1 Šifra.
Translated by ChatGPT 5
京公网安备 11011102002149号