Same Close Different
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Task
Write a program that takes as input two integers and outputs whether they are the same, close or different.
Information
- The two integers are the "same" if they equal to each other.
- The two integers are "close" if they are within 1 of each other. (e.g. 3 and 4, or 4 and 3)
- The two integers are "different" if the difference between them is greater than 1.
Input format
Two integers on separate lines. The integers provided will be from 0 to 1000.
Output format
One of three strings, "same", "close", or "different".
Example
3
3
same