bireme / trireme a ship of greek origin , with 2 or 3 decks of oars a trireme was an ancient vessel and a type of galley that was used by the ancient maritime civilizations of the mediterranean , especially the phoenicians , ancient greeks and romans .