Solution – 443A – Anton and Letters – codeforces

April 3, 2016 § Leave a comment

//c++
#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    getline(cin,s);
    set<char> a;
        for(int i=0 ; i<s.length() ; i++)
        {
            if(s[i]>=97 && s[i]<=122)
            {
                a.insert(s[i]);
            }

        }
        cout<<a.size()<<endl;

    return 0;
}

Find more from my submissions HERE

Advertisements

Tagged: , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Solution – 443A – Anton and Letters – codeforces at Orange Notes.

meta

%d bloggers like this: