#include#include using namespace std; struct ju { int id,x,y; bool operator <(const ju &a)const //排序并且去重复 { if(id==a.id) { if(x==a.x) return y my; set::iterator it; int main(int argc, char *argv[]) { int t,n,i,j; cin>>t; while(t--) { cin>>n; my.clear(); for(i=0;i >tt.id>>tt.x>>tt.y; if(tt.x