1857 - The Knights Of The Round Table

Discussion around the problems of the COJ.
Forum rules
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
Post Reply
User avatar
ymondelo20
Posts: 1968
Joined: 8 years ago
Location: Universidad de las Ciencias Informáticas
Gender: None specified
Contact:

1857 - The Knights Of The Round Table

Post by ymondelo20 » 8 years ago



"Every problem has a simple, fast and wrong solution" OJ's Main Law. ;)

User avatar
JJRZ
Posts: 13
Joined: 8 years ago
Location: UH
Gender: None specified

Re: 1857 - The Knights Of The Round Table

Post by JJRZ » 8 years ago

Hi!... Is r= A/p ( p= (a+b+c)/2 and A= Sqrt(p*(p-a)*(p-b)*(p-c)) ) the solution in this problem? :?: :?: [Because I looking for the radius of the inscribed circumference] Then I must round to 3 decimal digits. ???
Why I get WA??? please help me! :!: :!:

User avatar
Phantom
Posts: 58
Joined: 8 years ago
Location: Cuba
Gender: None specified

Re: 1857 - The Knights Of The Round Table

Post by Phantom » 8 years ago

Your problem is that this is the ecuation for the cicunscribed circunference.

User avatar
JJRZ
Posts: 13
Joined: 8 years ago
Location: UH
Gender: None specified

Re: 1857 - The Knights Of The Round Table

Post by JJRZ » 8 years ago

Phantom wrote:Your problem is that this is the ecuation for the cicunscribed circunference.
Sorry but that is the equation of the radius of the inscribed circumference :o , the formula of the radius of the circumscribed circumference is R=(abc)/(4A) :D . I already found my error and it was not in the formula, but rather I should check that the data were positive and the triangular inequality (things that the problem didn't specify :( , but...)
Anyway, thank you to go in my help. I already get an Accepted

User avatar
Phantom
Posts: 58
Joined: 8 years ago
Location: Cuba
Gender: None specified

Re: 1857 - The Knights Of The Round Table

Post by Phantom » 8 years ago

Yes, you are rigth. Sorry for that. But... I get an accepted too, and I haven't check anithing...

User avatar
JJRZ
Posts: 13
Joined: 8 years ago
Location: UH
Gender: None specified

Re: 1857 - The Knights Of The Round Table

Post by JJRZ » 8 years ago

Phantom wrote:Yes, you are rigth. Sorry for that...
:D No problem!!
Phantom wrote: I get an accepted too, and I haven't check anithing...
????

Post Reply

Return to “Problem set”