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

Some info about this problem
Posted by Olzhas aka Whale2dy 30 Mar 2007 05:23
Hello, everyone.
Just wanted to summarize some info about this problem.
Ok, my code got AC with following things in it:
1. My pi was 3.1415926535897932384626433 (perhaps it is enough)
2. I used this formula from wikipedia
deltaArc=acos(sin(phiA)*sin(phiB)+cos(phiA)*cos(phiB)*cos(deltaL));
distance = deltaArc*3437.5;
(see the first formula from wikipedia http://en.wikipedia.org/wiki/Great-circle_distance)
3. I used the following condition:
if(100.00-distance>0.005) printf("DANGER!\n");
Hope it will help somebody.
Re: Some info about this problem
Posted by Javran 14 Oct 2007 16:35
thanks a lot ...your formula is really useful.^_^
Re: Some info about this problem
Posted by Lomir 11 Nov 2007 02:13
Used everynth what is written here. However still WA8.
Any new ideas?...
Re: Some info about this problem
Posted by Hakkinen 26 Jan 2009 16:34
kiitos
Re: Some info about this problem
Posted by Imran Yusubov 13 Aug 2009 17:01
Thanks in advance!!
Re: Some info about this problem
Posted by Imran Yusubov 13 Aug 2009 17:01
Thanks in advance!!
Re: Some info about this problem
Posted by Imran Yusubov 13 Aug 2009 17:01
Thanks in advance!!
Re: Some info about this problem
Posted by Xan Tei Jun 26 Oct 2009 13:03
Thanx for your hint
Re: Some info about this problem
Posted by Bumstern 23 Sep 2018 13:18
Do u know that pi can be calculated by this formula: atan(1) * 4?