Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main()
- {
- int width;
- int height;
- cin >> width >> height; cin.ignore();
- for (int i = 0; i < height; i++) {
- string line;
- getline(cin, line);
- cerr << line << endl;
- }
- int startX;
- int startY;
- cin >> startX >> startY; cin.ignore();
- cerr << startX << " " << startY << endl;
- int targetX;
- int targetY;
- cin >> targetX >> targetY; cin.ignore();
- cerr << targetX << " " << targetY << endl;
- int switchCount;
- cin >> switchCount; cin.ignore();
- cerr << switchCount << endl;
- for (int i = 0; i < switchCount; i++) {
- int switchX;
- int switchY;
- int blockX;
- int blockY;
- int initialState; // 1 if blocking, 0 otherwise
- cin >> switchX >> switchY >> blockX >> blockY >> initialState; cin.ignore();
- cerr << switchX << " " << switchY << " " << blockX << " " << blockY << " " << initialState << endl;
- }
- cout << "RRRRURD" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement