Shakespeare 2


Submit solution

Points: 2
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
C++, Python3

In this problem, you are expected to read information from shakespeare-hamlet.txt (Click to download), and perform basic occurrence count.

You will need to design a programme that can follow a shakespearean dialogue. For every test case, the computer will prompt you with a sentence from Hamlet, and you will need to print the next lines.

Input Specification

The input will start with the content of shakespeare-hamlet.txt, followed by a line of separators

--------

After the separators come the actual test cases.

There will be some non-empty lines from Hamlet.

Output Specification

Output the next non-empty line(s) from Hamlet. If the following response is a multi-line dialogue, all lines must be printed. If multiple responses are possible, output the first one in shakespeare-hamlet.txt.

A new response is marked by either empty lines, or whitespace at the beginning of the line.

Sample Input 1

[content of shakespeare-hamlet.txt]
--------
   Barn. How now Horatio? You tremble & look pale:
Is not this something more then Fantasie?
What thinke you on't?

Sample Output 1

  Hor. Before my God, I might not this beleeue
Without the sensible and true auouch
Of mine owne eyes

Comments

There are no comments at the moment.