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 1800. Murphy's Law

Test
Posted by Proba 3 Nov 2010 18:55
1 1 1
butter

1 1 100
butter

1 1 900
bread

1 1 1000
bread

100 10 1000
butter
Re: Test
Posted by Proba 3 Nov 2010 18:56
1 1 469
butter

1 1 470
bread
Re: Test
Posted by Artem 11 Nov 2010 00:47
Why you have
1 1 470 - bread
and
1 1 469 - butter?

1 1 469
time = 0.045152364098573095
speed = 7.816666666666666
N = time*speed = 0.352940979370513
angle = 127.05875257338468. So it must be bread;

and

1 1 470
time = 0.045152364098573095
speed = 7.833333333333333
N = time*speed= 0.3536935187721559
angle = 127.32966675797611

So for both variants we get bread.
Am i not right ?
Re: Test
Posted by Artem 11 Nov 2010 01:03
Oh.. Proba, sorry. Now see problem. thank you for tests :)
Re: Test
Posted by Maciej Paprocki 20 Jan 2011 03:25
why you are using speed, you need only angle for which you dont need speed
Re: Test
Posted by Maciej Paprocki 20 Jan 2011 04:11
sorry it was stupid question:)
Re: Test
Posted by Valentin (PSU) 5 Oct 2011 11:36
Thanks for tests...
If you have WA#23 usind C# remember that Math.Sqrt(-1) = NaN :)
Re: Test
Posted by jim 19 Jul 2018 07:19
3Q for your tests!