Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Sukeesh's blog

By Sukeesh, 8 years ago, In English

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!

  • Vote: I like it
  • +6
  • Vote: I do not like it

»
8 years ago, # |
Rev. 2   Vote: I like it +4 Vote: I do not like it

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