标签:pos stdio.h puts div ble ssi scan include int
1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 int n,len,r,d; 6 scanf("%d",&n); 7 while(n--) 8 { 9 scanf("%d%d%d",&len,&d,&r); 10 if(4*r*r-d*d<1) 11 puts("impossible"); 12 else 13 { 14 double temp = sqrt((double)(4*r*r-d*d)); 15 double t=len/temp; 16 if((int)t==t) 17 printf("%d\n",(int)t); 18 else 19 printf("%d\n",(int)t+1); 20 } 21 } 22 } 23
标签:pos stdio.h puts div ble ssi scan include int
原文地址:http://www.cnblogs.com/qq188380780/p/6358051.html