<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dwarf Home &#187; moradin</title>
	<atom:link href="http://moradin.net/blog/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://moradin.net/blog</link>
	<description>Innovator</description>
	<lastBuildDate>Wed, 23 Jun 2010 17:20:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>上海世博会-沙特城市名片册-半淞园路-3号门-抢票攻略</title>
		<link>http://moradin.net/blog/2010/06/expo2010-vip/</link>
		<comments>http://moradin.net/blog/2010/06/expo2010-vip/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 15:05:45 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[优质宅]]></category>
		<category><![CDATA[3号门]]></category>
		<category><![CDATA[VIP]]></category>
		<category><![CDATA[世博会]]></category>
		<category><![CDATA[中国馆]]></category>
		<category><![CDATA[半淞园路]]></category>
		<category><![CDATA[城市名片册]]></category>
		<category><![CDATA[德国馆]]></category>
		<category><![CDATA[攻略]]></category>
		<category><![CDATA[沙特馆]]></category>
		<category><![CDATA[预约券]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=532</guid>
		<description><![CDATA[5:10 　　轻装上阵，保证7点前肚腹不出任何状况。必要时武力干涉插队者！ 7:00 　　闸门开启，安检口从左至右为1号到4号，其中1号2号口为团队入口，团体票不可领取城市名片册。 　　3-1离闸门最近，离目的地最近，若最初没有高排位（40名内）建议放弃。 　　4-2离闸门最远，离目的地最远，即便排位在200位开外都可以在这里拿到前20的排位，以保证获得中国馆优惠券（每个安检口不到80张）。 　　考虑到安检时间因素，3-1的第30名不一定能比4-2的第15名先到直道。 　　洗手间在闸门一侧，若因故离开安检通道，工作人员会给一个手环放行，请在8:30同样确保肚腹就绪，准备热身。 9:00 　　开始安检，将所有杂物放入包内，门票握于手中，大声对安检员说：“我身上没带东西。”，切记正面扫完立即转身让其扫背面。 　　详细路线见hellogordon的《城市名片册使用图文全攻略》 　　上天桥时一定要乘电梯恢复体力。 　　不要听小白菜的指挥，果断走小路。 9:02 　　走大路（圆弧）则考虑拿案例联合馆2的总共20张德国馆VIP，但此时排队已满20人。 9:05 　　70张沙特城市名片发放完毕。凡拿到名片者必然可以换得对应预约券/VIP，不必着急敲章。 Moradin于6月18日的抢票时间表： 　　05:10：3号口，约第120名 　　07:00：开放闸门，跑向4-2，第11名 　　09:03：急奔八百余米，入手沙特城市名片 　　（仅供参考） 注：尽管台湾馆9:30发放4000张，18:00发放1000张，但16:30于台湾馆门口的预约券发放区便早已排满1000人，停止排队。]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_534" class="wp-caption aligncenter" style="width: 235px"><a href="http://moradin.net/blog/wp-content/uploads/2010/06/p_large_KvSh_733b016065.jpg"><img class="size-medium wp-image-534" title="p_large_KvSh_733b016065" src="http://moradin.net/blog/wp-content/uploads/2010/06/p_large_KvSh_733b016065-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">沙特阿拉伯国家馆VIP</p></div><span id="more-532"></span><br />
<strong>5:10</strong><br />
　　轻装上阵，保证7点前肚腹不出任何状况。必要时武力干涉插队者！</p>
<p><strong>7:00</strong><br />
　　闸门开启，安检口从左至右为1号到4号，其中1号2号口为团队入口，团体票不可领取城市名片册。<br />
　　3-1离闸门最近，离目的地最近，若最初没有高排位（40名内）建议放弃。<br />
　　4-2离闸门最远，离目的地最远，即便排位在200位开外都可以在这里拿到前20的排位，以保证获得中国馆优惠券（每个安检口不到80张）。<br />
　　考虑到安检时间因素，3-1的第30名不一定能比4-2的第15名先到直道。<br />
　　洗手间在闸门一侧，若因故离开安检通道，工作人员会给一个手环放行，请在<strong>8:30</strong>同样确保肚腹就绪，准备热身。</p>
<p><strong>9:00</strong><br />
　　开始安检，将所有杂物放入包内，门票握于手中，大声对安检员说：“我身上没带东西。”，切记正面扫完立即转身让其扫背面。<br />
　　详细路线见hellogordon的《<a href="http://www.ctrip.com/Community/ItineraryWri/ShowWriting.asp?writing=1292668&amp;page=2&amp;#1">城市名片册使用图文全攻略</a>》<br />
　　上天桥时一定要乘电梯恢复体力。<br />
　　不要听小白菜的指挥，果断走小路。</p>
<p><strong>9:02</strong><br />
　　走大路（圆弧）则考虑拿案例联合馆2的总共20张德国馆VIP，但此时排队已满20人。</p>
<p><strong>9:05</strong><br />
　　70张沙特城市名片发放完毕。凡拿到名片者必然可以换得对应预约券/VIP，不必着急敲章。</p>
<p><div id="attachment_533" class="wp-caption aligncenter" style="width: 310px"><a href="http://moradin.net/blog/wp-content/uploads/2010/06/map1.jpg"><img class="size-medium wp-image-533" title="map1" src="http://moradin.net/blog/wp-content/uploads/2010/06/map1-300x267.jpg" alt="" width="300" height="267" /></a><p class="wp-caption-text">路线图（点击放大）</p></div><br />
<br />
<strong>Moradin于6月18日的抢票时间表：</strong><br />
　　05:10：3号口，约第120名<br />
　　07:00：开放闸门，跑向4-2，第11名<br />
　　09:03：急奔八百余米，入手沙特城市名片<br />
　　（仅供参考）<br />
<br />
<strong>注：尽管台湾馆9:30发放4000张，18:00发放1000张，但16:30于台湾馆门口的预约券发放区便早已排满1000人，停止排队。</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2010/06/expo2010-vip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>打工第二天</title>
		<link>http://moradin.net/blog/2010/06/part-time-work-day2/</link>
		<comments>http://moradin.net/blog/2010/06/part-time-work-day2/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 02:07:30 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[优质宅]]></category>
		<category><![CDATA[快递]]></category>
		<category><![CDATA[打工]]></category>
		<category><![CDATA[攒机]]></category>
		<category><![CDATA[电脑城]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=523</guid>
		<description><![CDATA[　　第一天各种不适应，污浊的空气，油腻的盒饭，厚厚一本华硕各款产品的参数表。当我费力的背了一个下午后，小杨哥对我说：“当年我把市面上所有的配件全背出来呢，一点用都没，客户配来配去就这么几件。难道你背完型号再背价格？”。电梯附近的两家铺面仰仗地理优势几乎把每一位上楼的顾客拉走，有幸闯过那一关的寥寥无几。 　　没有什么比读书更轻松的事情。周日来了一对小夫妻和他们一懂行朋友，那位朋友宅气深厚，配完提货时和那人聊天，得知此人不仅是sjtu的，还是oier。瞬间石化！可惜即便了解些硬件，宅男属性使得他不仅对小杨哥，还对那对小夫妻迸发着科技宅的威能。喂，你们应该一致对外的好不好！ 　　对于那些手上拿着一刀报价单毫无诚意的问价主顾，心情好给你随便开个价，心情不好每件亏三十块写给你，看场子里有谁比这个低，到时候就和你说没货。攒机只要一开始做足功课，老板见你懂点门道也就知道黑不到你，大家赚钱都不容易，去哪个铺子还不都一样。 　　场子里还有些可爱的人，只是有股淡淡的心酸。 　　被晒得黝黑的大叔乐呵呵的每天下午将需要发的快递拉走，这仅仅是一辆类似新大洲的小助动车。]]></description>
			<content:encoded><![CDATA[<p>　　第一天各种不适应，污浊的空气，油腻的盒饭，厚厚一本华硕各款产品的参数表。当我费力的背了一个下午后，小杨哥对我说：“当年我把市面上所有的配件全背出来呢，一点用都没，客户配来配去就这么几件。难道你背完型号再背价格？”。电梯附近的两家铺面仰仗地理优势几乎把每一位上楼的顾客拉走，有幸闯过那一关的寥寥无几。<br />
　　没有什么比读书更轻松的事情。周日来了一对小夫妻和他们一懂行朋友，那位朋友宅气深厚，配完提货时和那人聊天，得知此人不仅是sjtu的，还是oier。瞬间石化！可惜即便了解些硬件，宅男属性使得他不仅对小杨哥，还对那对小夫妻迸发着科技宅的威能。喂，你们应该一致对外的好不好！<br />
　　对于那些手上拿着一刀报价单毫无诚意的问价主顾，心情好给你随便开个价，心情不好每件亏三十块写给你，看场子里有谁比这个低，到时候就和你说没货。攒机只要一开始做足功课，老板见你懂点门道也就知道黑不到你，大家赚钱都不容易，去哪个铺子还不都一样。</p>
<p>　　场子里还有些可爱的人，只是有股淡淡的心酸。<br />
<div id="attachment_524" class="wp-caption aligncenter" style="width: 310px"><a href="http://moradin.net/blog/wp-content/uploads/2010/06/20100620197.jpg"><img class="size-medium wp-image-524" title="20100620197" src="http://moradin.net/blog/wp-content/uploads/2010/06/20100620197-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">快递大叔的助动车上红色的小雨衣</p></div><br />
　　被晒得黝黑的大叔乐呵呵的每天下午将需要发的快递拉走，这仅仅是一辆类似新大洲的小助动车。</p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2010/06/part-time-work-day2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>做为优质宅</title>
		<link>http://moradin.net/blog/2010/06/high-quality-otaku/</link>
		<comments>http://moradin.net/blog/2010/06/high-quality-otaku/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 00:30:07 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[优质宅]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=521</guid>
		<description><![CDATA[　　接下来一系列博文讲述的是一位名叫Moradin的宅生活。 　　远离WIFI，远离显示器……]]></description>
			<content:encoded><![CDATA[<p>　　接下来一系列博文讲述的是一位名叫Moradin的宅生活。<br />
　　远离WIFI，远离显示器……</p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2010/06/high-quality-otaku/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>最重要的是能活下去</title>
		<link>http://moradin.net/blog/2010/06/life/</link>
		<comments>http://moradin.net/blog/2010/06/life/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 06:59:04 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[吐槽]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/2010/06/%e6%9c%80%e9%87%8d%e8%a6%81%e7%9a%84%e6%98%af%e8%83%bd%e6%b4%bb%e4%b8%8b%e5%8e%bb/</guid>
		<description><![CDATA[　　远离敏感词 　　保护好眼睛 　　学门手艺 　　懂围棋，会游泳、会开车 　　练好嘴皮子 　　如同学习要先把书读厚，再把书读薄，最后把书忘掉；做人先要把脸皮做厚，再把脸皮做薄，最后把脸皮忘掉 　　高考结束，继续活下去]]></description>
			<content:encoded><![CDATA[<p>　　远离敏感词<br />
　　保护好眼睛<br />
　　学门手艺<br />
　　懂围棋，会游泳、会开车<br />
　　练好嘴皮子<br />
　　如同学习要先把书读厚，再把书读薄，最后把书忘掉；做人先要把脸皮做厚，再把脸皮做薄，最后把脸皮忘掉</p>
<p>　　高考结束，继续活下去</p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2010/06/life/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>那些记不起名字的低俗电影</title>
		<link>http://moradin.net/blog/2010/03/strange-film/</link>
		<comments>http://moradin.net/blog/2010/03/strange-film/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 02:36:24 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[Stack]]></category>
		<category><![CDATA[片段]]></category>
		<category><![CDATA[电影]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=458</guid>
		<description><![CDATA[　　我的豆瓣：http://www.douban.com/people/moradin/ 　　在最近X年前的Y年里，文艺频道的周六动作90分钟，东方电影、CCTV6帮助我确立了烂片的标杆，为了给那些奋斗在为观众带来欢乐，协助谋杀时间的电影一个名分，以下Z段电影片段总是萦绕在我心头，情何以堪。 　　PS：电影一定是极度恶俗极度无聊，不要往小众片联想 　　1、肯定有黄秋生，他喜欢的女人被别人追，有个场景是一群警务人员的酒会；另一个场景是一个男人（警员？卧底）在高架上准备劫囚车，先放了一段他的想象：双方没有开火。实际上匪徒直接重火力上了。片头有个警察被B社会叫出去聊天，有人躲后面拍照，在游乐场用这个照片威胁他和B社会有染 　　2、香港片，在游乐场取赎金的人是警察（好像被黑社会威胁），结果他一露面就被送赎金的人追 　　3、保护一个女污点证人，刚开始在询问的时候一个律师假装资料落地在她高跟鞋足弓下方放了追踪器，他们藏身的地方被人用火箭炮轰杀，之后脱光衣服开面包车直冲某店抓起衣服就穿，最后两个男警察从顶楼外墙用绳索下降，一个男的对另一个男的说：“我们要比电梯更快” 　　4、动画片，95年左右，主角全是拟人化直立行走的老鼠，似乎是美国乡村。 　　5、国产片，讲忽悠3个小姑娘（一个是农村来的，和另外一个是姐妹，另一个的男朋友是和人贩子一起忽悠的）偷渡到泰国，里面手机电脑都是稀罕物，整部片子光曰不日，里面还有一对悲剧的夫妇. 　　6、美国片，讲地球人是外星人养的农作物，他们在冰层下发现一个能治愈百病的东西，其实是外星人的农药，后来那个外星人醒了，结果没想到人类已经会用电了，那几个人做了一个简易的放电装置+三叉戟把那个外星人做掉了。 　　7、香港片，有2个男人和一个小孩，男人有一根会伸缩到剑，01年左右在东方台放过，有人署名“一个好人” 问出他们的位置去帮他们的时候没关电脑，坏人到这人家里也看到了位置也赶去杀他们，最后在森林有一个宝箱，小孩说有钱的话我要买gameboy，男人说不要说gameboy,gamefather也给你买，结果是一张白纸，他们失望的丢掉，出演职员表时这张纸遇水显出藏宝图 　　8、香港片，好像有成龙，主角在某公司看到一个3位数的号码，想细看的时候全部资料都被洗掉，后来乱逛看到一家店的玻璃上写了这个号码，进去看的时候枪掉进火锅，抓起来开了两枪后把枪丢给敌人，敌人拿这把枪的时候烫得丢掉了自己本来有的枪。 　　9、黑老大找到他女儿，他女儿的男人以为要被做掉，结果黑老大吃了口饭说：女儿以后不要做夹生饭 　　10、美国片，好像分上下2集，最后有个直升机拉起集装箱卡车上的集装箱 　　11、电影，有架战斗机落在沙漠里，有个男人启动了下好像没飞起来但开到某个人多的地方，好像有个像拉丹的人，好像有成龙，好像有龙卷风 　　12、93年的动画，有个女的是义军头目 　　13、国产黑白片，谍战剧，片头的演职员表是在一个装水的水斗里一张张纸贴上去，里面讲调查一个间谍，最后是要炸一个船，一群警察在里面找炸弹到底藏哪里了 　　14、欧洲风格的环境，有个探长有条狗，那时候电脑刚出来，是讲一个旧屋子里莫名其妙死人了，经调查是有个电脑游戏教唆杀和谐人，好像是颜色很红的第一人称设计游戏。 　　15、港片，水管里养金鱼，元彪 　　16、好像叫“什么双雄” 结尾是在某大楼上，2个人打。这个片子的坏人是专门演坏人的家伙，结尾之前有个女人被堵嘴绑着，被赶来的警察解开后呼吸困难但是马上冲出去想找那个男人。 　　17、美片，宾馆某楼所有门被封闭，那人用清洁剂打开房门，他监听了警察的通话，房门都是电子锁，可以在控制室锁住。]]></description>
			<content:encoded><![CDATA[<p>　　我的豆瓣：<a href="http://www.douban.com/people/moradin/" target="_blank">http://www.douban.com/people/moradin/</a></p>
<p>　　在最近X年前的Y年里，文艺频道的周六动作90分钟，东方电影、CCTV6帮助我确立了烂片的标杆，为了给那些奋斗在为观众带来欢乐，协助谋杀时间的电影一个名分，以下Z段电影片段总是萦绕在我心头，情何以堪。</p>
<p>　　PS：电影一定是极度恶俗极度无聊，不要往小众片联想<br />
<span id="more-458"></span><br />
　　1、肯定有黄秋生，他喜欢的女人被别人追，有个场景是一群警务人员的酒会；另一个场景是一个男人（警员？卧底）在高架上准备劫囚车，先放了一段他的想象：双方没有开火。实际上匪徒直接重火力上了。片头有个警察被B社会叫出去聊天，有人躲后面拍照，在游乐场用这个照片威胁他和B社会有染</p>
<p>　　2、香港片，在游乐场取赎金的人是警察（好像被黑社会威胁），结果他一露面就被送赎金的人追</p>
<p>　　3、保护一个女污点证人，刚开始在询问的时候一个律师假装资料落地在她高跟鞋足弓下方放了追踪器，他们藏身的地方被人用火箭炮轰杀，之后脱光衣服开面包车直冲某店抓起衣服就穿，最后两个男警察从顶楼外墙用绳索下降，一个男的对另一个男的说：“我们要比电梯更快”</p>
<p>　　4、动画片，95年左右，主角全是拟人化直立行走的老鼠，似乎是美国乡村。</p>
<p>　　5、国产片，讲忽悠3个小姑娘（一个是农村来的，和另外一个是姐妹，另一个的男朋友是和人贩子一起忽悠的）偷渡到泰国，里面手机电脑都是稀罕物，整部片子光曰不日，里面还有一对悲剧的夫妇.</p>
<p>　　6、美国片，讲地球人是外星人养的农作物，他们在冰层下发现一个能治愈百病的东西，其实是外星人的农药，后来那个外星人醒了，结果没想到人类已经会用电了，那几个人做了一个简易的放电装置+三叉戟把那个外星人做掉了。</p>
<p>　　7、香港片，有2个男人和一个小孩，男人有一根会伸缩到剑，01年左右在东方台放过，有人署名“一个好人” 问出他们的位置去帮他们的时候没关电脑，坏人到这人家里也看到了位置也赶去杀他们，最后在森林有一个宝箱，小孩说有钱的话我要买gameboy，男人说不要说gameboy,gamefather也给你买，结果是一张白纸，他们失望的丢掉，出演职员表时这张纸遇水显出藏宝图</p>
<p>　　8、香港片，好像有成龙，主角在某公司看到一个3位数的号码，想细看的时候全部资料都被洗掉，后来乱逛看到一家店的玻璃上写了这个号码，进去看的时候枪掉进火锅，抓起来开了两枪后把枪丢给敌人，敌人拿这把枪的时候烫得丢掉了自己本来有的枪。</p>
<p>　　9、黑老大找到他女儿，他女儿的男人以为要被做掉，结果黑老大吃了口饭说：女儿以后不要做夹生饭</p>
<p>　　10、美国片，好像分上下2集，最后有个直升机拉起集装箱卡车上的集装箱</p>
<p>　　11、电影，有架战斗机落在沙漠里，有个男人启动了下好像没飞起来但开到某个人多的地方，好像有个像拉丹的人，好像有成龙，好像有龙卷风</p>
<p>　　12、93年的动画，有个女的是义军头目</p>
<p>　　13、国产黑白片，谍战剧，片头的演职员表是在一个装水的水斗里一张张纸贴上去，里面讲调查一个间谍，最后是要炸一个船，一群警察在里面找炸弹到底藏哪里了</p>
<p>　　14、欧洲风格的环境，有个探长有条狗，那时候电脑刚出来，是讲一个旧屋子里莫名其妙死人了，经调查是有个电脑游戏教唆杀和谐人，好像是颜色很红的第一人称设计游戏。</p>
<p>　　15、港片，水管里养金鱼，元彪</p>
<p>　　16、好像叫“什么双雄” 结尾是在某大楼上，2个人打。这个片子的坏人是专门演坏人的家伙，结尾之前有个女人被堵嘴绑着，被赶来的警察解开后呼吸困难但是马上冲出去想找那个男人。</p>
<p>　　17、美片，宾馆某楼所有门被封闭，那人用清洁剂打开房门，他监听了警察的通话，房门都是电子锁，可以在控制室锁住。</p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2010/03/strange-film/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>“参数错误，读取数据失败”怎么办？</title>
		<link>http://moradin.net/blog/2010/03/taobao-error/</link>
		<comments>http://moradin.net/blog/2010/03/taobao-error/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 03:17:19 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[解决方案]]></category>
		<category><![CDATA[参数错误]]></category>
		<category><![CDATA[淘宝]]></category>
		<category><![CDATA[读取数据失败]]></category>
		<category><![CDATA[退款]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=439</guid>
		<description><![CDATA[参数错误，读取数据失败 解决方案： 请修改【退款说明】中的文字使其字数小于200字。]]></description>
			<content:encoded><![CDATA[<p><strong>参数错误，读取数据失败</strong></p>
<div id="attachment_441" class="wp-caption alignnone" style="width: 310px"><a href="http://moradin.net/blog/wp-content/uploads/2010/03/taobao-error.jpg"><img class="size-medium wp-image-441  " title="参数错误，读取数据失败" src="http://moradin.net/blog/wp-content/uploads/2010/03/taobao-error-300x114.jpg" alt="" width="300" height="114" /></a><p class="wp-caption-text">是否在修改退款协议后出现这样的提示？</p></div>
<p><strong>解决方案：</strong><br />
请修改【退款说明】中的文字使其字数小于200字。</p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2010/03/taobao-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vijos_1093</title>
		<link>http://moradin.net/blog/2009/11/vijos_1093/</link>
		<comments>http://moradin.net/blog/2009/11/vijos_1093/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 15:00:57 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[vijos]]></category>
		<category><![CDATA[数论]]></category>
		<category><![CDATA[水题]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=263</guid>
		<description><![CDATA[文科生的悲哀-90min-数论 Hint 1、按照题目思路写递推，连看题共10分钟，余下80分钟waiting+debug 2、qword的胜利，于是我就没有mod 7654321 3、这题不是明摆着斐波那契数列 4、最后WA，数列第一项、第二项输出0，80分 5、我无限逼近于2B ?Download vijos_1093.pas1 2 3 4 5 6 7 8 9 10 11 12 13 14 var n,i:longint; f:array&#91;1..4&#93; of longint; begin readln&#40;n&#41;; f&#91;1&#93;:=1; f&#91;2&#93;:=1; f&#91;3&#93;:=1; for i:=3 to n do begin f&#91;3&#93;:=&#40;f&#91;1&#93;+f&#91;2&#93;&#41; mod 7654321; f&#91;1&#93;:=f&#91;2&#93;; f&#91;2&#93;:=f&#91;3&#93;; end; writeln&#40;f&#91;3&#93;&#41;; end. 编译通过&#8230; ├ 测试数据 01：答案正确&#8230; 0ms ├ 测试数据 02：答案正确&#8230; 0ms ├ 测试数据 [...]]]></description>
			<content:encoded><![CDATA[<p><a style="white-space: normal; word-break: break-all; color: #32656d; text-decoration: none;" href="http://www.vijos.cn/Problem_Show.asp?id=1093">文科生的悲哀</a><strong>-90min-数论</strong><span id="more-263"></span></p>
<h3>Hint</h3>
<p>1、按照题目思路写递推，连看题共10分钟，余下80分钟waiting+debug<br />
2、qword的胜利，于是我就没有mod 7654321<br />
3、这题不是明摆着<a href="http://zh.wikipedia.org/wiki/斐波那契数列" target="_blank">斐波那契数列</a><br />
4、最后WA，数列第一项、第二项输出0，80分<br />
5、我无限逼近于2B</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://moradin.net/blog/wp-content/plugins/wp-codebox/wp-codebox.php?p=263&amp;download=vijos_1093.pas">vijos_1093.pas</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2632"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code" id="p263code2"><pre class="pascal" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> n<span style="color: #339933;">,</span>i<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
    f<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span>..4<span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">longint</span>;
<span style="color: #000000; font-weight: bold;">begin</span>
  <span style="color: #000066;">readln</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span>;
  f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span>;
  f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span>;
  f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span>;
  <span style="color: #000000; font-weight: bold;">for</span> i<span style="color: #339933;">:=</span><span style="color: #cc66cc;">3</span> <span style="color: #000000; font-weight: bold;">to</span> n <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
    f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span><span style="color: #009900;">&#40;</span>f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span>f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">mod</span> <span style="color: #cc66cc;">7654321</span>;
    f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span>;
    f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span>;
  <span style="color: #000000; font-weight: bold;">end</span>;
  <span style="color: #000066;">writeln</span><span style="color: #009900;">&#40;</span>f<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">end</span>.</pre></td></tr></table></div>

<p><span style="white-space: normal; word-break: break-all; color: #ff6600;"><strong style="white-space: normal; word-break: break-all;">编译通过&#8230;</strong></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>01：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>02：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>03：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>04：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>05：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>06：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>07：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>08：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>09：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>10：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" /><strong style="white-space: normal; word-break: break-all;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong> <br style="white-space: normal; word-break: break-all;" /><span style="white-space: normal; word-break: break-all; color: #ff0000;"><strong style="white-space: normal; word-break: break-all;">Accepted</strong></span> 有效得分：100 有效耗时：0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2009/11/vijos_1093/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>vijos_1095</title>
		<link>http://moradin.net/blog/2009/11/vijos_1095/</link>
		<comments>http://moradin.net/blog/2009/11/vijos_1095/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 14:07:13 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[vijos]]></category>
		<category><![CDATA[数论]]></category>
		<category><![CDATA[水题]]></category>
		<category><![CDATA[高精度]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=261</guid>
		<description><![CDATA[约瑟夫问题10E100版-60min-数论,高精度 Hint 1、23点后应该睡觉 2、2*n+1写成2*n-1 3、伪高精度不够熟练 4、n=1时输出1 4、约瑟夫问题的二进制解法，将第一位移到最后一位（9=1001，输出0011=3） ?Download vijos_1095.pas1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 [...]]]></description>
			<content:encoded><![CDATA[<p><a style="white-space: normal; word-break: break-all; color: #32656d; text-decoration: none;" href="http://www.vijos.cn/Problem_Show.asp?id=1095">约瑟夫问题10E100版</a><strong>-60min-数论,高精度</strong><span id="more-261"></span></p>
<h3>Hint</h3>
<p>1、23点后应该睡觉<br />
2、2*n+1写成2*n-1<br />
3、伪高精度不够熟练<br />
4、n=1时输出1<br />
4、约瑟夫问题的二进制解法，将第一位移到最后一位（9=1001，输出0011=3）</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://moradin.net/blog/wp-content/plugins/wp-codebox/wp-codebox.php?p=261&amp;download=vijos_1095.pas">vijos_1095.pas</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2614"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
</pre></td><td class="code" id="p261code4"><pre class="pascal" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">type</span> arr<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span>..100<span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">integer</span>;
<span style="color: #000000; font-weight: bold;">var</span> f<span style="color: #339933;">,</span>ok<span style="color: #339933;">,</span>p<span style="color: #339933;">,</span>t<span style="color: #339933;">,</span>k<span style="color: #339933;">,</span>i<span style="color: #339933;">,</span>j<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
    s<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">string</span>;
    a<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span>..332<span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> arr;
    b<span style="color: #339933;">,</span>b1<span style="color: #339933;">:</span>arr;
    c<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span>..100<span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">integer</span>;
<span style="color: #000000; font-weight: bold;">begin</span>
  fillchar<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>sizeof<span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>;
  a<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span>;
  a<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span>;
  <span style="color: #000000; font-weight: bold;">for</span> i<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> <span style="color: #cc66cc;">332</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
    p<span style="color: #339933;">:=</span><span style="color: #cc66cc;">0</span>;
    a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>;
    <span style="color: #000000; font-weight: bold;">for</span> j<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
      t<span style="color: #339933;">:=</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">2</span>;
      inc<span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>t <span style="color: #000000; font-weight: bold;">mod</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span>;
      inc<span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>p<span style="color: #009900;">&#41;</span>;
      p<span style="color: #339933;">:=</span>t <span style="color: #000000; font-weight: bold;">div</span> <span style="color: #cc66cc;">10</span>;
    <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #000000; font-weight: bold;">if</span> p&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #000000; font-weight: bold;">begin</span>
      inc<span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
      a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>p;
    <span style="color: #000000; font-weight: bold;">end</span>;
    c<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>i;
  <span style="color: #000000; font-weight: bold;">end</span>;
  <span style="color: #000066;">readln</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span>;
  b<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>length<span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">for</span> i<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> b<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">do</span> val<span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>b<span style="color: #009900;">&#91;</span>b<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-</span>i<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>ok<span style="color: #009900;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">for</span> i<span style="color: #339933;">:=</span>c<span style="color: #009900;">&#91;</span>b<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">downto</span> <span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
    f<span style="color: #339933;">:=</span><span style="color: #cc66cc;">0</span>;
    <span style="color: #000000; font-weight: bold;">for</span> j<span style="color: #339933;">:=</span>b<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">downto</span> <span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">do</span>
      <span style="color: #000000; font-weight: bold;">if</span> b<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span>&gt;a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span>j<span style="color: #009900;">&#93;</span>
        <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #000000; font-weight: bold;">begin</span>
               f<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span>;
               <span style="color: #000000; font-weight: bold;">break</span>;
             <span style="color: #000000; font-weight: bold;">end</span>
        <span style="color: #000000; font-weight: bold;">else</span>
          <span style="color: #000000; font-weight: bold;">if</span> b<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span>j<span style="color: #009900;">&#93;</span>
            <span style="color: #000000; font-weight: bold;">then</span> continue
            <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">begin</span>
                   f<span style="color: #339933;">:=</span><span style="color: #cc66cc;">2</span>;
                   <span style="color: #000000; font-weight: bold;">break</span>;
                 <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #000000; font-weight: bold;">case</span> f <span style="color: #000000; font-weight: bold;">of</span>
      <span style="color: #cc66cc;">1</span>   <span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">begin</span>
             <span style="color: #000000; font-weight: bold;">for</span> k<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> j <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
               <span style="color: #000000; font-weight: bold;">if</span> b<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span>&lt;<span style="color: #cc66cc;">0</span>
                 <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #000000; font-weight: bold;">begin</span>
                        dec<span style="color: #009900;">&#40;</span>b<span style="color: #009900;">&#91;</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
                        inc<span style="color: #009900;">&#40;</span>b<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span>;
                      <span style="color: #000000; font-weight: bold;">end</span>;
               b1<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>b<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #339933;">-</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">,</span>k<span style="color: #009900;">&#93;</span>;
               <span style="color: #000000; font-weight: bold;">if</span> b1<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span>&lt;<span style="color: #cc66cc;">0</span>
                 <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #000000; font-weight: bold;">begin</span>
                        inc<span style="color: #009900;">&#40;</span>b1<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span>;
                        dec<span style="color: #009900;">&#40;</span>b<span style="color: #009900;">&#91;</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
                      <span style="color: #000000; font-weight: bold;">end</span>;
             <span style="color: #000000; font-weight: bold;">end</span>;
             b1<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>j;
             <span style="color: #000000; font-weight: bold;">if</span> b1<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> dec<span style="color: #009900;">&#40;</span>b1<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
             str<span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span>s<span style="color: #009900;">&#41;</span>;
             fillchar<span style="color: #009900;">&#40;</span>b<span style="color: #339933;">,</span>sizeof<span style="color: #009900;">&#40;</span>b<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>;
             b<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>length<span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span>;
             t<span style="color: #339933;">:=</span><span style="color: #cc66cc;">0</span>;
             <span style="color: #000000; font-weight: bold;">for</span> j<span style="color: #339933;">:=</span>b<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">downto</span> <span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
               val<span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>b<span style="color: #009900;">&#91;</span>b<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-</span>j<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>ok<span style="color: #009900;">&#41;</span>;
               inc<span style="color: #009900;">&#40;</span>b1<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>b<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
               <span style="color: #000000; font-weight: bold;">if</span> b1<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span>&gt;<span style="color: #cc66cc;">10</span>
                 <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #000000; font-weight: bold;">begin</span>
                        inc<span style="color: #009900;">&#40;</span>b1<span style="color: #009900;">&#91;</span>j<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
                        dec<span style="color: #009900;">&#40;</span>b1<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span>;
                      <span style="color: #000000; font-weight: bold;">end</span>
             <span style="color: #000000; font-weight: bold;">end</span>;
             <span style="color: #000000; font-weight: bold;">if</span> b1<span style="color: #009900;">&#91;</span>b1<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> inc<span style="color: #009900;">&#40;</span>b1<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
             <span style="color: #000000; font-weight: bold;">for</span> j<span style="color: #339933;">:=</span>b1<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">downto</span> <span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span>b1<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
             <span style="color: #000066;">writeln</span>;
             halt;
           <span style="color: #000000; font-weight: bold;">end</span>;
      <span style="color: #cc66cc;">0</span>   <span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">begin</span>
             <span style="color: #000066;">writeln</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span>;
             halt;
           <span style="color: #000000; font-weight: bold;">end</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
  <span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">end</span>.</pre></td></tr></table></div>

<p><span style="white-space: normal; word-break: break-all; color: #ff6600;"><strong style="white-space: normal; word-break: break-all;">编译通过&#8230;</strong></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>01：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>02：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>03：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>04：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>05：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>06：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>07：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>08：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>09：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>10：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" /><strong style="white-space: normal; word-break: break-all;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong> <br style="white-space: normal; word-break: break-all;" /><span style="white-space: normal; word-break: break-all; color: #ff0000;"><strong style="white-space: normal; word-break: break-all;">Accepted</strong></span> 有效得分：100 有效耗时：0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2009/11/vijos_1095/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>vijos_1080</title>
		<link>http://moradin.net/blog/2009/11/vijos_1080/</link>
		<comments>http://moradin.net/blog/2009/11/vijos_1080/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 12:50:17 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[vijos]]></category>
		<category><![CDATA[搜索]]></category>
		<category><![CDATA[水题]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=255</guid>
		<description><![CDATA[Function(Function(F&#8230;-20min-搜索 Hint 1、判定“-1 -1 -1”出错 2、该函数事实上满足w[a,a,a]:=2^a；当 (a&#60;=b) or (a&#60;=c) 时 w:=2^a 3、根本不用在前面加判断，直接把函数值赋给数组 ?Download vijos_1080.pas1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [...]]]></description>
			<content:encoded><![CDATA[<p><a style="white-space: normal; word-break: break-all; color: #32656d; text-decoration: none;" href="http://www.vijos.cn/Problem_Show.asp?id=1080">Function(Function(F&#8230;</a><strong>-20min-搜索</strong><span id="more-255"></span></p>
<h3>Hint</h3>
<p>1、判定“-1 -1 -1”出错<br />
2、该函数事实上满足w[a,a,a]:=2^a；当 (a&lt;=b) or (a&lt;=c) 时 w:=2^a<br />
3、根本不用在前面加判断，直接把函数值赋给数组</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://moradin.net/blog/wp-content/plugins/wp-codebox/wp-codebox.php?p=255&amp;download=vijos_1080.pas">vijos_1080.pas</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2556"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code" id="p255code6"><pre class="pascal" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
    m<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span>..20<span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span>..20<span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span>..20<span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">longint</span>;
<span style="color: #000000; font-weight: bold;">function</span> w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
<span style="color: #000000; font-weight: bold;">var</span> p<span style="color: #339933;">,</span>q<span style="color: #339933;">,</span>r<span style="color: #339933;">,</span>s<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
<span style="color: #000000; font-weight: bold;">begin</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>a&lt;<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">or</span><span style="color: #009900;">&#40;</span>b&lt;<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">or</span><span style="color: #009900;">&#40;</span>c&lt;<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">then</span> w<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span>
    <span style="color: #000000; font-weight: bold;">else</span>
      <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>a&gt;<span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">or</span><span style="color: #009900;">&#40;</span>b&gt;<span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">or</span><span style="color: #009900;">&#40;</span>c&gt;<span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">then</span>
          <span style="color: #000000; font-weight: bold;">if</span> m<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> w<span style="color: #339933;">:=</span>m<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #009900;">&#93;</span>
                            <span style="color: #000000; font-weight: bold;">else</span> w<span style="color: #339933;">:=</span>w<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">else</span>
          <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>a&lt;b<span style="color: #009900;">&#41;</span><span style="color: #000066;">and</span><span style="color: #009900;">&#40;</span>b&lt;c<span style="color: #009900;">&#41;</span>
            <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #000000; font-weight: bold;">begin</span>
                   <span style="color: #000000; font-weight: bold;">if</span> m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> p<span style="color: #339933;">:=</span>m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>
                                    <span style="color: #000000; font-weight: bold;">else</span> p<span style="color: #339933;">:=</span>w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
                   <span style="color: #000000; font-weight: bold;">if</span> m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> q<span style="color: #339933;">:=</span>m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>
                                      <span style="color: #000000; font-weight: bold;">else</span> q<span style="color: #339933;">:=</span>w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
                   <span style="color: #000000; font-weight: bold;">if</span> m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> r<span style="color: #339933;">:=</span>m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #009900;">&#93;</span>
                                    <span style="color: #000000; font-weight: bold;">else</span> r<span style="color: #339933;">:=</span>w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #009900;">&#41;</span>;
                   w<span style="color: #339933;">:=</span>p<span style="color: #339933;">+</span>q<span style="color: #339933;">-</span>r;
                   m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>p<span style="color: #339933;">+</span>q<span style="color: #339933;">-</span>r;
                 <span style="color: #000000; font-weight: bold;">end</span>
            <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">begin</span>
                   <span style="color: #000000; font-weight: bold;">if</span> m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> p<span style="color: #339933;">:=</span>m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #009900;">&#93;</span>
                                    <span style="color: #000000; font-weight: bold;">else</span> p<span style="color: #339933;">:=</span>w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #009900;">&#41;</span>;
                   <span style="color: #000000; font-weight: bold;">if</span> m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> q<span style="color: #339933;">:=</span>m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #009900;">&#93;</span>
                                      <span style="color: #000000; font-weight: bold;">else</span> q<span style="color: #339933;">:=</span>w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #009900;">&#41;</span>;
                   <span style="color: #000000; font-weight: bold;">if</span> m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> r<span style="color: #339933;">:=</span>m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>
                                      <span style="color: #000000; font-weight: bold;">else</span> r<span style="color: #339933;">:=</span>w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
                   <span style="color: #000000; font-weight: bold;">if</span> m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>&lt;&gt;<span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">then</span> s<span style="color: #339933;">:=</span>m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>
                                        <span style="color: #000000; font-weight: bold;">else</span> s<span style="color: #339933;">:=</span>w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>b<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>c<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
                   w<span style="color: #339933;">:=</span>p<span style="color: #339933;">+</span>q<span style="color: #339933;">+</span>r<span style="color: #339933;">-</span>s;
                   m<span style="color: #009900;">&#91;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #009900;">&#93;</span><span style="color: #339933;">:=</span>p<span style="color: #339933;">+</span>q<span style="color: #339933;">+</span>r<span style="color: #339933;">-</span>s;
                 <span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">begin</span>
  <span style="color: #000066;">readln</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #009900;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #000000; font-weight: bold;">not</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">=-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #000066;">and</span><span style="color: #009900;">&#40;</span>b<span style="color: #339933;">=-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #000066;">and</span><span style="color: #009900;">&#40;</span>c<span style="color: #339933;">=-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
    <span style="color: #000066;">writeln</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'w('</span><span style="color: #339933;">,</span>a<span style="color: #339933;">,</span><span style="color: #ff0000;">', '</span><span style="color: #339933;">,</span>b<span style="color: #339933;">,</span><span style="color: #ff0000;">', '</span><span style="color: #339933;">,</span>c<span style="color: #339933;">,</span><span style="color: #ff0000;">') = '</span><span style="color: #339933;">,</span>w<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #000066;">readln</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c<span style="color: #009900;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">end</span>.</pre></td></tr></table></div>

<p><span style="white-space: normal; word-break: break-all; color: #ff6600;"><strong style="white-space: normal; word-break: break-all;">编译通过&#8230;</strong></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>01：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" /><strong style="white-space: normal; word-break: break-all;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong> <br style="white-space: normal; word-break: break-all;" /><span style="white-space: normal; word-break: break-all; color: #ff0000;"><strong style="white-space: normal; word-break: break-all;">Accepted</strong></span> 有效得分：100 有效耗时：0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2009/11/vijos_1080/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>vijos_1064</title>
		<link>http://moradin.net/blog/2009/11/vijos_1064/</link>
		<comments>http://moradin.net/blog/2009/11/vijos_1064/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 12:40:45 +0000</pubDate>
		<dc:creator>moradin</dc:creator>
				<category><![CDATA[vijos]]></category>
		<category><![CDATA[字符串]]></category>
		<category><![CDATA[水题]]></category>

		<guid isPermaLink="false">http://moradin.net/blog/?p=253</guid>
		<description><![CDATA[迎春舞会之数字舞蹈-30min-字符串 Hint 1、用点阵数组可以少打点字 2、输出时“6”镜像了…… ?Download vijos_1064.pas1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 [...]]]></description>
			<content:encoded><![CDATA[<p><a style="white-space: normal; word-break: break-all; color: #32656d; text-decoration: none;" href="http://www.vijos.cn/Problem_Show.asp?id=1064">迎春舞会之数字舞蹈</a><strong>-30min-字符串</strong><span id="more-253"></span></p>
<h3>Hint</h3>
<p>1、用点阵数组可以少打点字<br />
2、输出时“6”镜像了……</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://moradin.net/blog/wp-content/plugins/wp-codebox/wp-codebox.php?p=253&amp;download=vijos_1064.pas">vijos_1064.pas</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2538"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
</pre></td><td class="code" id="p253code8"><pre class="pascal" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> k<span style="color: #339933;">,</span>i<span style="color: #339933;">,</span>j<span style="color: #339933;">,</span>n<span style="color: #339933;">,</span>ok<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
    s<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">string</span>;
    a<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span>..65<span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">longint</span>;
<span style="color: #000000; font-weight: bold;">procedure</span> b<span style="color: #009900;">&#40;</span>t<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> i<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
<span style="color: #000000; font-weight: bold;">begin</span>
  <span style="color: #000000; font-weight: bold;">for</span> i<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> t <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">' '</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">procedure</span> p<span style="color: #009900;">&#40;</span>t<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> i<span style="color: #339933;">,</span>j<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
<span style="color: #000000; font-weight: bold;">begin</span>
  <span style="color: #000000; font-weight: bold;">case</span> t <span style="color: #000000; font-weight: bold;">of</span>
  <span style="color: #666666; font-style: italic;">{0:   }</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">:</span>b<span style="color: #009900;">&#40;</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>;
  <span style="color: #666666; font-style: italic;">{1:  |}</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">begin</span>
             b<span style="color: #009900;">&#40;</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
             <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'|'</span><span style="color: #009900;">&#41;</span>;
           <span style="color: #000000; font-weight: bold;">end</span>;
  <span style="color: #666666; font-style: italic;">{2:|  }</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">begin</span>
             <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'|'</span><span style="color: #009900;">&#41;</span>;
             b<span style="color: #009900;">&#40;</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
           <span style="color: #000000; font-weight: bold;">end</span>;
&nbsp;
  <span style="color: #666666; font-style: italic;">{3:| |}</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">begin</span>
             <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'|'</span><span style="color: #009900;">&#41;</span>;
             b<span style="color: #009900;">&#40;</span>k<span style="color: #009900;">&#41;</span>;
             <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'|'</span><span style="color: #009900;">&#41;</span>;
           <span style="color: #000000; font-weight: bold;">end</span>;
  <span style="color: #666666; font-style: italic;">{4: - }</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">begin</span>
             <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">' '</span><span style="color: #009900;">&#41;</span>;
             <span style="color: #000000; font-weight: bold;">for</span> i<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> k <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'-'</span><span style="color: #009900;">&#41;</span>;
             <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">' '</span><span style="color: #009900;">&#41;</span>;
           <span style="color: #000000; font-weight: bold;">end</span>;
&nbsp;
  <span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">procedure</span> num<span style="color: #009900;">&#40;</span>q<span style="color: #339933;">,</span>t<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> i<span style="color: #339933;">,</span>j<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">longint</span>;
<span style="color: #000000; font-weight: bold;">begin</span>
  <span style="color: #000000; font-weight: bold;">case</span> t <span style="color: #000000; font-weight: bold;">of</span>
    <span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">8</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">9</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
    <span style="color: #cc66cc;">0</span><span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">case</span> q <span style="color: #000000; font-weight: bold;">of</span>
        <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span>p<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000000; font-weight: bold;">end</span>;
  <span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">begin</span>
  <span style="color: #000066;">readln</span><span style="color: #009900;">&#40;</span>k<span style="color: #009900;">&#41;</span>;
  <span style="color: #000066;">readln</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span>;
  n<span style="color: #339933;">:=</span>length<span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">for</span> i<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> n <span style="color: #000000; font-weight: bold;">do</span>
    val<span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>ok<span style="color: #009900;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">for</span> i<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">*</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">3</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
    <span style="color: #000000; font-weight: bold;">for</span> j<span style="color: #339933;">:=</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">to</span> n<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
      <span style="color: #000000; font-weight: bold;">if</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span>
        <span style="color: #000000; font-weight: bold;">then</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">else</span>
          <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>i&gt;<span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #000066;">and</span> <span style="color: #009900;">&#40;</span>i&lt;k<span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>
            <span style="color: #000000; font-weight: bold;">then</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
            <span style="color: #000000; font-weight: bold;">else</span>
              <span style="color: #000000; font-weight: bold;">if</span> i<span style="color: #339933;">=</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span>
                <span style="color: #000000; font-weight: bold;">then</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
                <span style="color: #000000; font-weight: bold;">else</span>
                  <span style="color: #000000; font-weight: bold;">if</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">*</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">3</span>
                    <span style="color: #000000; font-weight: bold;">then</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
                    <span style="color: #000000; font-weight: bold;">else</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
      <span style="color: #000066;">write</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">' '</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #000000; font-weight: bold;">end</span>;
&nbsp;
    j<span style="color: #339933;">:=</span>n;
    <span style="color: #000000; font-weight: bold;">if</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span>
      <span style="color: #000000; font-weight: bold;">then</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>i&gt;<span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #000066;">and</span> <span style="color: #009900;">&#40;</span>i&lt;k<span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>
          <span style="color: #000000; font-weight: bold;">then</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
          <span style="color: #000000; font-weight: bold;">else</span>
            <span style="color: #000000; font-weight: bold;">if</span> i<span style="color: #339933;">=</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">2</span>
              <span style="color: #000000; font-weight: bold;">then</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
              <span style="color: #000000; font-weight: bold;">else</span>
                <span style="color: #000000; font-weight: bold;">if</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">*</span>k<span style="color: #339933;">+</span><span style="color: #cc66cc;">3</span>
                  <span style="color: #000000; font-weight: bold;">then</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
                  <span style="color: #000000; font-weight: bold;">else</span> num<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span>a<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #000066;">writeln</span>;
  <span style="color: #000000; font-weight: bold;">end</span>;
<span style="color: #000000; font-weight: bold;">end</span>.</pre></td></tr></table></div>

<p><span style="white-space: normal; word-break: break-all; color: #ff6600;"><strong style="white-space: normal; word-break: break-all;">编译通过&#8230;</strong></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>01：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>02：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>03：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>04：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>05：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>06：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>07：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>08：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>09：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" />├ <span style="white-space: normal; word-break: break-all; color: #336699;"><strong style="white-space: normal; word-break: break-all;">测试数据 </strong></span>10：<span style="white-space: normal; word-break: break-all; color: #cc3366;">答案正确&#8230;</span> 0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span> <br style="white-space: normal; word-break: break-all;" /><strong style="white-space: normal; word-break: break-all;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong> <br style="white-space: normal; word-break: break-all;" /><span style="white-space: normal; word-break: break-all; color: #ff0000;"><strong style="white-space: normal; word-break: break-all;">Accepted</strong></span> 有效得分：100 有效耗时：0<span style="white-space: normal; word-break: break-all; color: #000000;"><em style="white-space: normal; word-break: break-all;">ms</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://moradin.net/blog/2009/11/vijos_1064/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
