    Fundamentals of C# Programming,  Telerik   , 
   2010.         BFS,     - 
    - ( -) greedy .    
       () ,       
    .    ,      
    / . 

         ,     . 
        -   , - . 
      ,      , 
  20 ,    5 .

    30     (/solutions/bf30.cpp), 
   time limit-          
 6 (/tests/transform.006.in).     ,     , 
    .

