{"id":235,"date":"2012-05-28T19:34:23","date_gmt":"2012-05-28T11:34:23","guid":{"rendered":"http:\/\/www.shuizilong.com\/house\/?p=235"},"modified":"2012-06-09T00:43:51","modified_gmt":"2012-06-08T16:43:51","slug":"codeforces-round-121","status":"publish","type":"post","link":"https:\/\/www.shuizilong.com\/house\/archives\/codeforces-round-121\/","title":{"rendered":"Codeforces Round #121"},"content":{"rendered":"<h3>Brief description: <\/h3>\n<p>Problem A. Dynasty Puzzles<br \/>\n\u7565\u3002\uff08.G[a][b] \u8868\u793a\u4ee5 a \u5f00\u59cb b \u7ed3\u5c3e\u7684\u6700\u957f\u4e32\u7684\u957f\u5ea6\u3002\u3002\u6700\u540e\u7edf\u8ba1\u6240\u6709 G[a][a] &#8230;.<\/p>\n<p><!--more--><\/p>\n<p>Problem B. Demonstration<br \/>\n\u8bfb\u9898\u538b\u529b\u5de8\u5927\uff0c\u90a3\u4e2a\u5565\u3002\u3002\u5927\u6982\u7684\u610f\u601d\u662f\u6709\u4e00\u4e2a\u4e00\u884c n \u7684\u4f4d\u7f6e\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u6709\u4e00\u4e2a\u4ef7\u503c ai &#8230;<br \/>\n\u7136\u540e\u5bf9\u7acb\u7684\u4e24\u4e2a\u52bf\u529b\u8fdb\u884c\u5982\u4e0b\u7684\u535a\u5f08 .<br \/>\n..<br \/>\nA \u52bf\u529b\uff08\u4ee5\u4e0b\u7b80\u79f0\u8fdb\u653b\u65b9\uff09\u7684\u76ee\u7684\u662f\u5f97\u5230\u4e00\u4e2a\u5c3d\u53ef\u80fd\u9760\u5de6\u7684\u4f4d\u7f6e\uff0c<br \/>\n\u6bcf\u56de\u5408\u5b83\u53ef\u4ee5\u9009\u62e9\u4efb\u610f\u4e00\u4e2a\u4f4d\u7f6e\u5360\u636e\u3002<\/p>\n<p>B \u52bf\u529b\uff08\u4ee5\u4e0b\u7b80\u79f0\u9632\u5fa1\u65b9\uff09\u7684\u76ee\u7684\u662f\u4f7f\u5f97\u8fdb\u653b\u65b9\u7684\u7ed3\u679c\u5c3d\u53ef\u80fd\u7cdf\u7cd5\uff0c<br \/>\n\u3002\u3002\u6bcf\u5f53\u8fdb\u653b\u65b9\u9009\u62e9\u4e86\u4e00\u4e2a\u4f4d\u7f6e\u4e4b\u540e\uff0c\u9632\u5fa1\u65b9\u53ef\u4ee5\u6709\u4ee5\u4e0b\u4e24\u4e2a\u51b3\u7b56\u3002<\/p>\n<p>1. \u82b1\u8d39 ai \u5757\u94b1\u3002\u3002\u8ba9 A \u52bf\u529b\u6eda\u56de\u8001\u5bb6\u7ed3\u5a5a\u3002\uff08\u8be5\u4f4d\u7f6e\u6c38\u8fdc\u65e0\u6cd5\u518d\u6b21\u9009\u62e9\uff0c\u5e76\u4e14 A \u52bf\u529b\u81ea\u52a8\u83b7\u5f97\u6700\u9760\u53f3\u7684\u90a3\u4e2a\u683c\u5b50\uff09<br \/>\n2. \u9884\u7b97\u4e0d\u8db3\u3002\u3002\u5360\u636e\u5c31\u5360\u636e\u5427\u3002\u3002<\/p>\n<p>\u95ee\u4e00\u4e2a k \u56de\u5408\uff0c\u9632\u5fa1\u65b9\u8d44\u91d1\u4e3a B \u7684\u6e38\u620f\uff0c\u8fdb\u653b\u65b9\u6240\u80fd\u5f97\u5230\u7684\u6700\u597d\u6210\u7ee9\u3002\u3002<\/p>\n<p>\u7136\u540e\u9898\u76ee\u91cc\u4e00\u5927\u6bb5\u4e0d\u81ea\u7136\u7684\u6587\u5b57\u5927\u6982\u662f\u8bf4\u3002\u3002<br \/>\n1. \u9632\u5fa1\u65b9\u7684\u7b56\u7565\u662f\u8d2a\u5fc3\u7684\u3002\u3002\uff08\u53ea\u8981\u6709\u94b1\u5c31\u5c01\u6740\u76f4\u5230\u6ca1\u94b1\u3002\u3002<br \/>\n2. \u6392\u9664\u4e00\u4e9b bug \u60c5\u51b5\u3002\u3002\u6bd4\u5982\u5982\u679c\u6e38\u620f\u9014\u4e2d\u67d0\u4e2a\u4f4d\u7f6e\u8fdb\u653b\u65b9\u5360\u9886\u4e86\uff0c\u5b83\u8fd8\u53ef\u4ee5\u5411\u66f4\u5de6\u8fb9\u7684\u4f4d\u7f6e\u8fdb\u519b\u3002\u3002<\/p>\n<p>\u3002\u3002\u3002<br \/>\n\uff08\u4e8e\u662f\u8fd9\u4e2a\u9898\u8bfb\u61c2\u4ee5\u540e\u57fa\u672c\u7b97\u6cd5\u5c31\u5df2\u7ecf\u7ed9\u4f60\u4e86\u3002\u3002\uff08\u4e3a\u6bdb\u6211\u611f\u89c9\u5927\u5bb6\u505a\u6cd5\u548c\u6211\u90fd\u4e0d\u4e00\u6837  0w0 \u3002\u3002\u3002<br \/>\n\u3002\u3002\u6309 ai \u5bf9\u4f4d\u7f6e\u8fdb\u884c\u6392\u5e8f\u3002\u3002\uff08\u6ce8\u610f\u6700\u540e\u4e00\u4e2a\u4f4d\u7f6e\u7684\u4ef7\u503c\u662f\u6ca1\u6709\u610f\u4e49\u7684\u3002\u3002\u7528 0 \u66ff\u4ee3\u3002\u3002<br \/>\n\u3002\u3002\u4e4b\u540e\u4e8c\u5206\u5224\u5b9a\u3002\u3002\uff08\u3002\u3002\u4ece\u5927\u5230\u5c0f\u3002\u3002\u9047\u5230\u6211\u4eec\u8981\u7684\u683c\u5b50\u65f6\u6682\u8df3\u8fc7\u3002\u3002\u7559\u5230\u6700\u540e\u4e00\u56de\u5408\u3002\u3002\u3002<br \/>\n\u3002\u4e4b\u540e\u518d\u4ece\u5de6\u5230\u53f3\u626b\u63cf\u4e00\u904d\u627e\u5230\u7b2c\u4e00\u4e2a \u2265 \u8fd9\u4e2a\u503c\u7684\u4f4d\u7f6e\u5373\u53ef\u3002\u3002\u3002\uff09<\/p>\n<p>Problem C. Fools and Roads:<br \/>\n\u7ed9\u5b9a\u4e00\u9897 n \u4e2a\u7ed3\u70b9\u7684\u6811\uff0c\u4ee5\u53ca m \u5bf9\u8bbf\u95ee\u4fe1\u606f\u3002<br \/>\n\u95ee\u6bcf\u6761\u8fb9\u88ab\u7ecf\u8fc7\u4e86\u591a\u5c11\u6b21\u3002\u3002<\/p>\n<p>Problem D. Metro Scheme:<br \/>\n\u7ed9\u5b9a\u4e00\u4e2a\u5730\u94c1\u56fe\u3002\u3002\u3002\uff08\u3002\u5730\u94c1\u5206\u4e24\u7c7b\u3002\u3002A \u7c7b\u7ebf\u5f62\u3002\u3002B \u7c7b\u73af\u5f62\u3002\u3002\uff09<br \/>\n\u3002\u3002\u6ee1\u8db3\u56fe\u662f\u4e00\u4e2a\u4ed9\u4eba\u638c\u56fe\u3002\u3002\uff08\u3002\u4e00\u4e2a\u70b9\u6700\u591a\u53ea\u53ef\u80fd\u5728\u4e00\u4e2a\u73af\u4e0a\u3002\u3002\uff09<br \/>\n\u3002\u95ee\u5f62\u6210\u8fd9\u4e2a\u56fe\u6700\u591a\u548c\u6700\u5c11\u9700\u8981\u51e0\u6761\u5730\u94c1\u7ebf\u5462\u3002\u3002<\/p>\n<p>Problem E. Thwarting Demonstrations:<br \/>\n\u7ed9\u5b9a\u4e00\u4e2a\u957f\u5ea6\u4e3a n \u7684\u6570\u7ec4\uff0c\u95ee\u5728\u6240\u6709\u533a\u95f4\u548c\u4e4b\u4e2d (\u3002\u3002\u5171 C(n, 2) \u7ec4)\u3002\u3002<br \/>\n\u7b2c k \u5927\u7684\u662f\u591a\u5c11\u3002<br \/>\n(.. n <= 10^5 .. .)\n\n\n\n<h3>Analysis: <\/h3>\n<p>Problem C. Fools and Roads:<br \/>\n\u3002\u3002\u52a8\u6001\u6811\u3002\uff08\u3002\u7c7b\u4f3c\u53bb\u5e74\u591a\u6821\u7684 <a href=\"http:\/\/acm.hdu.edu.cn\/showproblem.php?pid=3966\">\u8fd9\u9898<\/a>\u3002\u3002<br \/>\n\u3002\u8f7b\u91cd\u94fe\u6811\u94fe\u5256\u5206\u3002\u3002\u6216\u8005 LCA() + DFS() \u90fd\u53ef\u884c\u3002\u3002\uff09<\/p>\n<p>Problem D. Metro Scheme:<br \/>\n\u3002\u3002\u8c8c\u4f3c\u6700\u591a\u7684\u5c31\u662f\u8fb9\u6570\u3002\u3002\u4e8e\u662f\u6700\u5c0f\u7684\u600e\u4e48\u6c42 \u3002\u30020w0\uff1f\u3002\u3002<br \/>\n\u6211\u5c31\u53bb\u770b\u4e86\u4e00\u773c bjin \u7684\u4ee3\u7801\u3002\u3002\u53d1\u73b0\u53ea\u8981\u5148\u7edf\u8ba1\u4e0b\u6b27\u62c9\u8def\u5f84\u7684\u6570\u76ee\u3002\u3002\u518d\u5728\u539f\u56fe\u4e0a\u627e\u73af\u5c31\u884c\u4e86\u3002\u3002\u3002<br \/>\n\u524d\u8005\u7edf\u8ba1\u4e0b\u5947\u6570\u5ea6\u5b9a\u70b9\u6570\u76ee \/ 2 \u3002\u3002\u3002\u540e\u8005\u53ef\u4ee5\u76f4\u63a5\u5728\u56fe\u4e0a\u7f29\u73af\u3002\u30020w0\u3002\u3002\u590d\u6742\u5ea6 O(n)\u3002\u3002\u3002<\/p>\n<p>Problem E. Thwarting Demonstrations:<br \/>\n\u4e8c\u4efd\u7b54\u6848\u5224\u5b9a\uff0c\u5219\u5b50\u95ee\u9898\u4e3a\uff0c\u5927\u4e8e\u7b49\u4e8e x \u7684\u533a\u95f4\u548c\u7684\u6570\u91cf\u8d85\u8fc7 k \u5417\uff1f<br \/>\n\u8fd9\u4e2a\u7ecf\u5178\u7684\u5b50\u95ee\u9898\u89e3\u51b3\u529e\u6cd5\u6709\u5f88\u591a\uff0c\u8fd9\u91cc\u7528\u5b9e\u73b0\u6700\u5bb9\u6613\u7684\u6811\u72b6\u6570\u7ec4\u3002<br \/>\n\u5927\u6982\u662f\u8fd9\u4e2a\u6837\u5b50\u3002\u3002<\/p>\n<pre class=\"brush: cpp; collapse: false; first-line: 1; highlight: [3,4]; light: false; title: ; toolbar: true; notranslate\" title=\"\">\r\nbool f(LL x, LL k) {\r\n    RST(C); REP(i, n){\r\n        Add(lower_bound(a, a + n, s&#x5B;i]) - a + 1, 1);\r\n        k -= Sum(lower_bound(a, a + n, s&#x5B;i+1] - x + 1) - a);\r\n        if (k &lt;= 0) return true;\r\n    }\r\n    return false;\r\n}\r\n<\/pre>\n<p>\u3002\u3002\u3002\u3002<\/p>\n<pre class=\"brush: cpp; collapse: true; first-line: 1; light: false; title: Problem A. Dynasty Puzzles.cpp; toolbar: true; notranslate\" title=\"Problem A. Dynasty Puzzles.cpp\">\r\nint G&#x5B;26]&#x5B;26], n;\r\n\r\nint main(){\r\n\r\n    while (scanf(&quot;%d&quot;, &amp;n) != EOF &amp;&amp; n){\r\n\r\n        string s; REP(i, n){\r\n            cin &gt;&gt; s; int a = s&#x5B;0] - 'a', b = s&#x5B;SZ(s)-1] - 'a';\r\n            REP(i, 26) if (G&#x5B;i]&#x5B;a]) checkMax(G&#x5B;i]&#x5B;b], G&#x5B;i]&#x5B;a] + SZ(s));\r\n            checkMax(G&#x5B;a]&#x5B;b], SZ(s));\r\n        }\r\n\r\n        int ans = 0; REP(i, 26){\r\n            checkMax(ans, G&#x5B;i]&#x5B;i]);\r\n        }\r\n\r\n        cout &lt;&lt; ans &lt;&lt; endl;\r\n    }\r\n}\r\n<\/pre>\n<pre class=\"brush: cpp; collapse: true; first-line: 1; light: false; title: Problem B. Demonstration.cpp; toolbar: true; notranslate\" title=\"Problem B. Demonstration.cpp\">\r\nconst int N = 100009;\r\n\r\nint A&#x5B;N], O&#x5B;N]; LL B;\r\nint n, k;\r\n\r\nbool comp(int a, int b){\r\n    return A&#x5B;a] &gt; A&#x5B;b]  || A&#x5B;a] == A&#x5B;b] &amp;&amp; a &lt; b;\r\n}\r\n\r\nbool f(int x){\r\n\r\n    x = O&#x5B;x];\r\n\r\n    int i = 0, t = k - 1; LL b = B;\r\n\r\n    while (t){\r\n        if (O&#x5B;i] == x) ++i;\r\n        b -= A&#x5B;O&#x5B;i]];\r\n        ++i, --t;\r\n    }\r\n\r\n    return b &lt; A&#x5B;x];\r\n}\r\n\r\nint main(){\r\n\r\n    RD(n, k); cin &gt;&gt; B; REP(i, n) RD(A&#x5B;i]), O&#x5B;i] = i; A&#x5B;n-1] = 0;\r\n    sort(O, O + n, comp);\r\n\r\n    if (!f(0)){\r\n        cout &lt;&lt; n &lt;&lt; endl;\r\n        return 0;\r\n    }\r\n\r\n    int l = 0, r = n - 2;\r\n\r\n    while (l &lt; r){\r\n        int m = (l + r + 1) \/ 2;\r\n        if (f(m)) l = m;\r\n        else r = m - 1;\r\n    }\r\n\r\n    REP(i, n) if (A&#x5B;i] &gt;= A&#x5B;O&#x5B;l]]){\r\n        cout &lt;&lt; i + 1 &lt;&lt; endl;\r\n        return 0;\r\n    }\r\n}\r\n<\/pre>\n<pre class=\"brush: cpp; collapse: true; first-line: 1; light: false; title: Problem C. Fools and Roads.cpp; toolbar: true; notranslate\" title=\"Problem C. Fools and Roads.cpp\">\r\nconst int N = 100009, M = 2 * N;\r\n\r\nint l&#x5B;N], r&#x5B;N], p&#x5B;N], w0&#x5B;N], w1&#x5B;N], delay&#x5B;N]; bool rt&#x5B;N];\r\n\/\/ Link-cut tree\r\nint hd&#x5B;N], nxt&#x5B;M], a&#x5B;M], b&#x5B;M];\r\n\/\/ Adjacent list\r\n\r\nint n, ans;\r\n\r\n#define lx l&#x5B;x]\r\n#define rx r&#x5B;x]\r\n\r\n\/\/ private:\r\n\r\ninline void Inc(int x, int d){\r\n    if (x == 0) return;\r\n    w0&#x5B;x] += d, w1&#x5B;x] += d, delay&#x5B;x] += d;\r\n}\r\n\r\ninline void Release(int x){\r\n    if (x == 0) return;\r\n\r\n    if (delay&#x5B;x]){\r\n        Inc(lx, delay&#x5B;x]), Inc(rx, delay&#x5B;x]);\r\n        delay&#x5B;x] = 0;\r\n    }\r\n}\r\n\r\ninline void Update(int x){\r\n    w1&#x5B;x] = w0&#x5B;x] + w1&#x5B;lx] + w1&#x5B;rx];\r\n}\r\n\r\ninline void Set(int l&#x5B;], int y, int x){\r\n    l&#x5B;y] = x, p&#x5B;x] = y;\r\n}\r\n\r\n#define z p&#x5B;y]\r\ninline void Rotate(int x){\r\n    int y = p&#x5B;x];\r\n\r\n    if (!rt&#x5B;y]) Release(z), Set(y == l&#x5B;z] ? l : r, z, x);\r\n    else p&#x5B;x] = z;\r\n\r\n    Release(y), Release(x);\r\n\r\n    if (x == l&#x5B;y]) Set(l, y, rx), Set(r, x, y);\r\n    else Set(r, y, lx), Set(l, x, y);\r\n\r\n    if (rt&#x5B;y]) rt&#x5B;y] = false, rt&#x5B;x] = true;\r\n    Update(y);\r\n}\r\n\r\ninline void Splay(int x){\r\n    while (!rt&#x5B;x]) Rotate(x);\r\n}\r\n\r\ninline int Access(int x){\r\n    int y = 0; do{\r\n        Splay(x), Release(x);\r\n        rt&#x5B;rx] = true, rt&#x5B;rx = y] = false, Update(x);\r\n        x = p&#x5B;y = x];\r\n    } while (x);\r\n    return y;\r\n}\r\n\r\n\/\/ public:\r\n\r\nvoid Query(int x, int y){\r\n    Access(y), y = 0; do{\r\n        Splay(x); Release(x); if (!p&#x5B;x]) OT(w1&#x5B;rx] + w1&#x5B;y]);\r\n        rt&#x5B;rx] = true, rt&#x5B;rx = y] = false; Update(x);\r\n        x = p&#x5B;y = x];\r\n\r\n    } while (x);\r\n}\r\n\r\nvoid Modify(int x, int y, int w){\r\n    Access(y); y = 0; do{\r\n        Splay(x), Release(x); if (!p&#x5B;x]) Inc(rx, w), Inc(y, w);\r\n        rt&#x5B;rx] = true, rt&#x5B;rx = y] = false, Update(x);\r\n        x = p&#x5B;y = x];\r\n    } while (x);\r\n}\r\n\r\n#define v b&#x5B;i]\r\ninline void dfs(int u = 1){\r\n    for(int i=hd&#x5B;u];i;i=nxt&#x5B;i]) if (!p&#x5B;v]){\r\n        p&#x5B;v] = u, dfs(v);\r\n    }\r\n}\r\n\r\n\r\nint main(){\r\n\r\n#ifdef LOCAL\r\n    \/\/freopen(&quot;in01.txt&quot;, &quot;r&quot;, stdin);\r\n#endif\r\n\r\n    FOR_C(i, 2, _RD(n) &lt;&lt; 1){\r\n        RD(a&#x5B;i], b&#x5B;i]), a&#x5B;i|1] = b&#x5B;i], b&#x5B;i|1] = a&#x5B;i];\r\n        nxt&#x5B;i] = hd&#x5B;a&#x5B;i]], hd&#x5B;a&#x5B;i]] = i; ++i;\r\n        nxt&#x5B;i] = hd&#x5B;a&#x5B;i]], hd&#x5B;a&#x5B;i]] = i;\r\n    }\r\n\r\n    FLC(rt, true), p&#x5B;1] = -1, dfs(), p&#x5B;1] = 0;\r\n\r\n    int x, y; DO_C(RD()){\r\n        RD(x, y); Modify(x, y, 1);\r\n    }\r\n\r\n    FOR(i, 1, n) Query(a&#x5B;i&lt;&lt;1], b&#x5B;i&lt;&lt;1]);\r\n}\r\n<\/pre>\n<pre class=\"brush: cpp; collapse: true; first-line: 1; light: false; title: Problem D. Metro Scheme.cpp; toolbar: true; notranslate\" title=\"Problem D. Metro Scheme.cpp\">\r\nconst int N = 100009;\r\nVI adj&#x5B;N];\r\nint n, m, ans;\r\n\r\nint main() {\r\n\r\n#ifndef ONLINE_JUDGE\r\n\tfreopen(&quot;in.txt&quot;, &quot;r&quot;, stdin);\r\n#endif\r\n\r\n    int a, b; RD(n, m); REP(i, m){\r\n        RD(a, b), --a, --b, adj&#x5B;a].PB(b), adj&#x5B;b].PB(a);\r\n    }\r\n\r\n#define deg(x) SZ(adj&#x5B;x])\r\n\r\n    REP(i, n) if (deg(i)&amp;1) ++ans;\r\n    ans &gt;&gt;= 1;\r\n\r\n    REP(i, n) if (deg(i) == 2){\r\n        a = adj&#x5B;i]&#x5B;0], b = adj&#x5B;i]&#x5B;1];\r\n        if (a == b){\r\n            CLR(adj&#x5B;a]);\r\n            ++ans;\r\n        }\r\n        else {\r\n            adj&#x5B;a]&#x5B;adj&#x5B;a]&#x5B;0] == i ? 0 : 1] = b;\r\n            adj&#x5B;b]&#x5B;adj&#x5B;b]&#x5B;0] == i ? 0 : 1] = a;\r\n        }\r\n    }\r\n\r\n    printf(&quot;%d %d\\n&quot;, ans, m);\r\n}\r\n<\/pre>\n<pre class=\"brush: cpp; collapse: true; first-line: 1; light: false; title: Problem E. Thwarting Demonstrations.cpp; toolbar: true; notranslate\" title=\"Problem E. Thwarting Demonstrations.cpp\">\r\nconst int N = 100009;\r\nint C&#x5B;N]; LL s&#x5B;N], a&#x5B;N];\r\nint n; LL k;\r\n\r\nvoid Add(int x, int d){\r\n    for (int i=x;i&lt;=n;i+=low_bit(i)) C&#x5B;i] += d;\r\n}\r\n\r\nLL Sum(int x){\r\n    LL res = 0; for(int i=x;i;i^=low_bit(i)) res += C&#x5B;i];\r\n    return res;\r\n}\r\n\r\nbool f(LL x, LL k) {\r\n    RST(C); REP(i, n){\r\n        Add(lower_bound(a, a + n, s&#x5B;i]) - a + 1, 1);\r\n        k -= Sum(lower_bound(a, a + n, s&#x5B;i+1] - x) - a);\r\n        if (k &lt;= 0) return true;\r\n\t}\r\n\treturn false;\r\n}\r\n\r\n\/\/((s&#x5B;r] - s&#x5B;l-1]) &gt;= x)\r\n\/\/s&#x5B;l-1] &lt;= s&#x5B;r] - x ...\r\n\r\nint main() {\r\n\r\n#ifndef ONLINE_JUDGE\r\n\tfreopen(&quot;in.txt&quot;, &quot;r&quot;, stdin);\r\n#endif\r\n\r\n\tscanf(&quot;%d %I64d&quot;, &amp;n, &amp;k);\r\n\t\/\/scanf(&quot;%d %lld&quot;, &amp;n, &amp;k);\r\n\r\n\tREP(i, n) s&#x5B;i+1] = s&#x5B;i] + RD();\r\n    REP(i, n) a&#x5B;i] = s&#x5B;i]; sort(a, a + n);\r\n\r\n\tLL l = -1e14 - 1, r = 1e14 - 1;\r\n\twhile (l &lt;= r) {\r\n\t\tLL m = (l + r) \/ 2;\r\n\t\tif (f(m, k)) l = m + 1;\r\n        else r = m - 1;\r\n\t}\r\n\r\n\tprintf(&quot;%I64d\\n&quot;, l);\r\n\t\/\/printf(&quot;%lld\\n&quot;, l - 1);\r\n}\r\n<\/pre>\n<h3>External link: <\/h3>\n<p><a href=\"  http:\/\/www.codeforces.com\/contest\/191\/room\/1\">http:\/\/www.codeforces.com\/contest\/191\/room\/1<br \/>\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brief description: Problem A. Dynasty Puzzles \u7565\u3002\uff08.G[a][b] \u8868\u793a\u4ee5 a \u5f00\u59cb b \u7ed3\u5c3e\u7684\u6700\u957f\u4e32\u7684\u957f\u5ea6\u3002\u3002\u6700\u540e\u7edf\u8ba1\u6240\u6709 G[a][a] &#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[18],"tags":[],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-codeforces"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2tdP7-3N","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":1,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":236,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/posts\/235\/revisions\/236"}],"wp:attachment":[{"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuizilong.com\/house\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}