Using Google Code Jam test cases

Hi,

I can't seem to figure out how to use the test cases provided in problems for Google Code jam.

A newbie question I guess, but I have no clue.

I'd appreciate any help on this.

Thanks,

Akshay
I'm assuming you need to compare the output of your program with the expected output, using a given input?

On Windows you can simply run from command line with:
(program name) < (testCase.in) > (testCase.out)


eg.
practice1 < practice1.in > practice1.sol


The output file type is irrelevant (ie. it doesn't even need to be a recognized one), but I use .SOL as in

Then you must compare the two files.
I've forgotten the Linux command, but on Windows you can use
fc


eg.
fc practice1.out practice1.sol

to compare the expected output with your output.
Topic archived. No new replies allowed.