1. 程式人生 > >2016ACM省賽 ProblemC 不同的衣服

2016ACM省賽 ProblemC 不同的衣服

using cout div col int span nbsp return ret

 1 #include<iostream>
 2 #include<set>
 3 using namespace std;
 4 int main()
 5 {
 6     set<int> s;
 7     int n;
 8     while(cin>>n)
 9     {
10     int k;
11     while(n--)
12     {
13         cin>>k;
14     s.insert(k);
15     }
16     cout<<s.size()<<endl;
17 s.clear(); 18 } 19 return 0; 20 }

2016ACM省賽 ProblemC 不同的衣服