{"url":"https://inamori.hateblo.jp/entry/2021/01/13/092235","height":"190","provider_url":"https://hatena.blog","title":"Python\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092C++\u3067\u4f5c\u6210\u3059\u308b\uff085\uff09","author_url":"https://blog.hatena.ne.jp/inamori/","blog_title":"inamori\u2019s diary","provider_name":"Hatena Blog","published":"2021-01-13 09:22:35","author_name":"inamori","image_url":null,"blog_url":"https://inamori.hateblo.jp/","version":"1.0","type":"rich","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2021%2F01%2F13%2F092235\" title=\"Python\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092C++\u3067\u4f5c\u6210\u3059\u308b\uff085\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","description":"\u3082\u3046\u4e00\u3064\u3001\u3053\u308c\u306fC/C++\u3067\u884c\u5217\u306e\u639b\u3051\u7b97\u3092\u66f8\u3044\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u306b\u306f\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u4e57\u6570\u306e\u65b9\u306e\u884c\u5217\u3092\u8ee2\u7f6e\u3059\u308b\u3068\u901f\u304f\u306a\u308a\u307e\u3059\u3002 \u3082\u3046\u4e00\u5ea6C++\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 Matrix C(H, Vec(W)); for(size_t i = 0U; i < H; ++i) { for(size_t j = 0U; j < W; ++j) { __int128 e = 0; for(size_t k = 0U; k < M; ++k) e += A[i][k] * B[k][j]; C[i][j] = (long)(e % D); } } \u4e00\u756a\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3067k\u3092\u632f\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u884c\u5217B\u3092\u7e26\u2026"}