专题皇帝的难题_第1页
免费预览已结束,剩余2页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、题目来源:Ural情况没理由:太难了题目大意(N,M,KN10000,M1000andN英文原TheEmperorsTime Limit: 1 second In the olden times 题目来源:Ural情况没理由:太难了题目大意(N,M,KN10000,M1000andN英文原TheEmperorsTime Limit: 1 second In the olden times there was a young emperor who was the bravest, wisest, richest, he whole world. He roven himself in endl

2、ess of battles, quests, and buthiscourtwas ppy because he had not edaqueenyet.However,choosingawas not easy because of his high us and standard, the emperor wanted a girl not only but smart and kind as well. Lightning Knight most trusted knights out to seek for a girl like brought back two of the mo

3、st beautiful andt was the young Emperors name - sent t; and after a long time searching, the men elligent girls in all the lands. They were s sisters from a faraway land. The older sister - Van Trinh - was mysterious and like the moon, while Thuy Linh - the younger one - was bright and lovely as the

4、 sun. They both famous for being kind, gentle, elligent to their people, and as many girls before they both fell truly, madly, deeply in love with the handsome emperor at Now, the Emperor had to face the hardest test of all: to pick just e his rightful and beloved queen and lay the world under hese

5、two sisters to feet. After ights, the Emperor sought out a just solution. He thought of a riddle and announced thetwoprin his desk.ses and the t he would marry ho bring the right answer At the same time with the above event, the Emperor had just won the most important battle unite all the he t was t

6、wo good news in such a short time. Being the rich generous emperor he was, the Emperor wanted to reward to all the brave and loyal generals boxes of gold. The distribution was not easy ts why he chose it as the riddle for Van and Thuy Linh. Centuries has passed since then, the Emperor and queen ve d

7、ied and romancevebeenottenfromourworld,buttheriddlestillremainsasoneoftheheancientThe Emperor wants to reward N boxes of gold to M generals. The ith box has the value Ai. Now the Emperor wants to give N boxes to M generals t the difference of n eral who receives the most gold and t sible. Note: a ge

8、neral can receive morelfor1/3oferal who receives the least gold is n one box, and he must receive the small as box(ie:noContainstwoThe1stlinecontainsegersN,MandK(N=10000,M=1000andNn eral who receives the most gold and t sible. Note: a general can receive morelfor1/3oferal who receives the least gold

9、 is n one box, and he must receive the small as box(ie:noContainstwoThe1stlinecontainsegersN,MandK(N=10000,M=1000andNM).Kisumttheemperor The2ndlinecontainsThe1stlinecontainsegers0A1,A2.AN=egerwhichistheminimumdifferenceyourprogramcanhenextMlines,theithlinecontainstheindexof boxesrewardedtotheith中文翻的难时限:1 秒背。Lightning Thuy Linh 的le问想奖赏N

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论