sicily 1716. Houses

1 #include<iostream>
2 #include<cstring>
3 #include<algorithm>
4 using namespace std;
5 int main()
6 {
7 int num[25],n,m,a,b;
8 while(cin>>n>>m&&n)
9 {
10 memset(num,0,sizeof(num));
11 while(m--)
12 {
13 cin>>a>>b;
14 num[a]++;num[b]++;
15 }
16 cout<<*max_element(num+1,num+n+1)<<endl;
17 }
18 return 0;
19 }

posted on 2011-07-10 21:19  sysu_mjc  阅读(174)  评论(0编辑  收藏  举报

导航