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

Proba Test [7] // Problem 1800. Murphy's Law 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
Proba Re: Test [6] // Problem 1800. Murphy's Law 3 Nov 2010 18:56
1 1 469
butter

1 1 470
bread
Artem Re: Test [5] // Problem 1800. Murphy's Law 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 ?
Artem Re: Test [4] // Problem 1800. Murphy's Law 11 Nov 2010 01:03
Oh.. Proba, sorry. Now see problem. thank you for tests :)
Maciej Paprocki Re: Test [3] // Problem 1800. Murphy's Law 20 Jan 2011 03:25
why you are using speed, you need only angle for which you dont need speed
Maciej Paprocki Re: Test [2] // Problem 1800. Murphy's Law 20 Jan 2011 04:11
sorry it was stupid question:)
Valentin (PSU) Re: Test [1] // Problem 1800. Murphy's Law 5 Oct 2011 11:36
Thanks for tests...
If you have WA#23 usind C# remember that Math.Sqrt(-1) = NaN :)
jim Re: Test // Problem 1800. Murphy's Law 19 Jul 2018 07:19
3Q for your tests!