首页 > 其他 > 详细

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

时间:2014-06-23 00:22:33      阅读:263      评论:0      收藏:0      [点我收藏+]

题目很简单,只需要注意带空格的输入用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;
}

 

Codeforces Round #253 (Div. 2) A. Anton and Letters,布布扣,bubuko.com

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

原文:http://www.cnblogs.com/xiongqiangcs/p/3799795.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!