Stringhe più corte e più lunghe
Date 3 stringhe, stampa la stringa più corta nella prima riga seguita dalla più lunga nella seconda riga. Se ci sono due stringhe con la stessa lunghezza, il sistema di verifica si aspetta che il programma stampi la prima tra quelle fornite in input.
Input | Output |
---|---|
short one | short one |
AAA | AA |
A | A |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB