Skip to content

Input parsing #1

@DragonHunt3r

Description

@DragonHunt3r

Implement input parsing as per the assignment description.

The input is formatted as follows:

n c m
k i1 i2 ... ik

Where

  • n is the number of tiles (n >= 1).
  • c is the number of tiles a cat can move in one turn (c >= 0).
  • m is the number of tiles a mouse can move in one turn (m >= 0).
  • k is the number of tiles with rocks (0 <= k <= n).
  • i1 ... ik are the indices of the tiles with rocks (k elements long, 1 <= im <= n). Pay attention, these are 1-indexed.

All values should be valid integers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions