thinkcentre_ns's blog

By thinkcentre_ns, history, 8 years ago, In English

Hey there!

I wanted to ask that in the problem: 660D - Number of Parallelograms , Shouldn't the answer for the below test-case be zero (but my A.C code gives one) ?

TEST-CASE:
4
0 0
0 20
0 5
0 15

  • Vote: I like it
  • -11
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +6 Vote: I do not like it

It is guaranteed in the problem statement that no three of the given points lie on the same line, and the test case you made violates that condition.