update for ural1450.cpp ,bfs
update for ural1487.cpp, dfs