✔ 最佳答案
Well, it isn't. Usually. (They aren't).
Most ships are designed to bear a maximum load and the best shape for this is a square-sided box. Like you would see a crane barge operating from - the best shape for lifting and bearing loads.
This is the same for most ships, given that most ships are freighters of one type or another except that they also need to move around the globe. So in order to make them hydrodynamically efficient for this roll the 'box' is reshaped, at the front and back. Though their mid-sections are still box-shaped: Or as you put it: 'Flat'.
So in terms of the section - the cross-section - most ships are 'flat'.
Flat sided, flat bottomed. For load bearing. Box-shaped.
Ships that are designed for rolls other than just load bearing will present a compromise on this theme and will, as you say, be more rounded.
Any departure from this 'load bearing' shape and which tends towards a more rounded section will, at the expense of load bearing, be stronger. With the obvious, most extreme example being the submarine. Which ideally is of circular section.
A mid-way example would be an ice-breaker which for a surface ship is of exceptionally rounded section. Ice breakers are, by necessity, both heavy and strong.
_________
Edit:
Here is an example of the problem with box-shaped mid sections (not strong enough if badly loaded):