<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Greenmoon55's Blog</title>
	<atom:link href="http://greenmoon55.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://greenmoon55.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 15 Feb 2012 06:41:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on HDU3682 To Be an Dream Architect by EUYUIL</title>
		<link>http://greenmoon55.com/hdu3682-to-be-an-dream-architect/comment-page-1/#comment-4338</link>
		<dc:creator>EUYUIL</dc:creator>
		<pubDate>Wed, 15 Feb 2012 06:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?p=338#comment-4338</guid>
		<description>这种解法真牛逼。</description>
		<content:encoded><![CDATA[<p>这种解法真牛逼。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HDU3687 National Day Parade by ACM/ICPC 2010 杭州现场赛 National Day Parade 题解 &#8249; EUYUIL</title>
		<link>http://greenmoon55.com/hdu3687-national-day-parade/comment-page-1/#comment-4337</link>
		<dc:creator>ACM/ICPC 2010 杭州现场赛 National Day Parade 题解 &#8249; EUYUIL</dc:creator>
		<pubDate>Wed, 15 Feb 2012 06:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?p=339#comment-4337</guid>
		<description>[...] jQuery(document).ready(function($){ if (navigator.platform == &quot;iPad&quot;) return; jQuery(&quot;img&quot;).not(&quot;.cycle img&quot;).lazyload({ effect:&quot;fadeIn&quot;, placeholder: &quot;http://euyuil.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif&quot; }); }); MathJax.Hub.Config({ extensions: [&quot;tex2jax.js&quot;], jax: [&quot;input/TeX&quot;, &quot;output/HTML-CSS&quot;], tex2jax: { inlineMath: [ [&#039;$&#039;,&#039;$&#039;], [&quot;\(&quot;,&quot;\)&quot;], [&quot;[latex]&quot;,&quot;[/latex]&quot;] ], displayMath: [ [&#039;$$&#039;,&#039;$$&#039;], [&quot;\[&quot;,&quot;\]&quot;] ], processEscapes: true }, &quot;HTML-CSS&quot;: { availableFonts: [&quot;TeX&quot;] } });  LiuyueACM SolutionsSoftware OpusGuestbookSearchAboutACM/ICPC 2010 杭州现场赛 National Day Parade 题解2012-02-15 14:44:19 &#8226; ACM, 区域赛, 水题, 现场赛, 题解 &#8226; 抢沙发这是在 Greenmoon55&#8242;s Blog 挖掘出来的水题一则。果断凑数。思路是把每行的学生的列坐标分别排序，枚举左边一列的列号即可。代码如下：#crayon-4f3b544841637 .crayon-plain { font-size: 12px !important; line-height: 16px !important;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748#include &lt;cmath&gt; #include &lt;cstdio&gt; #include &lt;climits&gt; #include &lt;cstring&gt; #include &lt;iostream&gt; #include &lt;algorithm&gt; using namespace std;const int N = 222;int i2j[N][N], cnt[N], n, m, n2;int main(){&#160;&#160;&#160;&#160;// freopen(&quot;input.txt&quot;, &quot;r&quot;, stdin); &#160;&#160;&#160;&#160;while (cin &gt;&gt; n &gt;&gt; m)&#160;&#160;&#160;&#160;{&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if (n == 0 &amp;&amp; m == 0)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;break;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;memset(cnt, 0, sizeof cnt);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;n2 = n * n;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for (int i = 0; i &lt; n2; ++i)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;int k, a; cin &gt;&gt; k; --k;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cin &gt;&gt; a; --a; i2j[k][cnt[k]++] = a;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for (int i = 0; i &lt; n; ++i)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sort(i2j[i], i2j[i] + n);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;int rmost = m - n, sum, result = INT_MAX;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for (int i = 0; i &lt;= rmost; ++i)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sum = 0;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for (int j = 0; j &lt; n; ++j)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for (int k = 0; k &lt; n; ++k)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sum += abs(i2j[j][k] - (i + k));&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;result = min(result, sum);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cout &lt;&lt; result &lt;&lt; endl;&#160;&#160;&#160;&#160;}&#160;&#160;&#160;&#160;return 0;}原创文章，转载请注明来源：http://euyuil.com/3245/acm-icpc-2010-hangzhou-national-day-parade/  搜索框载入中……  google.load(&#039;search&#039;, &#039;1&#039;, {language : &#039;zh-CN&#039;}); google.setOnLoadCallback(function() { var customSearchControl = new google.search.CustomSearchControl(&#039;001309449942216446108:hg0oww9xcq0&#039;); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); var options = new google.search.DrawOptions(); options.setAutoComplete(true); options.enableSearchboxOnly(&quot;http://euyuil.com/search/&quot;, &quot;keyword&quot;); customSearchControl.draw(&#039;cse-search-form&#039;, options); }, true); [...]</description>
		<content:encoded><![CDATA[<p>[...] jQuery(document).ready(function($){ if (navigator.platform == &quot;iPad&quot;) return; jQuery(&quot;img&quot;).not(&quot;.cycle img&quot;).lazyload({ effect:&quot;fadeIn&quot;, placeholder: &quot;<a href="http://euyuil.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif&#038;quot" rel="nofollow">http://euyuil.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif&#038;quot</a>; }); }); MathJax.Hub.Config({ extensions: [&quot;tex2jax.js&quot;], jax: [&quot;input/TeX&quot;, &quot;output/HTML-CSS&quot;], tex2jax: { inlineMath: [ [&#039;$&#039;,&#039;$&#039;], [&quot;\(&quot;,&quot;\)&quot;], [&quot;[latex]&quot;,&quot;[/latex]&quot;] ], displayMath: [ [&#039;$$&#039;,&#039;$$&#039;], [&quot;\[&quot;,&quot;\]&quot;] ], processEscapes: true }, &quot;HTML-CSS&quot;: { availableFonts: [&quot;TeX&quot;] } });  LiuyueACM SolutionsSoftware OpusGuestbookSearchAboutACM/ICPC 2010 杭州现场赛 National Day Parade 题解2012-02-15 14:44:19 &bull; ACM, 区域赛, 水题, 现场赛, 题解 &bull; 抢沙发这是在 Greenmoon55&#8242;s Blog 挖掘出来的水题一则。果断凑数。思路是把每行的学生的列坐标分别排序，枚举左边一列的列号即可。代码如下：#crayon-4f3b544841637 .crayon-plain { font-size: 12px !important; line-height: 16px !important;}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748#include &lt;cmath&gt; #include &lt;cstdio&gt; #include &lt;climits&gt; #include &lt;cstring&gt; #include &lt;iostream&gt; #include &lt;algorithm&gt; using namespace std;const int N = 222;int i2j[N][N], cnt[N], n, m, n2;int main(){&nbsp;&nbsp;&nbsp;&nbsp;// freopen(&quot;input.txt&quot;, &quot;r&quot;, stdin); &nbsp;&nbsp;&nbsp;&nbsp;while (cin &gt;&gt; n &gt;&gt; m)&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (n == 0 &amp;&amp; m == 0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memset(cnt, 0, sizeof cnt);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n2 = n * n;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; n2; ++i)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int k, a; cin &gt;&gt; k; &#8211;k;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cin &gt;&gt; a; &#8211;a; i2j[k][cnt[k]++] = a;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; n; ++i)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sort(i2j[i], i2j[i] + n);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int rmost = m &#8211; n, sum, result = INT_MAX;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt;= rmost; ++i)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sum = 0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int j = 0; j &lt; n; ++j)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int k = 0; k &lt; n; ++k)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sum += abs(i2j[j][k] &#8211; (i + k));&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result = min(result, sum);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout &lt;&lt; result &lt;&lt; endl;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;return 0;}原创文章，转载请注明来源：http://euyuil.com/3245/acm-icpc-2010-hangzhou-national-day-parade/  搜索框载入中……  google.load(&#039;search&#039;, &#039;1&#039;, {language : &#039;zh-CN&#039;}); google.setOnLoadCallback(function() { var customSearchControl = new google.search.CustomSearchControl(&#039;001309449942216446108:hg0oww9xcq0&#039;); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); var options = new google.search.DrawOptions(); options.setAutoComplete(true); options.enableSearchboxOnly(&quot;<a href="http://euyuil.com/search/&quot;" rel="nofollow">http://euyuil.com/search/&quot;</a>, &quot;keyword&quot;); customSearchControl.draw(&#039;cse-search-form&#039;, options); }, true); [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Guestbook by 纳米黑客</title>
		<link>http://greenmoon55.com/guestbook/comment-page-1/#comment-4327</link>
		<dc:creator>纳米黑客</dc:creator>
		<pubDate>Mon, 13 Feb 2012 03:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?page_id=23#comment-4327</guid>
		<description>神牛来换链接</description>
		<content:encoded><![CDATA[<p>神牛来换链接</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on HDU4121 Xiangqi by EUYUIL</title>
		<link>http://greenmoon55.com/hdu4121-xiangqi/comment-page-1/#comment-4282</link>
		<dc:creator>EUYUIL</dc:creator>
		<pubDate>Mon, 06 Feb 2012 08:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?p=332#comment-4282</guid>
		<description>共勉啊~！</description>
		<content:encoded><![CDATA[<p>共勉啊~！</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Guestbook by 包子剑客</title>
		<link>http://greenmoon55.com/guestbook/comment-page-1/#comment-4279</link>
		<dc:creator>包子剑客</dc:creator>
		<pubDate>Sun, 05 Feb 2012 15:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?page_id=23#comment-4279</guid>
		<description>看我邮箱就知道了。。。。。。

这验证又来了。。。。。</description>
		<content:encoded><![CDATA[<p>看我邮箱就知道了。。。。。。</p>
<p>这验证又来了。。。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Guestbook by Greenmoon55</title>
		<link>http://greenmoon55.com/guestbook/comment-page-1/#comment-4278</link>
		<dc:creator>Greenmoon55</dc:creator>
		<pubDate>Sun, 05 Feb 2012 15:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?page_id=23#comment-4278</guid>
		<description>这个名字好熟悉呀～在好多地方见过好多次。。 
嗯，确实应该考虑换验证码了= =</description>
		<content:encoded><![CDATA[<p>这个名字好熟悉呀～在好多地方见过好多次。。<br />
嗯，确实应该考虑换验证码了= =</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Guestbook by 包子剑客</title>
		<link>http://greenmoon55.com/guestbook/comment-page-1/#comment-4267</link>
		<dc:creator>包子剑客</dc:creator>
		<pubDate>Sat, 04 Feb 2012 16:40:40 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?page_id=23#comment-4267</guid>
		<description>I found you！
还有还有，换个机器人验证。。。。。。。做数学加法那种多好的。。。。。。。</description>
		<content:encoded><![CDATA[<p>I found you！<br />
还有还有，换个机器人验证。。。。。。。做数学加法那种多好的。。。。。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 用字符数组存int by EUYUIL</title>
		<link>http://greenmoon55.com/store-an-int-in-a-char-array/comment-page-1/#comment-3862</link>
		<dc:creator>EUYUIL</dc:creator>
		<pubDate>Mon, 26 Dec 2011 03:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?p=324#comment-3862</guid>
		<description>看看这篇……

http://euyuil.com/3023/</description>
		<content:encoded><![CDATA[<p>看看这篇……</p>
<p><a href="http://euyuil.com/3023/" rel="nofollow">http://euyuil.com/3023/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 用字符数组存int by EUYUIL</title>
		<link>http://greenmoon55.com/store-an-int-in-a-char-array/comment-page-1/#comment-3707</link>
		<dc:creator>EUYUIL</dc:creator>
		<pubDate>Tue, 13 Dec 2011 16:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?p=324#comment-3707</guid>
		<description>呵呵，发现有提到我……

这个似乎有的是从低位存到高位，有的是反过来的。比如 Java 似乎是反的，它在读取二进制文件的时候就是反的，写项目的时候就以为它也是从低位到高位存，所以就搞错了。

听说 Intel 的处理器还是什么的比较喜欢这样搞，具体忘了。

还有 TCHAR 的定义是这样的：如果你定义了 UNICODE 那么 TCHAR 就是 wchar_t, 如果你没有定义的话就是 char. 如果你用 VS 2010 来弄的话，默认是定义了 UNICODE 的。</description>
		<content:encoded><![CDATA[<p>呵呵，发现有提到我……</p>
<p>这个似乎有的是从低位存到高位，有的是反过来的。比如 Java 似乎是反的，它在读取二进制文件的时候就是反的，写项目的时候就以为它也是从低位到高位存，所以就搞错了。</p>
<p>听说 Intel 的处理器还是什么的比较喜欢这样搞，具体忘了。</p>
<p>还有 TCHAR 的定义是这样的：如果你定义了 UNICODE 那么 TCHAR 就是 wchar_t, 如果你没有定义的话就是 char. 如果你用 VS 2010 来弄的话，默认是定义了 UNICODE 的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 20111101 by EUYUIL</title>
		<link>http://greenmoon55.com/20111101/comment-page-1/#comment-3483</link>
		<dc:creator>EUYUIL</dc:creator>
		<pubDate>Sun, 13 Nov 2011 06:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://greenmoon55.com/?p=323#comment-3483</guid>
		<description>其实以前软院没有那么苦逼的，一个学期就一两个项目罢了。</description>
		<content:encoded><![CDATA[<p>其实以前软院没有那么苦逼的，一个学期就一两个项目罢了。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

