cosmere's blog

By cosmere, history, 20 months ago, In English

I was trying to solve this problem here. In my initial submission here, I am going from a mask with only one fish to a complete mask, and it works. But in the case of this submission here, I am going from a complete mask to a particular fish, but apparently there is some overcounting in this case. Can someone please help me understand what is wrong in the second submission. Thanks in advance!

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By cosmere, history, 3 years ago, In English

I am trying to solve this problem. The editorial for this problem uses the following approach

Can anyone explain me the Inclusion-Exclusion formula shown here?

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it