http://acm.hdu.edu.cn/showproblem.php?pid=1789
<strong><span style="font-size:18px;"><pre name="code" class="cpp"><strong><span style="font-size:18px;"></span></strong>
<strong><span style="font-size:18px;">#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int a[205];
int T,n,x,y;
int i,j;
cin>>T;
while(T--)
{
memset(a,0,sizeof(a));
cin>>n;
for(i=0;i<n;i++)
{
cin>>x>>y;
x=(x+1)/2;
y=(y+1)/2;
if(x>y)
swap(x,y);
for(j=x;j<=y;j++)
a[j]++;
}
sort(a,a+201);
cout<<a[200]*10<<endl;
}
return 0;
}</span></strong></span></strong>