{"author_name":"moistx","provider_name":"Hatena Blog","blog_url":"https://logfiles.hatenablog.com/","type":"rich","title":"UVa100 The 3n + 1 problem","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140902%2F1409643021\" title=\"UVa100 The 3n + 1 problem - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-09-02 16:30:21","blog_title":"Logfiles","width":"100%","height":"190","provider_url":"https://hatena.blog","image_url":null,"author_url":"https://blog.hatena.ne.jp/moistx/","url":"https://logfiles.hatenablog.com/entry/20140902/1409643021","description":"\u554f\u984c\u6982\u8981 n \u306e\u5076\u5947\u3067\u8a08\u7b97\u3092\u5206\u3051\u308b\u3002\u6574\u6570 i \u3068 j \u3092\u542b\u3080\u9593\u306e\u6570\u306e\u4e2d\u3067\u8a08\u7b97\u3092\u7e70\u308a\u8fd4\u3057\u305f\u7d50\u679c 1 \u306b\u306a\u308b\u56de\u6570\u304c\u6700\u5927\u306e\u3082\u306e\u3092\u6c42\u3081\u3066\u3001\u305d\u306e\u56de\u6570\u3092\u51fa\u529b\u305b\u3088\u3002\u89e3\u7b54 UVa \u306e\u4e2d\u3067\u6700\u3082\u624b\u3092\u4ed8\u3051\u3089\u308c\u308b\u3060\u308d\u3046\u554f\u984c\u306e\u5272\u306b\u306f\u30e1\u30e2\u5316\u518d\u5e30\u3057\u306a\u3044\u3068\u6050\u3089\u304f\u89e3\u3051\u306a\u3044\u3002 \u5947\u6570\u306e\u8a08\u7b97\u3092\u3057\u305f\u76f4\u5f8c\u306f\u5024\u304c\u5897\u52a0\u3059\u308b\u306e\u3067 1 \u306b\u306f\u306a\u3089\u306a\u3044\u3002\u3088\u3063\u3066\u5076\u6570\u306e\u5206\u307e\u3067\u4e00\u5ea6\u306b\u8a08\u7b97\u3057\u3066\u3057\u307e\u3046\u3068\u3088\u3044\u3002 #include <iostream> #include <algorithm> using namespace std; #define MAX (1000000) int memo[MAX]; int solve(int const n) { if\u2026","version":"1.0","categories":["UVa"]}