Please subscribe to the official Codeforces channel in Telegram via the link ×

mirzaalarsyad's blog

By mirzaalarsyad, history, 3 months ago, In English

Problem Link:

The idea was actually pretty straightforward, just an implementation of multisource BFS (160+ lines).

My submission is still TLE on one test case (19th test case), and the rest were AC. Still can't figure it out.

Here's my submission, perhaps someone out there is willing to give a hand. Language: C++ 17.


Read more »

  • Vote: I like it
  • 0
  • Vote: I do not like it