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

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

Hi,

Today was held the Latin America Regional Contest.

The problem set can be found here (sadly it requires an account): https://www.urionlinejudge.com.br/judge/en/challenges/contest/211 The results can be found here: http://score.acmicpc-latam.org/

Congrats to the winners!

  • 1st — UH++ (Cuba)
  • 2nd — PUMMAS (Argentina)
  • 3rd — [UFPE] 0xE (Brazil)
  • 4th — UNICAMP] Veni Vidi Codi (Brazil)
  • 5th — PUCP-FCI O(1) O(n) O(u(n)) [Peru]
  • Проголосовать: нравится
  • +42
  • Проголосовать: не нравится

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

    The angle of rotation can only be 90, 180 or 270 degrees.. The reason is that every point in the set must be vertex of a regular polygon (not necessarily the same). Now the only regular polygon with all is point with integers coordinates is a square. Knowing this the problem become much simpler. The rest is counting.

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

So this 5 teams will go to WF?

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

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

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

why do you post this if the problems aren't available to everyone? it's useless

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

how can we solve problem B ?

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

    You can take the whole graph and remove the nodes that don´t satisfy the necessary condition. You can detect this nodes easily using structures from stl like set and updating neighbours of the removed node storing the degree of every node. The remaining graph is the answer to the problem.

    Why is this correct? The only proof required is: if we extract a node at some point there is no answer containing this point. So the remaining graph is a maximal graph satisfying "the condition".

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

PDF version of the problems can be found at http://maratona.ime.usp.br/resultados16/contest.pdf

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится
»
9 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится +26 Проголосовать: не нравится

A brief solution description to all problems of this contest:

A: easy one.

B: detect and delete all invalid vertices until not found. This can be optimized by data structures, for ex., priority queue.

C: Only need to consider alpha = 180 degree. So it's enough to consider center = all mid-points of line segments with vertices in input points.

D: The best permutation is like this(for ex. n=9: 2 4 6 8 9 7 5 3 1). This can be found by writing a brute-force program to process small cases.

F: easy one.

G: Use S and P to denote the string and the pattern. For each position in S and P, calculate the right-most position with the same character at the left of this position, then calculate the position differences. Now, except at most 26 positions, the problem is translated to a classical pattern matching problem. The matching of that 26 positions can be done by brute force.

H: Sort the cost from the bigger to smaller. Check if you can use points to pay that days account one-by-one. This can be optimized by data structures like DSU.

I: DP-optimization. O(n^3) DP is obvious, which can be optimized to O(n^2logn).

J: The problem is indeed asking for the largest prime not more than the input number.

K: Maxflow.

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