How are your skills: Write an algorithm task using .net
- Durum: Closed
- Ödül: $11
- Alınan Girdiler: 1
- Kazanan: DRSankara
Build a pyramid
You are tasked by the pharaoh of Egypt to build the Great pyramid of X.
The pyramid will be constructed by stone blocks which are transported via boats on river Nail.
The travel distance between where the stone blocks will be loaded (port B) in the boats and the port where the stones will be unloaded (Port A) takes 30 min.
Only two boats can travel in either direction at the same time.
Each boat can load up to 6 blocks.
All boats are initially in Port A. Initially we have 20 boats.
It takes 5 min to load a single block on a boat.
It takes 5 min to unload a single block from a boat.
Ignore other constraints when working on the task.
Goal: for 24 hours, what is the maximum amount of blocks can you transfer from port B to port A to help the pharaoh build his Great Pyramid of X. Write a program in .net (use either web/dos console/win form) to illustrate that. The program should compile , run, and produce result.
Tavsiye Edilen Beceriler
Bu yarışmadan başlıca girdiler
DRSankara United Kingdom