| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 5 초 (추가 시간 없음) | 1024 MB | 136 | 115 | 98 | 83.051% |
Phone numbers in USA are of the form ddd-ddd-dddd, i.e., 10 digits. In general, the fewer distinct digits in a phone number, the easier it is to remember the number. As a result, phone numbers with repeating digits are more popular.
Given a phone number, determine how many distinct digits there are in the number.
There is only one input line; it provides the phone number using the above format. The input starts in column 1 and ends in column 12 (10 digits and 2 hyphens).
Print 1-10 (the number of distinct digits) as follows:
888-888-8888
1
757-577-7577
2
246-189-0537
10
012-987-9690
7
000-000-0000
1