Advertisement
Guest User

Untitled

a guest
Mar 28th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.08 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <algorithm>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     int width;
  11.     int height;
  12.     cin >> width >> height; cin.ignore();
  13.     for (int i = 0; i < height; i++) {
  14.         string line;
  15.         getline(cin, line);
  16.         cerr << line << endl;
  17.     }
  18.     int startX;
  19.     int startY;
  20.     cin >> startX >> startY; cin.ignore();
  21.     cerr << startX << " " << startY << endl;
  22.     int targetX;
  23.     int targetY;
  24.     cin >> targetX >> targetY; cin.ignore();
  25.     cerr << targetX << " " << targetY << endl;
  26.     int switchCount;
  27.     cin >> switchCount; cin.ignore();
  28.     cerr << switchCount << endl;
  29.     for (int i = 0; i < switchCount; i++) {
  30.         int switchX;
  31.         int switchY;
  32.         int blockX;
  33.         int blockY;
  34.         int initialState; // 1 if blocking, 0 otherwise
  35.         cin >> switchX >> switchY >> blockX >> blockY >> initialState; cin.ignore();
  36.         cerr << switchX << " " << switchY << " " << blockX << " " << blockY << " " << initialState << endl;
  37.     }
  38.  
  39.     cout << "RRRRURD" << endl;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement