标签:des style blog io color ar os sp for
1 #include <stdio.h> 2 3 int main(){ 4 int T; 5 double P; 6 double Q; 7 int number; 8 9 scanf("%d",&T); 10 11 while(T--){ 12 scanf("%lf%lf",&P,&Q); 13 14 number=1; 15 while(1){ 16 if((int)(number*P/100)<(int)(number*Q/100)) 17 break; 18 19 number++; 20 } 21 22 printf("%d\n",number); 23 } 24 25 return 0; 26 }
标签:des style blog io color ar os sp for
原文地址:http://www.cnblogs.com/zqxLonely/p/4086128.html