先把所有輸入*100後再除以輸入資料數+0.5後取floor,之後判斷這個floor值是否為100或10的倍數,對應輸出0或1或2位小數(將此floor值除以100)提示:需要 #include<iostream>#include<iomanip>#include<cmath>