diff --git a/sets-STL-HR.cpp b/sets-STL-HR.cpp new file mode 100644 index 0000000..94af5e2 --- /dev/null +++ b/sets-STL-HR.cpp @@ -0,0 +1,23 @@ +#include +using namespace std; + + +int main() { + /* Enter your code here. Read input from STDIN. Print output to STDOUT */ + int n, q, val; + set s; + cin>>n; + for(int i=0;i>q>>val; + if(q == 1){ + s.insert(val); + } + else if(q == 2){ + s.erase(val); + } + else{ + cout<<(s.find(val) == s.end() ? "No" : "Yes")<