読者です 読者をやめる 読者になる 読者になる

JOI 2011-2012 予選第一問を解いた

Shakespeare で。

solve JOI 2011-2012 yo-t1.

Paris, just counts the number.
Benvolio, reads first three lines.
Romeo, with the most inexpensive pasta.
Capulet, reads last two lines.
Juliet, with the most inexpensive juice.
Montague, stores total price of the set.
Desdemona, feeds lines to others.
Helen, returns with a carriage.

                      Act I: A menu is presented.

                      Scene I: The introductions.
[Enter Romeo and Desdemona]

Romeo:
        Thou art as fine as the sum of a pretty flower and a lovely
        smooth rich plum.

[Exit Desdemona]
[Enter Helen]

Romeo:
        Thou art as fine as the sum of Desdemona and the sum of a red
        rose and a flower.

[Exit Helen]
[Enter Juliet]

Juliet:
        Thou art as fine as the cube of a lovely beautiful charming
        rich summer's day.

Romeo:
        Thou art as charming as the cube of a lovely pretty smooth
        white flower.

[Exit Juliet]
[Enter Paris]

Romeo:
        Thou art as good as the sum of a lovely rose and a flower.

                     Scene II: The three pastas.

[Exeunt]
[Enter Romeo and Benvolio]

Romeo:
        Listen to your heart.

Benvolio:
        Am I worse than you?
        If so, you are as fine as I.
        

[Exit Benvolio]
[Enter Paris]

Romeo:
        Thou art as good as the difference between thyself and a
        brother. Are you worse than a cat?

Paris:
        If not, let us return to scene II.

                 Scene III: Preparing for the juice.

[Exeunt]
[Enter Juliet and Paris]

Juliet:
        Thou art as fine as a white flower.

                         Scene IV: The juice.

[Exeunt]
[Enter Juliet and Capulet]

Juliet:
        Listen to your heart.

Capulet:
        Am I worse than you?
        If so, you are as charming as I.

[Exit Capulet]
[Enter Paris]

Juliet:
        Thou art as fine as the difference between thyself and a
        rose. Are you worse than a tree?

Paris:
        If not, let us return to scene IV.
        
                        Act II: Order the set.

                   Scene I: Calculating the price.

[Exeunt]
[Enter Romeo and Paris]

Romeo:
        Thou art as good as a little tiny furry white animal.
        Thou art as fine as the sum of thyself and a delicious
        flower. Thou art as fine as the sum of a lovely smooth
        rich furry red plum and thyself.

[Exit Paris]
[Enter Montague]

Romeo:
        Thou art as good as I.

[Exit Romeo]
[Enter Juliet]

Juliet:
        Thou art as fine as the sum of I and thyself.

[Exeunt]

                      Scene II: Print the price.

[Enter Paris and Montague]

Paris:
        Thou art as foul as the difference between thyself and I.
        Open your heart!

[Exit Montague]
[Enter Helen]

Paris:
        Speak your mind!

[Exit Helen]
[Enter Desdemona]

Paris:
        Speak your mind!

[Exeunt]