Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <string>
- #include <set>
- #include <map>
- #define ll long long
- using namespace std;
- int main(){
- ll m, n, k, el, key;
- string f;
- cin >> m >> n >> k;
- map <ll, set<ll>> q;
- for (ll i = 0; i < n; i++) {
- cin >> f;
- if (f == "ADD") {
- cin >> el >> key;
- }
- else if (f == "DELETE") {
- cin >> el >> key;
- }
- else if (f == "CLEAR") {
- cin >> key;
- }
- else if (f == "LISTSET") {
- cin >> key;
- }
- else if (f == "LISTSETSOF") {
- cin >> el;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement