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

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

Hi Codeforces,

We at IIIT-Delhi would like to invite you to ProCon 2016, the annual programming contest conducted as a part of our technical festival. We will have 6-7 problems of varying difficulty over 2.5-3 hours with ACM style scoring. Also, there are prizes worth 20k INR for top Indian students.

Event poster

Contest starts August 6, 2016, 21:00 IST
Check in your timezone here
Register at: http://esya.iiitd.edu.in/events/procon/register(for prizes)
Link to contest: https://www.codechef.com/PROC2016
RSVP: Facebook event

EDIT: contest starts in less than 24 hours.
EDIT: contest starts in 3 hours. We have 6 problems, and 2.5 hours for you to solve them. Good luck!
EDIT: contest ends in 1 hour, 2 problems remain unsolved.
EDIT: Winners will be listed here after a plag check, and contacted by email for prizes. There will be a replay on the next Saturday(August 13) in the CF Gym. An editorial will be published after the replay.
EDIT: Problems were set by the following.
rjalfa0 -> A
slender_hangman -> B, F
polingy -> C, D
lifecodemohit -> E
The problems were tested by the above, and AmbarPal and kzanmos.
UPDATE: Winners
1. rajat1603
2. sidhant
Winners will be contacted by email regarding prizes.

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

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

Auto comment: topic has been updated by polingy (previous revision, new revision, compare).

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

What is the expected cutoff for Procon Junior? I got 500 :)

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

Auto comment: topic has been updated by polingy (previous revision, new revision, compare).

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

Auto comment: topic has been updated by polingy (previous revision, new revision, compare).

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

Auto comment: topic has been updated by polingy (previous revision, new revision, compare).

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

Auto comment: topic has been updated by polingy (previous revision, new revision, compare).

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

Seems like the problem statement for Gangsters' wasn't clear. You are not required to pay for node t, but paying at s is mandatory. Interestingly, I had asked about this in the comments, and I was told that paying at both is mandatory, which is not the case. I guess the statement wasn't clear among the panel as well xD

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
  • »
    »
    8 лет назад, # ^ |
    Rev. 3   Проголосовать: нравится +1 Проголосовать: не нравится

    Fix the number x that A will take. Then make an array C -> C[i] = 1 for all positions i such that B[i] = x, else C[i] = 0. Number of cyclic shifts required is now the maximum distance between two adjacent 1s in the circular array C. Add N to the final answer to account for the assignment costs. Note that if C has just one 1 then number of shifts needed is N - 1.

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

Are they going to publish proper editorial or something like that ????

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

Solutions aren't visible. Please share approaches for E.

The time limit was huuuuge that points almost towards a bruteforce (12 secs), however it didn't passed.

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

    We will publish editorials after a replay. A brute force solution will not pass ^.^

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

    Minimize Tree :-

    Let (x, y) be the edge we are removing. The added edge (u, v) will have u in the subtree of y and v outside the subtree of y. I think that v should be the node with the least depth outside the subtree of y and u should be the centroid of the subtree rooted at y. This would be O(n). Was this the expected solution?

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

      Interesting, we implemented v the same way you talk, but for u, our algorithm was substantially different. What you are saying is probably correct though, we can discuss in more detail after the replay. EDIT: can you test your idea on the second sample, I think it doesn't work there

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

Auto comment: topic has been updated by polingy (previous revision, new revision, compare).