{"id":298,"date":"2025-09-21T19:28:00","date_gmt":"2025-09-21T11:28:00","guid":{"rendered":"https:\/\/solost.cn\/?p=298"},"modified":"2025-09-21T19:29:32","modified_gmt":"2025-09-21T11:29:32","slug":"453","status":"publish","type":"post","link":"https:\/\/solost.cn\/?p=298","title":{"rendered":"\u5feb\u901f\u6392\u5e8f"},"content":{"rendered":"<pre><code class=\"lang-cpp\">void quick_sort(int q[], int l, int r)\n{\n    if (l &gt;= r) return;\n    int i = l - 1, j = r + 1, x = q[l + r &gt;&gt; 1];\n    while (i &lt; j)\n    {\n      do i ++ ; while (q[i] &lt; x);\n      do j -- ; while (q[j] &gt; x);\n      if (i &lt; j) swap(q[i], q[j]);\n    }\n    quick_sort(q, l, j), quick_sort(q, j + 1, r);\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>void quick_sort(int q[], int l, int r) { if (l &gt;= r) return; int i = l - 1, j = r + 1, x = q[l + r &gt;&gt; 1]; while (i &lt; j) { do i ++ ; while (q[i] &lt; x); do j -- ; while (q[j] &gt; x); if (i &lt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,68],"tags":[71],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-acm","category-68","tag-71"],"_links":{"self":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":0,"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}