{"id":1105,"date":"2009-11-24T23:08:20","date_gmt":"2009-11-24T15:08:20","guid":{"rendered":"http:\/\/www.slyar.com\/blog\/?p=1105"},"modified":"2022-07-03T15:47:01","modified_gmt":"2022-07-03T22:47:01","slug":"poj-1754-c","status":"publish","type":"post","link":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html","title":{"rendered":"POJ 1754 Buffer Manager C\u8bed\u8a00\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>\u7b80\u5355\u6a21\u62df\uff0c\u6211\u7528DP\u601d\u60f3\u505a\u4e86\u4e00\u6b21\u3002<\/p>\n<p><!--more--><\/p>\n<p><span style=\"color: #0000ff;\">Description<\/span><\/p>\n<p>DBMS (Data Base Management System) development team has been successful in designing efficient Lock Manager and is going to proceed further. As a part of the team you will be responsible for the Buffer Manager.<\/p>\n<p>Data blocks being read by DBMS from the hard drive are stored in the main memory in a fixed number of pre-allocated buffers. Each buffer can hold one data block. Each buffer can be either free (does not contain any useful information) or occupied by some data. When DBMS is going to read data block from the hard drive it has to decide which buffer to use for data storing. If there are any free buffers, then one of them is used for that purpose. If there are no free buffers, then one of the occupied buffers has to be flushed to become free, unless it was locked by some part of DBMS.<\/p>\n<p>The choice of the buffer to flush is critical to DBMS performance. A lot of different algorithms were developed, LRU (Least Recently Used) algorithm being the one used most often. However, your DBMS is going to implement the Advanced Buffer Management algorithm which takes advantage of the fact that maximal performance is achieved when a number of consecutive data blocks from the hard drive are read into consecutive memory buffers.<\/p>\n<p>Buffers are numbered from 1 to N, where N (1 &lt;= N &lt;= 100000) is a total number of buffers. Each buffer can be in any one of the following states: free, occupied or locked. Each occupied buffer is assigned an integer number from 1 to 9 ? the worthiness of the currently stored information in that buffer. The worthiness of free buffers is considered to be zero. Locked buffers cannot be neither used nor flushed and their worthiness is undefined.<\/p>\n<p>Having received the request to read K (1 &lt;= K &lt;= 10000) data blocks from the hard drive, Buffer Manager has to choose K consecutive non-locked buffers numbered from L to L+K-1 that have minimal possible sum of their worthiness, or to report that it is impossible to find K consecutive non-locked buffers. The latter can also happen if total number of buffers is less than K.<\/p>\n<p>Your task is to write a program that models the processing of one request to Buffer Manager using the above algorithm.<\/p>\n<p><span style=\"color: #0000ff;\">Input<\/span><\/p>\n<p>The first line of the input file contains two integers, N and K, separated by a space.<\/p>\n<p>Starting from the second line there is a description of a buffers' state. The state of each buffer is represented by a single character:<\/p>\n<p>* 0 - when the corresponding buffer is free.<br \/>\n* 1 - when the corresponding buffer is occupied and has worthiness of 1.<br \/>\n* 2 - when the corresponding buffer is occupied and has worthiness of 2.<br \/>\n* ...<br \/>\n* 9 - when the corresponding buffer is occupied and has worthiness of 9.<br \/>\n* * - when the corresponding buffer is locked.<\/p>\n<p>Those characters are situated on the consecutive lines grouped by 80 characters per line without any spaces. Thus, each line starting from the second one contains exactly 80 characters with a possible exception for the last line.<\/p>\n<p><span style=\"color: #0000ff;\">Output<\/span><\/p>\n<p>Write to the output file the single integer number L. This number gives the buffer number where first of the K blocks from the hard drive shall be read to ensure the minimal possible total worthiness of the blocks that have to be flushed. If there are more than one such value for L, then write the smallest one.<\/p>\n<p>Write to the output file a single number 0 if it's impossible to find K consecutive non-locked buffers.<\/p>\n<p><span style=\"color: #0000ff;\">Sample Input<\/span><\/p>\n<p>100 10<br \/>\n2165745216091853477755800393859785807207523169954341**7363*9*94664808*4777717089<br \/>\n09825185827659480548<\/p>\n<p><span style=\"color: #0000ff;\">Sample Output<\/span><\/p>\n<p>36<\/p>\n<p><span style=\"color: #ff0000;\">Slyar:\u5927\u610f\u5c31\u662f\u5728\u4e00\u4e2a\u957f\u5ea6\u4e3an\u7684\u6570\u5b57\u4e32\u4e2d\uff0c\u5bfb\u627e\u4e00\u4e2a\u957f\u4e3ak\u7684\uff0c\u4e0d\u5305\u542b'*'\u7684\uff0c\u52a0\u548c\u6700\u5c0f\u7684\u5b50\u4e32\u3002\u76f4\u63a5\u6a21\u62df\u5c31\u597d\u4e86\uff0c\u8bfb\u5165\u7684\u65f6\u5019\u6700\u597d\u7528%c\u4e00\u4e2a\u4e00\u4e2a\u8bfb\u3002\u505a\u5b8c\u4e4b\u540e\u611f\u89c9\u8fd9\u9898\u53ef\u4ee5\u7528DP\u601d\u60f3\uff0c\u5c1d\u8bd5\u7740\u641e\u4e86\u4e00\u4e0b\uff0c\u6ca1\u60f3\u5230\u8fd8\u771f\u8ba9\u6211\u5f04\u51fa\u6765\u4e86...<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\u7528F1[i]\u8868\u793a\u4ecei\u5230\u524d\u4e00\u4e2a'*'\u4e4b\u95f4\u6709\u591a\u5c11\u4e2a\u6570<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\u7528F2[i]\u8868\u793a\u4ecei\u5230\u524d\u4e00\u4e2a'*'\u4e4b\u95f4\u6240\u6709\u6570\u5b57\u7684\u52a0\u548c<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\u5bf9\u4e8e'*'\u6765\u8bf4\uff0cF1[i] = 0\uff0cF2[i] = 0<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\u5982\u679cF1[i] &gt;= k\uff0c\u90a3\u4e48\u66f4\u65b0F2[i] - F2[i-k]\u7684\u6700\u4f18\u89e3<\/span><\/p>\n<pre lang=\"c\" line=\"1\">\r\n#include <stdio.h>\r\n\r\n#define SIZE 100010\r\n#define MAX 0x7fffffff\r\n\r\nint f1[SIZE] = {0};\r\nint f2[SIZE] = {0};\r\nint a[SIZE];\r\n\r\nint main()\r\n{\r\n    int i, j, n, k;\r\n    int pos, min, temp;\r\n    char ch;\r\n    scanf(\"%d%d\", &n, &k);\r\n    \r\n    min = MAX;\r\n    for (i = 1; i <= n; i++)\r\n    {\r\n        scanf(\"%c\", &ch);\r\n        if (ch == '\\n')\r\n        {\r\n            i--;\r\n        }\r\n        else if (ch == '*')\r\n        {\r\n            a[i] = -1;\r\n        }\r\n        else\r\n        {\r\n            a[i] = ch - '0';\r\n            f2[i] = f2[i-1] + a[i];\r\n            f1[i] = f1[i-1] + 1;\r\n            \/* \u66f4\u65b0\u6700\u4f18\u89e3 *\/\r\n            if (f1[i] >= k)\r\n            {\r\n                temp = f2[i] - f2[i-k];\r\n                if (temp < min)\r\n                {\r\n                    min = temp;\r\n                    pos = i - k + 1;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    \r\n    if (min == MAX)\r\n    {\r\n        printf(\"0\\n\");\r\n    }\r\n    else\r\n    {\r\n        printf(\"%d\\n\", pos);\r\n    }\r\n    \r\n    \/\/system(\"pause\");\r\n    return 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-1754-c.html\">POJ 1754 Buffer Manager C\u8bed\u8a00\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 \u7b80\u5355\u6a21\u62df\uff0c\u6211\u7528DP\u601d\u60f3\u505a\u4e86\u4e00\u6b21\u3002 \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aSlyar Home &raquo; POJ 1754 Buffer Manager  [&hellip;]<\/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":[1006],"class_list":["post-1105","post","type-post","status-publish","format-standard","hentry","category-acm-oj-solution","tag-poj"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"POJ 1754 Buffer Manager C\u8bed\u8a00\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,1754,buffer manager,c,\u89e3\u9898\u62a5\u544a,\u9898\u89e3\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.slyar.com\/blog\/poj-1754-c.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 1754 Buffer Manager C\u8bed\u8a00\u7248 - Slyar Home\" \/>\n\t\t<meta property=\"og:description\" content=\"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.slyar.com\/blog\/poj-1754-c.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-11-24T15:08:20+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-07-03T22:47:01+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248 - Slyar Home\" \/>\n\t\t<meta name=\"twitter:description\" content=\"POJ 1754 Buffer Manager C\u8bed\u8a00\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-1754-c.html#article\",\"name\":\"POJ 1754 Buffer Manager C\\u8bed\\u8a00\\u7248 - Slyar Home\",\"headline\":\"POJ 1754 Buffer Manager C\\u8bed\\u8a00\\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-1754-c.html#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"},\"datePublished\":\"2009-11-24T23:08:20-08:00\",\"dateModified\":\"2022-07-03T15:47:01-07:00\",\"inLanguage\":\"zh-CN\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-1754-c.html#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-1754-c.html#webpage\"},\"articleSection\":\"OJ\\u9898\\u89e3, POJ\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-1754-c.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-1754-c.html#listItem\",\"name\":\"POJ 1754 Buffer Manager C\\u8bed\\u8a00\\u7248\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-1754-c.html#listItem\",\"position\":3,\"name\":\"POJ 1754 Buffer Manager C\\u8bed\\u8a00\\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-1754-c.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-1754-c.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-1754-c.html#webpage\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-1754-c.html\",\"name\":\"POJ 1754 Buffer Manager C\\u8bed\\u8a00\\u7248 - Slyar Home\",\"description\":\"POJ 1754 Buffer Manager C\\u8bed\\u8a00\\u7248\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/poj-1754-c.html#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"datePublished\":\"2009-11-24T23:08:20-08:00\",\"dateModified\":\"2022-07-03T15:47:01-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 1754 Buffer Manager C\u8bed\u8a00\u7248 - Slyar Home","description":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248","canonical_url":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html","robots":"max-image-preview:large","keywords":"slyar,poj,pku,1754,buffer manager,c,\u89e3\u9898\u62a5\u544a,\u9898\u89e3","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html#article","name":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248 - Slyar Home","headline":"POJ 1754 Buffer Manager C\u8bed\u8a00\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-1754-c.html#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"},"datePublished":"2009-11-24T23:08:20-08:00","dateModified":"2022-07-03T15:47:01-07:00","inLanguage":"zh-CN","mainEntityOfPage":{"@id":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html#webpage"},"isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html#webpage"},"articleSection":"OJ\u9898\u89e3, POJ"},{"@type":"BreadcrumbList","@id":"http:\/\/www.slyar.com\/blog\/poj-1754-c.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-1754-c.html#listItem","name":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html#listItem","position":3,"name":"POJ 1754 Buffer Manager C\u8bed\u8a00\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-1754-c.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-1754-c.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-1754-c.html#webpage","url":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html","name":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248 - Slyar Home","description":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248","inLanguage":"zh-CN","isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html#breadcrumblist"},"author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"creator":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"datePublished":"2009-11-24T23:08:20-08:00","dateModified":"2022-07-03T15:47:01-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 1754 Buffer Manager C\u8bed\u8a00\u7248 - Slyar Home","og:description":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248","og:url":"http:\/\/www.slyar.com\/blog\/poj-1754-c.html","article:published_time":"2009-11-24T15:08:20+00:00","article:modified_time":"2022-07-03T22:47:01+00:00","twitter:card":"summary","twitter:title":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248 - Slyar Home","twitter:description":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248"},"aioseo_meta_data":{"post_id":"1105","title":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248 - #site_title","description":"POJ 1754 Buffer Manager C\u8bed\u8a00\u7248","keywords":[{"label":"slyar","value":"slyar"},{"label":"poj","value":"poj"},{"label":"pku","value":"pku"},{"label":"1754","value":"1754"},{"label":"Buffer Manager","value":"Buffer Manager"},{"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":"","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:04","updated":"2022-10-18 14:09:01","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\/1105","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=1105"}],"version-history":[{"count":1,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/1105\/revisions"}],"predecessor-version":[{"id":8285,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/1105\/revisions\/8285"}],"wp:attachment":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/media?parent=1105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/categories?post=1105"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/tags?post=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}