Large or small
Time Limit:1000MS Memory Limit:65536K
Total Submit:93 Accepted:63
Description
Only Input and Output
Input
Several cases.
A letter indicating the operation('L' means to output the lager one while 'S' the smaller).
Followed by two integers. It's guaranteed that all numbers are smaller than 10^5.
Output
According to the operation to output the lager or smaller integer on a seperate line.
If the letter is not 'L' or 'S' just print "Input error!".
Sample Input
L 1 2
S 3 4
A 5 6
Sample Output
2
3
Input error!
Source