项目euler 59.需要算法 [英] Project euler 59. Need algorithm

查看:61
本文介绍了项目euler 59.需要算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

唯一的问题是我找不到钥匙。有人可以给我一个算法来找到它吗?



我尝试过:



我试过猜它但不能。

The only problem is I can not find the key. Can someone give me an algorithm to find it, please?

What I have tried:

I've tried to guess it but couldn't.

推荐答案

这是一个练习:描述包含你需要的所有信息(包括算法)解码文件。

It's an exercise: the description contains all the information you need (including the algorithm) to decode the file.
引用:

我试过猜它但不能。

你不是应该猜测:你应该使用蛮力攻击方法来解密,这不是很难或太耗时,因为你要找的是三个小写字符 - 即只有26 * 26 * 26种可能的组合并且解密结果是仅使用英文单词的文本。



试一试,看看你能走多远......

You aren't supposed to guess: you are supposed to use a brute force attack approach to decrypt, which isn't hard or too time consuming given that the key you are looking for is three lower case characters - i.e. has only 26 * 26 * 26 possible combinations and the decryption result is text using only English words.

Give it a try, and see how far you can get...


Quote:

唯一的问题是我找不到密钥

The only problem is I can not find the key

责备自己,因为:

锁上门

扔掉钥匙

我脑子里有人,但不是我。

Blame yourself, because:
You lock the door
And throw away the key
There's someone in my head but it's not me.


你的工作是提出算法,而不是乞求它。



我要告诉你的是,生成的文本将包含单词the,并且你将需要循环内的循环来解决它。
It's you job to come up with the algorithm, not beg for it.

All I'm going to tell you is that the resulting text is going to contain the word " the " and that you're going to need loops within loops to solve it.


这篇关于项目euler 59.需要算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆