• + 0 comments

    is something wrong with test case 5

    HashSet<String> set=new HashSet<>(t);
            
            for(int i=0;i<t;i++){
                
                if(set.add((pair_left[i] + "#" + pair_right[i]))){
                    
                    System.out.println(set.size());
                }else{
                    System.out.println(set.size());
                }
            }