NCPC-8

 

NCPC-3

 

NCPC-2

 

NCPC-1

 

 

11827

 

10986

Single source shortest path algorithm and priority_queue used to solve the problem.

 

10223

 

11608

 

11650

 

11689