GastonFontenla

Untitled

Jul 10th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int w, h, n;
  8. char dir;
  9. int pos;
  10.  
  11. scanf("%d %d %d", &w, &h, &n);
  12.  
  13. set<int> horizontal;
  14. set<int> vertical;
  15.  
  16. set<int> anchoSeg;
  17. set<int> altoSeg;
  18.  
  19. horizontal.insert(h);
  20. vertical.insert(w);
  21.  
  22. anchoSeg.insert(w);
  23. altoSeg.insert(h);
  24.  
  25. for(int i=0; i<n; i++)
  26. {
  27. scanf(" %c %d", &dir, &pos);
  28.  
  29. if(dir == 'H')
  30. {
  31.  
  32. }
  33. else
  34. {
  35.  
  36. }
  37. }
  38.  
  39.  
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment