Binary Search Tree 1
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Implement a balanced binary search tree.
Input
Сontains a description of operations on the tree, with the total number of operations not exceeding . Each line contains one of the following operations:
insert — insert key into the tree. If key is already present in the tree, do nothing.
delete — remove key from the tree. If key is not present in the tree, do nothing.
exists — if key is present in the tree, output "true", otherwise "false".
All numbers are integers and do not exceed in absolute value.
Output
Print the results of all exists operations sequentially, following the format provided in the example.
Examples
Input #1
Answer #1
Submissions 6K
Acceptance rate 37%