Search found 1 match

by monjur
Sat Feb 26, 2011 9:14 pm
Forum: Volume 107 (10700-10799)
Topic: 10773 - Back to Intermediate Math
Replies: 41
Views: 23864

Re: 10773 - Back to Intermediate Math

I cant understand why i got WA repeatedly.
Here is my code:
#include<stdio.h>
#include<math.h>

int main()
{
double result,shortest_time,temp,shortest_path,d;
long cas,n,u,v;
while(scanf("%ld",&n)==1)
{
for(cas=1;cas<=n;cas++)
{
scanf("%lf %ld %ld",&d,&v,&u);
if(u==0 || v==0|| v>=u)
printf ...

Go to advanced search