10773 - Back to Intermediate Math

All about problems in Volume 107. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Honour_00
New poster
Posts: 4
Joined: Tue Jul 17, 2012 4:04 pm

10773 wa help plz

Post by Honour_00 » Mon Jul 23, 2012 1:04 pm

removed
Last edited by Honour_00 on Tue Jul 24, 2012 7:55 pm, edited 1 time in total.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 10773 wa help plz

Post by brianfry713 » Tue Jul 24, 2012 1:08 am

Input:

Code: Select all

3
8 5 6
1 2 3
1 5 6
3
8 5 6
1 2 3
1 5 6
AC output:

Code: Select all

Case 1: 1.079
Case 2: 0.114
Case 3: 0.135
Check input and AC output for thousands of problems on uDebug!

amjadkhan0988
New poster
Posts: 1
Joined: Wed Aug 08, 2012 2:13 pm

Re: please help me why i am getting WA for my code ?

Post by amjadkhan0988 » Wed Aug 08, 2012 2:16 pm

brianfry713 wrote:What's the problem number?
i think every thing is right no problem is there. :wink:

mikhelee12
New poster
Posts: 1
Joined: Mon Sep 24, 2012 6:55 am

Re: please help me why i am getting WA for my code ?

Post by mikhelee12 » Mon Sep 24, 2012 6:59 am

:o i ve checked so many critical input output . i am still getting WA ,,, plz anybody help me,,,, plz,,,, i am trying this for a long time ..... here's my code:
jimmgiht

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: please help me why i am getting WA for my code ?

Post by brianfry713 » Tue Sep 25, 2012 12:57 am

mikhelee12 wrote::o i ve checked so many critical input output . i am still getting WA ,,, plz anybody help me,,,, plz,,,, i am trying this for a long time ..... here's my code:
There's no code here.
Check input and AC output for thousands of problems on uDebug!

bimajw
New poster
Posts: 6
Joined: Wed Nov 14, 2012 5:26 am

Re: please help me why i am getting WA for my code ?

Post by bimajw » Wed Nov 14, 2012 6:02 am

delete
Last edited by bimajw on Thu Nov 15, 2012 5:09 am, edited 1 time in total.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: please help me why i am getting WA for my code ?

Post by brianfry713 » Thu Nov 15, 2012 1:46 am

The output shouldn't start with a blank line.
Check input and AC output for thousands of problems on uDebug!

Repon kumar Roy
Learning poster
Posts: 96
Joined: Tue Apr 23, 2013 12:54 pm

Re: please help me why i am getting WA for my code ?

Post by Repon kumar Roy » Wed Apr 24, 2013 3:21 pm

#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])
{

long long int test,d,v,u,i;
scanf("%lld",&test);
for (i=1; i<=test; i++) {
scanf("%lld %lld %lld",&d,&v,&u);
if (u<=v||u==0) {
printf("Case %lld: can't determine\n",i);
continue;
}
printf("Case %lld: %.3lf\n",i,(1.*d/sqrt(u*u-v*v)-d*1./u));
}
return 0;
}

here is my code. It seems everything all right to me.. But wrong answer.. So please help me to find the bug///

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: please help me why i am getting WA for my code ?

Post by brianfry713 » Thu Apr 25, 2013 12:26 am

what if v is 0?
Check input and AC output for thousands of problems on uDebug!

zlenyk
New poster
Posts: 2
Joined: Tue Oct 21, 2014 1:56 pm

Re: 10773 - Back to Intermediate Math

Post by zlenyk » Tue Oct 21, 2014 1:58 pm

If someone could please take a look at this code. It's sick, I've read all your previous hints and still getting WA on it.
Last edited by zlenyk on Tue Oct 21, 2014 2:42 pm, edited 1 time in total.

lighted
Guru
Posts: 585
Joined: Wed Jun 11, 2014 9:56 pm
Location: Kyrgyzstan, Bishkek

Re: 10773 - Back to Intermediate Math

Post by lighted » Tue Oct 21, 2014 2:19 pm

Use code tags. My advice to you -> always copy/paste output format from sample or problem description.

Sample Output

Code: Select all

Case 1: 1.079
Your Output

Code: Select all

Case #1: 1.079
Don't forget to remove your code after getting accepted. 8)
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman

zlenyk
New poster
Posts: 2
Joined: Tue Oct 21, 2014 1:56 pm

Re: 10773 - Back to Intermediate Math

Post by zlenyk » Tue Oct 21, 2014 2:42 pm

There is just no way I made such mistake! Thank you very much.

Post Reply

Return to “Volume 107 (10700-10799)”