DMOPC '18 Contest 1 P0 - Sorting

View as PDF

Submit solution



Points: 3
Time limit: 2.0s
Memory limit: 64M
Authors:

Problem type

Your baby brother is playing a game with 3 blocks. He wants to stack them so that the smallest block is at the top, and the largest block is at the bottom of the stack.

Having finished sorting them, he asks you to verify his ordering. Did he do it correctly?

Input Specification

The first line of input will contain the size of the block at the top of the stack.
The second line of input will contain the size of the block at the middle of the stack.
The third and final line of input will contain the size of the block at the bottom of the stack.

The size of the blocks will be an integer in the range [1, 100].

Output Specification

Print Good job! if the blocks are sorted, and Try again! otherwise.

Sample Input 1

3
5
4

Sample Output 1

Try again!

Sample Input 2

2
2
3

Sample Output 2

Good job!

Comments

There are no comments at the moment.