Skip to content

Commit 91d0119

Browse files
committed
Added 443A - Anton and Letters.cpp
1 parent 9a3db58 commit 91d0119

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

443A - Anton and Letters.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
// Code Written By: Vikash Patel
5+
6+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
7+
8+
int main()
9+
{
10+
string s;
11+
getline(cin,s);
12+
set<char> ans;
13+
for(int i=0;i<s.size();i++)
14+
{
15+
if(s[i]=='{' || s[i]==',' || s[i]==' ' || s[i]=='}')
16+
continue;
17+
else
18+
ans.insert(s[i]);
19+
}
20+
cout<<ans.size()<<endl;
21+
}

0 commit comments

Comments
 (0)