您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

ACM一些杂题2

2024/2/20 10:52:32发布29次查看
mo and larry have devised a way of encrypting messages. they first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random letters so as to make a rectangular array of lette
mo and larry have devised a way of encrypting messages. they first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random letters so as to make a rectangular array of letters. for example, if the message is “there’s no place like home on a snowy night” and there are five columns, mo would write down
t o i o yh p k n ne l e a ir a h s ge c o n hs e m o tn l e w x
note that mo includes only letters and writes them all in lower case. in this example, mo used the character ‘x’ to pad the message out to make a rectangle, although he could have used any letter. mo then sends the message to larry by writing the letters in each row, alternating left-to-right and right-to-left. so, the above would be encrypted as
toioynnkpheleaigshareconhtomesnlewx
your job is to recover for larry the original message (along with any extra padding letters) from the encrypted one.
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product