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 1556. Multishot in the Secret Cow Level

To admin:
Posted by yuhch 18 Oct 2007 07:06
My brute-force algo got ac... But it runs more than 1 minute on tests like this:
50000 1 50 0.4
-25000 -25000
-24999 -24999
-24998 -24998
-24997 -24997
-24996 -24996
.......
.......
24999 24999
25000 25000

Edited by author 18.10.2007 07:07
Re: To admin:
Posted by Sandro (USU) 18 Oct 2007 12:27
Thank you for test. By the way, this test is incorrect, K should be 2 or more for correctness of formula for A_i. So I have modified your test a little and added it.
Re: To admin:
Posted by yuhch 18 Oct 2007 13:02
oh...sorry it's my mistake