problem about logical 5 pirates

 

v20240901