2965-BFS

use BFS,TAT...TLE