Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

alexlikemath007's blog

By alexlikemath007, 15 months ago, In English

Warning: This problem is like the warden of competitive programming. It is a force of nature — like a hurricane, and when you see a hurricane you don't fight it, you run. It is a big bad boss with a bunch of hitpoints, and deals big damage to your sanity. But when you kill it, it doesn't drop much loot, experience, or educational value compared to other problems. It would be wiser to go and solve some problems and learn how to use binary search.

The problem: https://codeforces.com/gym/102452/problem/F

It's tutorial says: Since n is small, $$$O(n^2)$$$ simulation is OK. Advanced 3-D geometry methods are highly required.

The tutorial doesn't describe what the advanced 3-D geometry methods are. So, I have written this blog to remedy that gap.

Chapter 1. Prologue
Chapter 2. Math StackExchange
Chapter 3. Wikipedia
Chapter 4. Finally an easy case
Chapter 5. Real-world applications of Calculus: Traumatized Edition
Chapter 6. Deja vu
Chapter 7. Deja vu vu
Chapter 8. What is a Euler Angle?
Chapter 9. Put it together
Chapter 10. Edge cases/Debugging
Chapter 11. Optimization
  • Vote: I like it
  • +434
  • Vote: I do not like it

| Write comment?
»
15 months ago, # |
  Vote: I like it +42 Vote: I do not like it

The warning at the beginning was so funny! I thoroughly enjoyed reading this blog, I believe that it really shows one of the craziest geometry problem to exist on this platform! Upvoted! Please continue to make blogs on crazy problems like these

»
15 months ago, # |
Rev. 3   Vote: I like it +82 Vote: I do not like it

I have already forwarded your blog to the problem setter; he seems very surprised now (

The warning in the beginning is interesting. But after this blog, I might need to find another problem to scare people (((

UPD: I have attached your blog into the Gym contest page.

»
12 months ago, # |
Rev. 4   Vote: I like it +5 Vote: I do not like it

Sorry for bumping this up.
Not a big issue, but it seems like your submission produces a different result against judge's solution on the below testcase.

1
3
1 0 0 0 -1 3 1
0 1 1 0 160 300 9560
0 1 1 0 160 300 9560

Still thanks for the tutorial.
It helps pretty much.