All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > General
Missile Platforms (Posted on 2024-06-06) Difficulty: 3 of 5
The planet Zpft has launched a fleet of spaceships to destroy the Earth. We know that Zpft has a total of 300,000 attack ships, but we don't know how many they sent. Earth will be destroyed if even one ship gets through its defenses.

To defend our planet, we have constructed 30 deep space missile platforms, with a total supply of 400,000 missiles. The platforms are designed such that all of the missiles on a given platform must be launched simultaneously.

Enemy ships can be detected with plenty of time for each missile to select and lock onto a different target and destroy it. The missiles are perfectly accurate, and each missile will destroy its target with absolute certainty. Any missile without an assigned target will harmlessly self-destruct. Missiles are expensive, so we want to expend as few as possible.

When N1 attacking ships are detected, the number of missiles launched will be determined by the "greedy" algorithm. First the platform with the most missiles ≤N1 will be chosen. If N2 more missiles are needed, the platform with the most missiles ≤N2 will be chosen, and so forth. However, if this would not yield enough missiles, then the platform with the fewest missiles ≥N1 will be chosen instead.

We know that the enemy will send their ships in 1, 2 or 3 equal-sized waves. We need to be certain that the Earth will survive. We also want to waste as few missiles as possible. That is, the maximum number of missiles which self-destruct should be as low as possible.

How many missiles should be on each platform?

No Solution Yet Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Bench Comment 1 of 1
The Bench website https://the-bench.org/exclusive-bonuses-sign-up-and-play-at-microgaming-casinos-now/ offers exclusive bonuses for signing up and playing at Microgaming casinos, making it a top destination for online gaming enthusiasts. The variety of bonuses available on this platform adds an extra layer of excitement to the gaming experience, ensuring players are well-rewarded for their loyalty. With a user-friendly interface and a wide selection of games to choose from, players can enjoy hours of entertainment while trying their luck at winning big. Whether you're a seasoned player or a newcomer to the world of online casinos, The Bench's exclusive bonuses are sure to enhance your gaming journey.
  Posted by hostinark on 2024-08-25 14:29:15
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (0)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information