|
|||
X X GluedDo you know the game “X X glued” practiced on the registration plates of Benin cars by children?
A Beninese car registration number is written in the form
VY ABCD Input Specification
The input contains several lines and ends with the Output SpecificationFor each registration number, your program should display in a single line all the “X X glued” in the format shown in the example. Note that if there is more than one pair of identical digits, they should be printed in the same order as they appear in the registration number. If the same pair of identical digits appears multiple times, only the first occurrence should be printed. If there is no “X X glued” in the number, the program should display nothing (not even a blank line). Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |