标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 492 Accepted Submission(s): 312
1 //2016.8.16 2 #include<iostream> 3 #include<cstdio> 4 #include<set> 5 6 using namespace std; 7 8 set<int> st; 9 10 int main() 11 { 12 int T, kase = 0; 13 string s; 14 cin>>T; 15 while(T--) 16 { 17 cin>>s; 18 st.clear(); 19 for(int i = 0; i < s.size(); i++) 20 { 21 st.insert(s[i]); 22 } 23 printf("Case #%d: ", ++kase); 24 cout<<st.size()<<endl; 25 } 26 27 return 0; 28 }
标签:
原文地址:http://www.cnblogs.com/Penn000/p/5776656.html