Блог пользователя Ramprosad

Автор Ramprosad, история, 5 лет назад, По-английски

https://codeforces.com/contest/1197

https://codeforces.com/contest/1197/problem/C

Before this contest started, I have learned and implement the dp optimization IOI 16 Alien Trick. When I see the problem C, I thought this problem can be solved With the Alien trick. Then I started trying to solve the problem and finally I got Accepted verdict. This Problem can be solved simply using sorting the difference of adjacent element. Maximum Contestant has solved this with sorting. When I saw that all Contestant solve this problem very easy way, I became very surprised. But I am happy , because I could apply the trick first day in contest time.

This is my Solution.

https://codeforces.com/contest/1197/submission/57537548

Thanks to Everyone.

  • Проголосовать: нравится
  • +42
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +72 Проголосовать: не нравится

Please do not be offended but this is so cyan.

»
5 лет назад, # |
  Проголосовать: нравится +91 Проголосовать: не нравится

This is actually quite cool. I realized that I can compute the minimum of array using Li-chao tree. You can simply make $$$n$$$ lines $$$a_i \times x$$$ and query on point $$$x=1$$$!

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

Where can I learn about this IOI Alien Trick ? Any Links ?

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can you please paste this blog link to contest page?

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Das some serious shit right there