博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
The Cow-Signal
阅读量:7212 次
发布时间:2019-06-29

本文共 1242 字,大约阅读时间需要 4 分钟。

【Description】

Bessie and her cow friends are playing as their favorite cow superheroes. Of course, everyone knows that any self-respecting superhero needs a signal to call them to action. Bessie has drawn a special signal on a sheet of M×N paper (1≤M≤10,1≤N≤10), but this is too small, much too small! Bessie wants to amplify the signal so it is exactly K times bigger (1≤K≤10) in each direction.
The signal will consist only of the ‘.’ and ‘X’ characters.
【Input】
The first line of input contains M, N, and K, separated by spaces.
The next M lines each contain a length-N string, collectively describing the picture of the signal.
【Output】
You should output KM lines, each with KN characters, giving a picture of the enlarged signal.
【Sample Input】
5 4 2
XXX.
X..X
XXX.
X..X
XXX.
【Sample Output】
XXXXXX..
XXXXXX..
XX….XX
XX….XX
XXXXXX..
XXXXXX..
XX….XX
XX….XX
XXXXXX..
XXXXXX..
【题意简述】
给出一个N*M的由X和.组成的图片,将其放大至原来的K倍。
【分析】
从数据范围就可以看出是模拟。

#include
#include
#include
using namespace std;int main(){ int n,m,t; char a[20][20],b[200]; scanf("%d%d%d",&n,&m,&t); for (int i=0;i
>a[i]; for (int i=0;i

转载于:https://www.cnblogs.com/JRX2015U43/p/6533459.html

你可能感兴趣的文章
server 2008 跨进新的平台(二)
查看>>
exchange 2010申请分配证书服务提示:证书无效,不可用于exchange server
查看>>
ASP.NET MVC中,通用的异常处理
查看>>
Struts tiles入门(最最简单的例子)
查看>>
SpringBoot入门系列: Spring Boot的测试
查看>>
USequencer系列 |初识
查看>>
ARP攻击实战
查看>>
PowerDNS管理工具开发中学习到的DNS知识
查看>>
命令行出错Exception in thread "main" java.lang.UnsupportedClassVersionError:
查看>>
Vbs压缩备份文件夹以日期命名
查看>>
Myeclipse启动Tomcat服务器Address already in use: JVM_Bind
查看>>
svn服务器安装与配置
查看>>
deprecated conversion from string constant to ‘char*’
查看>>
SSH实战项目——在线商品拍卖网
查看>>
The Distribution File System
查看>>
Jvm原理剖析与调优之内存结构
查看>>
TortoiseSVN文件夹及文件图标不显示解决方法
查看>>
技术的价值--从实验到企业实施的关键性思想
查看>>
在VMWare中配置SQLServer2005集群 Step by Step(四)——集群安装
查看>>
实战:通过组策略为用户部署软件
查看>>