Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <algorithm>
  5.  
  6. using namespace std;
  7.  
  8. /**
  9. * Auto-generated code below aims at helping you parse
  10. * the standard input according to the problem statement.
  11. **/
  12. int main()
  13. {
  14. int nbFloors; // number of floors
  15. int width; // width of the area
  16. int nbRounds; // maximum number of rounds
  17. int exitFloor; // floor on which the exit is found
  18. int exitPos; // position of the exit on its floor
  19. int nbTotalClones; // number of generated clones
  20. int nbAdditionalElevators; // ignore (always zero)
  21. int nbElevators; // number of elevators
  22. cin >> nbFloors >> width >> nbRounds >> exitFloor >> exitPos >> nbTotalClones >> nbAdditionalElevators >> nbElevators; cin.ignore();
  23. int eee[nbElevators][2];
  24.  
  25. for (int i = 0; i < nbElevators; i++) {
  26. int elevatorFloor; // floor on which this elevator is found
  27. int elevatorPos; // position of the elevator on its floor
  28. cin >> elevatorFloor >> elevatorPos; cin.ignore();
  29. eee[i][0] = 1;
  30. }
  31.  
  32. // game loop
  33. while (1) {
  34. int cloneFloor; // floor of the leading clone
  35. int clonePos; // position of the leading clone on its floor
  36. string direction; // direction of the leading clone: LEFT or RIGHT
  37. cin >> cloneFloor >> clonePos >> direction; cin.ignore();
  38. cerr << ":" << nbElevators << "." << eee[0][0] << endl;
  39. // Write an action using cout. DON'T FORGET THE "<< endl"
  40. // To debug: cerr << "Debug messages..." << endl;
  41.  
  42. cout << "WAIT" << endl; // action: WAIT or BLOCK
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement