update for hdu3585,binary judge + clique