Всем привет!
Команда проведения чемпионата с радостью сообщает вам, что регистрация на седьмой турнир компании Яндекс по спортивному программированию (а теперь и не только по нему) Яндекс.Алгоритм 2018 уже открыта! Чемпионат является прекрасной возможностью порешать интересные задачи, посоревноваться с любителями спортивного программирования со всего мира, и, возможно, выиграть фирменную футболку. Традиционно, 25 наиболее успешных любителей спортивного программирования будут приглашены принять участия в финальном раунде, который в этом году состоится 19 мая в Санкт-Петербурге.
Если вы уже немного устали решать обычные олимпиадные задачи по программированию, или просто ищете соревновательного разнообразия, то вам, возможно, будет интересно принять участие в двух новых треках: оптимизационном и ML.
Разминочный раунд пройдёт уже в это воскресенье!
UPD: ссылка на разминочный раунд.
UPD2: появился разбор задач!
will the statements be in English ?
Since the announcement is in english I belive no. It is probably just a trap
That's just their way to promote Yandex.Translate :)
Yes
l nas bt7fl 3lek leh ya 3m :"""""D
Candidate master 3rs m2dr4 aklmo :D
is it rated??????
Good point. They are hosting contest on yandex site, but that is their cheap way to catch you off guard. They will change your cf ratings
Of course it is!
And I'm not sure if it is the first contest hosted on yandex site.
Можно более явно: финал — онсайт или онлайн с возможностью написать в СПб?
Финал конкурса пройдёт 19–20 мая по адресу: Российская Федерация, город Санкт-Петербург, Пискаревский проспект, д. 2, корпус 2, литер Щ. Каждый финалист должен подтвердить свое участие и представить все необходимые документы до 20 апреля. В противном случае он будет дисквалифицирован. Финальный раунд пройдет по правилам TCM/Time, длительность раунда будет между 120 и 180 минутами, объявлена непосредственно перед его началом.
В прошлом году была введена новая фича: оптимизационная задача, результат по которой влиял на итоговый результат. В этом году, как я понял, это считается отдельным контестом? Т.е. результат по каждому треку независим?
Да, в этом году результат по каждому треку независимый.
did not understand what is the difference between an open or a blind submission ??
is not the open submission better or what ??
if you send blind submission, then if you solve it correct, then the some amount of time is subtracted from your time .
One of the reasons to conduct a warm-up round is to make it possible for you to become familiar with TCM\Time rules.
Why is the start time of the warm up before the end time?
Ok, so I switched my language to russian, and the time says 21:40. I still think the english version needs updating to clarify this though.
Excellent catch, thank you! Fixed the schedule
It's difficult to understand the Russian in the registration form. Why after changing the language is it still in Russian? T_T
What happens when the contest starts? A button will appear? I'm not familiar with the system, if anyone could enlighten me, I will be thankful.
Yeah! Pls somebody clarify this ASAP. I'm giving the Yandex contest first time so don't know about how it works...
When will the contest link be posted on the Yandex Algorithm site? This is the link ryt?https://contest.yandex.com/algorithm2018/
How can I specify the permanent address of residence? There's no field in the registration form to specify that (the field with closest meaning to that is the 'city' field).
This year Yandex Algorithm takes place much earlier than before.
:) Looks like Yandex hired some good competitive programming engineers from Facebook.
Автокомментарий: текст был обновлен пользователем GlebsHP (предыдущая версия, новая версия, сравнить).
There is some mistake probably, I think this
should be
since the ML track is mentioned a few lines after that and it says it consists of only one track, starting on March 16.
That's why I love e-olymp: https://www.e-olymp.com/en/contests/9371/problems/81900
brooo :D
How to solve D?
I was able to persuade myself after staring at the screen that correct answer (except for n = 1) is Euler's totient function. No proof, but it worked.
Denominators of https://en.wikipedia.org/wiki/Stern%E2%80%93Brocot_tree
A great hint for this problem:
Stern-Brocot tree
Simulate the process for small n and look up the sequence on OEIS.
The answer turns out to be phi(n). Can anyone explain why?
How do you solve C? I checked if all the centers were collinear and then checked if they would split all rectangles along either diagonal or perpendicular, but I think I might have some bug (or could just be 100% wrong)
I was doing the same thing. Were you getting WA on test case 6?
be careful, there can be two objects with the same center
Yep, I used std::sort and then std::unique and std::erase to delete repeating points.
Must be an extremely dumb bug. At least feels good to know that my approach was correct.
Thanks!
I did the same and got WA at test 4 .
Checking whether all centers are collinear is enough. Probably you had a bug somewhere in your code.
I was just checking collinearity of the centers, because unless I am completely wrong, any line going through rectangle's center still splits it in two halves. But it didn't work.
Solution is check that all centers of mass* is on one line. But you should be carefull because centres can be same point
* for circle it is a centre, for rectangle it is { (x1 + x2 + x3 + x4) / 4, (y1 + y2 + y3 + y4) / 4 }
How to solve E? I got WA 3
Can anyone please share the solution to problem F?
I realized that for a 2x5 block, the best you can do is 3 processors:
1 0 0 0 1
0 0 1 0 0
And for the multiples, you can just tile this 2x5 piece.
But could not figure out what to do with the remainders.
dp[i][mask1][mask2]
(Note that number of transitions (mask1, mask2) -> (mask2, mask3) for n = 7 is 18320)
dp[i][mask1][mask2] = minimum number of liars among the first i rows such that the last second row has mask1 and last row has mask2
Is that correct?
Yes
Thank you!
I solved with DP and bitmasks.
How to solve B?
Check all substrings of size 2 first, if palindromes are found, return lexicographically smallest one.
If not found, do same for size 3.
If not found, return -1.
You can show then for even n>=4, if palindrome exists, a palindrome of size 2 also exists.
And for odd n>=4, if palindrome exists, a palindrome of size 3 also exists.
Thanks
I think for all n>=4 If the length of the palindrome is even . A palindrome of length 2 exists
Sorr didn't notice that you modified your comment .
What about test case "abba"? The correct answer is "abba", not "bb" (since we have to find lexicographically smallest one).
"Print the shortest substring of the input string that consists of at least two characters and is a palindrome"
"Do not forget that Arkady want to find lexicographical smallest possible such string"
How to solve problem E?
Notice that you can first remove K - 1 sons of the root, which means you can remove their whole subtrees afterwards. The K-th removed son needs to be the last removed vertex overall — the situation for its subtree is the same as for the original subtree, so it can be solved recursively using some tree DP.
Besides that, there are some other sons of the root. These can't be removed at all, but we can remove K - 1 sons of each of them (with these sons' whole subtrees, just like above); the situation for the remaining sons' subtrees is the same again, so this can be done with another tree DP.
There are two tree DPs to compute in parallel: the max. number of removable vertices in the current subtree if the root needs to be removed last and if the root mustn't be removed.
I solved one problem during the contest will i be qualified for the elimination round
Based on https://contest.yandex.com/algorithm2018/rules/ section 3 paragraph 3: yes
I missed it. :( Could I be let into rounds as a finalist of some year?
There are also qualification round
Oh, cool, I didn't know. :)
Don't fool yourself, you will definitely miss the ongoing rounds too and end up as a final round tester for the third time :)
Last year the editorial was published here in Codeforces, and in the schedule page, I think it'll be the same this year.
Is there any filter by country or friends in the standings, it'll be really helpful to have those filters!
Автокомментарий: текст был обновлен пользователем GlebsHP (предыдущая версия, новая версия, сравнить).
Господа из Яндекса, насколько для вас сложно сделать линк с главной страницы соревнований (https://contest.yandex.ru/) на текущее (https://contest.yandex.ru/algorithm2018/)? Каждый раз мне приходится искать ссылку на текущее соревнование где-то в гугле или в письмах. На главной же странице ни одного упоминания и все ссылки ведут на какой-то прошлогодний трэш (ну либо я не нашел).
В меню выбрать "Соревнования", дальше "Яндекс.Алгоритм-2018".
Спасибо! Раньше там был только 2017 год и еще более ранние соревнования.
I can't register.
I can't enter the qualification round, it says 'You are not registered for Algorithm 2017.' and links to 2017 registration page??
edit: I registered to 2017 contest and can enter now ... nice system