for$i(0..31){@q=sort{$a<=>$b}(@q,sqrt($i**2+$_**2))for 1..31} $v==$_&&next,$v>30&&last,printf"%2.6f\n",$v=$_ for@q