## 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.
ymondelo20
Posts: 1968
Joined: 9 years ago
Location: Universidad de las Ciencias Informáticas
Gender:
Contact:

### 1857 - The Knights Of The Round Table

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

JJRZ
Posts: 13
Joined: 8 years ago
Location: UH
Gender:

### Re: 1857 - The Knights Of The Round Table

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. ???

Phantom
Posts: 58
Joined: 8 years ago
Location: Cuba
Gender:

### Re: 1857 - The Knights Of The Round Table

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

JJRZ
Posts: 13
Joined: 8 years ago
Location: UH
Gender:

### Re: 1857 - The Knights Of The Round Table

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 , the formula of the radius of the circumscribed circumference is R=(abc)/(4A) . 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

Phantom
Posts: 58
Joined: 8 years ago
Location: Cuba
Gender:

### Re: 1857 - The Knights Of The Round Table

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

JJRZ
Posts: 13
Joined: 8 years ago
Location: UH
Gender:

### Re: 1857 - The Knights Of The Round Table

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