АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

1027. A302

Time Limit: 1 seconds
Memory Limit:65536KB
Points:2
View Problem Statistics Submit Problem added Undefined

Дано целое число n в диапазоне (от 0 до 1000000000).

Сколько различных цифр встречается в его десятичной записи?

Input

Натуральное число n.

Output

Натуральное число k.

Sample

InputOutput
Пример 1. Вход:
123456789
Пример 1. Выход:
9

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
1023. A27 1027. 1028. A323 1003. A338(а) 1053. A339a
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.031 sec.
© Copyright VSTU, AVT, Nosov D.A.