#C6856. Classroom Management System

    ID: 50662 Type: Default 1000ms 256MiB

Classroom Management System

Classroom Management System

In this problem, you are required to implement a simple classroom management system. The classroom has a maximum capacity of (10) students. You need to design a data structure that supports the following operations:

  • ADD <student_name>: Add a student to the classroom. If the classroom is full, print "Classroom is full"; otherwise, print "Student added".
  • REMOVE <student_name>: Remove the specified student from the classroom. If the student is found, print "Student removed"; otherwise, print "Student not found".
  • PRINT: Print the current list of students in the classroom. If the classroom is empty, print "Classroom is empty"; otherwise, print the student names separated by commas with the prefix "Students: ".

You must read the input from standard input and output the results to standard output.

inputFormat

The first line of input contains an integer (N) representing the number of operations. Each of the following (N) lines contains an operation in one of the following formats:

  • ADD student_name
  • REMOVE student_name
  • PRINT

Note that student names are case-sensitive and will not contain spaces.

outputFormat

For each operation, output the corresponding result on a separate line. The output for each operation should follow exactly the response messages given in the description. The responses are:

  • ADD: Either "Student added" or "Classroom is full".
  • REMOVE: Either "Student removed" or "Student not found".
  • PRINT: Either "Classroom is empty" or "Students: student1, student2, ..., studentK" if there are students in the classroom.
## sample
4
ADD Alice
ADD Bob
REMOVE Charlie
PRINT
Student added

Student added Student not found Students: Alice, Bob

</p>