| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
大家帮我看看我这个程序哪儿错了#include"stdio.h"
void main()
{
float a,b,c,d,t,x,y,z;
scanf("%f%f%f%f",&a,&b,&c,&d);
while(a!=0)
{
if(a<b){t=a;a=b;b=t;}
if(c<d){t=c;c=d;d=t;}
x=c/a;
y=d/b;
if(x<y)z=x;else z=y;
if(z>=1)z=1;
printf("%.0f\n",z*100);printf("%");
scanf("%f%f%f%f",&a,&b,&c,&d);
}
}
怎么总是wrong answer呢?
我在本机都通过了啊
请指教,谢谢
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator