update for hdu2389,max pair,H_K,Build_graph,stl