SUBMILLIMETER-HCN DIAGRAM FOR ENERGY DIAGNOSTICS IN THE CENTERS OF GALAXIES