सबसे छोटा और सबसे लंबा स्ट्रिंग

तीन स्ट्रिंग्स दी गई हैं, सबसे छोटे वाले को पहले लाइन में और सबसे बड़े वाले को दूसरी लाइन में प्रिंट करें। अगर दो स्ट्रिंग्स की लंबाई समान है, तो चेकिंग सिस्टम अपेक्षा करता है कि प्रोग्राम इनपुट में से पहले वाले को प्रिंट करे।

इनपुट

आउटपुट

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

To check your solution you need to sign in
Sign in to continue