Advertisement
Guest User

Untitled

a guest
Jul 15th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.06 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.  * Hint: You can use the debug stream to print initialTX and initialTY, if Thor seems not follow your orders.
  13.  **/
  14.  
  15. int main()
  16. {
  17.     int lightX; // the X position of the light of power
  18.     int lightY; // the Y position of the light of power
  19.     int initialTX; // Thor's starting X position
  20.     int initialTY; // Thor's starting Y position
  21.     cin >> lightX >> lightY >> initialTX >> initialTY; cin.ignore();
  22.  
  23.     // game loop
  24.     while (1) {
  25.         int remainingTurns; // The remaining amount of turns Thor can move. Do not remove this line.
  26.         cin >> remainingTurns; cin.ignore();
  27.  
  28.         // Write an action using cout. DON'T FORGET THE "<< endl"
  29.         // To debug: cerr << "Debug messages..." << endl;
  30.  
  31.  
  32.         // A single line providing the move to be made: N NE E SE S SW W or NW
  33.         cout << "SE" << endl;
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement