码迷,mamicode.com
首页 > 其他好文 > 详细

2016ACM省赛 ProblemC 不同的衣服

时间:2017-05-17 21:08:03      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:cout   div   int   ret   problem   iostream   space   namespace   return   

 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 不同的衣服

标签:cout   div   int   ret   problem   iostream   space   namespace   return   

原文地址:http://www.cnblogs.com/index556/p/6869297.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!