#include <bits/stdc++.h>
using namespace std;
#define MAX 210
int a[MAX];
int main()
{
int b;
scanf("%d",&b);
while(b--){
int c;
int f,e,max,temp;
max=0;
memset(a, 0, sizeof a);
scanf("%d",&c);
while (c--){
scanf("%d %d",&f,&e);
f=(f-1)/2;
e=(e-1)/2;
if(f>e){
temp=f;
f=e;
e=temp;
}
int i;
for (i=f;i<=e;i++){
a[i]++;
if(a[i]>max){
max=a[i];
}
}
}
printf("%d\n",max*10);
}
return 0;
}
09-08
167
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)