#C8907. Unique Word Checker
Unique Word Checker
Unique Word Checker
You are given a sentence consisting of words separated by single spaces. Your task is to determine if all the words in the sentence are unique. In other words, if a sentence contains words \(w_1, w_2, \ldots, w_n\), then the sentence is considered to have unique entries if and only if \(n = |\{w_1, w_2, \ldots, w_n\}|\). If the condition is satisfied, output Unique Entry!
; otherwise, output Duplicate Found!
.
inputFormat
The input is provided via standard input (stdin) as a single line containing the sentence. The sentence consists of words separated by a single space. It may be empty or contain multiple words.
outputFormat
Output via standard output (stdout) a single line: Unique Entry!
if all words in the sentence are unique, or Duplicate Found!
otherwise.
code solve innovate compete
Unique Entry!