{"author_url":"https://blog.hatena.ne.jp/OviskoutaR/","url":"https://www.k-pmpstudy.com/entry/2020/02/02/extendedeuclidean","title":"1\u6b21\u4e0d\u5b9a\u65b9\u7a0b\u5f0f\u3092\u89e3\u304fC++/boost\u30e9\u30a4\u30d6\u30e9\u30ea","blog_title":"\u4e09\u6d66\u30ce\u30fc\u30c8","height":"190","width":"100%","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","C++"],"author_name":"OviskoutaR","type":"rich","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_url":"https://www.k-pmpstudy.com/","image_url":null,"version":"1.0","description":"boost \u306e boost/integer/extended_euclidean \u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u306b1\u6b21\u4e0d\u5b9a\u65b9\u7a0b\u5f0f\u3092\u62e1\u5f35\u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u4e92\u9664\u6cd5\u3067\u89e3\u304f\u578b\u304c\u3042\u308b\u306e\u3067\u4f7f\u3063\u3066\u307f\u307e\u3059\uff0e 1\u6b21\u4e0d\u5b9a\u65b9\u7a0b\u5f0f $mx + ny = \\operatorname{gcd}(m, n)$ \u306e\u89e3 $x, y$ \u30921\u3064\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e \u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092atcoder \u306e C++(GCC9.2.1) \u3067\u5b9f\u884c\u3057\u307e\u3059\uff0e \u30d7\u30ed\u30b0\u30e9\u30e0 #include <iostream> #include <boost/integer/extended_euclidean.hpp> using namespace std; int main\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.k-pmpstudy.com%2Fentry%2F2020%2F02%2F02%2Fextendedeuclidean\" title=\"1\u6b21\u4e0d\u5b9a\u65b9\u7a0b\u5f0f\u3092\u89e3\u304fC++/boost\u30e9\u30a4\u30d6\u30e9\u30ea - \u4e09\u6d66\u30ce\u30fc\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2020-02-02 16:45:49"}