Šifra
의견: 0
Knight Borna is trying to decipher secret letters of his enemies. He recently came into
possession of a special piece of paper that is used for the cipher. The paper contains
a single word, made up of lowercase letters and digits.
The secret code is the number of distinct integers that appear in the word, when all
letters are replaced with whitespace. The integers are written without leading zeroes.
Since Borna is not very good with numbers, he turned to you for help.
In test cases worth 25 points all integers will be pairwise distinct.
The first line contains a word of length between 1 and 100. The word contains only lowercase letters and
digits. All integers in it have at most three digits.
Output the secret code.
abc123abc2a3a14borna123vitez1as23dkrf23smk1asd23sam93평가 및 의견
Šifra
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Šifra