| ||||||||||
| 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 | |||||||||
大侠们帮忙啊,为什么是WA?给的数据过了的说:(
#include <stdio.h>
#include <math.h>
void main ()
{
int a, b, s, m, n;
scanf("%d%d%d%d%d",&a,&b,&s,&m,&n);
while (a)
{
printf("%.2f %.2f\n", atan((double) b * n / a / m) * 2 / 3.1415926 * 90, sqrt( (double)a * a * m * m + b * b * n * n) / s );
scanf("%d%d%d%d%d",&a,&b,&s,&m,&n);
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator