{"id":311,"date":"2018-06-28T14:30:39","date_gmt":"2018-06-28T14:30:39","guid":{"rendered":"https:\/\/www.haoyuan.info\/?p=311"},"modified":"2018-06-28T14:32:11","modified_gmt":"2018-06-28T14:32:11","slug":"jacobi%e5%9b%9b%e5%b9%b3%e6%96%b9%e5%ae%9a%e7%90%86","status":"publish","type":"post","link":"https:\/\/haoyuan.info\/?p=311","title":{"rendered":"Jacobi\u56db\u5e73\u65b9\u5b9a\u7406"},"content":{"rendered":"<blockquote><p>\n  \u96c5\u53ef\u6bd4\u56db\u5e73\u65b9\u5b9a\u7406(Jacobi&#8217;s four square theorem)\u662f\u6307\u4e00\u4e2a\u6570\u53ef\u4ee5\u7531\u56db\u4e2a\u6570\u7684\u5e73\u65b9\u4e4b\u548c\u5f97\u5230\u3002<br \/>\n  <a href=\"https:\/\/wikimedia.org\/api\/rest_v1\/media\/math\/render\/svg\/a02408acaaabaae69495a5e4126d3a8964c1f7a5\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/wikimedia.org\/api\/rest_v1\/media\/math\/render\/svg\/a02408acaaabaae69495a5e4126d3a8964c1f7a5'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/wikimedia.org\/api\/rest_v1\/media\/math\/render\/svg\/a02408acaaabaae69495a5e4126d3a8964c1f7a5\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" \/><\/div><\/a><br \/>\n  \u53c2\u8003\u4f8b\u9898:<a href=\"http:\/\/acm.cup.edu.cn\/newsubmitpage.php?id=2342\" title=\"CUP 2342\">CUP 2342<\/a>\n<\/p><\/blockquote>\n<pre><code class=\" line-numbers\">#include &lt;bits\/stdc++.h&gt;\n\nusing namespace std;\nusing ll = long long;\n\nint main() {\n    ios::sync_with_stdio(false);\n    cin.tie(0);\n    ll n, ans;\n    cin &gt;&gt; n;\n    (n &lt;&lt;= 1)++;\n    ans = n + 1;\n    for (ll i = 3; i &lt;= n \/ i; i++) {\n        if (!(n % i)) {\n            ans += i;\n            if (i != n \/ i) {\n                ans += n \/ i;\n            }\n        }\n    }\n    cout &lt;&lt; ans &lt;&lt; \"\\n\";\n#ifndef ONLINE_JUDGE\n    cout.flush();\n#endif\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u96c5\u53ef\u6bd4\u56db\u5e73\u65b9\u5b9a\u7406(Jacobi&#8217;s four square theorem)\u662f\u6307\u4e00\u4e2a\u6570\u53ef\u4ee5\u7531\u56db\u4e2a\u6570 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-1"],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8UC2c-51","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haoyuan.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=311"}],"version-history":[{"count":3,"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/posts\/311\/revisions"}],"predecessor-version":[{"id":314,"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/posts\/311\/revisions\/314"}],"wp:attachment":[{"href":"https:\/\/haoyuan.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haoyuan.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haoyuan.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}