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

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

Автор Anjaneyrai, история, 6 лет назад, По-английски

Hello !! Can anyone tell why i am getting WA in this Bipartite coloring problem here is the link to my solution Here I have to do the partition of graph and store the respective nodes and print them Please Help!!

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

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

You are getting WA because your solution assumes that the graph has only 1 connected component(i.e.,it is connected).