algo — C++23 日本語リファレンス GitHub

floor_div

関数 · 整数ユーティリティ

std::int64_t floor_div(std::int64_t p, std::int64_t q);

概要

$\lfloor p/q\rfloor$ を返す

計算量

関連項目