Approach hintTry it first, then revealHide
Each side needs a ceiling division of its length by the flagstone size; multiply the two counts. The product can exceed 32 bits, so use long long.
Each side needs a ceiling division of its length by the flagstone size; multiply the two counts. The product can exceed 32 bits, so use long long.