To celebrate people complaining that bf4 should have a higher point value, we have created this problem.
You are to print two newline-separated strings and of lowercase English characters, such that , and such that calling S.find(T)
in Python 2 times out in 10 seconds.
Input Specification
There is no input.
Output Specification
Two newline-separated strings and of lowercase English characters, such that , and such that calling S.find(T)
in Python 2 times out in 10 seconds.
Note
It is not recommended to submit in Text (the submission size limit is likely too small).
Comments
I need some hints please.
Python's builtin
.find()
is, according to them, a modified version of Boyer-Moore-Horspool algorithm. You're going to obviously want to maximise the length of S, and also maximise the amount of 'checks' that the algorithm has to do.Never mind I got it. I won't disclose my solution too much
I changed the checker to use Python 2 instead of Python 3 and rejudged.