- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
A decorative fence
问题求解与程序设计
李文新
Problem
A decorative fence
Table of Contents
The problem
Solution
The problem
CENTRAL EUROPEAN OLYMPIAD IN INFORMATICS
30 June – 6 July 2002
Day 1: fence
A decorative fence
Time limit: 1 s
Memory limit: 1 MB
The problem
Richard just finished building his new house. Now the only thing the house misses is a cute little wooden fence. He had no idea how to make a wooden fence, so he decided to order one.
The problem
Somehow he got his hands on the
ACME1 Fence Catalogue 2002, the
ultimate resource on cute little wooden
fences. After reading its preface he
already knew, what makes a little
wooden fence cute.
The problem
A wooden fence consists of N wooden planks, placed vertically in a row next to each other. A fence looks cute if and only if the following conditions are met:
The problem
? The planks have different lengths, namely 1, 2, . . . , N plank length units.
? Each plank with two neighbors is either larger than each of its neighbors or smaller
than each of them. (Note that this makes the top of the fence alternately rise and
fall.)
The problem
It follows, that we may uniquely
describe each cute fence with N planks
as a permutation a1, . . . , aN of the
numbers 1, . . . ,N such that (?i; 1 i
N) (ai - ai-1) * (ai - ai+1) 0 and vice
versa, each such permutation
describes a cute fence.
The problem
It is obvious, that there are many
different cute wooden fences made of
N planks.
The problem
To bring some order into their
catalogue, the sales manager of ACME
decided to order them in the following
way: Fence A (represented by the
permutation a1, . . . , aN) is in the
catalogue before fence B (represented
by b1, . . . , bN) if and only if there exists
such i, that
The problem
(?j i) aj = bj and (ai bi). (Also to
decide, which of the two fences is
earlier in the catalogue, take their
corresponding permutations, find the
first place on which they differ and
compare the values on this place.)
The problem
All the cute fences with N planks are
numbered (
您可能关注的文档
- 2016年5月宁波北仑区凤凰山主体乐园商业调查报告.pdf
- 2016年9月高考听力真题PETS2.doc
- 2016卓越寒假练习册、广州寒假作业(四年级).pdf
- 2016 ChinaJoy:杰拉网咖带你玩转泛娱乐时代.doc
- 2016年SAT阅读考试必读的书目清单推荐.pdf
- 2016年伦敦大学玛丽皇后学院研究生申请要求及排名解读.pdf
- 2016年农村东北大学单招模拟题(含解析).docx
- 2016年北京师范大学MTI翻译硕士考研历年真题解析,考研参考书,考研经验,考研报录比.pdf
- 2016年北京培黎职业学院自主招生模拟题(含解析).docx
- 2016年北京电影学院录音系电影声音创作方向在职艺术硕士考研复试辅导资料.pdf
- A diagnostic method using wavelets networks application to engine knock detection.pdf
- A direct time-domain FEM modeling of broadband frequency-dependent absorption with the pres.pdf
- A DETERMINISTIC FREQUENCY HOPPING RAYLEIGH FADING CHANNEL SIMULATOR DESIGNED BY USING OPTIM.pdf
- A dynamic syntax-semantics interface.pdf
- A Emotional facial expressions and the attentional blink.pdf
- A fortran program (RELAX3D) to solve the 3 dimensional poisson (Laplace) equation.pdf
- A FREQUENCY HOPPING RAYLEIGH FADING CHANNEL SIMULATOR WITH GIVEN CORRELATION PROPERTIES.pdf
- A Frontal Computation Scheme for the Schur Algorithm to Efficiently Solve Large Boundary-El.pdf
- A FREQUENCY RESPONSE ESTIMATION METHOD BASED ON SMOOTHING AND THRESHOLDING.pdf
- A frequency measure robust to linear filtering.pdf
最近下载
- 人教版二年级上册数学全册教学设计(配2025年秋新版教材).docx
- SL734-2016水利工程质量检测技术规程.docx VIP
- 有限空间专项施工方案-消防水池.doc VIP
- (正式版)DB42 1096-2015 《金属非金属矿山企业职业卫生管理技术规范》.docx VIP
- 数学教学设计表格式.pdf VIP
- 第二十二章 二次函数 单元教学设计 人教版数学九年级上册.pdf VIP
- GB 50147-2010 电气装置安装工程高压电器施工及验收规范.docx VIP
- 水利工程质量检测单位资质等级标准.pdf VIP
- 超大型FPSO船舶的电力系统设计简介.pdf VIP
- 2025四川成都市青羊区人民政府金沙街道办事处招聘编外人员3人笔试备考题库及答案解析.docx VIP
文档评论(0)