Download the contest archive file; this file contains
the submission system and the problem code. Save it in the root directory
of the C: drive (C:\).
Right-click the "My Computer" icon on the desktop and choose "Explore"
Double-click the "Local Disk (C:)" icon in the main pane.
Double-click the "LCHSPC05" icon (this is the file you saved in
the first step).
Copy the contents of the archive by dragging the "Contest2005" icon
from the new window to
the "Local Disk (C:)" item in the tree view of the original window.
Close the LCHSPC05 window.
In the original window, click the "Local Disk (C:)" item in the tree view.
Double-click the "Contest2005" icon in the main part of the window.
Double-click the "pc2v86p2" icon.
Double-click the "team_client" icon to start the submission system.
Log in with the team id and password supplied at sign-in.
Click "Unblock" if a message from Windows Firewall pops up.
Download the problems archive to C:\
once the main problems are made available.
Click "Local Disk (C:)" in the tree view.
Double-click "problems" in the main pane.
Drag "Contest2005" from the new window to "Local Disk (C:)" in the original window.
Click "Yes to All" in the "Confirm Folder Replace" window.
Initial Setup for Linux
Run "X-Win32" from the "X-Win32 6.1" submenu of the "Start" menu.
Click "Cancel" if a dialog box appears after the splash screen. You
should now have a blue "X" icon in the system tray in the lower right corner
of the screen.
Right-click the "X" icon in the system tray and select "Xconfig".
Click "Add..."
Select "StarNetSSH" from the "Connect Method" box and click "Next".
Enter "Contest2005" in the "Session Name" field,
"144.126.136.76" in the "Host Name" field,
the team id supplied at sign-in in the "Login" field,
"/usr/bin/gnome-session" in the "Command" field,
leave "Password" blank, check "Enable Compression", select
"Switch to Single" from the "Window Mode" drop-down, and, finally,
click the "Save" button.
Click "OK".
Right-click the "X" icon in the system tray again and select
"Sessions" and then "Contest2005".
Enter your team password in the appropriate field and then
click "OK".
Click "OK" when you get the error message about the screen saver.
Open a terminal window and start mozilla for web browsing.
Download the contest archive file; this file contains
the submission system and the problem code. Save it in your home directory.
In the terminal window, type the following commands
unzip LCHSPC05
cd Contest2005/pc2v86p2
chmod u+x pc2team
./pc2team &
Login to the submission system as for Windows.
You can now use whatever tools you want to use from the command line.
Available tools include: eclipse,
g++, javac, java, gdb, jdb, emacs, vi, pico,
and mozilla. g++ is version 3.4.
Eclipse for Windows
Select "Eclipse" and then "Eclipse 3.01" from the "Start" menu.
Enter "C:\workspace" in the "Workspace" field and click "OK".
Select "File", "New", and "Project..." from the menu bar.
Select "Java Project" and click "Next".
Enter "problemx" (where x is the problem number)
in the "Project name:" field and click "Finish".
Click "Yes" to confirm the perspective change.
Right-click the "problemx" icon in the tree view in the left pane
and select "Import...".
Select "File system" and click "Next".
Click the "Browse..." button and browse to C:\Contest2005\Problems,
select the problem you would like to work on, and click "OK".
Check the box next to the .java file and click "Finish".
Expand "problemx" and then "default package" in the tree view.
Double-click the .java file to open the file for editing.
To run, right-click the file in the tree view and select "Run" and
"Java Application".
The output of your program will appear in the pane at the bottom of
the Eclipse window.
When submitting your files, they will be located in
C:\workspace\problemx.
jGRASP for Windows
Double-click the "jGRASP" icon on the desktop.
Close any windows containing source code our students have left behind.
Select "File", and "Open" from the menu bar.
Choose "Local Disk (C:)" from the "Look In" drop-down,
browse to the directory containing the supplied Java source code
file for the problem you want to work on, and double-click the file.
The directory will be C:\Contest2005\Problems\PROBLEM_NAME
(PROBLEM_NAME will be different for each problem).
Compile by selecting "Compile" from the "Build" menu (or by clicking
the green "+" icon). Any compiler errors will be displayed in the bottom pane.
When you are ready to test, select the window that contains the source
code for the class you want to test,
and then select "Run" from the menu (or click the red running man icon).
The output from your code will appear in the pane at the bottom of
the jGRASP window.
Visual C++ 6.0 for Windows
Select "Microsoft Visual C++ 6.0" from the "Microsoft Visual Studio 6.0"
submenu of the "Start" menu.
Select "New..." from the "File" menu.
Select "Win32 Console Application", type a name ("problem1", for example)
in the "Project name" field, click the "..." button next to the "Location"
field and browse to
"C:\Contest2005\Problems", and click "OK" and then "OK" again.
Click "Finish" in the wizard that appears and then "OK" in the next
dialog box.
Click the "File View" tab at the bottom left of the application.
Right-click your project name in the left pane and select "Add Files to Project...".
Browse to C:\Contest2005\Problems\PROBLEM_NAME ("PROBLEM_NAME" will be
different for each problem).
Control-click to select both of the .cpp files (one will contain the
class definiton and one will contain the main function),
and click "OK".
Expand the tree on the left by clicking the "+" next to your project and
then "Source Files".
Double-click a file to open it for editing.
Repeat the above two steps, but expand "Header Files" if you want
to edit the .h file.
Type your code.
Select "Build problemx.exe" from the "Build" menu to compile your code.
Compiler errors will be displayed in the pane at the bottom.
Select "Execute" from the "Build" menu when you are ready to test.
If, after closing VC++, you decide to come back and work on the same
problem, select "Open Workspace" from the "File" menu, browse to
"C:\Contest2005\Problems\problemx",
select your project directory and then double-click the ".dsw" file.
Submissions
Switch to the "PC^2" window.
In the "Submit" tab, select the appropriate values from the
"Problem" and "Language" drop-downs.
Click the "Select" button next to "Main File". For Java,
you should browse to your .java file. For C++, browse to the
.cpp file for the class. These files will be in
C:\Contest2005\Problems\PROBLEM_NAME for jGRASP and VC++, and
in C:\workspace\problemx for Eclipse. Click "OK" once you have
selected the correct file.
For C++, click "Add", browse to the .h file, and click "OK" to add
the header file.
Do not add the .cpp file with main in it. Java
programmers should not add any additional files.
Java programmers should click "Test" to ensure that their classes
will compile with the secret test driver (this should work
as long as you have not changed any of the existing methods in
the classes). The "Test" feature will not work for C++ (but,
as for Java, your submission should compile correctly on the
judging computer as long as you have not changed any
of the existing methods).
Click "Submit".
Click "Submit" again after verifying that the information you
entered was correct.
A message window will appear verifying that you submitted an
attempt at a solution. A little while later (that is, after the
judges have examined your results), you will get a message window
giving you the results -- either "Yes" or "No". You can
see the status of your submissions on the "Runs" tab.