import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=0;i<n;i++){
int max=0;
int fea_cnt = sc.nextInt();
Map<String,Integer> preMap = new HashMap<>();
for(int j=0;j<fea_cnt;j++){
int col = sc.nextInt();
Map<String,Integer> map = new HashMap<>();
for(int k=0;k<col;k++){
String point = sc.nextInt()+","+sc.nextInt();
if(preMap.containsKey(point))
map.put(point,preMap.get(point)+1);
else map.put(point,1);
if(map.get(point)>max)
max = map.get(point);
}
preMap = map;
}
System.out.println(max);
}
}
}
特征提取
最新推荐文章于 2024-04-16 17:30:52 发布