- Open the
inp
file and add the complete input there.
Note: There is no limit on number of rovers(testcases for the problem)
- Finally run the code -
$ ruby main.rb < inp
Note: If you want to pass input in STDOUT then run the code -
$ ruby main.rb
Enter the input and then press Ctrl + D
for Mac and Ctrl + Z
Unix
- Install required gems
$ bundle install
- Run all the rspec tests
$ bundle exec rspec --format documentation --color