If you're reading this, then you probably want the following four things:
- The problem specification: gcpc-problem-2003.pdf
- The first sample input: sample1.txt
- The second sample input: sample2.txt
- The test data whose output should be submitted to the judges: testdata.txt
ANSWERS TO CONTESTANT QUESTIONS
Here are the answers to all the questions I've gotten so far.
New question at 10:00am:
- Q: If an order is given that does not affect the program does
it count as a signal? For example: if they press "on" during
play[.]
A: All signals are processed, and a line is printed, even if processing the signal does not change change the state of the player.
Questions received by 9:30am:
- Q: In the test data does the time and signal get input on one line?
A: Yes.
- Q: Do we "have to" use the variables "T" and "S" [...]?
A: No. Those names were chosen in the tradition of mathematics papers, and are (as you suggest) unsuitable for programs.
- Q: is the test data supposed to be read from the .txt file or
entered manually?
A: It does not matter. I read from the keyboard in my program and used cut/paste with my mouse.
- Q: we would like to know how the cd data is inputted. via text
box, a file, form? any of these?
A: Students using a GUI based system may use one or more text boxes, may read from a file, or any other reasonable method they know how to use. Just don't hard-code the numbers into your program.
This is a contest about problem solving, not parsing input.
Good Luck!