{"provider_url":"https://hatena.blog","url":"https://tutuz.hateblo.jp/entry/2018/02/14/231520","blog_url":"https://tutuz.hateblo.jp/","blog_title":"\u6570\u5b66/\u7af6\u30d7\u30ed\u30e1\u30e2","height":"190","image_url":"http://chart.apis.google.com/chart?cht=tx&chl=%20%5Cforall%20a%2Cb%20%5Cin%20%5Cmathbb%7BN%7D%20%2C%20lcm%20%3D%20%5Cdfrac%7Ba%20%2A%20b%7D%7Bgcd%7D","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2018%2F02%2F14%2F231520\" title=\"\u6700\u5c0f\u516c\u500d\u6570\u30fb\u6700\u5927\u516c\u7d04\u6570 - \u6570\u5b66/\u7af6\u30d7\u30ed\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u6700\u5c0f\u516c\u500d\u6570\u30fb\u6700\u5927\u516c\u7d04\u6570","provider_name":"Hatena Blog","categories":["\u30e9\u30a4\u30d6\u30e9\u30ea"],"author_name":"d_tutuz","author_url":"https://blog.hatena.ne.jp/d_tutuz/","type":"rich","published":"2018-02-14 23:15:20","description":"\u5c0f\u30cd\u30bf \u5c0f\u30cd\u30bf\u3067\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3057\u3066\u3044\u308b\u3068\u3001\u6700\u5c0f\u516c\u500d\u6570\u3068\u304b\u6700\u5927\u516c\u7d04\u6570\u3092\u6c42\u3081\u3088\u3002 \u307f\u305f\u3044\u306a\u30b7\u30fc\u30f3\u306b\u906d\u9047\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u7c21\u5358\u306b\u6c42\u3081\u3089\u308c\u307e\u3059\u3002 public class Sample { public static void main(String[] args) { long a = 10001; long b = 959; System.out.println(\"gcd: \" + MathUtils.gcd(a, b)); System.out.println(\"lcm: \" + MathUtils.lcm(a, b)); } static class MathUtils { /*\u2026","version":"1.0"}