Snapper_001's blog

By Snapper_001, history, 20 months ago, In English
Given n 2d points
(x,y) , x<=1e5 , y<=1e5
n<=1e5

find the number of triplet such that all x's are different and all y's are different
ex: valid triplet is (1 , 3) , (2 , 2) , (3 , 1)

pLease share some ideas how to solve it
Thanks in advance
  • Vote: I like it
  • -8
  • Vote: I do not like it

| Write comment?