{"version":"1.0","published":"2025-01-28 19:10:47","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2025%2F01%2F28%2F191047\" title=\"Mojo\u3067Project Euler 97 - 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>","height":"190","author_url":"https://blog.hatena.ne.jp/inamori/","provider_url":"https://hatena.blog","description":"https://projecteuler.net/problem=97Python\u306a\u3089pow\u95a2\u6570\u3092\u4f7f\u3046\u3060\u3051\u3067\u3059\u304c\u300110\u6841\u3060\u3068\u3059\u3050\u306b\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3057\u307e\u3059\u3002Problem 48\u3067\u4f5c\u3063\u305fpow\u95a2\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002 import sys #################### pow #################### fn add(a: Int, b: Int, d: Int) -> Int: var c = a + b if c < 0: # overflow c -= d elif c >= d: c -= d return c fn mul2(a: Int, b: Int, d: Int,\u2026","type":"rich","url":"https://inamori.hateblo.jp/entry/2025/01/28/191047","blog_title":"inamori\u2019s diary","image_url":null,"provider_name":"Hatena Blog","title":"Mojo\u3067Project Euler 97","width":"100%","author_name":"inamori","blog_url":"https://inamori.hateblo.jp/"}