SRM 437 DIV2 250

簡単すぎて笑ってしまった。
あ、でもこれはm.size()を返すだけでよかったか。

#include <string>
#include <iostream>
#include <map>
#include <sstream>

using namespace std;

class TheBeauty{
public:
	int find(int n){
		map<char, bool> m;
		stringstream tmp;
		string number;
		map<char, bool>::iterator it;
		tmp << n;

		number = tmp.str();

		for (int i = 0; i < number.size(); i++){
			if (!m[number[i]]){
				m[number[i]] = true;
			}
		}

		int count = 0;
		for (it = m.begin(); it != m.end(); it++){
			count++;
		}

		return count;
	}
};