muzzaleeni's blog

By muzzaleeni, history, 5 years ago, In English

73573306 Getting WA, help me please

Full text and comments »

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

By muzzaleeni, history, 5 years ago, In English

The inclusion-exclusion principle can be expressed as follows:

To compute the size of a union of multiple sets, it is necessary to sum the sizes of these sets separately, and then subtract the sizes of all pairwise intersections of the sets, then add back the size of the intersections of triples of the sets, subtract the size of quadruples of the sets, and so on, up to the intersection of all sets. The above definition can be expressed mathematically as follows:

It is intuitive for $$$n\leq 3$$$. But I have some problem with it. I cannot understand why it is like that?! (previously thanks!)

Full text and comments »

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

By muzzaleeni, history, 5 years ago, In English

It turns out, that the final amortized time complexity is $$$O(α(n))$$$, where $$$α(n)$$$ is the inverse Ackermann function, which grows very slowly. In fact it grows so slowly, that it doesn't exceed $$$4$$$ for all reasonable $$$n$$$ (approximately $$$n<10^{600})$$$.

code

Question: Why this works in $$$O(α(n))$$$?

Full text and comments »

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

By muzzaleeni, history, 6 years ago, In English

Can someone explain me solution of the problem D?

Full text and comments »

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

By muzzaleeni, history, 6 years ago, In English
  • Vote: I like it
  • -5
  • Vote: I do not like it

By muzzaleeni, history, 7 years ago, In English

Hello everyone, I'm a beginner at competetive programming, would anyone please suggest me some math/number theory problems for fast growth please? Because I'm really not so good at it and I'd like to develope (my Logic & Math), thanks in advance!

Full text and comments »

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