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 the very very long long string with many words some medium string here | short one the very very long long string with many words |
AAA AA AAAA | AA AAAA |
A AA AAA | A AAA |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB