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

Someone can give me a hit for problem IMPER in SPOJ?

Revision en1, by PintinhoPreto, 2015-12-09 02:26:54

I try it using a BFS. Starting in a node with degree 1, setting the node as visited and its neighbors, adding in the queue the neighbors of neighbors of node. But, i was received only wrong answer with this strategy :(

Link for the problem: http://www.spoj.com/problems/IMPER/

sorry for my bad english.

Tags spoj, graph, need help, problem

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English PintinhoPreto 2015-12-09 02:26:54 360 Initial revision (published)