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

Автор sauravUppoor, история, 4 года назад, По-английски

Is there any issue with the mashup feature today? The problems were visible to some participants whereas others just saw an error message like the one below.

Полный текст и комментарии »

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

Автор sauravUppoor, 4 года назад, По-английски

Hello!

Here is my approach for CF Round 647 Div2 D:

Traverse the blogs from 1 to n. Check the neighbours of current blog for:

  1. If topic of the neighbour and the topic of the current blog isn't same.

  2. Topic of the current blog is the smallest possible missing topic in the set of topics of neighbours.

Then if I pass both the condition for all the blogs, I go on to print the blog number in sorted order of topics.

My submission: https://codeforces.me/contest/1362/submission/82608827

Most probably I have missed a case where the answer doesn't exist. However, I am unable to find where I am going wrong.

Полный текст и комментарии »

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