Logo
(追記) (追記ここまで)

20959번 - Šifra 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB26819716874.009%

문제

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.

입력

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.

제한

예제 입력 1

abc123abc2a3a1

예제 출력 1

4

예제 입력 2

borna123vitez

예제 출력 2

1

예제 입력 3

as23dkrf23smk1asd23sam9

예제 출력 3

3

힌트

출처

Contest > Croatian Open Competition in Informatics > COCI 2020/2021 > Contest #5 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /