Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Problem 1045: get AC with C, but WA with GCC

Posted by kucyla at 2013-03-25 15:42:18
代码如下:

#include <stdio.h>
#include <math.h>

int main()
{
	double Vs, R, C, w, Vr;
	int n, i;

	scanf("%lf%lf%lf%d", &Vs, &R, &C, &n);
	
	for (i = 0; i < n; ++i) {
		scanf("%lf", &w);
		Vr = C*R*Vs*w / sqrt(1 + C*C*R*R*w*w);	
		printf("%.3lf\n", Vr);
	}

	return 0;
}


我没看出来为什么GCC编译的结果总是WA,望大家帮帮忙给看看吧。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator