The Hidden Word The Hidden Word
Simple
EN DE Japanese
ジャバウォック

'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.

'Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!'

He took his vorpal sword in hand:
Long time the manxome foe he sought--
So rested he by the Tumtum tree,
And stood awhile in thought.

And as in uffish thought he stood,
The Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood,
And burbled as it came!

One, two! One, two! And through and through
The vorpal blade went snicker-snack!
He left it dead, and with its head
He went galumphing back.

'And hast thou slain the Jabberwock?
Come to my arms, my beamish boy!
O frabjous day! Callooh! Callay!'
He chortled in his joy.

'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.

(※訳注: 作者による造語が多数含まれています。 詳細は Wikipedia「ジャバウォックの詩」を参照)

「鏡の国のアリス」ルイス・キャロル

DREAMING of apples on a wall,
And dreaming often, dear,
I dreamed that, if I counted all,
-How many would appear?

(※訳
「塀の上のリンゴを夢見る
それもしばしば夢見る
私は全て数えることを夢見る
--いくつ見つけられるかな?」)

「不思議の国からのパズル」ルイス・キャロル

ニコラはこのパズルを解いた。(きっとあなたも解けたはずだ) ...

  • 開始行 は単語の最初の行番号
  • 開始列 は単語の最初の列番号
  • 終了行 は単語の最後の行番号
  • 終了列 は単語の最後の列番号
  • 行と列は各々1から数え始めること(0ではない)

rhymes rhymes

入力: 韻文(string型)と小文字からなる単語(string型)

出力: 単語の座標。

例:

checkio(u"""DREAMING of apples on a wall,
And dreaming often, dear,
I dreamed that, if I counted all,
-How many would appear?""", u"ten") == [2, 14, 2, 16]
checkio("""He took his vorpal sword in hand:
Long time the manxome foe he sought--
So rested he by the Tumtum tree,
And stood awhile in thought.
And as in uffish thought he stood,
The Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood,
And burbled as it came!""", "noir") == [4, 16, 7, 16]
    

どのように使われるか: このタスクは暗号文の位置を分散させるやり方を表わしている。 このやり方で本の中に暗号を隠して受け手とやり取り可能である。

事前条件: 単語は小文字で与えられる。
0 < |単語| < 10
0 < |韻文| < 300

You should be an authorized user in order to see the full description and start solving this mission.