$解:(2)沿母線SA將圓錐的側面展$
$開,如圖, $
$則線段AM的長就是螞蟻所走的最短$
$距離$
$由(1)知,$
$SA=40\ \mathrm {cm},$
$弧AA'=20\pi\ \mathrm {cm}$
$\because \dfrac{n\pi \times 40}{180}=20\pi\ \mathrm {cm},$
$\therefore \angle S=n=\dfrac{180\times 20\pi }{40\pi }=90^{\circ},$
$\because SA'=SA=40\ \mathrm {cm},SM=3A'M$
$\therefore SM=30\ \mathrm {cm}, $
$\therefore 在Rt\triangle ASM中,$
$由勾股定理得AM=50(\ \mathrm {cm})$
$所以,螞蟻所走的最短距離是50\ \mathrm {cm}. $