SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <string>
  4. #include <set>
  5. #include <map>
  6. #define ll long long
  7. using namespace std;
  8.  
  9. int main(){
  10.     ll m, n, k, el, key;
  11.     string f;
  12.     cin >> m >> n >> k;
  13.     map <ll, set<ll>> q;
  14.    
  15.     for (ll i = 0; i < n; i++) {
  16.         cin >> f;
  17.         if (f == "ADD") {
  18.             cin >> el >> key;
  19.         }
  20.         else if (f == "DELETE") {
  21.             cin >> el >> key;
  22.         }
  23.         else if (f == "CLEAR") {
  24.             cin >> key;
  25.         }
  26.         else if (f == "LISTSET") {
  27.             cin >> key;
  28.         }
  29.         else if (f == "LISTSETSOF") {
  30.             cin >> el;
  31.         }
  32.     }
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top