The USACO 2012 November contest is available November 16 through November 19.Good Luck to everyone!!!

**UPD:** Contest complete.Results will be posted within a day or two.

**UPD:** Results here.

# | User | Rating |
---|---|---|

1 | Benq | 3650 |

2 | Radewoosh | 3648 |

3 | tourist | 3579 |

4 | ecnerwala | 3551 |

5 | Um_nik | 3494 |

6 | Petr | 3452 |

7 | ksun48 | 3432 |

8 | jiangly | 3349 |

9 | maroonrk | 3338 |

10 | Miracle03 | 3314 |

# | User | Contrib. |
---|---|---|

1 | 1-gon | 211 |

2 | awoo | 188 |

3 | rng_58 | 185 |

3 | Errichto | 185 |

5 | SecondThread | 182 |

6 | Ashishgup | 175 |

6 | Um_nik | 175 |

8 | maroonrk | 174 |

9 | antontrygubO_o | 170 |

9 | -is-this-fft- | 170 |

The USACO 2012 November contest is available November 16 through November 19.Good Luck to everyone!!!

**UPD:** Contest complete.Results will be posted within a day or two.

**UPD:** Results here.

↑

↓

Codeforces (c) Copyright 2010-2021 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: May/18/2021 14:29:09 (i2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|

Can you please give me the link to the contest gateway.. I cannot find it..Thank You.

USACO & USACO CONTESTS

I know these page.. What I wanted is the link where I will find problems and submit solutions . It used to be [link] before but I think they have switched from it.

Edit: They have updated it hereThe USACO admins will publish the link to the November contest gateway when the contest starts. The contest hasn't started yet.

Please note — it will start in 4.5 hours

.

.

Starting from November 16 until November 19 you can choose any time , that is convenient for you and participate in a contest.

ссылку?

Link to the list of contests

For all those who have problems with finding link..

Go to this link , then login, and there are the problems ^^

I would not recommend to start now as it seems last task lacks input/output definitions and files

Fixed

just I wrote contest and results why not?

Results will be announced by the end of next week

Pretty balanced problems in Gold division :)

Let's discuss the problems. I wonder what is the solution for the second and the third one in Gold division.

Second problem: Let's imagine that we have only one string. It is easy problem. For solving it we'll iterate our right edge of segment and summing number or indexes which have balance equals to current one and between them there is no such indexes i, that: balance[i]<balance[right]. Our problem is identical to this one. We only have to encode all balances of each column with some number. It can be done by using hashes or some tricky maps.

Third problem: I only came up with solution with complexity O(n^2). But at contest I submitted another one, with O(n^3*log(n)).

Another solution for second problem: if we have only one string, then for each closing bracket we can count the number of correct bracket sequences ending there(it's rather obvious how to do it), answer is sum of all these values. If we have multiple strings, we choose one of them and just use our algo for one string, the only difference is that when we look at bracket matched with our closing bracket, we check that corresponding substrings in all given strings are correct bracket sequences and if any of them is not, then we discard this ending position.

Ok, this solution is mainly like mine... But i also think, that its time complexity is O(n^2 * k), isn't it?

Well, i guess you check substrings for correctness in linear time, don't you? But there is a simple O(n) preprocessing that allows you to check if any substring of a given string is correct bracket sequence in O(1).

No, its's not true, i check correctness of one substring in O(1), but i also think, that in every string of brackets there are potentially n^2 substrings, aren't they? And for each of these substring you have to check all other strings...

Ok, full solution looks as follows: we maintain values

end_{i}— number of correct substrings(correct substring means that all corresponding substrings are correct) ending at position i, also for one chosen string we calculateop_{i}— position of matching opening bracket for closing bracket at position i or -1 if it doesn't exist. Then,This solution is totally wrong by the way :D

It will be rather disappointing if the intended solution to the third problem is brute-force with a set of optimizations. Could anyone suggest anything better?

I hope it is;)

I have no doubt that a lot of quadratic-looking solutions will get full score on this problem, USACO usually have about 10-15 test cases for a single problem. But it will be also nice to see something with better complexity.

There is O(n) solution — for each vertex and each incident edge let count maximum "open" balance of a path ending in this vertex through this edge and maximum "close" balance of a path starting in other end of this edge. It is fairly straightforward to do in O(n^2), there is well known trick how to do this in O(n). Then answer is maximum for vertice v of maximum for edges e1, e2, incident to v of minimum open(v, e1), close(v, e2)

Could you please provide any other links of this trick? like problems or examples?

Results ready on RESULTS USACO NOVEMBER 2012

Do you know how the score is calculated? Is it something like NumberOfSolvedCases/NumberOfTestcases * 1000?

I think that they use this formula.