Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

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

Can some user with coach mode provide me test case 10 for this problem? My Solution.
I am finding the maximum distance from one of the extremes and then printing all the vertices in the order of distances.
Please correct me, If am wrong!.
Thanks!

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

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

Here you go

7 5

6 3

7 3

3 1

1 5

2 4

Participant's output

2 4 1 3 5 6 7

Jury's answer

6 7 3 1 2 4 5

Checker comment

wrong answer Not topsort: 6,3 -> 6,4