Lorem ipsum
InterviewTime limit0.1sMemory limit512 MB
Split a fixed Latin placeholder paragraph into words and print the words at indices L through R separated by spaces.
- Level
Easy2 of 10
- Topics
- String, Implementation, Array
- Solved
- No attempts yet
Problem
The following Latin placeholder paragraph is given. A word is a run of English letters A-Z and a-z. Every other character, including periods, commas, and spaces, is a separator. Keep each word's capitalization as written. Number the words from in the order they appear.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis lectus sit amet ante suscipit tempor. Aenean dapibus finibus tortor vitae facilisis. Nulla facilisi. Donec suscipit ante a sapien gravida eleifend. Curabitur in lectus ut enim semper venenatis. Aenean elit nibh, hendrerit nec nunc in, dictum cursus dolor. Aenean eget lectus risus. Cras sollicitudin quam vitae augue mollis bibendum. Aliquam euismod vulputate dolor at tristique. Praesent elementum pretium velit non interdum. Nunc posuere faucibus magna id pretium. Maecenas congue, velit eget semper porttitor, tellus tortor porttitor dui, tristique lobortis quam sem ac odio.
The paragraph has words.
Given two integers and , print the words from index through index .
Input
The first line contains two integers and .
Output
Print the words from the -th through the -th on one line, separated by a single space.
Hint
The word in amet, is amet. The comma is not part of the word. Donec after elit. is a separate word.