{"type":"rich","height":"190","blog_title":"inamori\u2019s diary","title":"Mojo\u3067Project Euler 48","categories":[],"url":"https://inamori.hateblo.jp/entry/2024/07/27/083350","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/inamori/","description":"https://projecteuler.net/problem=48\u305d\u306e\u307e\u307e\u3067\u3059\u306d\u3002 import sys #################### library #################### 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, e1: Int, e2: Int) -> Int: var n = 0 var a1 = a for i \u2026","width":"100%","version":"1.0","blog_url":"https://inamori.hateblo.jp/","published":"2024-07-27 08:33:50","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2024%2F07%2F27%2F083350\" title=\"Mojo\u3067Project Euler 48 - 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>","image_url":null,"author_name":"inamori"}