Please read the new rule regarding the restriction on the use of AI tools. ×

ruban's blog

By ruban, history, 2 hours ago, In Russian

Why does codeforces dislike real numbers so much? Obviously, problem 2020/E, like any other similar one, should be calculated in a real numbers. Well, or rational, but since the denominator is very large, we have to limit ourselves to real calculations. However, we should outut the answer in a very strange form. After all, nature deals with real numbers (length, mass), and not at all with discrete ones. We do not count the number of molecules of water in a cup; we will be completely satisfied with the answer accurate to the gram if we drink it ourselves, or up to one billionth of a gram, if we suddenly do a very precise physical experiment. So let's use quite natural real calculations in such probability problems. After all, we do not intersect circles in algebraic numbers, and we usually find even the point of intersection of straight lines in real, not rational form.

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