#K81312. To-Do List Manager

    ID: 35726 Type: Default 1000ms 256MiB

To-Do List Manager

To-Do List Manager

In this problem, you are requested to implement a to-do list management system that supports task creation, deletion, and update through object-oriented design. You are required to implement three classes: (Task), (ToDoList), and (User). Each task has an integer ID, a description, and a completion status. A to-do list holds a collection of tasks and assigns unique IDs sequentially to newly added tasks. A user manages multiple to-do lists.

The system will process a list of commands from standard input. Each command instructs the system to perform one of the following operations: creating a user, creating or deleting a list, adding or removing a task from a list, marking a task complete, or printing a list. When printing a list, tasks should be output in ascending order by task ID, each line showing the task ID, description, and its completion status.

inputFormat

The first line contains an integer (N) denoting the number of commands to follow. Each of the next (N) lines contains a command that modifies or queries the system. Valid commands are:
1. CREATE_USER user_id username
2. CREATE_LIST list_name
3. DELETE_LIST list_name
4. ADD_TASK list_name task_description
5. REMOVE_TASK list_name task_id
6. MARK_COMPLETE list_name task_id
7. PRINT_LIST list_name

Note: In the ADD_TASK command, the task_description may contain spaces and should be interpreted as the entire remainder of the line.

outputFormat

For each PRINT_LIST command, output the tasks in the corresponding list in ascending order of task_id. Each task must be printed on a separate line in the format:
task_id task_description completed_status
Here, completed_status is either True or False. If the list exists but has no tasks, output "Empty". If the list does not exist, output "List not found".## sample

6
CREATE_USER 1 testuser
CREATE_LIST Home
ADD_TASK Home Laundry
ADD_TASK Home Dishes
MARK_COMPLETE Home 1
PRINT_LIST Home
1 Laundry True

2 Dishes False

</p>