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

2025 OUCC

未参加
状态
已结束
规则
IOI
题目
17
开始于
2025-5-4 17:00
结束于
2025-5-4 19:30
持续时间
2.5 小时
主持人
参赛人数
2