Exactly like in the exercise "Sandwich numbers", we define a sandwich number as a natural number with only two different digits and that are repeated in the form , with .
Write a program that displays all the sandwich numbers of digits on the screen.
The input consists of a natural number , with .
A list of sandwich numbers of digits, one per line. The numbers can be written in any order. You can generate the numbers as you wish, either as integers or character by character.
Author: PRO1
Generation: 2026-01-25T21:36:33.218Z
© Jutge.org, 2006–2026.
https://jutge.org