Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя Muhammad.Ahmad

Автор Muhammad.Ahmad, история, 19 месяцев назад, По-английски

I just have to tell you that I have made a problem using polygon. I was just thinking why would not I share it to you guys. Must try to solve it. Please also suggest me what will be the estimated difficulty level of the problem.

https://codeforces.com/contestInvitation/e97581168e2cf5bb05ca773f4dfce2a0eafd1e20

This is a whole contest made in polygon. But to do this problem accept the contest invitation and open the problem:I

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

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

It says I'm not allowed to view it.

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

One general advice about contest preparation — it's usually not a good idea to write who made the problems on the problem itself. Such information is better given in the editorials, as bad things may happen (say, massive amounts of downvotes) to the problemsetter if a participant has bad feelings about a certain problem during the competition.

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

I think there's something missing, like if our tree is something like this :

4
1 2 -1
2 3 -1
3 4 3

there is two possible ways to fix the roads :

Option 1
Option 2

Also I think the problem(if we ignore the issue) can be solved in O(nlogn) time

  • »
    »
    19 месяцев назад, # ^ |
      Проголосовать: нравится +6 Проголосовать: не нравится

    That's not an issue. If you have multiple solutions, you can give any of them. for example if there is a whole road broken. You can fill it either ways, (top to bottom) or (bottom to top).