202003 JetBrains Quest#3解谜
这次是JetBrains的最后一个谜题了。
No.0
在twitter上JetBrains发布了最后一个谜题的线索:
SGF2ZSB5b3Ugc2VlbiB0aGUgcG9zdCBvbiBvdXIgSW5zdGFncmFtIGFjY291bnQ/
这个大小写加数字加斜杠的组合,让人一下想到了base64,解一下,果然是:
Have you seen the post on our Instagram account?
No.1
去到JetBrains的ins看下,最新一条图片的标题就是“JetBrains Quest”,他的内容是:
Welcome to the final Quest! You should start on the Kotlin Playground: https://jb.gg/kotlin_quest
P.S. If you don’t know about the #JetBrainsQuest, it’s not too late to find out.
打开提示的网址 https://jb.gg/kotlin_quest,有这么一段代码:
fun main() {
val s = "Zh#kdyh#ehhq#zrunlqj#552:#rq#wkh#ylghr#iru#wkh#iluvw#hslvrgh#ri#wkh#SksVwrup#HDS1#Li#zh#jdyh#|rx#d#foxh/#lw#zrxog#eh#hdv|#dv#sl1"
val n: Int = TODO()
for (c in s) {
print(c - n)
}
}
这个文本的样子,非常像第一个谜题中的caesar解法,然后就是这个shift要试下,最终这个shift是3,所以这个代码最终是下面这个样子:
fun main() {
val s = "Zh#kdyh#ehhq#zrunlqj#552:#rq#wkh#ylghr#iru#wkh#iluvw#hslvrgh#ri#wkh#SksVwrup#HDS1#Li#zh#jdyh#|rx#d#foxh/#lw#zrxog#eh#hdv|#dv#sl1"
val n: Int = 3
for (c in s) {
print(c - n)
}
}
执行结果是:
We have been working 22/7 on the video for the first episode of the PhpStorm EAP. If we gave you a clue, it would be easy as pi.123