Text this: A Method Based on Elastic Mechanics for Judging Compound Hard Roof and Its Application