大水题呀
public static void acm1005(int n, float[,] a) { float pi = 3.1415926f, rr; int years; for (int i = 0; i < n; i++) { rr = a[i,0] * a[i,0] + a[i,1] * a[i,1]; int area =(int)(pi * rr); years = Convert.ToInt32(area / 100+1); Console.WriteLine(years); } Console.WriteLine("END OF OUTPUT."); }
时间: 2024-10-21 04:06:15