how much pizza?
題目說明
輸入一片披薩的半徑,以及指定均勻分割的片數,程式輸出單片的面積,取四捨五入到整數。圓周率使用Math.PI,四捨五入使用Math.round()。
輸入資料限制:輸入數字都是整數,1 <= 半徑 <= 100,1 <= 片數 <= 12。
輸入
披薩半徑 片數
輸出
單片面積
sample input1
3 4
sample output1
7
sample input2
100 8
sample output2
3927
sample input3
2 100
sample output3
0
Comments