ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1030. Titanic

Plz, help me. WA3.
Posted by Programmer 22 Mar 2009 20:20
The main idea is:
w1,w2,l1,l2.

r:=6875/2;
dist:=r*arccos(sin(w1)*sin(w2)+cos(w1)*cos(w2)*cos(l2-l1));
Re: Plz, help me. WA3.
Posted by LSBG 27 Jun 2009 18:30
I had a problem with parsing the input. It turns out that my logic is fine but got WA3 because it is the first test where the longtitude has 3 digits degrees value.
Re: Plz, help me. WA3.
Posted by VasilySlesarev 6 Jul 2009 16:14
I don`t remember Pascal. In C expression 6875/2 means 3437, not 3437.5