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

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

Good morning everybody.

January Clash '16 will start tomorrow (check your time zone). Duration is 24 hours and submitting time doesn't matter so you can join whenever you want.

Note the unusual starting time (compared to previous Clashes). We moved it a bit because of colliding with Facebook Hacker Cup.

You will be given 5 algorithmic problems and one approximate (optimization) one. All problems will have partial scoring (points for each test passed) and easier subtasks. Thus, everybody should find something for themselves. Getting full points on all 5 problems should be hard for everyone. Remember to solve as many subtasks as possible if you want to get to the top.

Problems were prepared by Lewin. He is an author of numerous contests, including many SRM's on TopCoder (link) so you don't have to worry about the quality of the problem set. I am a tester and an editorialist.

Problems are interesting and so do smaller subtasks. Don't expect them to be very easy though — some of them are far from being straightforward. Anyway, solve them first if you don't see a 100-points-solution.

There are prizes — t-shirts and Amazon gift cards. And the eternal glory of course.

Enjoy a contest.

WINNERS

Congratulations:

  1. Egor
  2. Kostroma
  3. HellKitsune
  4. anta
  5. akashdeep
  6. ishraq

I want to congratulate anta for solving the hardest problem and Egor for almost solving it — but well, he won anyway. Kostroma had the best score in an approximate problem and HellKitsune was very close to that.

What was your approach to an approximate problem?

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

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

GL & HF

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

Bump. This is starting in about half an hour.

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

4 hours left and only one person has solved all 5 standard problems, though he is not on the lead. How will it end?

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

Seems like I'm missing well known technic to compute function over all permutations in Retract. Can someone enlighten me?

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

    You have a sum that's like (-1)^(sign of permutation) * a_(1,p_1) * .. * a_(n,p_n) over all permutations p. You can compute this using a determinant.

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

By the way, it would be nice if Java would be upgraded to Java 8

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

Editorials are ready but we must wait a bit for a system to refresh. By the way, it was very interesting to watch the leaderboard in the final hours. EDIT — you can see editorials.

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

I am wondering how this O(n) code got 100 points for problem remains. It would easily TLE for a case where x = 1,y = 10^9 and n = 10^9 .

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

what is wrong with my solution from "Rebuild" (2nd problem) :- solution