#K59642. Project Assignment Evaluation
Project Assignment Evaluation
Project Assignment Evaluation
You are given a string T
of length 3, where each character represents the enrollment status of a student in one of three courses (for example, M, S, or A). Two or more students can be paired to work together on a project if they are not all enrolled in the same course.
Formally, let \( T \) be a string of length 3. If the number of distinct characters in \( T \) is greater than 1, i.e. \( |\{ t : t \in T\} | > 1 \), then print Yes
; otherwise, print No
.
For example, if T = "MSA"
then the output should be Yes
, whereas for T = "MMM"
the output should be No
.
inputFormat
Input is provided from standard input (stdin) as a single line containing a string T
of length 3.
outputFormat
Output to standard output (stdout) a single line containing either Yes
or No
based on whether at least one pair of students can be assigned a project together.
MSA
Yes