<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>ioi on The Site of laekov</title>
    <link>/tags/ioi/</link>
    <description>Recent content in ioi on The Site of laekov</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>&amp;copy; laekov</copyright>
    <lastBuildDate>Wed, 28 Jan 2015 18:44:41 +0000</lastBuildDate><atom:link href="/tags/ioi/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>BZOJ3351 [ioi2009]Regions</title>
      <link>/oi/i11rimport_068/</link>
      <pubDate>Wed, 28 Jan 2015 18:44:41 +0000</pubDate>
      
      <guid>/oi/i11rimport_068/</guid>
      <description>&amp;lt;div class=&amp;quot;post_brief&amp;quot;&amp;gt;&amp;lt;p&amp;gt; ioi的数据结构题，果然还是比较BT的。&amp;lt;/p&amp;gt; &amp;nbsp;
做法是对颜色分开，大的颜色预处理，小的颜色直接暴力。
&amp;nbsp;
然后一个小错又坑了好久。我真的没救了。
#include &amp;lt;cstdio&amp;gt; #include &amp;lt;cstdlib&amp;gt; #include &amp;lt;cctype&amp;gt; #include &amp;lt;cstring&amp;gt; #include &amp;lt;algorithm&amp;gt; using namespace std;
const int buf_len = 4000; const size_t buf_size = buf_len * sizeof(char); char buf[buf_len], *bufb(buf), *bufe(buf + 1); #define readBuf() { if (++ bufb == bufe) bufe = (bufb = buf) + fread(buf, 1, buf_size, stdin); } #define readInt(x) { register int s(0); do { readBuf(); } while (!isdigit(*bufb)); do { s = s * 10 + *bufb - 48; readBuf(); } while (isdigit(*bufb)); x = s; }</description>
    </item>
    
  </channel>
</rss>
