I invite everyone to the contest, which will take place on November 16, 2024 at 14:35UTC. Interesting problems await you in the contest.
Contest info:
Number of problems: 12
Difficulty of problems: < 2400
Duration: 4 hours
Contest type: ACM20M
Languages: C++, Python, C, Kotlin, Haskell, R, Nodejs, PHP, C#, Java, Rust
Link to the platform: https://kep.uz/competitions/contests/
P.S. Registration on the platform only via Gmail/Github.
UPD
Thank you for participating. I hope you liked these "strange" problems.
Results
I am new to the platform. Can we see other people's submissions after the contest or do you publish an editorial? I don't want to land in a situation where I was unable to solve a problem and don't even get a closure.
Great contest as always. I ended solving problem G but not sure whether my physics was right or I just got lucky thanks to the 2 digits of precision. Can someone share their solution?
solution (as russian yt channel video)
is this cp?
My integral was something like this, which resulted in a wrong solution though :(
Let me know if it looks familiar.
My code looked like this:
Okay that is an innovative approach. Many of us were busy with integrals rather than thinking like you :P
I revisited the problem with Schmoov. He got the idea to use conservation of energy.
The total energy of the system is $$$\frac{1}{2} m v^2 + m g h$$$. We can calculate the average speed in each interval $$$[x, x+\Delta x]$$$, find $$$\Delta t$$$ from that, and take the sum.
This works but takes 5 million steps to converge to 4 digits of accuracy. The problem comes from the first few steps, where the average speed can be far from the mean of the start and end speed. And since the speed is slow, $$$\Delta t$$$ and its error are quite big.
Instead of taking steps in $$$x$$$ or $$$y$$$, we can take steps in speed. The final speed can be calculated from conservation of energy as $$$f_s = \sqrt{2 G}$$$.
This takes 70 steps to converge to 4 digits of accuracy.
Can someone share their approach to Problem I where we have to calculate binomial co-efficients
I'm curious or dumb. The time complexity is then $$$O({N^{2}})$$$ which is about $$$3e8$$$ and not cool.
Actually, nowadays 1e9 operations in 2 seconds is considered normal)
You can detect cycles in the calculations of n and k. For reasons I don't really understand the cycle length is always 100 or a divisor, like 20. So you just need to compute the first 100 results. There are much more efficient methods to compute combinations with a modulo but this was fast enough:
mind-blowing solution
Then, you hacked the problem. It was not the problem's mind, I think.
Are there going to be editorials?
For what problem do you need an editorial?
Editorial is required for K (Tetris Game) and L (Events). No one was able to solve L so it will be helpful for all. Even code is fine.