अंतिम पंक्ति प्रिंट करें

आपको फ़ाइल की अंतिम पंक्ति प्रिंट करने के लिए कहा जाता है।

प्रोग्राम की इनपुट में केवल एक पंक्ति होती है - फ़ाइल का नाम।

प्रोग्राम की आउटपुट में केवल एक पंक्ति होनी चाहिए - फ़ाइल की अंतिम पंक्ति। यह सुनिश्चित किया गया है कि फ़ाइल में कम से कम एक पंक्ति होती है।

इनपुट

input.txt

आउटपुट

input.txt

hello this is
some file content

some file content

इनपुट

single.txt

आउटपुट

single.txt

this file has only 1 line

this file has only 1 line

इनपुट

many.txt

आउटपुट

many.txt

this file
has

many
many lines

many lines

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