﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Dream On</title><link>http://www.cppblog.com/fireduck/</link><description>今天很残酷，明天更残酷，后天很美好，但绝对大部分是死在明天晚上，所以每个人不要放弃今天。</description><language>zh-cn</language><lastBuildDate>Thu, 23 Apr 2026 10:16:20 GMT</lastBuildDate><pubDate>Thu, 23 Apr 2026 10:16:20 GMT</pubDate><ttl>60</ttl><item><title>2011就要来啦</title><link>http://www.cppblog.com/fireduck/archive/2010/12/26/137512.html</link><dc:creator>FireDuck</dc:creator><author>FireDuck</author><pubDate>Sun, 26 Dec 2010 12:55:00 GMT</pubDate><guid>http://www.cppblog.com/fireduck/archive/2010/12/26/137512.html</guid><wfw:comment>http://www.cppblog.com/fireduck/comments/137512.html</wfw:comment><comments>http://www.cppblog.com/fireduck/archive/2010/12/26/137512.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fireduck/comments/commentRss/137512.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fireduck/services/trackbacks/137512.html</trackback:ping><description><![CDATA[2011就要来啦，加油AC啊！<br>目前状况总结：<br>搜索（BFS+DFS），图论（最小生成树，单源最短路径），计算几何（凸包）需要深入学习的东西太多了，没时间上这个Blog，尽量更新吧！！！！！记录一下！！
<img src ="http://www.cppblog.com/fireduck/aggbug/137512.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fireduck/" target="_blank">FireDuck</a> 2010-12-26 20:55 <a href="http://www.cppblog.com/fireduck/archive/2010/12/26/137512.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>定了火车票</title><link>http://www.cppblog.com/fireduck/archive/2010/10/25/131149.html</link><dc:creator>FireDuck</dc:creator><author>FireDuck</author><pubDate>Mon, 25 Oct 2010 01:58:00 GMT</pubDate><guid>http://www.cppblog.com/fireduck/archive/2010/10/25/131149.html</guid><wfw:comment>http://www.cppblog.com/fireduck/comments/131149.html</wfw:comment><comments>http://www.cppblog.com/fireduck/archive/2010/10/25/131149.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fireduck/comments/commentRss/131149.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fireduck/services/trackbacks/131149.html</trackback:ping><description><![CDATA[今天上午买了到成都的火车票，从宝鸡中转，11-03下午出发，虽是淡季，一票难求啊，蜀道难，难于上青天啊。近日不断学习计算几何，争取搞出一道来！<img src ="http://www.cppblog.com/fireduck/aggbug/131149.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fireduck/" target="_blank">FireDuck</a> 2010-10-25 09:58 <a href="http://www.cppblog.com/fireduck/archive/2010/10/25/131149.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>10年最后一场网络</title><link>http://www.cppblog.com/fireduck/archive/2010/10/10/129353.html</link><dc:creator>FireDuck</dc:creator><author>FireDuck</author><pubDate>Sun, 10 Oct 2010 10:04:00 GMT</pubDate><guid>http://www.cppblog.com/fireduck/archive/2010/10/10/129353.html</guid><wfw:comment>http://www.cppblog.com/fireduck/comments/129353.html</wfw:comment><comments>http://www.cppblog.com/fireduck/archive/2010/10/10/129353.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/fireduck/comments/commentRss/129353.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fireduck/services/trackbacks/129353.html</trackback:ping><description><![CDATA[<div style="text-align: center;"><strong><font  face="微软雅黑">10年最后一场网络</font></strong></div><div>FZU的11题网络赛1个小时前落下帷幕，辉哥还是那么生猛，一人连A三题&#8230;&#8230;Orz中！！</div><div>今天的C题目留下一大遗憾，貌似可以暴力过，自己也写了代码，但是以前没怎么写过计算几何的代码，所以比较吃力！以后多多练习！！<span class="Apple-tab-span" style="white-space:pre">	</span></div><div style="text-align: center;"><span  style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif; font-size: 24px; line-height: 25px; "><strong style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Problem C How many stars</strong></span></div><span  style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif; font-size: 14px; line-height: 25px; "><div class="problem_desc" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; color: green; text-align: center; "><h3 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Accept: 33&nbsp;&nbsp;&nbsp;&nbsp;Submit: 911<br style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Time Limit: 3000 mSec&nbsp;&nbsp;&nbsp;&nbsp;Memory Limit : 32768 KB</h3></div><div class="problem_content" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; text-align: left; "><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Problem Description</h2><div class="pro_desc" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; text-indent: 28px; white-space: normal; "><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">John has a telescope and he always observes the stars. After each observation, John draws all stars on a paper. To simplify the problem, each star is described as a distinct point in two-dimensional space and no three points are in a line.</p><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "></p><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">There are N stars on the paper. John is so boring that he wants to find some ways to kill the time. He chooses three different points random to form a triangle, and then he wants to know the number of points inside this triangle. There is only one point inside the triangle in Figure 1.</p><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "></p><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/Problem/onlineimage031.png" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Figrue 1</center></div><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Input</h2><div class="pro_desc" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; text-indent: 28px; white-space: normal; "><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">The first line of the input contains an integer T (T&#8804;10), indicating the number of cases. Each case begins with a line containing an integer N (3&#8804;N&#8804;1,000), the number of points in the paper. Each of the following N lines contains two integers Xi and Yi 0&#8804;|X<sub style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">i</sub>|, |Y<sub style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">i</sub>|&#8804;100,000, 1&#8804;i&#8804;N). The next line contains an integer M (0&#8804;M&#8804;1,000,000), the number of queries John will do. Each of the following M lines contains three integers x, y and z (0&#8804;x, y, z&lt;N), the index of the points John has chosen. The stars are labeled from 0 to N-1.</p></div><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Output</h2><div class="pro_desc" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; text-indent: 28px; white-space: normal; "><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">For each test case, print a line containing the test case number (beginning with 1) on its own line, then the answers for each query, one on each line.</p></div><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Sample Input</h2><div class="data" style="font-family: 'Courier New', Courier, monospace; text-align: left; font-size: 16px; white-space: pre; text-indent: 0px; line-height: 20px; border-left-color: rgb(173, 173, 173); background-color: rgb(224, 224, 224); ">2
4
1 1
0 0
0 1
1 0
1
2 1 0
5
0 0
5 0
5 5
0 5
2 1
2
3 1 2
2 0 1
</div><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Sample Output</h2><div class="data" style="font-family: 'Courier New', Courier, monospace; text-align: left; font-size: 16px; white-space: pre; text-indent: 0px; line-height: 20px; border-left-color: rgb(173, 173, 173); background-color: rgb(224, 224, 224); ">Case 1:
0
Case 2:
0
1
</div><div>还有可恶的F题目，三人合作写代码也没写完，可能方法不正确，但是开始的时间也有点晚了！老钱甚至为做这个题目做了一个模型，呵呵！</div><div>但是按照我们的思路，完全模拟操作的话，除了代码长一点，应该还是可以过得啊！又一大遗憾啊！！</div><div><div class="problem_title" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; background-color: rgb(164, 255, 180); font-size: 24px; "><strong style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Problem F Megaminx</strong></div><div class="problem_desc" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; color: green; text-align: center; "><h3 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Accept: 131&nbsp;&nbsp;&nbsp;&nbsp;Submit: 559<br style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Time Limit: 1000 mSec&nbsp;&nbsp;&nbsp;&nbsp;Memory Limit : 32768 KB</h3></div><div class="problem_content" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; text-align: left; "><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Problem Description</h2><div class="pro_desc" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; text-indent: 28px; white-space: normal; "><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">The Megaminx is made in the shape of a dodecahedron, and has 12 face center pieces, 20 corner pieces, and 30 edge pieces. The face centers each have a single color, which identifies the color of that face in the solved state. The edge pieces have two colors, and the corner pieces have three colors. Each face contains a center piece, 5 corner pieces and 5 edge pieces. The corner and edge pieces are shared with adjacent faces. The face centers can only rotate in place, but the other pieces can be permuted by twisting the face layer around the face center. It is showed in Figure 1.</p><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/Problem/onlineimage061.png" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Figure 1</center><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">In this problem, the start state of the Megaminx is in Figure 1 where each side of the Megaminx has a single color. According to Figure 2, all sides are numbered as follows: white '0', &#8230;, yellow &#8216;11&#8217;. There is a series of operations. What you need to do is to print the end state of the Megaminx after these operations. In each operation, there are two integers s and d. The first integer s indicates which side of the Megaminx should be turned.</p><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/Problem/onlineimage062.png" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Figure 2</center><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">The second integer d indicates in which direction the side s should be turned. The value of d is either '1' or '-1' where '1' indicates a clockwise turn and '-1' indicates a counterclockwise turn. The direction is given under the assumption that the viewer is looking directly at the specific side of the Megaminx.</p><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Figure 3 is an example of operation &#8220;1 1&#8221;. Figure 3(1) indicates the Megaminx before the operation, and Figure 3(2) indicates the Megaminx after the operation.</p><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/Problem/onlineimage063.png" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Figure 3</center></div><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Input</h2><div class="pro_desc" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; text-indent: 28px; white-space: normal; "><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">In the first line there is an integer T (T&#8804;50), indicating the number of cases. Each case begins with a line containing an integer number N (0&#8804;N&#8804;1,000), the number of the operations. Each of the following N lines contains two integers s (0&#8804;s&#8804;11) and d, s indicates which side of the Megaminx should be turned, d indicates which direction the side s should be turned and d can be either '1' or '-1'.</p></div><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Output</h2><div class="pro_desc" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; text-indent: 28px; white-space: normal; "><p style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">For each test case, print a line containing the test case number (beginning with 1) on its own line, then output twelve lines indicating the twelve sides according to the side numbers as said above. Each line contains eleven integers separated by a blank space indicating the color of each block. Please output the color of each block according to the block number, the block number is showed in Figure 4.</p><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/Problem/onlineimage064.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><center style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; ">Figure 4</center></div><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Sample Input</h2><div class="data" style="font-family: 'Courier New', Courier, monospace; text-align: left; font-size: 16px; white-space: pre; text-indent: 0px; line-height: 20px; border-left-color: rgb(173, 173, 173); background-color: rgb(224, 224, 224); ">2
0
1
0 1
</div><h2 style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; "><img src="http://acm.fzu.edu.cn/image/prodesc.gif" style="font-family: 'WenQuanYi Micro Hei Mono', 'WenQuanYi Micro Hei', 'Microsoft Yahei Mono', 'Microsoft Yahei', sans-serif !important; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; ">&nbsp;Sample Output</h2><div class="data" style="font-family: 'Courier New', Courier, monospace; text-align: left; font-size: 16px; white-space: pre; text-indent: 0px; line-height: 20px; border-left-color: rgb(173, 173, 173); background-color: rgb(224, 224, 224); ">Case 1:
0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2 2 2
3 3 3 3 3 3 3 3 3 3 3
4 4 4 4 4 4 4 4 4 4 4
5 5 5 5 5 5 5 5 5 5 5
6 6 6 6 6 6 6 6 6 6 6
7 7 7 7 7 7 7 7 7 7 7
8 8 8 8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 9 9 9
10 10 10 10 10 10 10 10 10 10 10
11 11 11 11 11 11 11 11 11 11 11
Case 2:
0 0 0 0 0 0 0 0 0 0 0
5 5 5 1 1 1 1 1 1 1 1
2 2 1 1 1 2 2 2 2 2 2
3 3 3 3 2 2 2 3 3 3 3
4 4 4 4 4 4 3 3 3 4 4
4 5 5 5 5 5 5 5 4 4 5
6 6 6 6 6 6 6 6 6 6 6
7 7 7 7 7 7 7 7 7 7 7
8 8 8 8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 9 9 9
10 10 10 10 10 10 10 10 10 10 10
11 11 11 11 11 11 11 11 11 11 11</div><div class="data" style="font-family: 'Courier New', Courier, monospace; text-align: left; font-size: 16px; white-space: pre; text-indent: 0px; line-height: 20px; border-left-color: rgb(173, 173, 173); background-color: rgb(224, 224, 224); ">加油吧，谋事在人，成事在天，如果幸运的话，能进一场FZU的现场赛，如果不行的话，一年之后又是一条好汉！</div><div class="data" style="font-family: 'Courier New', Courier, monospace; text-align: left; font-size: 16px; white-space: pre; text-indent: 0px; line-height: 20px; border-left-color: rgb(173, 173, 173); background-color: rgb(224, 224, 224); "><br></div></div></div></div></span><img src ="http://www.cppblog.com/fireduck/aggbug/129353.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fireduck/" target="_blank">FireDuck</a> 2010-10-10 18:04 <a href="http://www.cppblog.com/fireduck/archive/2010/10/10/129353.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>今天添加了流量统计模块</title><link>http://www.cppblog.com/fireduck/archive/2010/10/08/128995.html</link><dc:creator>FireDuck</dc:creator><author>FireDuck</author><pubDate>Fri, 08 Oct 2010 00:03:00 GMT</pubDate><guid>http://www.cppblog.com/fireduck/archive/2010/10/08/128995.html</guid><wfw:comment>http://www.cppblog.com/fireduck/comments/128995.html</wfw:comment><comments>http://www.cppblog.com/fireduck/archive/2010/10/08/128995.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fireduck/comments/commentRss/128995.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fireduck/services/trackbacks/128995.html</trackback:ping><description><![CDATA[
今天添加了流量统计模块，很实用！<img src ="http://www.cppblog.com/fireduck/aggbug/128995.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fireduck/" target="_blank">FireDuck</a> 2010-10-08 08:03 <a href="http://www.cppblog.com/fireduck/archive/2010/10/08/128995.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>第一篇随笔！</title><link>http://www.cppblog.com/fireduck/archive/2010/10/06/128829.html</link><dc:creator>FireDuck</dc:creator><author>FireDuck</author><pubDate>Wed, 06 Oct 2010 14:52:00 GMT</pubDate><guid>http://www.cppblog.com/fireduck/archive/2010/10/06/128829.html</guid><wfw:comment>http://www.cppblog.com/fireduck/comments/128829.html</wfw:comment><comments>http://www.cppblog.com/fireduck/archive/2010/10/06/128829.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fireduck/comments/commentRss/128829.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fireduck/services/trackbacks/128829.html</trackback:ping><description><![CDATA[<span style="FONT-FAMILY: 微软雅黑">近日看了不少出名大牛的Blog，感觉离高手的差距真大啊!越发的感觉自己知道的太少了！好多知识需要学习！继续努力吧！</span> 
<img src ="http://www.cppblog.com/fireduck/aggbug/128829.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fireduck/" target="_blank">FireDuck</a> 2010-10-06 22:52 <a href="http://www.cppblog.com/fireduck/archive/2010/10/06/128829.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>