| ||||||||||
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 |
Problem 1045: get AC with C, but WA with GCC代码如下: #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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator