{"id":97975,"date":"2025-02-18T05:44:41","date_gmt":"2025-02-18T02:14:41","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/%d8%a7%d8%ac%d8%b1%d8%a7%db%8c-%d8%b5%d9%81-%d8%a7%d9%88%d9%84%d9%88%db%8c%d8%aa\/"},"modified":"2025-02-18T05:44:41","modified_gmt":"2025-02-18T02:14:41","slug":"%d8%a7%d8%ac%d8%b1%d8%a7%db%8c-%d8%b5%d9%81-%d8%a7%d9%88%d9%84%d9%88%db%8c%d8%aa","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/%d8%a7%d8%ac%d8%b1%d8%a7%db%8c-%d8%b5%d9%81-%d8%a7%d9%88%d9%84%d9%88%db%8c%d8%aa\/","title":{"rendered":"\u0627\u062c\u0631\u0627\u06cc \u0635\u0641 \u0627\u0648\u0644\u0648\u06cc\u062a"},"content":{"rendered":"<h1>\n<p>  \u0634\u0627\u0645\u0644 \u0628\u0648\u062f\u0646<br \/>\n<\/h1>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 namespace std \u061b<\/p>\n<p>int main ()<br \/>\n{<br \/>\n    ios_base :: sync_with_stdio (false) \u061b<br \/>\n    cin.tie (\u062a\u0647\u06cc) \u061b<br \/>\n    cout.tie (\u062a\u0647\u06cc) \u061b<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>priority_queue&lt;int, vector&lt;int&gt;, greater&lt;int&gt;&gt; pq;\npq.push(10);\n\npq.push(20);\npq.push(30);\npq.push(40);\npq.push(50);\n\ncout &lt;&lt; pq.top() &lt;&lt; endl;\npq.push(100);\npq.pop();\npq.pop();\ncout &lt;&lt; pq.top() &lt;&lt; endl;\n<\/code><\/pre>\n<\/div>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0634\u0627\u0645\u0644 \u0628\u0648\u062f\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 namespace std \u061b int main () { ios_base :: sync_with_stdio (false) \u061b cin.tie (\u062a\u0647\u06cc) \u061b cout.tie (\u062a\u0647\u06cc) \u061b priority_queue&lt;int, vector&lt;int&gt;, greater&lt;int&gt;&gt; pq; pq.push(10); pq.push(20); pq.push(30); pq.push(40); pq.push(50); cout &lt;&lt; pq.top() &lt;&lt; endl; pq.push(100); pq.pop(); pq.pop(); cout &lt;&lt; pq.top() &lt;&lt; endl; }<\/p>\n","protected":false},"author":2,"featured_media":97976,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/media2.dev.to\/dynamic\/image\/width=1000,height=500,fit=cover,gravity=auto,format=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foh7wr4ipztbmokirju08.png","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-97975","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/97975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=97975"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/97975\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/97976"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=97975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=97975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=97975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}