This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub HyunjaeLee/Algorithms
#include "math/floor_div.hpp"
#ifndef FLOOR_DIV_HPP #define FLOOR_DIV_HPP template <typename T> T floor_div(T a, T b) { return a / b - static_cast<T>((a ^ b) < 0 && a % b != 0); } #endif // FLOOR_DIV_HPP
#line 1 "math/floor_div.hpp" template <typename T> T floor_div(T a, T b) { return a / b - static_cast<T>((a ^ b) < 0 && a % b != 0); }