2020-03-16から1日間の記事一覧

boostの多倍長計算

AtCoderでは C++ で boost が使えるので,多倍長計算をすることができます. ヘッダ部分 先頭付近に次のように書いておきます.(競技プログラミングなので,これで良いことにしてください.) #include <boost/multiprecision/cpp_int.hpp> // 整数を使う時 #include <boost/multiprecision/cpp_bin_float.hpp> // 実数を使う時 using nam</boost/multiprecision/cpp_bin_float.hpp></boost/multiprecision/cpp_int.hpp>…