|
|||
FramedWrite a program that reads a positive integer (x) and a string of up to 50 characters from the standard input line by line until end-of-file (EOF). The string contains only lowercase letters of the English alphabet.
For each number and string, decide whether the first x characters of the string are the same as the last x characters. If so, write „ Sample Input
Output for Sample Input
Acknowledgement
This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |