蓝桥杯例题part12讲解.doc

  1. 1、本文档共112页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
蓝桥杯例题part12讲解

 HYPERLINK /JudgeOnline/problemset.php?page=7 /JudgeOnline/problemset.php?page=7 Oh, my goddess 时间限制:3000 ms | 内存限制:65535 KB 难度:3 描述 Shining Knight is the embodiment of justice and he has a very sharp sword can even cleavewall. Many bad guys are dead on his sword. One day, two evil sorcerer cgangee and Jackchess decided to give him some colorto see. So they kidnapped Shining Knights beloved girl--Miss Ice! They built a M x Nmaze with magic and shut her up in it. Shining Knight arrives at the maze entrance immediately. He can reach any adjacent emptysquare of four directions -- up, down, left, and right in 1 second. Or cleave one adjacent wall in 3 seconds, namely,turn it into empty square. Its the time to save his goddess! Notice: ShiningKnight wont leave the maze before he find Miss Ice. 输入 The input consists of blocks of lines. There is a blank line between two blocks. The first line of each block contains two positive integers M = 50 and N = 50separated by one space. In each of the next M lines there is a string of length N contentsO and #. O represents empty squares. # means a wall. At last, the location of Miss Ice, ( x, y ). 1 = x = M, 1 = y = N. (Shining Knight always starts at coordinate ( 1, 1 ). Both Shining and Ices locationguarantee not to be a wall.) 输出 The least amount of time Shining Knight takes to save hisgoddess in one line. 样例输入 3 5 O#### ##### #O#O# 3 4 样例输出 14 世界末日 时间限制:1000 ms | 内存限制:65535 KB 难度:1 描述 世界末日马上就要来临了,当然,每个人都想买到船票,但是由于船票有限,因此需要回答对一个问题才能买票。问题是这样的:给你一个数n (1 = n = 10000),之后给n个正整数 (= 10000),问在这n个数中是否存在一些数的和是n的倍数。 输入 多组测试数据(最多100组)。首先输入一个数n,然后输入n个数。 输出 如果能找到一些数的和是n的倍数,输出YES,否则输出NO。 样例输入 5 5 3 6 7 9 样例输出 YES 我和你 时间限制:1000 ms | 内存限制:65535 KB 难度:2 描述 将一句话中的所有的“我”换成“你”,“你”换成“我”。 输入 多组测试数据 每组给出一句中文,每段少于100??汉字 以单独一个0结束 输出 对于每组测试数据,输出替换后的句子。 样例输入 我爱你 我是中国人 1234我 0 样例输出 你爱我 你是中国人 1234你 提示 注意:每个中文在windows下占两个字节,ubuntu默认使用UTF-8编码,每个中文占三个字节。本OJ判题环境为ubuntu Take it easy II 时间限制:1000 ms | 内存限制:65535 KB 难度:0 描述 小蜗牛经过一段时间的学习和训练,水平的到了很大的提升

文档评论(0)

shuwkb + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档