假设你的N在A2 单元格, n在C2单元格,在C2 中写函数:=IF(A2<=10,A2,IF(AND(A2>10,A2<=300),INT(SQRT(A2))+1,INT(SQRT(A2))/2+1))
用公式:=IF(B1<=10,B1,IF(B1<=300,INT(SQRT(B1))+1,INT(SQRT(B1))/2+1)