{"id":1215,"date":"2010-04-25T18:36:17","date_gmt":"2010-04-25T10:36:17","guid":{"rendered":"http:\/\/www.slyar.com\/blog\/?p=1215"},"modified":"2022-07-03T15:46:58","modified_gmt":"2022-07-03T22:46:58","slug":"poj-2431-cpp","status":"publish","type":"post","link":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html","title":{"rendered":"POJ 2431 Expedition C++\u7248"},"content":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a<span style=\"color: #0000ff;\">\u59dc\u5357(Slyar) <\/span>\u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (<a title=\"Slyar\" href=\"http:\/\/www.slyar.com\" target=\"_blank\" rel=\"noopener\">www.slyar.com<\/a>) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002<\/p>\n<p>\u8d2a\u5fc3\u7b97\u6cd5<\/p>\n<p><!--more--><\/p>\n<p><span style=\"color: #0000ff;\">Description<\/span><\/p>\n<p>A group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately managed to run over a rock and puncture the truck's fuel tank. The truck now leaks one unit of fuel every unit of distance it travels.<\/p>\n<p>To repair the truck, the cows need to drive to the nearest town (no more than 1,000,000 units distant) down a long, winding road. On this road, between the town and the current location of the truck, there are N (1 &lt;= N &lt;= 10,000) fuel stops where the cows can stop to acquire additional fuel (1..100 units at each stop).<\/p>\n<p>The jungle is a dangerous place for humans and is especially dangerous for cows. Therefore, the cows want to make the minimum possible number of stops for fuel on the way to the town. Fortunately, the capacity of the fuel tank on their truck is so large that there is effectively no limit to the amount of fuel it can hold. The truck is currently L units away from the town and has P units of fuel (1 &lt;= P &lt;= 1,000,000).<\/p>\n<p>Determine the minimum number of stops needed to reach the town, or if the cows cannot reach the town at all.<\/p>\n<p><span style=\"color: #0000ff;\">Input<\/span><\/p>\n<p>* Line 1: A single integer, N<\/p>\n<p>* Lines 2..N+1: Each line contains two space-separated integers describing a fuel stop: The first integer is the distance from the town to the stop; the second is the amount of fuel available at that stop.<\/p>\n<p>* Line N+2: Two space-separated integers, L and P<\/p>\n<p><span style=\"color: #0000ff;\">Output<\/span><\/p>\n<p>* Line 1: A single integer giving the minimum number of fuel stops necessary to reach the town. If it is not possible to reach the town, output -1.<\/p>\n<p><span style=\"color: #0000ff;\">Sample Input<\/span><\/p>\n<p>4<br \/>\n4 4<br \/>\n5 2<br \/>\n11 5<br \/>\n15 10<br \/>\n25 10<\/p>\n<p><span style=\"color: #0000ff;\">Sample Output<\/span><\/p>\n<p>2<\/p>\n<p><span style=\"color: #ff0000;\">Slyar:\u52a0\u6cb9\u7ad9\u95ee\u9898\u7684\u8fdb\u9636\u7248\uff0c\u7ecf\u5178\u52a0\u6cb9\u7ad9\u95ee\u9898\u6bcf\u4e2a\u52a0\u6cb9\u7ad9\u52a0\u7684\u6cb9\u662f\u4e00\u6837\u591a\u7684\uff0c\u800c\u8fd9\u91cc\u6bcf\u4e2a\u52a0\u6cb9\u7ad9\u52a0\u7684\u6cb9\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u5f88\u5bb9\u6613\u8003\u8651\u5230\u8d2a\u5fc3\u7b56\u7565\u662f\u5728\u4ee5\u524d\u7684\u57fa\u7840\u4e0a\u9009\u62e9\u4e00\u4e2a\u52a0\u6cb9\u91cf\u6700\u5927\u7684\u52a0\u6cb9\u7ad9\u52a0\u6cb9\uff0c\u56e0\u4e3a\u8fd9\u6837\u53ef\u4ee5\u5f00\u5f97\u66f4\u8fdc...\u53cd\u6b63\u5f88\u7b80\u5355\u5566\u3002<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\u4e00\u5f00\u59cb\u6211\u76f4\u63a5\u7528N^2\u7684\u7b97\u6cd5\u5199\uff0c\u4e5f\u8fc7\u4e86\uff0c\u540e\u6765\u770b\u5230\u8bf4\u53ef\u4ee5\u7528\u5927\u5806\u6765\u7ef4\u62a4\u6cb9\u91cf\uff0c\u8c41\u7136\u5f00\u6717...\u6700\u8fd1\u5728\u5b66C++\uff0c\u62b1\u7740\u73a9\u7684\u601d\u60f3\uff0c\u5199\u4e86\u4e00\u4e2aSTL\u7248\u672c\uff0c\u592a\u723d\u4e86...\u6211\u5c45\u7136\u8fd8\u91cd\u8f7d\u4e86&lt;\u64cd\u4f5c\u7b26\uff0c\u54c7\u5494\u5494...<br \/>\n<\/span><\/p>\n<pre lang=\"cpp\" line=\"1\">\r\n#include <iostream>\r\n#include <algorithm>\r\n\r\nusing namespace std;\r\n\r\nclass FuelStop\r\n{\r\npublic:\r\n\tint m_nDis;\r\n\tint m_nFuel;\r\n\tbool friend operator < (const FuelStop& a, const FuelStop& b)\r\n\t{\r\n\t\treturn a.m_nDis > b.m_nDis;\r\n\t}\r\n};\r\n\r\nint main()\r\n{\r\n\tint i, l, p, n, dis, len, sum;\r\n\tint hp[10001];\r\n\tFuelStop x[10001];\r\n\r\n\tcin >> n;\r\n\tfor (int i = 0; i < n; i++)\r\n\t{\r\n\t\tcin >> x[i].m_nDis >> x[i].m_nFuel;\r\n\t}\r\n\tcin >> l >> p;\r\n\r\n\t\/\/ \u5bf9\u52a0\u6cb9\u7ad9\u4f4d\u7f6e\u6392\u5e8f\r\n\tsort(x, x+n);\r\n\r\n\t\/\/ \u5269\u4e0b\u7684\u8def\u7a0b\r\n\tdis = l - p;\r\n\tlen = sum = 0;\r\n\r\n\t\/\/ \u5ffd\u7565\u52a0\u6cb9\u7ad9\u5728\u8d77\u59cb\u70b9\u540e\u9762\u7684\u60c5\u51b5\r\n \ti = 0;\r\n\twhile (x[i].m_nDis > l) i++;\r\n\r\n\t\/\/ \u8fd8\u53ef\u4ee5\u7ee7\u7eed\u524d\u8fdb\r\n\twhile (dis > 0)\r\n\t{\r\n\t\t\/\/ \u627e\u5230\u6cb9\u8017\u5c3d\u524d\u9047\u5230\u7684\u52a0\u6cb9\u7ad9\u5165\u5806\r\n\t\tfor (; i < n; i++)\r\n\t\t{\r\n\t\t\tif (x[i].m_nDis >= dis)\r\n\t\t\t{\r\n\t\t\t\thp[len++] = x[i].m_nFuel;\r\n\t\t\t\tpush_heap(hp, hp+len);\r\n\t\t\t}\r\n\t\t\t\/\/ \u5982\u679c\u5f53\u524d\u52a0\u6cb9\u7ad9\u4e0d\u5728\u8303\u56f4\u5185\uff0c\u5219\u4e0b\u4e00\u4e2a\u4e5f\u4e0d\u5728\u8303\u56f4\u5185\r\n\t\t\telse break;\r\n\t\t}\r\n\r\n\t\t\/\/ \u5982\u679c\u6cb9\u8017\u5c3d\u524d\u90fd\u6ca1\u6709\u52a0\u6cb9\u7ad9\uff0c\u5219\u5931\u8d25\r\n\t\tif (len == 0) break;\r\n\r\n\t\t\/\/ \u627e\u52a0\u6cb9\u91cf\u6700\u5927\u7684\u52a0\u6cb9\u7ad9\u52a0\u6cb9\r\n\t\tdis -= hp[0];\r\n\t\tsum++;\r\n\r\n\t\t\/\/ \u5806\u9876\u51fa\u5806\r\n\t\tpop_heap(hp, hp+len);\r\n\r\n\t\t\/\/ \u5806\u5927\u5c0f\u81ea\u51cf\r\n\t\tlen--;\r\n\t}\r\n\r\n\tif (dis > 0)\r\n\t{\r\n\t\tcout << \"-1\" << endl;\r\n\t} \r\n\telse\r\n\t{\r\n\t\tcout << sum << endl;\r\n\t}\r\n\treturn 0;\r\n}\r\n<\/pre>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"http:\/\/www.slyar.com\/blog\">Slyar Home<\/a> &raquo; <a href=\"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html\">POJ 2431 Expedition C++\u7248<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a\u59dc\u5357(Slyar) \u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (www.slyar.com) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002 \u8d2a\u5fc3\u7b97\u6cd5 \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aSlyar Home &raquo; POJ 2431 Expedition C++\u7248<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1103],"tags":[1007],"class_list":["post-1215","post","type-post","status-publish","format-standard","hentry","category-acm-oj-solution","tag-1007"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"POJ 2431 Expedition C++\u7248\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Slyar\"\/>\n\t<meta name=\"keywords\" content=\"slyar,poj,pku,2431,expedition,c++,\u89e3\u9898\u62a5\u544a,\u9898\u89e3\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"zh_CN\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"POJ 2431 Expedition C++\u7248 - Slyar Home\" \/>\n\t\t<meta property=\"og:description\" content=\"POJ 2431 Expedition C++\u7248\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-04-25T10:36:17+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-07-03T22:46:58+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"POJ 2431 Expedition C++\u7248 - Slyar Home\" \/>\n\t\t<meta name=\"twitter:description\" content=\"POJ 2431 Expedition C++\u7248\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#article\",\"name\":\"POJ 2431 Expedition C++\\u7248 - Slyar Home\",\"headline\":\"POJ 2431 Expedition C++\\u7248\",\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"},\"datePublished\":\"2010-04-25T18:36:17-07:00\",\"dateModified\":\"2022-07-03T15:46:58-07:00\",\"inLanguage\":\"zh-CN\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#webpage\"},\"articleSection\":\"OJ\\u9898\\u89e3, \\u8d2a\\u5fc3\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/acm-oj-solution#listItem\",\"name\":\"OJ\\u9898\\u89e3\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/acm-oj-solution#listItem\",\"position\":2,\"name\":\"OJ\\u9898\\u89e3\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/acm-oj-solution\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#listItem\",\"name\":\"POJ 2431 Expedition C++\\u7248\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#listItem\",\"position\":3,\"name\":\"POJ 2431 Expedition C++\\u7248\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/acm-oj-solution#listItem\",\"name\":\"OJ\\u9898\\u89e3\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#webpage\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html\",\"name\":\"POJ 2431 Expedition C++\\u7248 - Slyar Home\",\"description\":\"POJ 2431 Expedition C++\\u7248\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-2431-cpp.html#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"datePublished\":\"2010-04-25T18:36:17-07:00\",\"dateModified\":\"2022-07-03T15:46:58-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"name\":\"Slyar Home\",\"description\":\"\\u8bb0\\u5f55\\u4e2a\\u4eba\\u751f\\u6d3b\",\"inLanguage\":\"zh-CN\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"POJ 2431 Expedition C++\u7248 - Slyar Home","description":"POJ 2431 Expedition C++\u7248","canonical_url":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html","robots":"max-image-preview:large","keywords":"slyar,poj,pku,2431,expedition,c++,\u89e3\u9898\u62a5\u544a,\u9898\u89e3","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#article","name":"POJ 2431 Expedition C++\u7248 - Slyar Home","headline":"POJ 2431 Expedition C++\u7248","author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"},"datePublished":"2010-04-25T18:36:17-07:00","dateModified":"2022-07-03T15:46:58-07:00","inLanguage":"zh-CN","commentCount":1,"mainEntityOfPage":{"@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#webpage"},"isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#webpage"},"articleSection":"OJ\u9898\u89e3, \u8d2a\u5fc3"},{"@type":"BreadcrumbList","@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","position":1,"name":"Home","item":"http:\/\/www.slyar.com\/blog\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/acm-oj-solution#listItem","name":"OJ\u9898\u89e3"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/acm-oj-solution#listItem","position":2,"name":"OJ\u9898\u89e3","item":"http:\/\/www.slyar.com\/blog\/category\/acm-oj-solution","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#listItem","name":"POJ 2431 Expedition C++\u7248"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#listItem","position":3,"name":"POJ 2431 Expedition C++\u7248","previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/acm-oj-solution#listItem","name":"OJ\u9898\u89e3"}}]},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/#person","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author","url":"http:\/\/www.slyar.com\/blog\/author\/slyar","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"WebPage","@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#webpage","url":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html","name":"POJ 2431 Expedition C++\u7248 - Slyar Home","description":"POJ 2431 Expedition C++\u7248","inLanguage":"zh-CN","isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html#breadcrumblist"},"author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"creator":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"datePublished":"2010-04-25T18:36:17-07:00","dateModified":"2022-07-03T15:46:58-07:00"},{"@type":"WebSite","@id":"http:\/\/www.slyar.com\/blog\/#website","url":"http:\/\/www.slyar.com\/blog\/","name":"Slyar Home","description":"\u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","inLanguage":"zh-CN","publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"}}]},"og:locale":"zh_CN","og:site_name":"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","og:type":"article","og:title":"POJ 2431 Expedition C++\u7248 - Slyar Home","og:description":"POJ 2431 Expedition C++\u7248","og:url":"http:\/\/www.slyar.com\/blog\/poj-2431-cpp.html","article:published_time":"2010-04-25T10:36:17+00:00","article:modified_time":"2022-07-03T22:46:58+00:00","twitter:card":"summary","twitter:title":"POJ 2431 Expedition C++\u7248 - Slyar Home","twitter:description":"POJ 2431 Expedition C++\u7248"},"aioseo_meta_data":{"post_id":"1215","title":"POJ 2431 Expedition C++\u7248 - #site_title","description":"POJ 2431 Expedition C++\u7248","keywords":[{"label":"slyar","value":"slyar"},{"label":"poj","value":"poj"},{"label":"pku","value":"pku"},{"label":"2431","value":"2431"},{"label":"Expedition","value":"Expedition"},{"label":"c++","value":"c++"},{"label":"\u89e3\u9898\u62a5\u544a","value":"\u89e3\u9898\u62a5\u544a"},{"label":"\u9898\u89e3","value":"\u9898\u89e3"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-10 02:44:47","updated":"2022-10-18 13:59:20","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"_links":{"self":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/1215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/comments?post=1215"}],"version-history":[{"count":1,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/1215\/revisions"}],"predecessor-version":[{"id":8276,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/1215\/revisions\/8276"}],"wp:attachment":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/media?parent=1215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/categories?post=1215"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/tags?post=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}