codejam 2013

Hi, i want to participate in google codejam 2013. but i dont know how to submit solutions to it.
can anyone please explain to me how should i do that?
i read the instructions , i know i should submit the output file with the source code. but when i used freopen() to read and output to file it didnt work, is there any special thing i should do? and what should the output file type should be?
thanks, need help fast, its in 12/4/2013. thanks again.
> but when i used freopen() to read and output to file it didnt work

Just output to stdout, and then run your program with stdout redirected to a file.

for example, with tcsh: > ./my_program >& my_program_output
what should the file be? and how will i read from file?
> what should the file be?

The output file will be a text file. (If it exists, it will be overwritten).

> and how will i read from file?

Aren't you supposed to submit the output file?

To see what it contains, > cat my_program_output (or its equivalent on your platform)

See: http://www.tutorialspoint.com/unix/unix-io-redirections.htm
Last edited on
yes, i should submit the output file, but i should download the input file,run on my computer, then submit the output file
> but i should download the input file,run on my computer, then submit the output file

So write your program to read from stdin, and redirect stdin to read from the downloaded input file.

> ./my_program < downloaded_input_file >& my_program_output
Last edited on
where should i write this?
Topic archived. No new replies allowed.