SRM 437 TheBeauty (three ways to solve this problem)

来源:互联网 发布:2016全球社交网络排名 编辑:程序博客网 时间:2024/05/16 02:38

Recently I came across TCO , and I love it . I decide to devote my spare time to play here .

Here I'd like to give you two ways to solve this problem . It is very easy!

 

Problem:

    Given you a integer number , the beauty of this number is the number of distinct digits it contains in decimal  notation .Now please give the beauty of the given number.

 

One:

 

Two:

 

Three:

原创粉丝点击