insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Distinct Digits in 3-Digit Number

Distinct Digits in 3-Digit Number

Difficulty: Medium

Phase: 1 · Conditional Thinking

XP Reward: 20 XP

Topics: Conditional Thinking, Medium

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Take a 3-digit number and check if all digits are distinct. Print 'Distinct' or 'Not Distinct'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

Input: 123

Output: Distinct

Explanation: Sample execution for input 123