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

Автор phantom11, 14 лет назад, По-английски

This is to remind you that the USACO December 2012 Contest is going to take place from tomorrow.The duration of the contest is 4 days.You can appear in the maximum of any of the 4 hour window during the contest.

Link to Contest Page .(to be updated before the contest starts )

Your Timezone.

You can use this blog space to discuss problems NOT during the contest but ONLY after the contest is complete.

UPD -> [Results]

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

»
14 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится
»
14 лет назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

It's time to help FJ with his cows :)

»
14 лет назад, скрыть # |
← Rev. 3  
Проголосовать: нравится -13 Проголосовать: не нравится

I am getting WA on sample case, the output is 57.5 and I am printing 57.500000. The Sample case is unique or they are testing with another sample case? Thanks. **Ok, I solved it.**

**Can anybody please tell me why I got WA printing 57.500000 when answer is 57.5? I understand negative votes but I really want to know. Thanks.**

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

Is it something wrong with USACO? it doesn't show Remaining time...

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

For how long does Gold contest lasts this time? 3 or 4 hours?

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

In USACO, Is the stacksize increased by default?

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

Can i knew my submittion result during contest?Or only samle tests?

»
14 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

According to the announcement,the contest will be over 15 minutes later(Dec 17,23:59 UTC-12).

UPD:Sorry,actually it will be over at Dec 18,03:59 UTC-12.We can discuss problems after that.

»
14 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

Can the last problem in Gold division be solved if cows are allowed to run not only away from the 1st barn?

  • »
    »
    14 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +5 Проголосовать: не нравится

    I originally understood it that way so I think it could. :) Here's a sketch of an O(n log^2 n) solution: First, let's find the center of the tree C and root the tree at C. Find the list of lengths from C to every other vertex and sort it. Now, for each element a of the list we can easily compute number of other elements b, such that a + b <= L. That way, we are able to find for each vertex v the number of vertices w s.t. the path v-->C-->w is of length <= L. Doing roughly the same thing for length lists limited to every single subtree of C, we can subtract for each vertex v the number of vertices w such that the shortest path from v to w does not go through C. Overally, for each vertex we will know the number of vertices located past vertex C, that are still close enough to be counted. Now all you need to do is to delete edges adjacent to C and recurse on each subtree. Every subtree is at least two times smaller, so the complexity is O(n log^2 n).

    Any idea how to do that in O(n log n)? :)

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

How can i solve third problem from bronze div?

»
14 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Can the first problem be solved using some non greedy algorithm?

I used maximum bipartite matching and I was able to find out how many cows from the first group will survive but I found no correct way to output the lexicographically earliest ordering of the cows.

UPD: I'm talking about the gold division.

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

Is there anyone who know when will they post the result?

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

Was #3 in silver just a modified djikstra?

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

Can you go to lower division if your results are bad?

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

finally the results has been published. :)