Most Frequent Smallest Number
Time limit1sMemory limit256 MB
Print how many integers lie strictly between the two given integers, then list them in ascending order.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
두 양의 정수가 주어졌을 때, 두 수 사이에 있는 정수를 모두 출력하는 프로그램을 작성하시오.
Input
두 정수 A와 B가 주어진다.
Output
첫째 줄에 두 수 사이에 있는 수의 개수를 출력한다.
둘째 줄에는 두 수 사이에 있는 수를 오름차순으로 출력한다.