您的位置:首页 > 其它

Codeforces Round #253 (Div. 2) A. Anton and Letters

2014-06-20 17:11 567 查看
题目很简单,只需要注意带空格的输入用getline即可

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <set>

using namespace std;

int main(){
string str;
getline(cin,str);
set<char> a;
for(int i= 1 ; i < str.length()-1; i+=3 ){
a.insert(str[i]);
}
cout<<a.size()<<endl;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: