a647.
投資專家
| From: [120.115.4.12] |
發表日期
:
2013-06-28 23:52
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int a,b,c,d,e,f;
double gg;f=0;
while(scanf("%d",&a)!=EOF)
{int i,j;
for(i=0;i<a;i++)
{scanf("%d%d",&b,&c);f=f+1;
gg=(double)100*(double)(c-b)/(double)b;
if(gg>=10.00||gg<=-7.00)
{
printf("%.2lf%%",gg);printf(" dispose\n");
}
else
{
printf("%.2lf%% keep\n",gg);
}
}
}
return 0;
}